diff options
Diffstat (limited to 'protocols/WhatsAppWeb/src/pmsg.pb.cc')
-rw-r--r-- | protocols/WhatsAppWeb/src/pmsg.pb.cc | 24423 |
1 files changed, 13071 insertions, 11352 deletions
diff --git a/protocols/WhatsAppWeb/src/pmsg.pb.cc b/protocols/WhatsAppWeb/src/pmsg.pb.cc index 7f10811a30..c54de2f19d 100644 --- a/protocols/WhatsAppWeb/src/pmsg.pb.cc +++ b/protocols/WhatsAppWeb/src/pmsg.pb.cc @@ -16,1560 +16,1665 @@ #include <google/protobuf/port_def.inc> PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace proto { -constexpr PaymentMoney::PaymentMoney( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : currencycode_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , value_(int64_t{0}) - , offset_(0u){} +PROTOBUF_CONSTEXPR PaymentMoney::PaymentMoney( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.currencycode_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.value_)*/int64_t{0} + , /*decltype(_impl_.offset_)*/0u} {} struct PaymentMoneyDefaultTypeInternal { - constexpr PaymentMoneyDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PaymentMoneyDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~PaymentMoneyDefaultTypeInternal() {} union { PaymentMoney _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PaymentMoneyDefaultTypeInternal _PaymentMoney_default_instance_; -constexpr HydratedQuickReplyButton::HydratedQuickReplyButton( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : displaytext_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PaymentMoneyDefaultTypeInternal _PaymentMoney_default_instance_; +PROTOBUF_CONSTEXPR HydratedQuickReplyButton::HydratedQuickReplyButton( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.displaytext_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} struct HydratedQuickReplyButtonDefaultTypeInternal { - constexpr HydratedQuickReplyButtonDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HydratedQuickReplyButtonDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~HydratedQuickReplyButtonDefaultTypeInternal() {} union { HydratedQuickReplyButton _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT HydratedQuickReplyButtonDefaultTypeInternal _HydratedQuickReplyButton_default_instance_; -constexpr HydratedURLButton::HydratedURLButton( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : displaytext_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HydratedQuickReplyButtonDefaultTypeInternal _HydratedQuickReplyButton_default_instance_; +PROTOBUF_CONSTEXPR HydratedURLButton::HydratedURLButton( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.displaytext_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.url_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} struct HydratedURLButtonDefaultTypeInternal { - constexpr HydratedURLButtonDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HydratedURLButtonDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~HydratedURLButtonDefaultTypeInternal() {} union { HydratedURLButton _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT HydratedURLButtonDefaultTypeInternal _HydratedURLButton_default_instance_; -constexpr HydratedCallButton::HydratedCallButton( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : displaytext_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , phonenumber_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HydratedURLButtonDefaultTypeInternal _HydratedURLButton_default_instance_; +PROTOBUF_CONSTEXPR HydratedCallButton::HydratedCallButton( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.displaytext_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.phonenumber_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} struct HydratedCallButtonDefaultTypeInternal { - constexpr HydratedCallButtonDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HydratedCallButtonDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~HydratedCallButtonDefaultTypeInternal() {} union { HydratedCallButton _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT HydratedCallButtonDefaultTypeInternal _HydratedCallButton_default_instance_; -constexpr HydratedTemplateButton::HydratedTemplateButton( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : index_(0u) - , _oneof_case_{}{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HydratedCallButtonDefaultTypeInternal _HydratedCallButton_default_instance_; +PROTOBUF_CONSTEXPR HydratedTemplateButton::HydratedTemplateButton( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.index_)*/0u + , /*decltype(_impl_.hydratedButton_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} struct HydratedTemplateButtonDefaultTypeInternal { - constexpr HydratedTemplateButtonDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HydratedTemplateButtonDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~HydratedTemplateButtonDefaultTypeInternal() {} union { HydratedTemplateButton _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT HydratedTemplateButtonDefaultTypeInternal _HydratedTemplateButton_default_instance_; -constexpr QuickReplyButton::QuickReplyButton( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , displaytext_(nullptr){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HydratedTemplateButtonDefaultTypeInternal _HydratedTemplateButton_default_instance_; +PROTOBUF_CONSTEXPR QuickReplyButton::QuickReplyButton( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.displaytext_)*/nullptr} {} struct QuickReplyButtonDefaultTypeInternal { - constexpr QuickReplyButtonDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR QuickReplyButtonDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~QuickReplyButtonDefaultTypeInternal() {} union { QuickReplyButton _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT QuickReplyButtonDefaultTypeInternal _QuickReplyButton_default_instance_; -constexpr URLButton::URLButton( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : displaytext_(nullptr) - , url_(nullptr){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 QuickReplyButtonDefaultTypeInternal _QuickReplyButton_default_instance_; +PROTOBUF_CONSTEXPR URLButton::URLButton( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.displaytext_)*/nullptr + , /*decltype(_impl_.url_)*/nullptr} {} struct URLButtonDefaultTypeInternal { - constexpr URLButtonDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR URLButtonDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~URLButtonDefaultTypeInternal() {} union { URLButton _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT URLButtonDefaultTypeInternal _URLButton_default_instance_; -constexpr CallButton::CallButton( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : displaytext_(nullptr) - , phonenumber_(nullptr){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 URLButtonDefaultTypeInternal _URLButton_default_instance_; +PROTOBUF_CONSTEXPR CallButton::CallButton( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.displaytext_)*/nullptr + , /*decltype(_impl_.phonenumber_)*/nullptr} {} struct CallButtonDefaultTypeInternal { - constexpr CallButtonDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CallButtonDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CallButtonDefaultTypeInternal() {} union { CallButton _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CallButtonDefaultTypeInternal _CallButton_default_instance_; -constexpr TemplateButton::TemplateButton( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : index_(0u) - , _oneof_case_{}{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallButtonDefaultTypeInternal _CallButton_default_instance_; +PROTOBUF_CONSTEXPR TemplateButton::TemplateButton( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.index_)*/0u + , /*decltype(_impl_.button_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} struct TemplateButtonDefaultTypeInternal { - constexpr TemplateButtonDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR TemplateButtonDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~TemplateButtonDefaultTypeInternal() {} union { TemplateButton _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TemplateButtonDefaultTypeInternal _TemplateButton_default_instance_; -constexpr Location::Location( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , degreeslatitude_(0) - , degreeslongitude_(0){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TemplateButtonDefaultTypeInternal _TemplateButton_default_instance_; +PROTOBUF_CONSTEXPR Location::Location( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.degreeslatitude_)*/0 + , /*decltype(_impl_.degreeslongitude_)*/0} {} struct LocationDefaultTypeInternal { - constexpr LocationDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR LocationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~LocationDefaultTypeInternal() {} union { Location _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocationDefaultTypeInternal _Location_default_instance_; -constexpr Point::Point( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : xdeprecated_(0) - , ydeprecated_(0) - , x_(0) - , y_(0){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationDefaultTypeInternal _Location_default_instance_; +PROTOBUF_CONSTEXPR Point::Point( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.xdeprecated_)*/0 + , /*decltype(_impl_.ydeprecated_)*/0 + , /*decltype(_impl_.x_)*/0 + , /*decltype(_impl_.y_)*/0} {} struct PointDefaultTypeInternal { - constexpr PointDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PointDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~PointDefaultTypeInternal() {} union { Point _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PointDefaultTypeInternal _Point_default_instance_; -constexpr InteractiveAnnotation::InteractiveAnnotation( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : polygonvertices_() - , _oneof_case_{}{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PointDefaultTypeInternal _Point_default_instance_; +PROTOBUF_CONSTEXPR InteractiveAnnotation::InteractiveAnnotation( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.polygonvertices_)*/{} + , /*decltype(_impl_.action_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} struct InteractiveAnnotationDefaultTypeInternal { - constexpr InteractiveAnnotationDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR InteractiveAnnotationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~InteractiveAnnotationDefaultTypeInternal() {} union { InteractiveAnnotation _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT InteractiveAnnotationDefaultTypeInternal _InteractiveAnnotation_default_instance_; -constexpr DeviceListMetadata::DeviceListMetadata( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : senderkeyhash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , recipientkeyhash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , sendertimestamp_(uint64_t{0u}) - , recipienttimestamp_(uint64_t{0u}){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InteractiveAnnotationDefaultTypeInternal _InteractiveAnnotation_default_instance_; +PROTOBUF_CONSTEXPR DeviceListMetadata::DeviceListMetadata( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.senderkeyhash_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.recipientkeyhash_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.sendertimestamp_)*/uint64_t{0u} + , /*decltype(_impl_.recipienttimestamp_)*/uint64_t{0u}} {} struct DeviceListMetadataDefaultTypeInternal { - constexpr DeviceListMetadataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR DeviceListMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~DeviceListMetadataDefaultTypeInternal() {} union { DeviceListMetadata _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeviceListMetadataDefaultTypeInternal _DeviceListMetadata_default_instance_; -constexpr MessageContextInfo::MessageContextInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : devicelistmetadata_(nullptr){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeviceListMetadataDefaultTypeInternal _DeviceListMetadata_default_instance_; +PROTOBUF_CONSTEXPR MessageContextInfo::MessageContextInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.devicelistmetadata_)*/nullptr} {} struct MessageContextInfoDefaultTypeInternal { - constexpr MessageContextInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MessageContextInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~MessageContextInfoDefaultTypeInternal() {} union { MessageContextInfo _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageContextInfoDefaultTypeInternal _MessageContextInfo_default_instance_; -constexpr AdReplyInfo::AdReplyInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : advertisername_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , jpegthumbnail_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , caption_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , mediatype_(0) -{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageContextInfoDefaultTypeInternal _MessageContextInfo_default_instance_; +PROTOBUF_CONSTEXPR AdReplyInfo::AdReplyInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.advertisername_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.jpegthumbnail_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.caption_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mediatype_)*/0} {} struct AdReplyInfoDefaultTypeInternal { - constexpr AdReplyInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AdReplyInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AdReplyInfoDefaultTypeInternal() {} union { AdReplyInfo _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AdReplyInfoDefaultTypeInternal _AdReplyInfo_default_instance_; -constexpr ExternalAdReplyInfo::ExternalAdReplyInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : title_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , body_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , thumbnailurl_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , mediaurl_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , thumbnail_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , sourcetype_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , sourceid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , sourceurl_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , mediatype_(0) -{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AdReplyInfoDefaultTypeInternal _AdReplyInfo_default_instance_; +PROTOBUF_CONSTEXPR ExternalAdReplyInfo::ExternalAdReplyInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.title_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.body_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.thumbnailurl_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mediaurl_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.thumbnail_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.sourcetype_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.sourceid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.sourceurl_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mediatype_)*/0} {} struct ExternalAdReplyInfoDefaultTypeInternal { - constexpr ExternalAdReplyInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ExternalAdReplyInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ExternalAdReplyInfoDefaultTypeInternal() {} union { ExternalAdReplyInfo _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ExternalAdReplyInfoDefaultTypeInternal _ExternalAdReplyInfo_default_instance_; -constexpr ContextInfo::ContextInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : mentionedjid_() - , stanzaid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , participant_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , remotejid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , conversionsource_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , conversiondata_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , ephemeralsharedsecret_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , quotedmessage_(nullptr) - , quotedad_(nullptr) - , placeholderkey_(nullptr) - , externaladreply_(nullptr) - , conversiondelayseconds_(0u) - , forwardingscore_(0u) - , isforwarded_(false) - , expiration_(0u) - , ephemeralsettingtimestamp_(int64_t{0}){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExternalAdReplyInfoDefaultTypeInternal _ExternalAdReplyInfo_default_instance_; +PROTOBUF_CONSTEXPR ContextInfo::ContextInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.mentionedjid_)*/{} + , /*decltype(_impl_.stanzaid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.participant_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.remotejid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.conversionsource_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.conversiondata_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.ephemeralsharedsecret_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.quotedmessage_)*/nullptr + , /*decltype(_impl_.quotedad_)*/nullptr + , /*decltype(_impl_.placeholderkey_)*/nullptr + , /*decltype(_impl_.externaladreply_)*/nullptr + , /*decltype(_impl_.conversiondelayseconds_)*/0u + , /*decltype(_impl_.forwardingscore_)*/0u + , /*decltype(_impl_.isforwarded_)*/false + , /*decltype(_impl_.expiration_)*/0u + , /*decltype(_impl_.ephemeralsettingtimestamp_)*/int64_t{0}} {} struct ContextInfoDefaultTypeInternal { - constexpr ContextInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ContextInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ContextInfoDefaultTypeInternal() {} union { ContextInfo _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ContextInfoDefaultTypeInternal _ContextInfo_default_instance_; -constexpr SenderKeyDistributionMessage::SenderKeyDistributionMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : groupid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , axolotlsenderkeydistributionmessage_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ContextInfoDefaultTypeInternal _ContextInfo_default_instance_; +PROTOBUF_CONSTEXPR SenderKeyDistributionMessage::SenderKeyDistributionMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.groupid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.axolotlsenderkeydistributionmessage_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} struct SenderKeyDistributionMessageDefaultTypeInternal { - constexpr SenderKeyDistributionMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SenderKeyDistributionMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SenderKeyDistributionMessageDefaultTypeInternal() {} union { SenderKeyDistributionMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SenderKeyDistributionMessageDefaultTypeInternal _SenderKeyDistributionMessage_default_instance_; -constexpr ImageMessage::ImageMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : interactiveannotations_() - , scanlengths_() - , url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , mimetype_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , caption_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , filesha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , mediakey_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , fileencsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , directpath_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , jpegthumbnail_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , firstscansidecar_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , scanssidecar_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , midqualityfilesha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , midqualityfileencsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , thumbnaildirectpath_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , thumbnailsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , thumbnailencsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , contextinfo_(nullptr) - , filelength_(uint64_t{0u}) - , height_(0u) - , width_(0u) - , mediakeytimestamp_(int64_t{0}) - , firstscanlength_(0u) - , experimentgroupid_(0u) - , viewonce_(false){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SenderKeyDistributionMessageDefaultTypeInternal _SenderKeyDistributionMessage_default_instance_; +PROTOBUF_CONSTEXPR ImageMessage::ImageMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.interactiveannotations_)*/{} + , /*decltype(_impl_.scanlengths_)*/{} + , /*decltype(_impl_.url_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mimetype_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.caption_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.filesha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mediakey_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.fileencsha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.directpath_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.jpegthumbnail_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.firstscansidecar_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.scanssidecar_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.midqualityfilesha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.midqualityfileencsha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.thumbnaildirectpath_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.thumbnailsha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.thumbnailencsha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.contextinfo_)*/nullptr + , /*decltype(_impl_.filelength_)*/uint64_t{0u} + , /*decltype(_impl_.height_)*/0u + , /*decltype(_impl_.width_)*/0u + , /*decltype(_impl_.mediakeytimestamp_)*/int64_t{0} + , /*decltype(_impl_.firstscanlength_)*/0u + , /*decltype(_impl_.experimentgroupid_)*/0u + , /*decltype(_impl_.viewonce_)*/false} {} struct ImageMessageDefaultTypeInternal { - constexpr ImageMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ImageMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ImageMessageDefaultTypeInternal() {} union { ImageMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ImageMessageDefaultTypeInternal _ImageMessage_default_instance_; -constexpr InvoiceMessage::InvoiceMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : note_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , attachmentmimetype_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , attachmentmediakey_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , attachmentfilesha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , attachmentfileencsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , attachmentdirectpath_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , attachmentjpegthumbnail_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , attachmentmediakeytimestamp_(int64_t{0}) - , attachmenttype_(0) -{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ImageMessageDefaultTypeInternal _ImageMessage_default_instance_; +PROTOBUF_CONSTEXPR InvoiceMessage::InvoiceMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.note_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.attachmentmimetype_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.attachmentmediakey_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.attachmentfilesha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.attachmentfileencsha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.attachmentdirectpath_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.attachmentjpegthumbnail_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.attachmentmediakeytimestamp_)*/int64_t{0} + , /*decltype(_impl_.attachmenttype_)*/0} {} struct InvoiceMessageDefaultTypeInternal { - constexpr InvoiceMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR InvoiceMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~InvoiceMessageDefaultTypeInternal() {} union { InvoiceMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT InvoiceMessageDefaultTypeInternal _InvoiceMessage_default_instance_; -constexpr ContactMessage::ContactMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : displayname_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , vcard_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , contextinfo_(nullptr){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InvoiceMessageDefaultTypeInternal _InvoiceMessage_default_instance_; +PROTOBUF_CONSTEXPR ContactMessage::ContactMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.displayname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.vcard_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.contextinfo_)*/nullptr} {} struct ContactMessageDefaultTypeInternal { - constexpr ContactMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ContactMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ContactMessageDefaultTypeInternal() {} union { ContactMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ContactMessageDefaultTypeInternal _ContactMessage_default_instance_; -constexpr LocationMessage::LocationMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , comment_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , jpegthumbnail_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , contextinfo_(nullptr) - , degreeslatitude_(0) - , degreeslongitude_(0) - , islive_(false) - , accuracyinmeters_(0u) - , speedinmps_(0) - , degreesclockwisefrommagneticnorth_(0u){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ContactMessageDefaultTypeInternal _ContactMessage_default_instance_; +PROTOBUF_CONSTEXPR LocationMessage::LocationMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.address_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.url_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.comment_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.jpegthumbnail_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.contextinfo_)*/nullptr + , /*decltype(_impl_.degreeslatitude_)*/0 + , /*decltype(_impl_.degreeslongitude_)*/0 + , /*decltype(_impl_.islive_)*/false + , /*decltype(_impl_.accuracyinmeters_)*/0u + , /*decltype(_impl_.speedinmps_)*/0 + , /*decltype(_impl_.degreesclockwisefrommagneticnorth_)*/0u} {} struct LocationMessageDefaultTypeInternal { - constexpr LocationMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR LocationMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~LocationMessageDefaultTypeInternal() {} union { LocationMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocationMessageDefaultTypeInternal _LocationMessage_default_instance_; -constexpr ExtendedTextMessage::ExtendedTextMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : text_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , matchedtext_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , canonicalurl_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , description_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , title_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , jpegthumbnail_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , contextinfo_(nullptr) - , textargb_(0u) - , backgroundargb_(0u) - , font_(0) - - , previewtype_(0) - - , donotplayinline_(false){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LocationMessageDefaultTypeInternal _LocationMessage_default_instance_; +PROTOBUF_CONSTEXPR ExtendedTextMessage::ExtendedTextMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.text_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.matchedtext_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.canonicalurl_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.description_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.title_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.jpegthumbnail_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.contextinfo_)*/nullptr + , /*decltype(_impl_.textargb_)*/0u + , /*decltype(_impl_.backgroundargb_)*/0u + , /*decltype(_impl_.font_)*/0 + , /*decltype(_impl_.previewtype_)*/0 + , /*decltype(_impl_.donotplayinline_)*/false} {} struct ExtendedTextMessageDefaultTypeInternal { - constexpr ExtendedTextMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ExtendedTextMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ExtendedTextMessageDefaultTypeInternal() {} union { ExtendedTextMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ExtendedTextMessageDefaultTypeInternal _ExtendedTextMessage_default_instance_; -constexpr DocumentMessage::DocumentMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , mimetype_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , title_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , filesha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , mediakey_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , filename_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , fileencsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , directpath_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , thumbnaildirectpath_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , thumbnailsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , thumbnailencsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , jpegthumbnail_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , contextinfo_(nullptr) - , filelength_(uint64_t{0u}) - , pagecount_(0u) - , contactvcard_(false) - , mediakeytimestamp_(int64_t{0}) - , thumbnailheight_(0u) - , thumbnailwidth_(0u){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExtendedTextMessageDefaultTypeInternal _ExtendedTextMessage_default_instance_; +PROTOBUF_CONSTEXPR DocumentMessage::DocumentMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.url_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mimetype_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.title_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.filesha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mediakey_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.filename_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.fileencsha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.directpath_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.thumbnaildirectpath_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.thumbnailsha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.thumbnailencsha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.jpegthumbnail_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.contextinfo_)*/nullptr + , /*decltype(_impl_.filelength_)*/uint64_t{0u} + , /*decltype(_impl_.pagecount_)*/0u + , /*decltype(_impl_.contactvcard_)*/false + , /*decltype(_impl_.mediakeytimestamp_)*/int64_t{0} + , /*decltype(_impl_.thumbnailheight_)*/0u + , /*decltype(_impl_.thumbnailwidth_)*/0u} {} struct DocumentMessageDefaultTypeInternal { - constexpr DocumentMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR DocumentMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~DocumentMessageDefaultTypeInternal() {} union { DocumentMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DocumentMessageDefaultTypeInternal _DocumentMessage_default_instance_; -constexpr AudioMessage::AudioMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , mimetype_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , filesha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , mediakey_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , fileencsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , directpath_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , streamingsidecar_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , contextinfo_(nullptr) - , filelength_(uint64_t{0u}) - , seconds_(0u) - , ptt_(false) - , mediakeytimestamp_(int64_t{0}){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DocumentMessageDefaultTypeInternal _DocumentMessage_default_instance_; +PROTOBUF_CONSTEXPR AudioMessage::AudioMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.url_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mimetype_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.filesha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mediakey_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.fileencsha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.directpath_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.streamingsidecar_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.contextinfo_)*/nullptr + , /*decltype(_impl_.filelength_)*/uint64_t{0u} + , /*decltype(_impl_.seconds_)*/0u + , /*decltype(_impl_.ptt_)*/false + , /*decltype(_impl_.mediakeytimestamp_)*/int64_t{0}} {} struct AudioMessageDefaultTypeInternal { - constexpr AudioMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AudioMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AudioMessageDefaultTypeInternal() {} union { AudioMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AudioMessageDefaultTypeInternal _AudioMessage_default_instance_; -constexpr VideoMessage::VideoMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : interactiveannotations_() - , url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , mimetype_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , filesha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , mediakey_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , caption_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , fileencsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , directpath_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , jpegthumbnail_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , streamingsidecar_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , thumbnaildirectpath_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , thumbnailsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , thumbnailencsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , contextinfo_(nullptr) - , filelength_(uint64_t{0u}) - , seconds_(0u) - , height_(0u) - , width_(0u) - , gifplayback_(false) - , viewonce_(false) - , mediakeytimestamp_(int64_t{0}) - , gifattribution_(0) -{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AudioMessageDefaultTypeInternal _AudioMessage_default_instance_; +PROTOBUF_CONSTEXPR VideoMessage::VideoMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.interactiveannotations_)*/{} + , /*decltype(_impl_.url_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mimetype_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.filesha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mediakey_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.caption_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.fileencsha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.directpath_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.jpegthumbnail_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.streamingsidecar_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.thumbnaildirectpath_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.thumbnailsha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.thumbnailencsha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.contextinfo_)*/nullptr + , /*decltype(_impl_.filelength_)*/uint64_t{0u} + , /*decltype(_impl_.seconds_)*/0u + , /*decltype(_impl_.height_)*/0u + , /*decltype(_impl_.width_)*/0u + , /*decltype(_impl_.gifplayback_)*/false + , /*decltype(_impl_.viewonce_)*/false + , /*decltype(_impl_.mediakeytimestamp_)*/int64_t{0} + , /*decltype(_impl_.gifattribution_)*/0} {} struct VideoMessageDefaultTypeInternal { - constexpr VideoMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR VideoMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~VideoMessageDefaultTypeInternal() {} union { VideoMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT VideoMessageDefaultTypeInternal _VideoMessage_default_instance_; -constexpr Call::Call( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : callkey_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VideoMessageDefaultTypeInternal _VideoMessage_default_instance_; +PROTOBUF_CONSTEXPR Call::Call( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.callkey_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} struct CallDefaultTypeInternal { - constexpr CallDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CallDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CallDefaultTypeInternal() {} union { Call _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CallDefaultTypeInternal _Call_default_instance_; -constexpr Chat::Chat( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : displayname_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CallDefaultTypeInternal _Call_default_instance_; +PROTOBUF_CONSTEXPR Chat::Chat( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.displayname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} struct ChatDefaultTypeInternal { - constexpr ChatDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ChatDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ChatDefaultTypeInternal() {} union { Chat _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ChatDefaultTypeInternal _Chat_default_instance_; -constexpr ProtocolMessage::ProtocolMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : key_(nullptr) - , historysyncnotification_(nullptr) - , appstatesynckeyshare_(nullptr) - , appstatesynckeyrequest_(nullptr) - , initialsecuritynotificationsettingsync_(nullptr) - , appstatefatalexceptionnotification_(nullptr) - , type_(0) - - , ephemeralexpiration_(0u) - , ephemeralsettingtimestamp_(int64_t{0}){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChatDefaultTypeInternal _Chat_default_instance_; +PROTOBUF_CONSTEXPR ProtocolMessage::ProtocolMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.key_)*/nullptr + , /*decltype(_impl_.historysyncnotification_)*/nullptr + , /*decltype(_impl_.appstatesynckeyshare_)*/nullptr + , /*decltype(_impl_.appstatesynckeyrequest_)*/nullptr + , /*decltype(_impl_.initialsecuritynotificationsettingsync_)*/nullptr + , /*decltype(_impl_.appstatefatalexceptionnotification_)*/nullptr + , /*decltype(_impl_.type_)*/0 + , /*decltype(_impl_.ephemeralexpiration_)*/0u + , /*decltype(_impl_.ephemeralsettingtimestamp_)*/int64_t{0}} {} struct ProtocolMessageDefaultTypeInternal { - constexpr ProtocolMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ProtocolMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ProtocolMessageDefaultTypeInternal() {} union { ProtocolMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ProtocolMessageDefaultTypeInternal _ProtocolMessage_default_instance_; -constexpr HistorySyncNotification::HistorySyncNotification( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : filesha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , mediakey_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , fileencsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , directpath_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , originalmessageid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , filelength_(uint64_t{0u}) - , synctype_(0) - - , chunkorder_(0u){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProtocolMessageDefaultTypeInternal _ProtocolMessage_default_instance_; +PROTOBUF_CONSTEXPR HistorySyncNotification::HistorySyncNotification( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.filesha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mediakey_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.fileencsha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.directpath_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.originalmessageid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.filelength_)*/uint64_t{0u} + , /*decltype(_impl_.synctype_)*/0 + , /*decltype(_impl_.chunkorder_)*/0u} {} struct HistorySyncNotificationDefaultTypeInternal { - constexpr HistorySyncNotificationDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HistorySyncNotificationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~HistorySyncNotificationDefaultTypeInternal() {} union { HistorySyncNotification _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT HistorySyncNotificationDefaultTypeInternal _HistorySyncNotification_default_instance_; -constexpr AppStateSyncKey::AppStateSyncKey( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : keyid_(nullptr) - , keydata_(nullptr){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HistorySyncNotificationDefaultTypeInternal _HistorySyncNotification_default_instance_; +PROTOBUF_CONSTEXPR AppStateSyncKey::AppStateSyncKey( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.keyid_)*/nullptr + , /*decltype(_impl_.keydata_)*/nullptr} {} struct AppStateSyncKeyDefaultTypeInternal { - constexpr AppStateSyncKeyDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AppStateSyncKeyDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AppStateSyncKeyDefaultTypeInternal() {} union { AppStateSyncKey _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AppStateSyncKeyDefaultTypeInternal _AppStateSyncKey_default_instance_; -constexpr AppStateSyncKeyId::AppStateSyncKeyId( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : keyid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppStateSyncKeyDefaultTypeInternal _AppStateSyncKey_default_instance_; +PROTOBUF_CONSTEXPR AppStateSyncKeyId::AppStateSyncKeyId( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.keyid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} struct AppStateSyncKeyIdDefaultTypeInternal { - constexpr AppStateSyncKeyIdDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AppStateSyncKeyIdDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AppStateSyncKeyIdDefaultTypeInternal() {} union { AppStateSyncKeyId _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AppStateSyncKeyIdDefaultTypeInternal _AppStateSyncKeyId_default_instance_; -constexpr AppStateSyncKeyFingerprint::AppStateSyncKeyFingerprint( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : deviceindexes_() - , _deviceindexes_cached_byte_size_(0) - , rawid_(0u) - , currentindex_(0u){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppStateSyncKeyIdDefaultTypeInternal _AppStateSyncKeyId_default_instance_; +PROTOBUF_CONSTEXPR AppStateSyncKeyFingerprint::AppStateSyncKeyFingerprint( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.deviceindexes_)*/{} + , /*decltype(_impl_._deviceindexes_cached_byte_size_)*/{0} + , /*decltype(_impl_.rawid_)*/0u + , /*decltype(_impl_.currentindex_)*/0u} {} struct AppStateSyncKeyFingerprintDefaultTypeInternal { - constexpr AppStateSyncKeyFingerprintDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AppStateSyncKeyFingerprintDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AppStateSyncKeyFingerprintDefaultTypeInternal() {} union { AppStateSyncKeyFingerprint _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AppStateSyncKeyFingerprintDefaultTypeInternal _AppStateSyncKeyFingerprint_default_instance_; -constexpr AppStateSyncKeyData::AppStateSyncKeyData( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : keydata_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , fingerprint_(nullptr) - , timestamp_(int64_t{0}){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppStateSyncKeyFingerprintDefaultTypeInternal _AppStateSyncKeyFingerprint_default_instance_; +PROTOBUF_CONSTEXPR AppStateSyncKeyData::AppStateSyncKeyData( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.keydata_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.fingerprint_)*/nullptr + , /*decltype(_impl_.timestamp_)*/int64_t{0}} {} struct AppStateSyncKeyDataDefaultTypeInternal { - constexpr AppStateSyncKeyDataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AppStateSyncKeyDataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AppStateSyncKeyDataDefaultTypeInternal() {} union { AppStateSyncKeyData _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AppStateSyncKeyDataDefaultTypeInternal _AppStateSyncKeyData_default_instance_; -constexpr AppStateSyncKeyShare::AppStateSyncKeyShare( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : keys_(){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppStateSyncKeyDataDefaultTypeInternal _AppStateSyncKeyData_default_instance_; +PROTOBUF_CONSTEXPR AppStateSyncKeyShare::AppStateSyncKeyShare( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.keys_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} struct AppStateSyncKeyShareDefaultTypeInternal { - constexpr AppStateSyncKeyShareDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AppStateSyncKeyShareDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AppStateSyncKeyShareDefaultTypeInternal() {} union { AppStateSyncKeyShare _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AppStateSyncKeyShareDefaultTypeInternal _AppStateSyncKeyShare_default_instance_; -constexpr AppStateSyncKeyRequest::AppStateSyncKeyRequest( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : keyids_(){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppStateSyncKeyShareDefaultTypeInternal _AppStateSyncKeyShare_default_instance_; +PROTOBUF_CONSTEXPR AppStateSyncKeyRequest::AppStateSyncKeyRequest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.keyids_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} struct AppStateSyncKeyRequestDefaultTypeInternal { - constexpr AppStateSyncKeyRequestDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AppStateSyncKeyRequestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AppStateSyncKeyRequestDefaultTypeInternal() {} union { AppStateSyncKeyRequest _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AppStateSyncKeyRequestDefaultTypeInternal _AppStateSyncKeyRequest_default_instance_; -constexpr AppStateFatalExceptionNotification::AppStateFatalExceptionNotification( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : collectionnames_() - , timestamp_(int64_t{0}){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppStateSyncKeyRequestDefaultTypeInternal _AppStateSyncKeyRequest_default_instance_; +PROTOBUF_CONSTEXPR AppStateFatalExceptionNotification::AppStateFatalExceptionNotification( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.collectionnames_)*/{} + , /*decltype(_impl_.timestamp_)*/int64_t{0}} {} struct AppStateFatalExceptionNotificationDefaultTypeInternal { - constexpr AppStateFatalExceptionNotificationDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR AppStateFatalExceptionNotificationDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~AppStateFatalExceptionNotificationDefaultTypeInternal() {} union { AppStateFatalExceptionNotification _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AppStateFatalExceptionNotificationDefaultTypeInternal _AppStateFatalExceptionNotification_default_instance_; -constexpr InitialSecurityNotificationSettingSync::InitialSecurityNotificationSettingSync( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : securitynotificationenabled_(false){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AppStateFatalExceptionNotificationDefaultTypeInternal _AppStateFatalExceptionNotification_default_instance_; +PROTOBUF_CONSTEXPR InitialSecurityNotificationSettingSync::InitialSecurityNotificationSettingSync( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.securitynotificationenabled_)*/false} {} struct InitialSecurityNotificationSettingSyncDefaultTypeInternal { - constexpr InitialSecurityNotificationSettingSyncDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR InitialSecurityNotificationSettingSyncDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~InitialSecurityNotificationSettingSyncDefaultTypeInternal() {} union { InitialSecurityNotificationSettingSync _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT InitialSecurityNotificationSettingSyncDefaultTypeInternal _InitialSecurityNotificationSettingSync_default_instance_; -constexpr ContactsArrayMessage::ContactsArrayMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : contacts_() - , displayname_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , contextinfo_(nullptr){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InitialSecurityNotificationSettingSyncDefaultTypeInternal _InitialSecurityNotificationSettingSync_default_instance_; +PROTOBUF_CONSTEXPR ContactsArrayMessage::ContactsArrayMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.contacts_)*/{} + , /*decltype(_impl_.displayname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.contextinfo_)*/nullptr} {} struct ContactsArrayMessageDefaultTypeInternal { - constexpr ContactsArrayMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ContactsArrayMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ContactsArrayMessageDefaultTypeInternal() {} union { ContactsArrayMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ContactsArrayMessageDefaultTypeInternal _ContactsArrayMessage_default_instance_; -constexpr HSMCurrency::HSMCurrency( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : currencycode_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , amount1000_(int64_t{0}){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ContactsArrayMessageDefaultTypeInternal _ContactsArrayMessage_default_instance_; +PROTOBUF_CONSTEXPR HSMCurrency::HSMCurrency( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.currencycode_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.amount1000_)*/int64_t{0}} {} struct HSMCurrencyDefaultTypeInternal { - constexpr HSMCurrencyDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HSMCurrencyDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~HSMCurrencyDefaultTypeInternal() {} union { HSMCurrency _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT HSMCurrencyDefaultTypeInternal _HSMCurrency_default_instance_; -constexpr HSMDateTimeComponent::HSMDateTimeComponent( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : year_(0u) - , month_(0u) - , dayofmonth_(0u) - , hour_(0u) - , minute_(0u) - , dayofweek_(1) - - , calendar_(1) -{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HSMCurrencyDefaultTypeInternal _HSMCurrency_default_instance_; +PROTOBUF_CONSTEXPR HSMDateTimeComponent::HSMDateTimeComponent( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.year_)*/0u + , /*decltype(_impl_.month_)*/0u + , /*decltype(_impl_.dayofmonth_)*/0u + , /*decltype(_impl_.hour_)*/0u + , /*decltype(_impl_.minute_)*/0u + , /*decltype(_impl_.dayofweek_)*/1 + , /*decltype(_impl_.calendar_)*/1} {} struct HSMDateTimeComponentDefaultTypeInternal { - constexpr HSMDateTimeComponentDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HSMDateTimeComponentDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~HSMDateTimeComponentDefaultTypeInternal() {} union { HSMDateTimeComponent _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT HSMDateTimeComponentDefaultTypeInternal _HSMDateTimeComponent_default_instance_; -constexpr HSMDateTimeUnixEpoch::HSMDateTimeUnixEpoch( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : timestamp_(int64_t{0}){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HSMDateTimeComponentDefaultTypeInternal _HSMDateTimeComponent_default_instance_; +PROTOBUF_CONSTEXPR HSMDateTimeUnixEpoch::HSMDateTimeUnixEpoch( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.timestamp_)*/int64_t{0}} {} struct HSMDateTimeUnixEpochDefaultTypeInternal { - constexpr HSMDateTimeUnixEpochDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HSMDateTimeUnixEpochDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~HSMDateTimeUnixEpochDefaultTypeInternal() {} union { HSMDateTimeUnixEpoch _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT HSMDateTimeUnixEpochDefaultTypeInternal _HSMDateTimeUnixEpoch_default_instance_; -constexpr HSMDateTime::HSMDateTime( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : _oneof_case_{}{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HSMDateTimeUnixEpochDefaultTypeInternal _HSMDateTimeUnixEpoch_default_instance_; +PROTOBUF_CONSTEXPR HSMDateTime::HSMDateTime( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.datetimeOneof_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} struct HSMDateTimeDefaultTypeInternal { - constexpr HSMDateTimeDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HSMDateTimeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~HSMDateTimeDefaultTypeInternal() {} union { HSMDateTime _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT HSMDateTimeDefaultTypeInternal _HSMDateTime_default_instance_; -constexpr HSMLocalizableParameter::HSMLocalizableParameter( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : default__(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , _oneof_case_{}{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HSMDateTimeDefaultTypeInternal _HSMDateTime_default_instance_; +PROTOBUF_CONSTEXPR HSMLocalizableParameter::HSMLocalizableParameter( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.default__)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.paramOneof_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} struct HSMLocalizableParameterDefaultTypeInternal { - constexpr HSMLocalizableParameterDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HSMLocalizableParameterDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~HSMLocalizableParameterDefaultTypeInternal() {} union { HSMLocalizableParameter _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT HSMLocalizableParameterDefaultTypeInternal _HSMLocalizableParameter_default_instance_; -constexpr HighlyStructuredMessage::HighlyStructuredMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : params_() - , localizableparams_() - , namespace__(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , elementname_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , fallbacklg_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , fallbacklc_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , deterministiclg_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , deterministiclc_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , hydratedhsm_(nullptr){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HSMLocalizableParameterDefaultTypeInternal _HSMLocalizableParameter_default_instance_; +PROTOBUF_CONSTEXPR HighlyStructuredMessage::HighlyStructuredMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.params_)*/{} + , /*decltype(_impl_.localizableparams_)*/{} + , /*decltype(_impl_.namespace__)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.elementname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.fallbacklg_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.fallbacklc_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.deterministiclg_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.deterministiclc_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.hydratedhsm_)*/nullptr} {} struct HighlyStructuredMessageDefaultTypeInternal { - constexpr HighlyStructuredMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HighlyStructuredMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~HighlyStructuredMessageDefaultTypeInternal() {} union { HighlyStructuredMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT HighlyStructuredMessageDefaultTypeInternal _HighlyStructuredMessage_default_instance_; -constexpr SendPaymentMessage::SendPaymentMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : notemessage_(nullptr) - , requestmessagekey_(nullptr){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HighlyStructuredMessageDefaultTypeInternal _HighlyStructuredMessage_default_instance_; +PROTOBUF_CONSTEXPR SendPaymentMessage::SendPaymentMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.notemessage_)*/nullptr + , /*decltype(_impl_.requestmessagekey_)*/nullptr} {} struct SendPaymentMessageDefaultTypeInternal { - constexpr SendPaymentMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SendPaymentMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SendPaymentMessageDefaultTypeInternal() {} union { SendPaymentMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SendPaymentMessageDefaultTypeInternal _SendPaymentMessage_default_instance_; -constexpr RequestPaymentMessage::RequestPaymentMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : currencycodeiso4217_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , requestfrom_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , notemessage_(nullptr) - , amount_(nullptr) - , amount1000_(uint64_t{0u}) - , expirytimestamp_(int64_t{0}){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SendPaymentMessageDefaultTypeInternal _SendPaymentMessage_default_instance_; +PROTOBUF_CONSTEXPR RequestPaymentMessage::RequestPaymentMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.currencycodeiso4217_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.requestfrom_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.notemessage_)*/nullptr + , /*decltype(_impl_.amount_)*/nullptr + , /*decltype(_impl_.amount1000_)*/uint64_t{0u} + , /*decltype(_impl_.expirytimestamp_)*/int64_t{0}} {} struct RequestPaymentMessageDefaultTypeInternal { - constexpr RequestPaymentMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR RequestPaymentMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~RequestPaymentMessageDefaultTypeInternal() {} union { RequestPaymentMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RequestPaymentMessageDefaultTypeInternal _RequestPaymentMessage_default_instance_; -constexpr DeclinePaymentRequestMessage::DeclinePaymentRequestMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : key_(nullptr){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestPaymentMessageDefaultTypeInternal _RequestPaymentMessage_default_instance_; +PROTOBUF_CONSTEXPR DeclinePaymentRequestMessage::DeclinePaymentRequestMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.key_)*/nullptr} {} struct DeclinePaymentRequestMessageDefaultTypeInternal { - constexpr DeclinePaymentRequestMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR DeclinePaymentRequestMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~DeclinePaymentRequestMessageDefaultTypeInternal() {} union { DeclinePaymentRequestMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeclinePaymentRequestMessageDefaultTypeInternal _DeclinePaymentRequestMessage_default_instance_; -constexpr CancelPaymentRequestMessage::CancelPaymentRequestMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : key_(nullptr){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeclinePaymentRequestMessageDefaultTypeInternal _DeclinePaymentRequestMessage_default_instance_; +PROTOBUF_CONSTEXPR CancelPaymentRequestMessage::CancelPaymentRequestMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.key_)*/nullptr} {} struct CancelPaymentRequestMessageDefaultTypeInternal { - constexpr CancelPaymentRequestMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CancelPaymentRequestMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CancelPaymentRequestMessageDefaultTypeInternal() {} union { CancelPaymentRequestMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CancelPaymentRequestMessageDefaultTypeInternal _CancelPaymentRequestMessage_default_instance_; -constexpr LiveLocationMessage::LiveLocationMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : caption_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , jpegthumbnail_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , contextinfo_(nullptr) - , degreeslatitude_(0) - , degreeslongitude_(0) - , accuracyinmeters_(0u) - , speedinmps_(0) - , degreesclockwisefrommagneticnorth_(0u) - , timeoffset_(0u) - , sequencenumber_(int64_t{0}){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CancelPaymentRequestMessageDefaultTypeInternal _CancelPaymentRequestMessage_default_instance_; +PROTOBUF_CONSTEXPR LiveLocationMessage::LiveLocationMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.caption_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.jpegthumbnail_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.contextinfo_)*/nullptr + , /*decltype(_impl_.degreeslatitude_)*/0 + , /*decltype(_impl_.degreeslongitude_)*/0 + , /*decltype(_impl_.accuracyinmeters_)*/0u + , /*decltype(_impl_.speedinmps_)*/0 + , /*decltype(_impl_.degreesclockwisefrommagneticnorth_)*/0u + , /*decltype(_impl_.timeoffset_)*/0u + , /*decltype(_impl_.sequencenumber_)*/int64_t{0}} {} struct LiveLocationMessageDefaultTypeInternal { - constexpr LiveLocationMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR LiveLocationMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~LiveLocationMessageDefaultTypeInternal() {} union { LiveLocationMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LiveLocationMessageDefaultTypeInternal _LiveLocationMessage_default_instance_; -constexpr StickerMessage::StickerMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , filesha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , fileencsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , mediakey_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , mimetype_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , directpath_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , firstframesidecar_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , pngthumbnail_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , contextinfo_(nullptr) - , height_(0u) - , width_(0u) - , filelength_(uint64_t{0u}) - , mediakeytimestamp_(int64_t{0}) - , firstframelength_(0u) - , isanimated_(false){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LiveLocationMessageDefaultTypeInternal _LiveLocationMessage_default_instance_; +PROTOBUF_CONSTEXPR StickerMessage::StickerMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.url_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.filesha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.fileencsha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mediakey_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mimetype_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.directpath_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.firstframesidecar_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.pngthumbnail_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.contextinfo_)*/nullptr + , /*decltype(_impl_.height_)*/0u + , /*decltype(_impl_.width_)*/0u + , /*decltype(_impl_.filelength_)*/uint64_t{0u} + , /*decltype(_impl_.mediakeytimestamp_)*/int64_t{0} + , /*decltype(_impl_.firstframelength_)*/0u + , /*decltype(_impl_.isanimated_)*/false} {} struct StickerMessageDefaultTypeInternal { - constexpr StickerMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR StickerMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~StickerMessageDefaultTypeInternal() {} union { StickerMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StickerMessageDefaultTypeInternal _StickerMessage_default_instance_; -constexpr FourRowTemplate::FourRowTemplate( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : buttons_() - , content_(nullptr) - , footer_(nullptr) - , _oneof_case_{}{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StickerMessageDefaultTypeInternal _StickerMessage_default_instance_; +PROTOBUF_CONSTEXPR FourRowTemplate::FourRowTemplate( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.buttons_)*/{} + , /*decltype(_impl_.content_)*/nullptr + , /*decltype(_impl_.footer_)*/nullptr + , /*decltype(_impl_.title_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} struct FourRowTemplateDefaultTypeInternal { - constexpr FourRowTemplateDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR FourRowTemplateDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~FourRowTemplateDefaultTypeInternal() {} union { FourRowTemplate _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FourRowTemplateDefaultTypeInternal _FourRowTemplate_default_instance_; -constexpr HydratedFourRowTemplate::HydratedFourRowTemplate( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : hydratedbuttons_() - , hydratedcontenttext_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , hydratedfootertext_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , templateid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , _oneof_case_{}{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FourRowTemplateDefaultTypeInternal _FourRowTemplate_default_instance_; +PROTOBUF_CONSTEXPR HydratedFourRowTemplate::HydratedFourRowTemplate( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.hydratedbuttons_)*/{} + , /*decltype(_impl_.hydratedcontenttext_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.hydratedfootertext_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.templateid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.title_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} struct HydratedFourRowTemplateDefaultTypeInternal { - constexpr HydratedFourRowTemplateDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR HydratedFourRowTemplateDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~HydratedFourRowTemplateDefaultTypeInternal() {} union { HydratedFourRowTemplate _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT HydratedFourRowTemplateDefaultTypeInternal _HydratedFourRowTemplate_default_instance_; -constexpr TemplateMessage::TemplateMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : contextinfo_(nullptr) - , hydratedtemplate_(nullptr) - , _oneof_case_{}{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HydratedFourRowTemplateDefaultTypeInternal _HydratedFourRowTemplate_default_instance_; +PROTOBUF_CONSTEXPR TemplateMessage::TemplateMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.contextinfo_)*/nullptr + , /*decltype(_impl_.hydratedtemplate_)*/nullptr + , /*decltype(_impl_.format_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} struct TemplateMessageDefaultTypeInternal { - constexpr TemplateMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR TemplateMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~TemplateMessageDefaultTypeInternal() {} union { TemplateMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TemplateMessageDefaultTypeInternal _TemplateMessage_default_instance_; -constexpr TemplateButtonReplyMessage::TemplateButtonReplyMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : selectedid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , selecteddisplaytext_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , contextinfo_(nullptr) - , selectedindex_(0u){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TemplateMessageDefaultTypeInternal _TemplateMessage_default_instance_; +PROTOBUF_CONSTEXPR TemplateButtonReplyMessage::TemplateButtonReplyMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.selectedid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.selecteddisplaytext_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.contextinfo_)*/nullptr + , /*decltype(_impl_.selectedindex_)*/0u} {} struct TemplateButtonReplyMessageDefaultTypeInternal { - constexpr TemplateButtonReplyMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR TemplateButtonReplyMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~TemplateButtonReplyMessageDefaultTypeInternal() {} union { TemplateButtonReplyMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT TemplateButtonReplyMessageDefaultTypeInternal _TemplateButtonReplyMessage_default_instance_; -constexpr CatalogSnapshot::CatalogSnapshot( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : title_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , description_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , catalogimage_(nullptr){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TemplateButtonReplyMessageDefaultTypeInternal _TemplateButtonReplyMessage_default_instance_; +PROTOBUF_CONSTEXPR CatalogSnapshot::CatalogSnapshot( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.title_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.description_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.catalogimage_)*/nullptr} {} struct CatalogSnapshotDefaultTypeInternal { - constexpr CatalogSnapshotDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR CatalogSnapshotDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~CatalogSnapshotDefaultTypeInternal() {} union { CatalogSnapshot _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CatalogSnapshotDefaultTypeInternal _CatalogSnapshot_default_instance_; -constexpr ProductSnapshot::ProductSnapshot( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : productid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , title_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , description_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , currencycode_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , retailerid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , firstimageid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , productimage_(nullptr) - , priceamount1000_(int64_t{0}) - , productimagecount_(0u){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CatalogSnapshotDefaultTypeInternal _CatalogSnapshot_default_instance_; +PROTOBUF_CONSTEXPR ProductSnapshot::ProductSnapshot( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.productid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.title_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.description_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.currencycode_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.retailerid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.url_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.firstimageid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.productimage_)*/nullptr + , /*decltype(_impl_.priceamount1000_)*/int64_t{0} + , /*decltype(_impl_.productimagecount_)*/0u} {} struct ProductSnapshotDefaultTypeInternal { - constexpr ProductSnapshotDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ProductSnapshotDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ProductSnapshotDefaultTypeInternal() {} union { ProductSnapshot _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ProductSnapshotDefaultTypeInternal _ProductSnapshot_default_instance_; -constexpr ProductMessage::ProductMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : businessownerjid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , product_(nullptr) - , catalog_(nullptr) - , contextinfo_(nullptr){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProductSnapshotDefaultTypeInternal _ProductSnapshot_default_instance_; +PROTOBUF_CONSTEXPR ProductMessage::ProductMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.businessownerjid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.product_)*/nullptr + , /*decltype(_impl_.catalog_)*/nullptr + , /*decltype(_impl_.contextinfo_)*/nullptr} {} struct ProductMessageDefaultTypeInternal { - constexpr ProductMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ProductMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ProductMessageDefaultTypeInternal() {} union { ProductMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ProductMessageDefaultTypeInternal _ProductMessage_default_instance_; -constexpr OrderMessage::OrderMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : orderid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , thumbnail_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , message_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , ordertitle_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , sellerjid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , totalcurrencycode_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , contextinfo_(nullptr) - , totalamount1000_(int64_t{0}) - , itemcount_(0) - , status_(1) - - , surface_(1) -{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProductMessageDefaultTypeInternal _ProductMessage_default_instance_; +PROTOBUF_CONSTEXPR OrderMessage::OrderMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.orderid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.thumbnail_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.message_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.ordertitle_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.sellerjid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.totalcurrencycode_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.contextinfo_)*/nullptr + , /*decltype(_impl_.totalamount1000_)*/int64_t{0} + , /*decltype(_impl_.itemcount_)*/0 + , /*decltype(_impl_.status_)*/1 + , /*decltype(_impl_.surface_)*/1} {} struct OrderMessageDefaultTypeInternal { - constexpr OrderMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR OrderMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~OrderMessageDefaultTypeInternal() {} union { OrderMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OrderMessageDefaultTypeInternal _OrderMessage_default_instance_; -constexpr Row::Row( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : title_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , description_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , rowid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OrderMessageDefaultTypeInternal _OrderMessage_default_instance_; +PROTOBUF_CONSTEXPR Row::Row( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.title_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.description_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.rowid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} struct RowDefaultTypeInternal { - constexpr RowDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR RowDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~RowDefaultTypeInternal() {} union { Row _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RowDefaultTypeInternal _Row_default_instance_; -constexpr Section::Section( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : rows_() - , title_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RowDefaultTypeInternal _Row_default_instance_; +PROTOBUF_CONSTEXPR Section::Section( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.rows_)*/{} + , /*decltype(_impl_.title_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} struct SectionDefaultTypeInternal { - constexpr SectionDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SectionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SectionDefaultTypeInternal() {} union { Section _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SectionDefaultTypeInternal _Section_default_instance_; -constexpr ListMessage::ListMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : sections_() - , title_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , description_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , buttontext_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , listtype_(0) -{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SectionDefaultTypeInternal _Section_default_instance_; +PROTOBUF_CONSTEXPR ListMessage::ListMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.sections_)*/{} + , /*decltype(_impl_.title_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.description_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.buttontext_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.listtype_)*/0} {} struct ListMessageDefaultTypeInternal { - constexpr ListMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ListMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ListMessageDefaultTypeInternal() {} union { ListMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ListMessageDefaultTypeInternal _ListMessage_default_instance_; -constexpr SingleSelectReply::SingleSelectReply( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : selectedrowid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListMessageDefaultTypeInternal _ListMessage_default_instance_; +PROTOBUF_CONSTEXPR SingleSelectReply::SingleSelectReply( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.selectedrowid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} struct SingleSelectReplyDefaultTypeInternal { - constexpr SingleSelectReplyDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR SingleSelectReplyDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~SingleSelectReplyDefaultTypeInternal() {} union { SingleSelectReply _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SingleSelectReplyDefaultTypeInternal _SingleSelectReply_default_instance_; -constexpr ListResponseMessage::ListResponseMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : title_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , description_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , singleselectreply_(nullptr) - , contextinfo_(nullptr) - , listtype_(0) -{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SingleSelectReplyDefaultTypeInternal _SingleSelectReply_default_instance_; +PROTOBUF_CONSTEXPR ListResponseMessage::ListResponseMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.title_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.description_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.singleselectreply_)*/nullptr + , /*decltype(_impl_.contextinfo_)*/nullptr + , /*decltype(_impl_.listtype_)*/0} {} struct ListResponseMessageDefaultTypeInternal { - constexpr ListResponseMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ListResponseMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ListResponseMessageDefaultTypeInternal() {} union { ListResponseMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ListResponseMessageDefaultTypeInternal _ListResponseMessage_default_instance_; -constexpr GroupInviteMessage::GroupInviteMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : groupjid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , invitecode_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , groupname_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , jpegthumbnail_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , caption_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , contextinfo_(nullptr) - , inviteexpiration_(int64_t{0}){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListResponseMessageDefaultTypeInternal _ListResponseMessage_default_instance_; +PROTOBUF_CONSTEXPR GroupInviteMessage::GroupInviteMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.groupjid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.invitecode_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.groupname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.jpegthumbnail_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.caption_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.contextinfo_)*/nullptr + , /*decltype(_impl_.inviteexpiration_)*/int64_t{0}} {} struct GroupInviteMessageDefaultTypeInternal { - constexpr GroupInviteMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR GroupInviteMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~GroupInviteMessageDefaultTypeInternal() {} union { GroupInviteMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GroupInviteMessageDefaultTypeInternal _GroupInviteMessage_default_instance_; -constexpr EphemeralSetting::EphemeralSetting( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : chatjid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , ephemeralsettingtimestamp_(int64_t{0}) - , ephemeralexpiration_(0u){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GroupInviteMessageDefaultTypeInternal _GroupInviteMessage_default_instance_; +PROTOBUF_CONSTEXPR EphemeralSetting::EphemeralSetting( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.chatjid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.ephemeralsettingtimestamp_)*/int64_t{0} + , /*decltype(_impl_.ephemeralexpiration_)*/0u} {} struct EphemeralSettingDefaultTypeInternal { - constexpr EphemeralSettingDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR EphemeralSettingDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~EphemeralSettingDefaultTypeInternal() {} union { EphemeralSetting _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT EphemeralSettingDefaultTypeInternal _EphemeralSetting_default_instance_; -constexpr DeviceSentMessage::DeviceSentMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : broadcastephemeralsettings_() - , destinationjid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , phash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , message_(nullptr){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EphemeralSettingDefaultTypeInternal _EphemeralSetting_default_instance_; +PROTOBUF_CONSTEXPR DeviceSentMessage::DeviceSentMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.broadcastephemeralsettings_)*/{} + , /*decltype(_impl_.destinationjid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.phash_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.message_)*/nullptr} {} struct DeviceSentMessageDefaultTypeInternal { - constexpr DeviceSentMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR DeviceSentMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~DeviceSentMessageDefaultTypeInternal() {} union { DeviceSentMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeviceSentMessageDefaultTypeInternal _DeviceSentMessage_default_instance_; -constexpr FutureProofMessage::FutureProofMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : message_(nullptr){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeviceSentMessageDefaultTypeInternal _DeviceSentMessage_default_instance_; +PROTOBUF_CONSTEXPR FutureProofMessage::FutureProofMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.message_)*/nullptr} {} struct FutureProofMessageDefaultTypeInternal { - constexpr FutureProofMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR FutureProofMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~FutureProofMessageDefaultTypeInternal() {} union { FutureProofMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FutureProofMessageDefaultTypeInternal _FutureProofMessage_default_instance_; -constexpr ButtonText::ButtonText( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : displaytext_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FutureProofMessageDefaultTypeInternal _FutureProofMessage_default_instance_; +PROTOBUF_CONSTEXPR ButtonText::ButtonText( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.displaytext_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {} struct ButtonTextDefaultTypeInternal { - constexpr ButtonTextDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ButtonTextDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ButtonTextDefaultTypeInternal() {} union { ButtonText _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ButtonTextDefaultTypeInternal _ButtonText_default_instance_; -constexpr Button::Button( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : buttonid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , buttontext_(nullptr) - , type_(0) -{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ButtonTextDefaultTypeInternal _ButtonText_default_instance_; +PROTOBUF_CONSTEXPR Button::Button( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.buttonid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.buttontext_)*/nullptr + , /*decltype(_impl_.type_)*/0} {} struct ButtonDefaultTypeInternal { - constexpr ButtonDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ButtonDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ButtonDefaultTypeInternal() {} union { Button _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ButtonDefaultTypeInternal _Button_default_instance_; -constexpr ButtonsMessage::ButtonsMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : buttons_() - , contenttext_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , footertext_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , contextinfo_(nullptr) - , headertype_(0) - - , _oneof_case_{}{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ButtonDefaultTypeInternal _Button_default_instance_; +PROTOBUF_CONSTEXPR ButtonsMessage::ButtonsMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.buttons_)*/{} + , /*decltype(_impl_.contenttext_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.footertext_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.contextinfo_)*/nullptr + , /*decltype(_impl_.headertype_)*/0 + , /*decltype(_impl_.header_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} struct ButtonsMessageDefaultTypeInternal { - constexpr ButtonsMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ButtonsMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ButtonsMessageDefaultTypeInternal() {} union { ButtonsMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ButtonsMessageDefaultTypeInternal _ButtonsMessage_default_instance_; -constexpr ButtonsResponseMessage::ButtonsResponseMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : selectedbuttonid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , contextinfo_(nullptr) - , type_(0) - - , _oneof_case_{}{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ButtonsMessageDefaultTypeInternal _ButtonsMessage_default_instance_; +PROTOBUF_CONSTEXPR ButtonsResponseMessage::ButtonsResponseMessage( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.selectedbuttonid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.contextinfo_)*/nullptr + , /*decltype(_impl_.type_)*/0 + , /*decltype(_impl_.response_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} struct ButtonsResponseMessageDefaultTypeInternal { - constexpr ButtonsResponseMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ButtonsResponseMessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~ButtonsResponseMessageDefaultTypeInternal() {} union { ButtonsResponseMessage _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ButtonsResponseMessageDefaultTypeInternal _ButtonsResponseMessage_default_instance_; -constexpr Message::Message( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : conversation_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , senderkeydistributionmessage_(nullptr) - , imagemessage_(nullptr) - , contactmessage_(nullptr) - , locationmessage_(nullptr) - , extendedtextmessage_(nullptr) - , documentmessage_(nullptr) - , audiomessage_(nullptr) - , videomessage_(nullptr) - , call_(nullptr) - , chat_(nullptr) - , protocolmessage_(nullptr) - , contactsarraymessage_(nullptr) - , highlystructuredmessage_(nullptr) - , fastratchetkeysenderkeydistributionmessage_(nullptr) - , sendpaymentmessage_(nullptr) - , livelocationmessage_(nullptr) - , requestpaymentmessage_(nullptr) - , declinepaymentrequestmessage_(nullptr) - , cancelpaymentrequestmessage_(nullptr) - , templatemessage_(nullptr) - , stickermessage_(nullptr) - , groupinvitemessage_(nullptr) - , templatebuttonreplymessage_(nullptr) - , productmessage_(nullptr) - , devicesentmessage_(nullptr) - , messagecontextinfo_(nullptr) - , listmessage_(nullptr) - , viewoncemessage_(nullptr) - , ordermessage_(nullptr) - , listresponsemessage_(nullptr) - , ephemeralmessage_(nullptr) - , invoicemessage_(nullptr) - , buttonsmessage_(nullptr) - , buttonsresponsemessage_(nullptr){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ButtonsResponseMessageDefaultTypeInternal _ButtonsResponseMessage_default_instance_; +PROTOBUF_CONSTEXPR Message::Message( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.conversation_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.senderkeydistributionmessage_)*/nullptr + , /*decltype(_impl_.imagemessage_)*/nullptr + , /*decltype(_impl_.contactmessage_)*/nullptr + , /*decltype(_impl_.locationmessage_)*/nullptr + , /*decltype(_impl_.extendedtextmessage_)*/nullptr + , /*decltype(_impl_.documentmessage_)*/nullptr + , /*decltype(_impl_.audiomessage_)*/nullptr + , /*decltype(_impl_.videomessage_)*/nullptr + , /*decltype(_impl_.call_)*/nullptr + , /*decltype(_impl_.chat_)*/nullptr + , /*decltype(_impl_.protocolmessage_)*/nullptr + , /*decltype(_impl_.contactsarraymessage_)*/nullptr + , /*decltype(_impl_.highlystructuredmessage_)*/nullptr + , /*decltype(_impl_.fastratchetkeysenderkeydistributionmessage_)*/nullptr + , /*decltype(_impl_.sendpaymentmessage_)*/nullptr + , /*decltype(_impl_.livelocationmessage_)*/nullptr + , /*decltype(_impl_.requestpaymentmessage_)*/nullptr + , /*decltype(_impl_.declinepaymentrequestmessage_)*/nullptr + , /*decltype(_impl_.cancelpaymentrequestmessage_)*/nullptr + , /*decltype(_impl_.templatemessage_)*/nullptr + , /*decltype(_impl_.stickermessage_)*/nullptr + , /*decltype(_impl_.groupinvitemessage_)*/nullptr + , /*decltype(_impl_.templatebuttonreplymessage_)*/nullptr + , /*decltype(_impl_.productmessage_)*/nullptr + , /*decltype(_impl_.devicesentmessage_)*/nullptr + , /*decltype(_impl_.messagecontextinfo_)*/nullptr + , /*decltype(_impl_.listmessage_)*/nullptr + , /*decltype(_impl_.viewoncemessage_)*/nullptr + , /*decltype(_impl_.ordermessage_)*/nullptr + , /*decltype(_impl_.listresponsemessage_)*/nullptr + , /*decltype(_impl_.ephemeralmessage_)*/nullptr + , /*decltype(_impl_.invoicemessage_)*/nullptr + , /*decltype(_impl_.buttonsmessage_)*/nullptr + , /*decltype(_impl_.buttonsresponsemessage_)*/nullptr} {} struct MessageDefaultTypeInternal { - constexpr MessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MessageDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~MessageDefaultTypeInternal() {} union { Message _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageDefaultTypeInternal _Message_default_instance_; -constexpr MessageKey::MessageKey( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : remotejid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , participant_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , fromme_(false){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageDefaultTypeInternal _Message_default_instance_; +PROTOBUF_CONSTEXPR MessageKey::MessageKey( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.remotejid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.participant_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.fromme_)*/false} {} struct MessageKeyDefaultTypeInternal { - constexpr MessageKeyDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR MessageKeyDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~MessageKeyDefaultTypeInternal() {} union { MessageKey _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageKeyDefaultTypeInternal _MessageKey_default_instance_; -constexpr WebFeatures::WebFeatures( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : labelsdisplay_(0) - - , voipindividualoutgoing_(0) - - , groupsv3_(0) - - , groupsv3create_(0) - - , changenumberv2_(0) - - , querystatusv3thumbnail_(0) - - , livelocations_(0) - - , queryvname_(0) - - , voipindividualincoming_(0) - - , quickrepliesquery_(0) - - , payments_(0) - - , stickerpackquery_(0) - - , livelocationsfinal_(0) - - , labelsedit_(0) - - , mediaupload_(0) - - , mediauploadrichquickreplies_(0) - - , vnamev2_(0) - - , videoplaybackurl_(0) - - , statusranking_(0) - - , voipindividualvideo_(0) - - , thirdpartystickers_(0) - - , frequentlyforwardedsetting_(0) - - , groupsv4joinpermission_(0) - - , recentstickers_(0) - - , catalog_(0) - - , starredstickers_(0) - - , voipgroupcall_(0) - - , templatemessage_(0) - - , templatemessageinteractivity_(0) - - , ephemeralmessages_(0) - - , e2enotificationsync_(0) - - , recentstickersv2_(0) - - , syncdrelease1_(0) - - , recentstickersv3_(0) - - , usernotice_(0) - - , syncdrelease11_(0) - - , support_(0) - - , groupuiicleanup_(0) - - , groupdogfoodinginternalonly_(0) - - , settingssync_(0) -{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageKeyDefaultTypeInternal _MessageKey_default_instance_; +PROTOBUF_CONSTEXPR WebFeatures::WebFeatures( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.labelsdisplay_)*/0 + , /*decltype(_impl_.voipindividualoutgoing_)*/0 + , /*decltype(_impl_.groupsv3_)*/0 + , /*decltype(_impl_.groupsv3create_)*/0 + , /*decltype(_impl_.changenumberv2_)*/0 + , /*decltype(_impl_.querystatusv3thumbnail_)*/0 + , /*decltype(_impl_.livelocations_)*/0 + , /*decltype(_impl_.queryvname_)*/0 + , /*decltype(_impl_.voipindividualincoming_)*/0 + , /*decltype(_impl_.quickrepliesquery_)*/0 + , /*decltype(_impl_.payments_)*/0 + , /*decltype(_impl_.stickerpackquery_)*/0 + , /*decltype(_impl_.livelocationsfinal_)*/0 + , /*decltype(_impl_.labelsedit_)*/0 + , /*decltype(_impl_.mediaupload_)*/0 + , /*decltype(_impl_.mediauploadrichquickreplies_)*/0 + , /*decltype(_impl_.vnamev2_)*/0 + , /*decltype(_impl_.videoplaybackurl_)*/0 + , /*decltype(_impl_.statusranking_)*/0 + , /*decltype(_impl_.voipindividualvideo_)*/0 + , /*decltype(_impl_.thirdpartystickers_)*/0 + , /*decltype(_impl_.frequentlyforwardedsetting_)*/0 + , /*decltype(_impl_.groupsv4joinpermission_)*/0 + , /*decltype(_impl_.recentstickers_)*/0 + , /*decltype(_impl_.catalog_)*/0 + , /*decltype(_impl_.starredstickers_)*/0 + , /*decltype(_impl_.voipgroupcall_)*/0 + , /*decltype(_impl_.templatemessage_)*/0 + , /*decltype(_impl_.templatemessageinteractivity_)*/0 + , /*decltype(_impl_.ephemeralmessages_)*/0 + , /*decltype(_impl_.e2enotificationsync_)*/0 + , /*decltype(_impl_.recentstickersv2_)*/0 + , /*decltype(_impl_.syncdrelease1_)*/0 + , /*decltype(_impl_.recentstickersv3_)*/0 + , /*decltype(_impl_.usernotice_)*/0 + , /*decltype(_impl_.syncdrelease11_)*/0 + , /*decltype(_impl_.support_)*/0 + , /*decltype(_impl_.groupuiicleanup_)*/0 + , /*decltype(_impl_.groupdogfoodinginternalonly_)*/0 + , /*decltype(_impl_.settingssync_)*/0} {} struct WebFeaturesDefaultTypeInternal { - constexpr WebFeaturesDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR WebFeaturesDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~WebFeaturesDefaultTypeInternal() {} union { WebFeatures _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WebFeaturesDefaultTypeInternal _WebFeatures_default_instance_; -constexpr NotificationMessageInfo::NotificationMessageInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : participant_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , key_(nullptr) - , message_(nullptr) - , messagetimestamp_(uint64_t{0u}){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WebFeaturesDefaultTypeInternal _WebFeatures_default_instance_; +PROTOBUF_CONSTEXPR NotificationMessageInfo::NotificationMessageInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.participant_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.key_)*/nullptr + , /*decltype(_impl_.message_)*/nullptr + , /*decltype(_impl_.messagetimestamp_)*/uint64_t{0u}} {} struct NotificationMessageInfoDefaultTypeInternal { - constexpr NotificationMessageInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR NotificationMessageInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~NotificationMessageInfoDefaultTypeInternal() {} union { NotificationMessageInfo _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NotificationMessageInfoDefaultTypeInternal _NotificationMessageInfo_default_instance_; -constexpr WebNotificationsInfo::WebNotificationsInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : notifymessages_() - , timestamp_(uint64_t{0u}) - , unreadchats_(0u) - , notifymessagecount_(0u){} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NotificationMessageInfoDefaultTypeInternal _NotificationMessageInfo_default_instance_; +PROTOBUF_CONSTEXPR WebNotificationsInfo::WebNotificationsInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.notifymessages_)*/{} + , /*decltype(_impl_.timestamp_)*/uint64_t{0u} + , /*decltype(_impl_.unreadchats_)*/0u + , /*decltype(_impl_.notifymessagecount_)*/0u} {} struct WebNotificationsInfoDefaultTypeInternal { - constexpr WebNotificationsInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR WebNotificationsInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~WebNotificationsInfoDefaultTypeInternal() {} union { WebNotificationsInfo _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WebNotificationsInfoDefaultTypeInternal _WebNotificationsInfo_default_instance_; -constexpr PaymentInfo::PaymentInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : receiverjid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , currency_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , requestmessagekey_(nullptr) - , primaryamount_(nullptr) - , exchangeamount_(nullptr) - , amount1000_(uint64_t{0u}) - , currencydeprecated_(0) - - , status_(0) - - , transactiontimestamp_(uint64_t{0u}) - , expirytimestamp_(uint64_t{0u}) - , futureproofed_(false) - , usenovifiatformat_(false) - , txnstatus_(0) -{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WebNotificationsInfoDefaultTypeInternal _WebNotificationsInfo_default_instance_; +PROTOBUF_CONSTEXPR PaymentInfo::PaymentInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.receiverjid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.currency_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.requestmessagekey_)*/nullptr + , /*decltype(_impl_.primaryamount_)*/nullptr + , /*decltype(_impl_.exchangeamount_)*/nullptr + , /*decltype(_impl_.amount1000_)*/uint64_t{0u} + , /*decltype(_impl_.currencydeprecated_)*/0 + , /*decltype(_impl_.status_)*/0 + , /*decltype(_impl_.transactiontimestamp_)*/uint64_t{0u} + , /*decltype(_impl_.expirytimestamp_)*/uint64_t{0u} + , /*decltype(_impl_.futureproofed_)*/false + , /*decltype(_impl_.usenovifiatformat_)*/false + , /*decltype(_impl_.txnstatus_)*/0} {} struct PaymentInfoDefaultTypeInternal { - constexpr PaymentInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR PaymentInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~PaymentInfoDefaultTypeInternal() {} union { PaymentInfo _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PaymentInfoDefaultTypeInternal _PaymentInfo_default_instance_; -constexpr WebMessageInfo::WebMessageInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : messagestubparameters_() - , labels_() - , participant_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , pushname_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , mediaciphertextsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , verifiedbizname_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , key_(nullptr) - , message_(nullptr) - , paymentinfo_(nullptr) - , finallivelocation_(nullptr) - , quotedpaymentinfo_(nullptr) - , messagetimestamp_(uint64_t{0u}) - , status_(0) - - , ignore_(false) - , starred_(false) - , broadcast_(false) - , multicast_(false) - , messagestubtype_(0) - - , urltext_(false) - , urlnumber_(false) - , clearmedia_(false) - , ephemeralofftoon_(false) - , duration_(0u) - , ephemeralduration_(0u) - , ephemeralstarttimestamp_(uint64_t{0u}) - , ephemeraloutofsync_(false) - , bizprivacystatus_(0) -{} +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PaymentInfoDefaultTypeInternal _PaymentInfo_default_instance_; +PROTOBUF_CONSTEXPR WebMessageInfo::WebMessageInfo( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_._has_bits_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_.messagestubparameters_)*/{} + , /*decltype(_impl_.labels_)*/{} + , /*decltype(_impl_.participant_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.pushname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.mediaciphertextsha256_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.verifiedbizname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.key_)*/nullptr + , /*decltype(_impl_.message_)*/nullptr + , /*decltype(_impl_.paymentinfo_)*/nullptr + , /*decltype(_impl_.finallivelocation_)*/nullptr + , /*decltype(_impl_.quotedpaymentinfo_)*/nullptr + , /*decltype(_impl_.messagetimestamp_)*/uint64_t{0u} + , /*decltype(_impl_.status_)*/0 + , /*decltype(_impl_.ignore_)*/false + , /*decltype(_impl_.starred_)*/false + , /*decltype(_impl_.broadcast_)*/false + , /*decltype(_impl_.multicast_)*/false + , /*decltype(_impl_.messagestubtype_)*/0 + , /*decltype(_impl_.urltext_)*/false + , /*decltype(_impl_.urlnumber_)*/false + , /*decltype(_impl_.clearmedia_)*/false + , /*decltype(_impl_.ephemeralofftoon_)*/false + , /*decltype(_impl_.duration_)*/0u + , /*decltype(_impl_.ephemeralduration_)*/0u + , /*decltype(_impl_.ephemeralstarttimestamp_)*/uint64_t{0u} + , /*decltype(_impl_.ephemeraloutofsync_)*/false + , /*decltype(_impl_.bizprivacystatus_)*/0} {} struct WebMessageInfoDefaultTypeInternal { - constexpr WebMessageInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR WebMessageInfoDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} ~WebMessageInfoDefaultTypeInternal() {} union { WebMessageInfo _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WebMessageInfoDefaultTypeInternal _WebMessageInfo_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WebMessageInfoDefaultTypeInternal _WebMessageInfo_default_instance_; } // namespace proto -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_pmsg_2eproto[79]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_pmsg_2eproto[24]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_pmsg_2eproto = nullptr; +static ::_pb::Metadata file_level_metadata_pmsg_2eproto[79]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_pmsg_2eproto[24]; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_pmsg_2eproto = nullptr; -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::proto::PaymentMoney, _has_bits_), +const uint32_t TableStruct_pmsg_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::proto::PaymentMoney, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::PaymentMoney, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::PaymentMoney, value_), - PROTOBUF_FIELD_OFFSET(::proto::PaymentMoney, offset_), - PROTOBUF_FIELD_OFFSET(::proto::PaymentMoney, currencycode_), + PROTOBUF_FIELD_OFFSET(::proto::PaymentMoney, _impl_.value_), + PROTOBUF_FIELD_OFFSET(::proto::PaymentMoney, _impl_.offset_), + PROTOBUF_FIELD_OFFSET(::proto::PaymentMoney, _impl_.currencycode_), 1, 2, 0, - PROTOBUF_FIELD_OFFSET(::proto::HydratedQuickReplyButton, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::HydratedQuickReplyButton, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HydratedQuickReplyButton, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::HydratedQuickReplyButton, displaytext_), - PROTOBUF_FIELD_OFFSET(::proto::HydratedQuickReplyButton, id_), + PROTOBUF_FIELD_OFFSET(::proto::HydratedQuickReplyButton, _impl_.displaytext_), + PROTOBUF_FIELD_OFFSET(::proto::HydratedQuickReplyButton, _impl_.id_), 0, 1, - PROTOBUF_FIELD_OFFSET(::proto::HydratedURLButton, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::HydratedURLButton, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HydratedURLButton, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::HydratedURLButton, displaytext_), - PROTOBUF_FIELD_OFFSET(::proto::HydratedURLButton, url_), + PROTOBUF_FIELD_OFFSET(::proto::HydratedURLButton, _impl_.displaytext_), + PROTOBUF_FIELD_OFFSET(::proto::HydratedURLButton, _impl_.url_), 0, 1, - PROTOBUF_FIELD_OFFSET(::proto::HydratedCallButton, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::HydratedCallButton, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HydratedCallButton, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::HydratedCallButton, displaytext_), - PROTOBUF_FIELD_OFFSET(::proto::HydratedCallButton, phonenumber_), + PROTOBUF_FIELD_OFFSET(::proto::HydratedCallButton, _impl_.displaytext_), + PROTOBUF_FIELD_OFFSET(::proto::HydratedCallButton, _impl_.phonenumber_), 0, 1, - PROTOBUF_FIELD_OFFSET(::proto::HydratedTemplateButton, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::HydratedTemplateButton, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HydratedTemplateButton, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::proto::HydratedTemplateButton, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::proto::HydratedTemplateButton, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::HydratedTemplateButton, index_), - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::proto::HydratedTemplateButton, hydratedButton_), + PROTOBUF_FIELD_OFFSET(::proto::HydratedTemplateButton, _impl_.index_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::proto::HydratedTemplateButton, _impl_.hydratedButton_), 0, ~0u, ~0u, ~0u, - PROTOBUF_FIELD_OFFSET(::proto::QuickReplyButton, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::QuickReplyButton, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::QuickReplyButton, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::QuickReplyButton, displaytext_), - PROTOBUF_FIELD_OFFSET(::proto::QuickReplyButton, id_), + PROTOBUF_FIELD_OFFSET(::proto::QuickReplyButton, _impl_.displaytext_), + PROTOBUF_FIELD_OFFSET(::proto::QuickReplyButton, _impl_.id_), 1, 0, - PROTOBUF_FIELD_OFFSET(::proto::URLButton, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::URLButton, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::URLButton, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::URLButton, displaytext_), - PROTOBUF_FIELD_OFFSET(::proto::URLButton, url_), + PROTOBUF_FIELD_OFFSET(::proto::URLButton, _impl_.displaytext_), + PROTOBUF_FIELD_OFFSET(::proto::URLButton, _impl_.url_), 0, 1, - PROTOBUF_FIELD_OFFSET(::proto::CallButton, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::CallButton, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::CallButton, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::CallButton, displaytext_), - PROTOBUF_FIELD_OFFSET(::proto::CallButton, phonenumber_), + PROTOBUF_FIELD_OFFSET(::proto::CallButton, _impl_.displaytext_), + PROTOBUF_FIELD_OFFSET(::proto::CallButton, _impl_.phonenumber_), 0, 1, - PROTOBUF_FIELD_OFFSET(::proto::TemplateButton, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::TemplateButton, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::TemplateButton, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::proto::TemplateButton, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::proto::TemplateButton, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::TemplateButton, index_), - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::proto::TemplateButton, button_), + PROTOBUF_FIELD_OFFSET(::proto::TemplateButton, _impl_.index_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::proto::TemplateButton, _impl_.button_), 0, ~0u, ~0u, ~0u, - PROTOBUF_FIELD_OFFSET(::proto::Location, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::Location, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::Location, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::Location, degreeslatitude_), - PROTOBUF_FIELD_OFFSET(::proto::Location, degreeslongitude_), - PROTOBUF_FIELD_OFFSET(::proto::Location, name_), + PROTOBUF_FIELD_OFFSET(::proto::Location, _impl_.degreeslatitude_), + PROTOBUF_FIELD_OFFSET(::proto::Location, _impl_.degreeslongitude_), + PROTOBUF_FIELD_OFFSET(::proto::Location, _impl_.name_), 1, 2, 0, - PROTOBUF_FIELD_OFFSET(::proto::Point, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::Point, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::Point, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::Point, xdeprecated_), - PROTOBUF_FIELD_OFFSET(::proto::Point, ydeprecated_), - PROTOBUF_FIELD_OFFSET(::proto::Point, x_), - PROTOBUF_FIELD_OFFSET(::proto::Point, y_), + PROTOBUF_FIELD_OFFSET(::proto::Point, _impl_.xdeprecated_), + PROTOBUF_FIELD_OFFSET(::proto::Point, _impl_.ydeprecated_), + PROTOBUF_FIELD_OFFSET(::proto::Point, _impl_.x_), + PROTOBUF_FIELD_OFFSET(::proto::Point, _impl_.y_), 0, 1, 2, @@ -1577,63 +1682,63 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::InteractiveAnnotation, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::proto::InteractiveAnnotation, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::proto::InteractiveAnnotation, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::InteractiveAnnotation, polygonvertices_), - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::proto::InteractiveAnnotation, action_), - PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::InteractiveAnnotation, _impl_.polygonvertices_), + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::proto::InteractiveAnnotation, _impl_.action_), + PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, senderkeyhash_), - PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, sendertimestamp_), - PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, recipientkeyhash_), - PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, recipienttimestamp_), + PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, _impl_.senderkeyhash_), + PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, _impl_.sendertimestamp_), + PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, _impl_.recipientkeyhash_), + PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, _impl_.recipienttimestamp_), 0, 2, 1, 3, - PROTOBUF_FIELD_OFFSET(::proto::MessageContextInfo, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::MessageContextInfo, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::MessageContextInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::MessageContextInfo, devicelistmetadata_), + PROTOBUF_FIELD_OFFSET(::proto::MessageContextInfo, _impl_.devicelistmetadata_), 0, - PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, advertisername_), - PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, mediatype_), - PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, jpegthumbnail_), - PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, caption_), + PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, _impl_.advertisername_), + PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, _impl_.mediatype_), + PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, _impl_.jpegthumbnail_), + PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, _impl_.caption_), 0, 3, 1, 2, - PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, title_), - PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, body_), - PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, mediatype_), - PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, thumbnailurl_), - PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, mediaurl_), - PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, thumbnail_), - PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, sourcetype_), - PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, sourceid_), - PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, sourceurl_), + PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, _impl_.title_), + PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, _impl_.body_), + PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, _impl_.mediatype_), + PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, _impl_.thumbnailurl_), + PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, _impl_.mediaurl_), + PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, _impl_.thumbnail_), + PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, _impl_.sourcetype_), + PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, _impl_.sourceid_), + PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, _impl_.sourceurl_), 0, 1, 8, @@ -1643,28 +1748,28 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 5, 6, 7, - PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, stanzaid_), - PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, participant_), - PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, quotedmessage_), - PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, remotejid_), - PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, mentionedjid_), - PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, conversionsource_), - PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, conversiondata_), - PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, conversiondelayseconds_), - PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, forwardingscore_), - PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, isforwarded_), - PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, quotedad_), - PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, placeholderkey_), - PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, expiration_), - PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, ephemeralsettingtimestamp_), - PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, ephemeralsharedsecret_), - PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, externaladreply_), + PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _impl_.stanzaid_), + PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _impl_.participant_), + PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _impl_.quotedmessage_), + PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _impl_.remotejid_), + PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _impl_.mentionedjid_), + PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _impl_.conversionsource_), + PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _impl_.conversiondata_), + PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _impl_.conversiondelayseconds_), + PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _impl_.forwardingscore_), + PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _impl_.isforwarded_), + PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _impl_.quotedad_), + PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _impl_.placeholderkey_), + PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _impl_.expiration_), + PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _impl_.ephemeralsettingtimestamp_), + PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _impl_.ephemeralsharedsecret_), + PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _impl_.externaladreply_), 0, 1, 6, @@ -1681,47 +1786,47 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 14, 5, 9, - PROTOBUF_FIELD_OFFSET(::proto::SenderKeyDistributionMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::SenderKeyDistributionMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::SenderKeyDistributionMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::SenderKeyDistributionMessage, groupid_), - PROTOBUF_FIELD_OFFSET(::proto::SenderKeyDistributionMessage, axolotlsenderkeydistributionmessage_), + PROTOBUF_FIELD_OFFSET(::proto::SenderKeyDistributionMessage, _impl_.groupid_), + PROTOBUF_FIELD_OFFSET(::proto::SenderKeyDistributionMessage, _impl_.axolotlsenderkeydistributionmessage_), 0, 1, - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, url_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, mimetype_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, caption_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, filesha256_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, filelength_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, height_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, width_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, mediakey_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, fileencsha256_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, interactiveannotations_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, directpath_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, mediakeytimestamp_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, jpegthumbnail_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, contextinfo_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, firstscansidecar_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, firstscanlength_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, experimentgroupid_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, scanssidecar_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, scanlengths_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, midqualityfilesha256_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, midqualityfileencsha256_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, viewonce_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, thumbnaildirectpath_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, thumbnailsha256_), - PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, thumbnailencsha256_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.url_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.mimetype_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.caption_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.filesha256_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.filelength_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.height_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.width_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.mediakey_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.fileencsha256_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.interactiveannotations_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.directpath_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.mediakeytimestamp_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.jpegthumbnail_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.firstscansidecar_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.firstscanlength_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.experimentgroupid_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.scanssidecar_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.scanlengths_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.midqualityfilesha256_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.midqualityfileencsha256_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.viewonce_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.thumbnaildirectpath_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.thumbnailsha256_), + PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _impl_.thumbnailencsha256_), 0, 1, 2, @@ -1747,22 +1852,22 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 12, 13, 14, - PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, note_), - PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, token_), - PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, attachmenttype_), - PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, attachmentmimetype_), - PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, attachmentmediakey_), - PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, attachmentmediakeytimestamp_), - PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, attachmentfilesha256_), - PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, attachmentfileencsha256_), - PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, attachmentdirectpath_), - PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, attachmentjpegthumbnail_), + PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, _impl_.note_), + PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, _impl_.token_), + PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, _impl_.attachmenttype_), + PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, _impl_.attachmentmimetype_), + PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, _impl_.attachmentmediakey_), + PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, _impl_.attachmentmediakeytimestamp_), + PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, _impl_.attachmentfilesha256_), + PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, _impl_.attachmentfileencsha256_), + PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, _impl_.attachmentdirectpath_), + PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, _impl_.attachmentjpegthumbnail_), 0, 1, 9, @@ -1773,36 +1878,36 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 5, 6, 7, - PROTOBUF_FIELD_OFFSET(::proto::ContactMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::ContactMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ContactMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::ContactMessage, displayname_), - PROTOBUF_FIELD_OFFSET(::proto::ContactMessage, vcard_), - PROTOBUF_FIELD_OFFSET(::proto::ContactMessage, contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::ContactMessage, _impl_.displayname_), + PROTOBUF_FIELD_OFFSET(::proto::ContactMessage, _impl_.vcard_), + PROTOBUF_FIELD_OFFSET(::proto::ContactMessage, _impl_.contextinfo_), 0, 1, 2, - PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, degreeslatitude_), - PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, degreeslongitude_), - PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, name_), - PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, address_), - PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, url_), - PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, islive_), - PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, accuracyinmeters_), - PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, speedinmps_), - PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, degreesclockwisefrommagneticnorth_), - PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, comment_), - PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, jpegthumbnail_), - PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, _impl_.degreeslatitude_), + PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, _impl_.degreeslongitude_), + PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, _impl_.address_), + PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, _impl_.url_), + PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, _impl_.islive_), + PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, _impl_.accuracyinmeters_), + PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, _impl_.speedinmps_), + PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, _impl_.degreesclockwisefrommagneticnorth_), + PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, _impl_.comment_), + PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, _impl_.jpegthumbnail_), + PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, _impl_.contextinfo_), 6, 7, 0, @@ -1815,24 +1920,24 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 3, 4, 5, - PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, text_), - PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, matchedtext_), - PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, canonicalurl_), - PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, description_), - PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, title_), - PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, textargb_), - PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, backgroundargb_), - PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, font_), - PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, previewtype_), - PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, jpegthumbnail_), - PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, contextinfo_), - PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, donotplayinline_), + PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, _impl_.text_), + PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, _impl_.matchedtext_), + PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, _impl_.canonicalurl_), + PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, _impl_.title_), + PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, _impl_.textargb_), + PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, _impl_.backgroundargb_), + PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, _impl_.font_), + PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, _impl_.previewtype_), + PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, _impl_.jpegthumbnail_), + PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, _impl_.contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, _impl_.donotplayinline_), 0, 1, 2, @@ -1845,31 +1950,31 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 5, 6, 11, - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, url_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, mimetype_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, title_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, filesha256_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, filelength_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, pagecount_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, mediakey_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, filename_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, fileencsha256_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, directpath_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, mediakeytimestamp_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, contactvcard_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, thumbnaildirectpath_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, thumbnailsha256_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, thumbnailencsha256_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, jpegthumbnail_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, contextinfo_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, thumbnailheight_), - PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, thumbnailwidth_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.url_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.mimetype_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.title_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.filesha256_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.filelength_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.pagecount_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.mediakey_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.filename_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.fileencsha256_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.directpath_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.mediakeytimestamp_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.contactvcard_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.thumbnaildirectpath_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.thumbnailsha256_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.thumbnailencsha256_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.jpegthumbnail_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.thumbnailheight_), + PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _impl_.thumbnailwidth_), 0, 1, 2, @@ -1889,24 +1994,24 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 12, 17, 18, - PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, url_), - PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, mimetype_), - PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, filesha256_), - PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, filelength_), - PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, seconds_), - PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, ptt_), - PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, mediakey_), - PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, fileencsha256_), - PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, directpath_), - PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, mediakeytimestamp_), - PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, contextinfo_), - PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, streamingsidecar_), + PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, _impl_.url_), + PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, _impl_.mimetype_), + PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, _impl_.filesha256_), + PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, _impl_.filelength_), + PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, _impl_.seconds_), + PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, _impl_.ptt_), + PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, _impl_.mediakey_), + PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, _impl_.fileencsha256_), + PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, _impl_.directpath_), + PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, _impl_.mediakeytimestamp_), + PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, _impl_.contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, _impl_.streamingsidecar_), 0, 1, 2, @@ -1919,34 +2024,34 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 11, 7, 6, - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, url_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, mimetype_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, filesha256_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, filelength_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, seconds_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, mediakey_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, caption_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, gifplayback_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, height_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, width_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, fileencsha256_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, interactiveannotations_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, directpath_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, mediakeytimestamp_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, jpegthumbnail_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, contextinfo_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, streamingsidecar_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, gifattribution_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, viewonce_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, thumbnaildirectpath_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, thumbnailsha256_), - PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, thumbnailencsha256_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.url_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.mimetype_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.filesha256_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.filelength_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.seconds_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.mediakey_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.caption_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.gifplayback_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.height_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.width_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.fileencsha256_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.interactiveannotations_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.directpath_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.mediakeytimestamp_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.jpegthumbnail_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.streamingsidecar_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.gifattribution_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.viewonce_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.thumbnaildirectpath_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.thumbnailsha256_), + PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _impl_.thumbnailencsha256_), 0, 1, 2, @@ -1969,39 +2074,39 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 9, 10, 11, - PROTOBUF_FIELD_OFFSET(::proto::Call, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::Call, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::Call, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::Call, callkey_), + PROTOBUF_FIELD_OFFSET(::proto::Call, _impl_.callkey_), 0, - PROTOBUF_FIELD_OFFSET(::proto::Chat, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::Chat, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::Chat, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::Chat, displayname_), - PROTOBUF_FIELD_OFFSET(::proto::Chat, id_), + PROTOBUF_FIELD_OFFSET(::proto::Chat, _impl_.displayname_), + PROTOBUF_FIELD_OFFSET(::proto::Chat, _impl_.id_), 0, 1, - PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, key_), - PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, type_), - PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, ephemeralexpiration_), - PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, ephemeralsettingtimestamp_), - PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, historysyncnotification_), - PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, appstatesynckeyshare_), - PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, appstatesynckeyrequest_), - PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, initialsecuritynotificationsettingsync_), - PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, appstatefatalexceptionnotification_), + PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, _impl_.type_), + PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, _impl_.ephemeralexpiration_), + PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, _impl_.ephemeralsettingtimestamp_), + PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, _impl_.historysyncnotification_), + PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, _impl_.appstatesynckeyshare_), + PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, _impl_.appstatesynckeyrequest_), + PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, _impl_.initialsecuritynotificationsettingsync_), + PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, _impl_.appstatefatalexceptionnotification_), 0, 6, 7, @@ -2011,20 +2116,20 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 3, 4, 5, - PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, filesha256_), - PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, filelength_), - PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, mediakey_), - PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, fileencsha256_), - PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, directpath_), - PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, synctype_), - PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, chunkorder_), - PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, originalmessageid_), + PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, _impl_.filesha256_), + PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, _impl_.filelength_), + PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, _impl_.mediakey_), + PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, _impl_.fileencsha256_), + PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, _impl_.directpath_), + PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, _impl_.synctype_), + PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, _impl_.chunkorder_), + PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, _impl_.originalmessageid_), 0, 5, 1, @@ -2033,45 +2138,45 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 6, 7, 4, - PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKey, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKey, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKey, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKey, keyid_), - PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKey, keydata_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKey, _impl_.keyid_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKey, _impl_.keydata_), 0, 1, - PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyId, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyId, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyId, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyId, keyid_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyId, _impl_.keyid_), 0, - PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, rawid_), - PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, currentindex_), - PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, deviceindexes_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, _impl_.rawid_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, _impl_.currentindex_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, _impl_.deviceindexes_), 0, 1, ~0u, - PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyData, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyData, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyData, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyData, keydata_), - PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyData, fingerprint_), - PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyData, timestamp_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyData, _impl_.keydata_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyData, _impl_.fingerprint_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyData, _impl_.timestamp_), 0, 1, 2, @@ -2081,67 +2186,67 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyShare, keys_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyShare, _impl_.keys_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyRequest, keyids_), - PROTOBUF_FIELD_OFFSET(::proto::AppStateFatalExceptionNotification, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyRequest, _impl_.keyids_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateFatalExceptionNotification, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::AppStateFatalExceptionNotification, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::AppStateFatalExceptionNotification, collectionnames_), - PROTOBUF_FIELD_OFFSET(::proto::AppStateFatalExceptionNotification, timestamp_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateFatalExceptionNotification, _impl_.collectionnames_), + PROTOBUF_FIELD_OFFSET(::proto::AppStateFatalExceptionNotification, _impl_.timestamp_), ~0u, 0, - PROTOBUF_FIELD_OFFSET(::proto::InitialSecurityNotificationSettingSync, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::InitialSecurityNotificationSettingSync, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::InitialSecurityNotificationSettingSync, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::InitialSecurityNotificationSettingSync, securitynotificationenabled_), + PROTOBUF_FIELD_OFFSET(::proto::InitialSecurityNotificationSettingSync, _impl_.securitynotificationenabled_), 0, - PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, displayname_), - PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, contacts_), - PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, _impl_.displayname_), + PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, _impl_.contacts_), + PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, _impl_.contextinfo_), 0, ~0u, 1, - PROTOBUF_FIELD_OFFSET(::proto::HSMCurrency, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::HSMCurrency, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HSMCurrency, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::HSMCurrency, currencycode_), - PROTOBUF_FIELD_OFFSET(::proto::HSMCurrency, amount1000_), + PROTOBUF_FIELD_OFFSET(::proto::HSMCurrency, _impl_.currencycode_), + PROTOBUF_FIELD_OFFSET(::proto::HSMCurrency, _impl_.amount1000_), 0, 1, - PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, dayofweek_), - PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, year_), - PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, month_), - PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, dayofmonth_), - PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, hour_), - PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, minute_), - PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, calendar_), + PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, _impl_.dayofweek_), + PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, _impl_.year_), + PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, _impl_.month_), + PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, _impl_.dayofmonth_), + PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, _impl_.hour_), + PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, _impl_.minute_), + PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, _impl_.calendar_), 5, 0, 1, @@ -2149,51 +2254,51 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 3, 4, 6, - PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeUnixEpoch, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeUnixEpoch, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeUnixEpoch, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeUnixEpoch, timestamp_), + PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeUnixEpoch, _impl_.timestamp_), 0, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::HSMDateTime, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::proto::HSMDateTime, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::proto::HSMDateTime, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::proto::HSMDateTime, datetimeOneof_), - PROTOBUF_FIELD_OFFSET(::proto::HSMLocalizableParameter, _has_bits_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::proto::HSMDateTime, _impl_.datetimeOneof_), + PROTOBUF_FIELD_OFFSET(::proto::HSMLocalizableParameter, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HSMLocalizableParameter, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::proto::HSMLocalizableParameter, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::proto::HSMLocalizableParameter, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::HSMLocalizableParameter, default__), - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::proto::HSMLocalizableParameter, paramOneof_), + PROTOBUF_FIELD_OFFSET(::proto::HSMLocalizableParameter, _impl_.default__), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::proto::HSMLocalizableParameter, _impl_.paramOneof_), 0, ~0u, ~0u, - PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, namespace__), - PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, elementname_), - PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, params_), - PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, fallbacklg_), - PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, fallbacklc_), - PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, localizableparams_), - PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, deterministiclg_), - PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, deterministiclc_), - PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, hydratedhsm_), + PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, _impl_.namespace__), + PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, _impl_.elementname_), + PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, _impl_.params_), + PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, _impl_.fallbacklg_), + PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, _impl_.fallbacklc_), + PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, _impl_.localizableparams_), + PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, _impl_.deterministiclg_), + PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, _impl_.deterministiclc_), + PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, _impl_.hydratedhsm_), 0, 1, ~0u, @@ -2203,66 +2308,66 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 4, 5, 6, - PROTOBUF_FIELD_OFFSET(::proto::SendPaymentMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::SendPaymentMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::SendPaymentMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::SendPaymentMessage, notemessage_), - PROTOBUF_FIELD_OFFSET(::proto::SendPaymentMessage, requestmessagekey_), + PROTOBUF_FIELD_OFFSET(::proto::SendPaymentMessage, _impl_.notemessage_), + PROTOBUF_FIELD_OFFSET(::proto::SendPaymentMessage, _impl_.requestmessagekey_), 0, 1, - PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, notemessage_), - PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, currencycodeiso4217_), - PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, amount1000_), - PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, requestfrom_), - PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, expirytimestamp_), - PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, amount_), + PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, _impl_.notemessage_), + PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, _impl_.currencycodeiso4217_), + PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, _impl_.amount1000_), + PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, _impl_.requestfrom_), + PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, _impl_.expirytimestamp_), + PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, _impl_.amount_), 2, 0, 4, 1, 5, 3, - PROTOBUF_FIELD_OFFSET(::proto::DeclinePaymentRequestMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::DeclinePaymentRequestMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::DeclinePaymentRequestMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::DeclinePaymentRequestMessage, key_), + PROTOBUF_FIELD_OFFSET(::proto::DeclinePaymentRequestMessage, _impl_.key_), 0, - PROTOBUF_FIELD_OFFSET(::proto::CancelPaymentRequestMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::CancelPaymentRequestMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::CancelPaymentRequestMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::CancelPaymentRequestMessage, key_), + PROTOBUF_FIELD_OFFSET(::proto::CancelPaymentRequestMessage, _impl_.key_), 0, - PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, degreeslatitude_), - PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, degreeslongitude_), - PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, accuracyinmeters_), - PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, speedinmps_), - PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, degreesclockwisefrommagneticnorth_), - PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, caption_), - PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, sequencenumber_), - PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, timeoffset_), - PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, jpegthumbnail_), - PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, _impl_.degreeslatitude_), + PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, _impl_.degreeslongitude_), + PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, _impl_.accuracyinmeters_), + PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, _impl_.speedinmps_), + PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, _impl_.degreesclockwisefrommagneticnorth_), + PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, _impl_.caption_), + PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, _impl_.sequencenumber_), + PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, _impl_.timeoffset_), + PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, _impl_.jpegthumbnail_), + PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, _impl_.contextinfo_), 3, 4, 5, @@ -2273,27 +2378,27 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 8, 1, 2, - PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, url_), - PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, filesha256_), - PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, fileencsha256_), - PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, mediakey_), - PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, mimetype_), - PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, height_), - PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, width_), - PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, directpath_), - PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, filelength_), - PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, mediakeytimestamp_), - PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, firstframelength_), - PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, firstframesidecar_), - PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, isanimated_), - PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, pngthumbnail_), - PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _impl_.url_), + PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _impl_.filesha256_), + PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _impl_.fileencsha256_), + PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _impl_.mediakey_), + PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _impl_.mimetype_), + PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _impl_.height_), + PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _impl_.width_), + PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _impl_.directpath_), + PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _impl_.filelength_), + PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _impl_.mediakeytimestamp_), + PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _impl_.firstframelength_), + PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _impl_.firstframesidecar_), + PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _impl_.isanimated_), + PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _impl_.pngthumbnail_), + PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _impl_.contextinfo_), 0, 1, 2, @@ -2309,21 +2414,21 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 14, 7, 8, - PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, content_), - PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, footer_), - PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, buttons_), - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, title_), + PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, _impl_.content_), + PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, _impl_.footer_), + PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, _impl_.buttons_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, _impl_.title_), 0, 1, ~0u, @@ -2332,22 +2437,22 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, ~0u, ~0u, - PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, hydratedcontenttext_), - PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, hydratedfootertext_), - PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, hydratedbuttons_), - PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, templateid_), - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, title_), + PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, _impl_.hydratedcontenttext_), + PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, _impl_.hydratedfootertext_), + PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, _impl_.hydratedbuttons_), + PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, _impl_.templateid_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, _impl_.title_), 0, 1, ~0u, @@ -2357,63 +2462,63 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, ~0u, ~0u, - PROTOBUF_FIELD_OFFSET(::proto::TemplateMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::TemplateMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::TemplateMessage, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::proto::TemplateMessage, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::proto::TemplateMessage, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::TemplateMessage, contextinfo_), - PROTOBUF_FIELD_OFFSET(::proto::TemplateMessage, hydratedtemplate_), - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::proto::TemplateMessage, format_), + PROTOBUF_FIELD_OFFSET(::proto::TemplateMessage, _impl_.contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::TemplateMessage, _impl_.hydratedtemplate_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::proto::TemplateMessage, _impl_.format_), 0, 1, ~0u, ~0u, - PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, selectedid_), - PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, selecteddisplaytext_), - PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, contextinfo_), - PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, selectedindex_), + PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, _impl_.selectedid_), + PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, _impl_.selecteddisplaytext_), + PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, _impl_.contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, _impl_.selectedindex_), 0, 1, 2, 3, - PROTOBUF_FIELD_OFFSET(::proto::CatalogSnapshot, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::CatalogSnapshot, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::CatalogSnapshot, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::CatalogSnapshot, catalogimage_), - PROTOBUF_FIELD_OFFSET(::proto::CatalogSnapshot, title_), - PROTOBUF_FIELD_OFFSET(::proto::CatalogSnapshot, description_), + PROTOBUF_FIELD_OFFSET(::proto::CatalogSnapshot, _impl_.catalogimage_), + PROTOBUF_FIELD_OFFSET(::proto::CatalogSnapshot, _impl_.title_), + PROTOBUF_FIELD_OFFSET(::proto::CatalogSnapshot, _impl_.description_), 2, 0, 1, - PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, productimage_), - PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, productid_), - PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, title_), - PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, description_), - PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, currencycode_), - PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, priceamount1000_), - PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, retailerid_), - PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, url_), - PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, productimagecount_), - PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, firstimageid_), + PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, _impl_.productimage_), + PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, _impl_.productid_), + PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, _impl_.title_), + PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, _impl_.currencycode_), + PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, _impl_.priceamount1000_), + PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, _impl_.retailerid_), + PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, _impl_.url_), + PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, _impl_.productimagecount_), + PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, _impl_.firstimageid_), 7, 0, 1, @@ -2424,38 +2529,38 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 5, 9, 6, - PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, product_), - PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, businessownerjid_), - PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, catalog_), - PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, _impl_.product_), + PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, _impl_.businessownerjid_), + PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, _impl_.catalog_), + PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, _impl_.contextinfo_), 1, 0, 2, 3, - PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, orderid_), - PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, thumbnail_), - PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, itemcount_), - PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, status_), - PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, surface_), - PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, message_), - PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, ordertitle_), - PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, sellerjid_), - PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, token_), - PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, totalamount1000_), - PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, totalcurrencycode_), - PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, _impl_.orderid_), + PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, _impl_.thumbnail_), + PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, _impl_.itemcount_), + PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, _impl_.status_), + PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, _impl_.surface_), + PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, _impl_.message_), + PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, _impl_.ordertitle_), + PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, _impl_.sellerjid_), + PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, _impl_.token_), + PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, _impl_.totalamount1000_), + PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, _impl_.totalcurrencycode_), + PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, _impl_.contextinfo_), 0, 1, 9, @@ -2468,81 +2573,81 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 8, 6, 7, - PROTOBUF_FIELD_OFFSET(::proto::Row, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::Row, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::Row, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::Row, title_), - PROTOBUF_FIELD_OFFSET(::proto::Row, description_), - PROTOBUF_FIELD_OFFSET(::proto::Row, rowid_), + PROTOBUF_FIELD_OFFSET(::proto::Row, _impl_.title_), + PROTOBUF_FIELD_OFFSET(::proto::Row, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::proto::Row, _impl_.rowid_), 0, 1, 2, - PROTOBUF_FIELD_OFFSET(::proto::Section, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::Section, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::Section, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::Section, title_), - PROTOBUF_FIELD_OFFSET(::proto::Section, rows_), + PROTOBUF_FIELD_OFFSET(::proto::Section, _impl_.title_), + PROTOBUF_FIELD_OFFSET(::proto::Section, _impl_.rows_), 0, ~0u, - PROTOBUF_FIELD_OFFSET(::proto::ListMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::ListMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ListMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::ListMessage, title_), - PROTOBUF_FIELD_OFFSET(::proto::ListMessage, description_), - PROTOBUF_FIELD_OFFSET(::proto::ListMessage, buttontext_), - PROTOBUF_FIELD_OFFSET(::proto::ListMessage, listtype_), - PROTOBUF_FIELD_OFFSET(::proto::ListMessage, sections_), + PROTOBUF_FIELD_OFFSET(::proto::ListMessage, _impl_.title_), + PROTOBUF_FIELD_OFFSET(::proto::ListMessage, _impl_.description_), + PROTOBUF_FIELD_OFFSET(::proto::ListMessage, _impl_.buttontext_), + PROTOBUF_FIELD_OFFSET(::proto::ListMessage, _impl_.listtype_), + PROTOBUF_FIELD_OFFSET(::proto::ListMessage, _impl_.sections_), 0, 1, 2, 3, ~0u, - PROTOBUF_FIELD_OFFSET(::proto::SingleSelectReply, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::SingleSelectReply, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::SingleSelectReply, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::SingleSelectReply, selectedrowid_), + PROTOBUF_FIELD_OFFSET(::proto::SingleSelectReply, _impl_.selectedrowid_), 0, - PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, title_), - PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, listtype_), - PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, singleselectreply_), - PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, contextinfo_), - PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, description_), + PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, _impl_.title_), + PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, _impl_.listtype_), + PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, _impl_.singleselectreply_), + PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, _impl_.contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, _impl_.description_), 0, 4, 2, 3, 1, - PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, groupjid_), - PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, invitecode_), - PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, inviteexpiration_), - PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, groupname_), - PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, jpegthumbnail_), - PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, caption_), - PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, _impl_.groupjid_), + PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, _impl_.invitecode_), + PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, _impl_.inviteexpiration_), + PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, _impl_.groupname_), + PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, _impl_.jpegthumbnail_), + PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, _impl_.caption_), + PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, _impl_.contextinfo_), 0, 1, 6, @@ -2550,77 +2655,77 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 3, 4, 5, - PROTOBUF_FIELD_OFFSET(::proto::EphemeralSetting, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::EphemeralSetting, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::EphemeralSetting, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::EphemeralSetting, chatjid_), - PROTOBUF_FIELD_OFFSET(::proto::EphemeralSetting, ephemeralexpiration_), - PROTOBUF_FIELD_OFFSET(::proto::EphemeralSetting, ephemeralsettingtimestamp_), + PROTOBUF_FIELD_OFFSET(::proto::EphemeralSetting, _impl_.chatjid_), + PROTOBUF_FIELD_OFFSET(::proto::EphemeralSetting, _impl_.ephemeralexpiration_), + PROTOBUF_FIELD_OFFSET(::proto::EphemeralSetting, _impl_.ephemeralsettingtimestamp_), 0, 2, 1, - PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, destinationjid_), - PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, message_), - PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, phash_), - PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, broadcastephemeralsettings_), + PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, _impl_.destinationjid_), + PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, _impl_.message_), + PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, _impl_.phash_), + PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, _impl_.broadcastephemeralsettings_), 0, 2, 1, ~0u, - PROTOBUF_FIELD_OFFSET(::proto::FutureProofMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::FutureProofMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::FutureProofMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::FutureProofMessage, message_), + PROTOBUF_FIELD_OFFSET(::proto::FutureProofMessage, _impl_.message_), 0, - PROTOBUF_FIELD_OFFSET(::proto::ButtonText, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::ButtonText, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ButtonText, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::ButtonText, displaytext_), + PROTOBUF_FIELD_OFFSET(::proto::ButtonText, _impl_.displaytext_), 0, - PROTOBUF_FIELD_OFFSET(::proto::Button, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::Button, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::Button, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::Button, buttonid_), - PROTOBUF_FIELD_OFFSET(::proto::Button, buttontext_), - PROTOBUF_FIELD_OFFSET(::proto::Button, type_), + PROTOBUF_FIELD_OFFSET(::proto::Button, _impl_.buttonid_), + PROTOBUF_FIELD_OFFSET(::proto::Button, _impl_.buttontext_), + PROTOBUF_FIELD_OFFSET(::proto::Button, _impl_.type_), 0, 1, 2, - PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, contenttext_), - PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, footertext_), - PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, contextinfo_), - PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, buttons_), - PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, headertype_), - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, header_), + PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, _impl_.contenttext_), + PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, _impl_.footertext_), + PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, _impl_.contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, _impl_.buttons_), + PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, _impl_.headertype_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, _impl_.header_), 0, 1, 2, @@ -2631,62 +2736,62 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, ~0u, ~0u, - PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, selectedbuttonid_), - PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, contextinfo_), - PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, type_), - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, response_), + PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, _impl_.selectedbuttonid_), + PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, _impl_.contextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, _impl_.type_), + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, _impl_.response_), 0, 1, 2, ~0u, - PROTOBUF_FIELD_OFFSET(::proto::Message, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::Message, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::Message, conversation_), - PROTOBUF_FIELD_OFFSET(::proto::Message, senderkeydistributionmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, imagemessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, contactmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, locationmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, extendedtextmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, documentmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, audiomessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, videomessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, call_), - PROTOBUF_FIELD_OFFSET(::proto::Message, chat_), - PROTOBUF_FIELD_OFFSET(::proto::Message, protocolmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, contactsarraymessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, highlystructuredmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, fastratchetkeysenderkeydistributionmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, sendpaymentmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, livelocationmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, requestpaymentmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, declinepaymentrequestmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, cancelpaymentrequestmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, templatemessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, stickermessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, groupinvitemessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, templatebuttonreplymessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, productmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, devicesentmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, messagecontextinfo_), - PROTOBUF_FIELD_OFFSET(::proto::Message, listmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, viewoncemessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, ordermessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, listresponsemessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, ephemeralmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, invoicemessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, buttonsmessage_), - PROTOBUF_FIELD_OFFSET(::proto::Message, buttonsresponsemessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.conversation_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.senderkeydistributionmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.imagemessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.contactmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.locationmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.extendedtextmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.documentmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.audiomessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.videomessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.call_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.chat_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.protocolmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.contactsarraymessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.highlystructuredmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.fastratchetkeysenderkeydistributionmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.sendpaymentmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.livelocationmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.requestpaymentmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.declinepaymentrequestmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.cancelpaymentrequestmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.templatemessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.stickermessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.groupinvitemessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.templatebuttonreplymessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.productmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.devicesentmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.messagecontextinfo_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.listmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.viewoncemessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.ordermessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.listresponsemessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.ephemeralmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.invoicemessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.buttonsmessage_), + PROTOBUF_FIELD_OFFSET(::proto::Message, _impl_.buttonsresponsemessage_), 0, 1, 2, @@ -2722,66 +2827,66 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 32, 33, 34, - PROTOBUF_FIELD_OFFSET(::proto::MessageKey, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::MessageKey, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::MessageKey, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::MessageKey, remotejid_), - PROTOBUF_FIELD_OFFSET(::proto::MessageKey, fromme_), - PROTOBUF_FIELD_OFFSET(::proto::MessageKey, id_), - PROTOBUF_FIELD_OFFSET(::proto::MessageKey, participant_), + PROTOBUF_FIELD_OFFSET(::proto::MessageKey, _impl_.remotejid_), + PROTOBUF_FIELD_OFFSET(::proto::MessageKey, _impl_.fromme_), + PROTOBUF_FIELD_OFFSET(::proto::MessageKey, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::proto::MessageKey, _impl_.participant_), 0, 3, 1, 2, - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, labelsdisplay_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, voipindividualoutgoing_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, groupsv3_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, groupsv3create_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, changenumberv2_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, querystatusv3thumbnail_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, livelocations_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, queryvname_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, voipindividualincoming_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, quickrepliesquery_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, payments_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, stickerpackquery_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, livelocationsfinal_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, labelsedit_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, mediaupload_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, mediauploadrichquickreplies_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, vnamev2_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, videoplaybackurl_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, statusranking_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, voipindividualvideo_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, thirdpartystickers_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, frequentlyforwardedsetting_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, groupsv4joinpermission_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, recentstickers_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, catalog_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, starredstickers_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, voipgroupcall_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, templatemessage_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, templatemessageinteractivity_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, ephemeralmessages_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, e2enotificationsync_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, recentstickersv2_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, syncdrelease1_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, recentstickersv3_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, usernotice_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, syncdrelease11_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, support_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, groupuiicleanup_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, groupdogfoodinginternalonly_), - PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, settingssync_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.labelsdisplay_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.voipindividualoutgoing_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.groupsv3_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.groupsv3create_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.changenumberv2_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.querystatusv3thumbnail_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.livelocations_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.queryvname_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.voipindividualincoming_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.quickrepliesquery_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.payments_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.stickerpackquery_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.livelocationsfinal_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.labelsedit_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.mediaupload_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.mediauploadrichquickreplies_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.vnamev2_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.videoplaybackurl_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.statusranking_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.voipindividualvideo_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.thirdpartystickers_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.frequentlyforwardedsetting_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.groupsv4joinpermission_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.recentstickers_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.catalog_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.starredstickers_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.voipgroupcall_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.templatemessage_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.templatemessageinteractivity_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.ephemeralmessages_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.e2enotificationsync_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.recentstickersv2_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.syncdrelease1_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.recentstickersv3_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.usernotice_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.syncdrelease11_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.support_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.groupuiicleanup_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.groupdogfoodinginternalonly_), + PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _impl_.settingssync_), 0, 1, 2, @@ -2822,53 +2927,53 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 37, 38, 39, - PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, key_), - PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, message_), - PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, messagetimestamp_), - PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, participant_), + PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, _impl_.message_), + PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, _impl_.messagetimestamp_), + PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, _impl_.participant_), 1, 2, 3, 0, - PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, timestamp_), - PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, unreadchats_), - PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, notifymessagecount_), - PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, notifymessages_), + PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, _impl_.timestamp_), + PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, _impl_.unreadchats_), + PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, _impl_.notifymessagecount_), + PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, _impl_.notifymessages_), 0, 1, 2, ~0u, - PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, currencydeprecated_), - PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, amount1000_), - PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, receiverjid_), - PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, status_), - PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, transactiontimestamp_), - PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, requestmessagekey_), - PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, expirytimestamp_), - PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, futureproofed_), - PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, currency_), - PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, txnstatus_), - PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, usenovifiatformat_), - PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, primaryamount_), - PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, exchangeamount_), + PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _impl_.currencydeprecated_), + PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _impl_.amount1000_), + PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _impl_.receiverjid_), + PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _impl_.status_), + PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _impl_.transactiontimestamp_), + PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _impl_.requestmessagekey_), + PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _impl_.expirytimestamp_), + PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _impl_.futureproofed_), + PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _impl_.currency_), + PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _impl_.txnstatus_), + PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _impl_.usenovifiatformat_), + PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _impl_.primaryamount_), + PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _impl_.exchangeamount_), 6, 5, 0, @@ -2882,39 +2987,39 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 11, 3, 4, - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _has_bits_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, key_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, message_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, messagetimestamp_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, status_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, participant_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, ignore_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, starred_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, broadcast_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, pushname_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, mediaciphertextsha256_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, multicast_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, urltext_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, urlnumber_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, messagestubtype_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, clearmedia_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, messagestubparameters_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, duration_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, labels_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, paymentinfo_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, finallivelocation_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, quotedpaymentinfo_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, ephemeralstarttimestamp_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, ephemeralduration_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, ephemeralofftoon_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, ephemeraloutofsync_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, bizprivacystatus_), - PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, verifiedbizname_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.message_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.messagetimestamp_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.status_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.participant_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.ignore_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.starred_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.broadcast_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.pushname_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.mediaciphertextsha256_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.multicast_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.urltext_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.urlnumber_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.messagestubtype_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.clearmedia_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.messagestubparameters_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.duration_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.labels_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.paymentinfo_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.finallivelocation_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.quotedpaymentinfo_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.ephemeralstarttimestamp_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.ephemeralduration_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.ephemeralofftoon_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.ephemeraloutofsync_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.bizprivacystatus_), + PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _impl_.verifiedbizname_), 4, 5, 9, @@ -2943,7 +3048,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 24, 3, }; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, 9, -1, sizeof(::proto::PaymentMoney)}, { 12, 20, -1, sizeof(::proto::HydratedQuickReplyButton)}, { 22, 30, -1, sizeof(::proto::HydratedURLButton)}, @@ -3025,86 +3130,86 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 1436, 1469, -1, sizeof(::proto::WebMessageInfo)}, }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_PaymentMoney_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HydratedQuickReplyButton_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HydratedURLButton_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HydratedCallButton_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HydratedTemplateButton_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_QuickReplyButton_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_URLButton_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_CallButton_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_TemplateButton_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_Location_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_Point_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_InteractiveAnnotation_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_DeviceListMetadata_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_MessageContextInfo_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AdReplyInfo_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ExternalAdReplyInfo_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ContextInfo_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_SenderKeyDistributionMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ImageMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_InvoiceMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ContactMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_LocationMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ExtendedTextMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_DocumentMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AudioMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_VideoMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_Call_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_Chat_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ProtocolMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HistorySyncNotification_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AppStateSyncKey_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AppStateSyncKeyId_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AppStateSyncKeyFingerprint_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AppStateSyncKeyData_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AppStateSyncKeyShare_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AppStateSyncKeyRequest_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AppStateFatalExceptionNotification_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_InitialSecurityNotificationSettingSync_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ContactsArrayMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HSMCurrency_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HSMDateTimeComponent_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HSMDateTimeUnixEpoch_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HSMDateTime_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HSMLocalizableParameter_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HighlyStructuredMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_SendPaymentMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_RequestPaymentMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_DeclinePaymentRequestMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_CancelPaymentRequestMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_LiveLocationMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_StickerMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_FourRowTemplate_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HydratedFourRowTemplate_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_TemplateMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_TemplateButtonReplyMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_CatalogSnapshot_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ProductSnapshot_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ProductMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_OrderMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_Row_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_Section_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ListMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_SingleSelectReply_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ListResponseMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_GroupInviteMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_EphemeralSetting_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_DeviceSentMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_FutureProofMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ButtonText_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_Button_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ButtonsMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ButtonsResponseMessage_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_Message_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_MessageKey_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_WebFeatures_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_NotificationMessageInfo_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_WebNotificationsInfo_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_PaymentInfo_default_instance_), - reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_WebMessageInfo_default_instance_), +static const ::_pb::Message* const file_default_instances[] = { + &::proto::_PaymentMoney_default_instance_._instance, + &::proto::_HydratedQuickReplyButton_default_instance_._instance, + &::proto::_HydratedURLButton_default_instance_._instance, + &::proto::_HydratedCallButton_default_instance_._instance, + &::proto::_HydratedTemplateButton_default_instance_._instance, + &::proto::_QuickReplyButton_default_instance_._instance, + &::proto::_URLButton_default_instance_._instance, + &::proto::_CallButton_default_instance_._instance, + &::proto::_TemplateButton_default_instance_._instance, + &::proto::_Location_default_instance_._instance, + &::proto::_Point_default_instance_._instance, + &::proto::_InteractiveAnnotation_default_instance_._instance, + &::proto::_DeviceListMetadata_default_instance_._instance, + &::proto::_MessageContextInfo_default_instance_._instance, + &::proto::_AdReplyInfo_default_instance_._instance, + &::proto::_ExternalAdReplyInfo_default_instance_._instance, + &::proto::_ContextInfo_default_instance_._instance, + &::proto::_SenderKeyDistributionMessage_default_instance_._instance, + &::proto::_ImageMessage_default_instance_._instance, + &::proto::_InvoiceMessage_default_instance_._instance, + &::proto::_ContactMessage_default_instance_._instance, + &::proto::_LocationMessage_default_instance_._instance, + &::proto::_ExtendedTextMessage_default_instance_._instance, + &::proto::_DocumentMessage_default_instance_._instance, + &::proto::_AudioMessage_default_instance_._instance, + &::proto::_VideoMessage_default_instance_._instance, + &::proto::_Call_default_instance_._instance, + &::proto::_Chat_default_instance_._instance, + &::proto::_ProtocolMessage_default_instance_._instance, + &::proto::_HistorySyncNotification_default_instance_._instance, + &::proto::_AppStateSyncKey_default_instance_._instance, + &::proto::_AppStateSyncKeyId_default_instance_._instance, + &::proto::_AppStateSyncKeyFingerprint_default_instance_._instance, + &::proto::_AppStateSyncKeyData_default_instance_._instance, + &::proto::_AppStateSyncKeyShare_default_instance_._instance, + &::proto::_AppStateSyncKeyRequest_default_instance_._instance, + &::proto::_AppStateFatalExceptionNotification_default_instance_._instance, + &::proto::_InitialSecurityNotificationSettingSync_default_instance_._instance, + &::proto::_ContactsArrayMessage_default_instance_._instance, + &::proto::_HSMCurrency_default_instance_._instance, + &::proto::_HSMDateTimeComponent_default_instance_._instance, + &::proto::_HSMDateTimeUnixEpoch_default_instance_._instance, + &::proto::_HSMDateTime_default_instance_._instance, + &::proto::_HSMLocalizableParameter_default_instance_._instance, + &::proto::_HighlyStructuredMessage_default_instance_._instance, + &::proto::_SendPaymentMessage_default_instance_._instance, + &::proto::_RequestPaymentMessage_default_instance_._instance, + &::proto::_DeclinePaymentRequestMessage_default_instance_._instance, + &::proto::_CancelPaymentRequestMessage_default_instance_._instance, + &::proto::_LiveLocationMessage_default_instance_._instance, + &::proto::_StickerMessage_default_instance_._instance, + &::proto::_FourRowTemplate_default_instance_._instance, + &::proto::_HydratedFourRowTemplate_default_instance_._instance, + &::proto::_TemplateMessage_default_instance_._instance, + &::proto::_TemplateButtonReplyMessage_default_instance_._instance, + &::proto::_CatalogSnapshot_default_instance_._instance, + &::proto::_ProductSnapshot_default_instance_._instance, + &::proto::_ProductMessage_default_instance_._instance, + &::proto::_OrderMessage_default_instance_._instance, + &::proto::_Row_default_instance_._instance, + &::proto::_Section_default_instance_._instance, + &::proto::_ListMessage_default_instance_._instance, + &::proto::_SingleSelectReply_default_instance_._instance, + &::proto::_ListResponseMessage_default_instance_._instance, + &::proto::_GroupInviteMessage_default_instance_._instance, + &::proto::_EphemeralSetting_default_instance_._instance, + &::proto::_DeviceSentMessage_default_instance_._instance, + &::proto::_FutureProofMessage_default_instance_._instance, + &::proto::_ButtonText_default_instance_._instance, + &::proto::_Button_default_instance_._instance, + &::proto::_ButtonsMessage_default_instance_._instance, + &::proto::_ButtonsResponseMessage_default_instance_._instance, + &::proto::_Message_default_instance_._instance, + &::proto::_MessageKey_default_instance_._instance, + &::proto::_WebFeatures_default_instance_._instance, + &::proto::_NotificationMessageInfo_default_instance_._instance, + &::proto::_WebNotificationsInfo_default_instance_._instance, + &::proto::_PaymentInfo_default_instance_._instance, + &::proto::_WebMessageInfo_default_instance_._instance, }; const char descriptor_table_protodef_pmsg_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -3756,19 +3861,21 @@ const char descriptor_table_protodef_pmsg_2eproto[] PROTOBUF_SECTION_VARIABLE(pr "sageInfoBizPrivacyStatus\022\010\n\004E2EE\020\000\022\006\n\002FB" "\020\002\022\007\n\003BSP\020\001\022\016\n\nBSP_AND_FB\020\003" ; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_pmsg_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_pmsg_2eproto = { - false, false, 25867, descriptor_table_protodef_pmsg_2eproto, "pmsg.proto", - &descriptor_table_pmsg_2eproto_once, nullptr, 0, 79, - schemas, file_default_instances, TableStruct_pmsg_2eproto::offsets, - file_level_metadata_pmsg_2eproto, file_level_enum_descriptors_pmsg_2eproto, file_level_service_descriptors_pmsg_2eproto, +static ::_pbi::once_flag descriptor_table_pmsg_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_pmsg_2eproto = { + false, false, 25867, descriptor_table_protodef_pmsg_2eproto, + "pmsg.proto", + &descriptor_table_pmsg_2eproto_once, nullptr, 0, 79, + schemas, file_default_instances, TableStruct_pmsg_2eproto::offsets, + file_level_metadata_pmsg_2eproto, file_level_enum_descriptors_pmsg_2eproto, + file_level_service_descriptors_pmsg_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_pmsg_2eproto_getter() { +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_pmsg_2eproto_getter() { return &descriptor_table_pmsg_2eproto; } // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_pmsg_2eproto(&descriptor_table_pmsg_2eproto); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_pmsg_2eproto(&descriptor_table_pmsg_2eproto); namespace proto { const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AdReplyInfo_AdReplyInfoMediaType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); @@ -3785,14 +3892,14 @@ bool AdReplyInfo_AdReplyInfoMediaType_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr AdReplyInfo_AdReplyInfoMediaType AdReplyInfo::NONE; constexpr AdReplyInfo_AdReplyInfoMediaType AdReplyInfo::IMAGE; constexpr AdReplyInfo_AdReplyInfoMediaType AdReplyInfo::VIDEO; constexpr AdReplyInfo_AdReplyInfoMediaType AdReplyInfo::AdReplyInfoMediaType_MIN; constexpr AdReplyInfo_AdReplyInfoMediaType AdReplyInfo::AdReplyInfoMediaType_MAX; constexpr int AdReplyInfo::AdReplyInfoMediaType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[1]; @@ -3808,14 +3915,14 @@ bool ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ExternalAdReplyInfo_ExternalAdReplyInfoMediaType ExternalAdReplyInfo::NONE; constexpr ExternalAdReplyInfo_ExternalAdReplyInfoMediaType ExternalAdReplyInfo::IMAGE; constexpr ExternalAdReplyInfo_ExternalAdReplyInfoMediaType ExternalAdReplyInfo::VIDEO; constexpr ExternalAdReplyInfo_ExternalAdReplyInfoMediaType ExternalAdReplyInfo::ExternalAdReplyInfoMediaType_MIN; constexpr ExternalAdReplyInfo_ExternalAdReplyInfoMediaType ExternalAdReplyInfo::ExternalAdReplyInfoMediaType_MAX; constexpr int ExternalAdReplyInfo::ExternalAdReplyInfoMediaType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* InvoiceMessage_InvoiceMessageAttachmentType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[2]; @@ -3830,13 +3937,13 @@ bool InvoiceMessage_InvoiceMessageAttachmentType_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr InvoiceMessage_InvoiceMessageAttachmentType InvoiceMessage::IMAGE; constexpr InvoiceMessage_InvoiceMessageAttachmentType InvoiceMessage::PDF; constexpr InvoiceMessage_InvoiceMessageAttachmentType InvoiceMessage::InvoiceMessageAttachmentType_MIN; constexpr InvoiceMessage_InvoiceMessageAttachmentType InvoiceMessage::InvoiceMessageAttachmentType_MAX; constexpr int InvoiceMessage::InvoiceMessageAttachmentType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ExtendedTextMessage_ExtendedTextMessageFontType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[3]; @@ -3855,7 +3962,7 @@ bool ExtendedTextMessage_ExtendedTextMessageFontType_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ExtendedTextMessage_ExtendedTextMessageFontType ExtendedTextMessage::SANS_SERIF; constexpr ExtendedTextMessage_ExtendedTextMessageFontType ExtendedTextMessage::SERIF; constexpr ExtendedTextMessage_ExtendedTextMessageFontType ExtendedTextMessage::NORICAN_REGULAR; @@ -3865,7 +3972,7 @@ constexpr ExtendedTextMessage_ExtendedTextMessageFontType ExtendedTextMessage::O constexpr ExtendedTextMessage_ExtendedTextMessageFontType ExtendedTextMessage::ExtendedTextMessageFontType_MIN; constexpr ExtendedTextMessage_ExtendedTextMessageFontType ExtendedTextMessage::ExtendedTextMessageFontType_MAX; constexpr int ExtendedTextMessage::ExtendedTextMessageFontType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ExtendedTextMessage_ExtendedTextMessagePreviewType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[4]; @@ -3880,13 +3987,13 @@ bool ExtendedTextMessage_ExtendedTextMessagePreviewType_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ExtendedTextMessage_ExtendedTextMessagePreviewType ExtendedTextMessage::NONE; constexpr ExtendedTextMessage_ExtendedTextMessagePreviewType ExtendedTextMessage::VIDEO; constexpr ExtendedTextMessage_ExtendedTextMessagePreviewType ExtendedTextMessage::ExtendedTextMessagePreviewType_MIN; constexpr ExtendedTextMessage_ExtendedTextMessagePreviewType ExtendedTextMessage::ExtendedTextMessagePreviewType_MAX; constexpr int ExtendedTextMessage::ExtendedTextMessagePreviewType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VideoMessage_VideoMessageAttribution_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[5]; @@ -3902,14 +4009,14 @@ bool VideoMessage_VideoMessageAttribution_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr VideoMessage_VideoMessageAttribution VideoMessage::NONE; constexpr VideoMessage_VideoMessageAttribution VideoMessage::GIPHY; constexpr VideoMessage_VideoMessageAttribution VideoMessage::TENOR; constexpr VideoMessage_VideoMessageAttribution VideoMessage::VideoMessageAttribution_MIN; constexpr VideoMessage_VideoMessageAttribution VideoMessage::VideoMessageAttribution_MAX; constexpr int VideoMessage::VideoMessageAttribution_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ProtocolMessage_ProtocolMessageType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[6]; @@ -3931,7 +4038,7 @@ bool ProtocolMessage_ProtocolMessageType_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ProtocolMessage_ProtocolMessageType ProtocolMessage::REVOKE; constexpr ProtocolMessage_ProtocolMessageType ProtocolMessage::EPHEMERAL_SETTING; constexpr ProtocolMessage_ProtocolMessageType ProtocolMessage::EPHEMERAL_SYNC_RESPONSE; @@ -3944,7 +4051,7 @@ constexpr ProtocolMessage_ProtocolMessageType ProtocolMessage::APP_STATE_FATAL_E constexpr ProtocolMessage_ProtocolMessageType ProtocolMessage::ProtocolMessageType_MIN; constexpr ProtocolMessage_ProtocolMessageType ProtocolMessage::ProtocolMessageType_MAX; constexpr int ProtocolMessage::ProtocolMessageType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HistorySyncNotification_HistorySyncNotificationHistorySyncType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[7]; @@ -3962,7 +4069,7 @@ bool HistorySyncNotification_HistorySyncNotificationHistorySyncType_IsValid(int } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr HistorySyncNotification_HistorySyncNotificationHistorySyncType HistorySyncNotification::INITIAL_BOOTSTRAP; constexpr HistorySyncNotification_HistorySyncNotificationHistorySyncType HistorySyncNotification::INITIAL_STATUS_V3; constexpr HistorySyncNotification_HistorySyncNotificationHistorySyncType HistorySyncNotification::FULL; @@ -3971,7 +4078,7 @@ constexpr HistorySyncNotification_HistorySyncNotificationHistorySyncType History constexpr HistorySyncNotification_HistorySyncNotificationHistorySyncType HistorySyncNotification::HistorySyncNotificationHistorySyncType_MIN; constexpr HistorySyncNotification_HistorySyncNotificationHistorySyncType HistorySyncNotification::HistorySyncNotificationHistorySyncType_MAX; constexpr int HistorySyncNotification::HistorySyncNotificationHistorySyncType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[8]; @@ -3991,7 +4098,7 @@ bool HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComponent::MONDAY; constexpr HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComponent::TUESDAY; constexpr HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComponent::WEDNESDAY; @@ -4002,7 +4109,7 @@ constexpr HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComp constexpr HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComponent::HSMDateTimeComponentDayOfWeekType_MIN; constexpr HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComponent::HSMDateTimeComponentDayOfWeekType_MAX; constexpr int HSMDateTimeComponent::HSMDateTimeComponentDayOfWeekType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HSMDateTimeComponent_HSMDateTimeComponentCalendarType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[9]; @@ -4017,13 +4124,13 @@ bool HSMDateTimeComponent_HSMDateTimeComponentCalendarType_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr HSMDateTimeComponent_HSMDateTimeComponentCalendarType HSMDateTimeComponent::GREGORIAN; constexpr HSMDateTimeComponent_HSMDateTimeComponentCalendarType HSMDateTimeComponent::SOLAR_HIJRI; constexpr HSMDateTimeComponent_HSMDateTimeComponentCalendarType HSMDateTimeComponent::HSMDateTimeComponentCalendarType_MIN; constexpr HSMDateTimeComponent_HSMDateTimeComponentCalendarType HSMDateTimeComponent::HSMDateTimeComponentCalendarType_MAX; constexpr int HSMDateTimeComponent::HSMDateTimeComponentCalendarType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OrderMessage_OrderMessageOrderStatus_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[10]; @@ -4037,12 +4144,12 @@ bool OrderMessage_OrderMessageOrderStatus_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr OrderMessage_OrderMessageOrderStatus OrderMessage::INQUIRY; constexpr OrderMessage_OrderMessageOrderStatus OrderMessage::OrderMessageOrderStatus_MIN; constexpr OrderMessage_OrderMessageOrderStatus OrderMessage::OrderMessageOrderStatus_MAX; constexpr int OrderMessage::OrderMessageOrderStatus_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OrderMessage_OrderMessageOrderSurface_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[11]; @@ -4056,12 +4163,12 @@ bool OrderMessage_OrderMessageOrderSurface_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr OrderMessage_OrderMessageOrderSurface OrderMessage::CATALOG; constexpr OrderMessage_OrderMessageOrderSurface OrderMessage::OrderMessageOrderSurface_MIN; constexpr OrderMessage_OrderMessageOrderSurface OrderMessage::OrderMessageOrderSurface_MAX; constexpr int OrderMessage::OrderMessageOrderSurface_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ListMessage_ListMessageListType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[12]; @@ -4076,13 +4183,13 @@ bool ListMessage_ListMessageListType_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ListMessage_ListMessageListType ListMessage::UNKNOWN; constexpr ListMessage_ListMessageListType ListMessage::SINGLE_SELECT; constexpr ListMessage_ListMessageListType ListMessage::ListMessageListType_MIN; constexpr ListMessage_ListMessageListType ListMessage::ListMessageListType_MAX; constexpr int ListMessage::ListMessageListType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ListResponseMessage_ListResponseMessageListType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[13]; @@ -4097,13 +4204,13 @@ bool ListResponseMessage_ListResponseMessageListType_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ListResponseMessage_ListResponseMessageListType ListResponseMessage::UNKNOWN; constexpr ListResponseMessage_ListResponseMessageListType ListResponseMessage::SINGLE_SELECT; constexpr ListResponseMessage_ListResponseMessageListType ListResponseMessage::ListResponseMessageListType_MIN; constexpr ListResponseMessage_ListResponseMessageListType ListResponseMessage::ListResponseMessageListType_MAX; constexpr int ListResponseMessage::ListResponseMessageListType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Button_ButtonType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[14]; @@ -4118,13 +4225,13 @@ bool Button_ButtonType_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr Button_ButtonType Button::UNKNOWN; constexpr Button_ButtonType Button::RESPONSE; constexpr Button_ButtonType Button::ButtonType_MIN; constexpr Button_ButtonType Button::ButtonType_MAX; constexpr int Button::ButtonType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ButtonsMessage_ButtonsMessageHeaderType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[15]; @@ -4144,7 +4251,7 @@ bool ButtonsMessage_ButtonsMessageHeaderType_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ButtonsMessage_ButtonsMessageHeaderType ButtonsMessage::UNKNOWN; constexpr ButtonsMessage_ButtonsMessageHeaderType ButtonsMessage::EMPTY; constexpr ButtonsMessage_ButtonsMessageHeaderType ButtonsMessage::TEXT; @@ -4155,7 +4262,7 @@ constexpr ButtonsMessage_ButtonsMessageHeaderType ButtonsMessage::LOCATION; constexpr ButtonsMessage_ButtonsMessageHeaderType ButtonsMessage::ButtonsMessageHeaderType_MIN; constexpr ButtonsMessage_ButtonsMessageHeaderType ButtonsMessage::ButtonsMessageHeaderType_MAX; constexpr int ButtonsMessage::ButtonsMessageHeaderType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ButtonsResponseMessage_ButtonsResponseMessageType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[16]; @@ -4170,13 +4277,13 @@ bool ButtonsResponseMessage_ButtonsResponseMessageType_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr ButtonsResponseMessage_ButtonsResponseMessageType ButtonsResponseMessage::UNKNOWN; constexpr ButtonsResponseMessage_ButtonsResponseMessageType ButtonsResponseMessage::DISPLAY_TEXT; constexpr ButtonsResponseMessage_ButtonsResponseMessageType ButtonsResponseMessage::ButtonsResponseMessageType_MIN; constexpr ButtonsResponseMessage_ButtonsResponseMessageType ButtonsResponseMessage::ButtonsResponseMessageType_MAX; constexpr int ButtonsResponseMessage::ButtonsResponseMessageType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* WebFeatures_WebFeaturesFlag_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[17]; @@ -4193,7 +4300,7 @@ bool WebFeatures_WebFeaturesFlag_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr WebFeatures_WebFeaturesFlag WebFeatures::NOT_STARTED; constexpr WebFeatures_WebFeaturesFlag WebFeatures::FORCE_UPGRADE; constexpr WebFeatures_WebFeaturesFlag WebFeatures::DEVELOPMENT; @@ -4201,7 +4308,7 @@ constexpr WebFeatures_WebFeaturesFlag WebFeatures::PRODUCTION; constexpr WebFeatures_WebFeaturesFlag WebFeatures::WebFeaturesFlag_MIN; constexpr WebFeatures_WebFeaturesFlag WebFeatures::WebFeaturesFlag_MAX; constexpr int WebFeatures::WebFeaturesFlag_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PaymentInfo_PaymentInfoCurrency_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[18]; @@ -4216,13 +4323,13 @@ bool PaymentInfo_PaymentInfoCurrency_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr PaymentInfo_PaymentInfoCurrency PaymentInfo::UNKNOWN_CURRENCY; constexpr PaymentInfo_PaymentInfoCurrency PaymentInfo::INR; constexpr PaymentInfo_PaymentInfoCurrency PaymentInfo::PaymentInfoCurrency_MIN; constexpr PaymentInfo_PaymentInfoCurrency PaymentInfo::PaymentInfoCurrency_MAX; constexpr int PaymentInfo::PaymentInfoCurrency_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PaymentInfo_PaymentInfoStatus_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[19]; @@ -4247,7 +4354,7 @@ bool PaymentInfo_PaymentInfoStatus_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr PaymentInfo_PaymentInfoStatus PaymentInfo::UNKNOWN_STATUS; constexpr PaymentInfo_PaymentInfoStatus PaymentInfo::PROCESSING; constexpr PaymentInfo_PaymentInfoStatus PaymentInfo::SENT; @@ -4263,7 +4370,7 @@ constexpr PaymentInfo_PaymentInfoStatus PaymentInfo::WAITING; constexpr PaymentInfo_PaymentInfoStatus PaymentInfo::PaymentInfoStatus_MIN; constexpr PaymentInfo_PaymentInfoStatus PaymentInfo::PaymentInfoStatus_MAX; constexpr int PaymentInfo::PaymentInfoStatus_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PaymentInfo_PaymentInfoTxnStatus_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[20]; @@ -4304,7 +4411,7 @@ bool PaymentInfo_PaymentInfoTxnStatus_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::UNKNOWN; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::PENDING_SETUP; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::PENDING_RECEIVER_SETUP; @@ -4336,7 +4443,7 @@ constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::COLLECT_CANCELLING; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::PaymentInfoTxnStatus_MIN; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::PaymentInfoTxnStatus_MAX; constexpr int PaymentInfo::PaymentInfoTxnStatus_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* WebMessageInfo_WebMessageInfoStatus_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[21]; @@ -4355,7 +4462,7 @@ bool WebMessageInfo_WebMessageInfoStatus_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr WebMessageInfo_WebMessageInfoStatus WebMessageInfo::ERROR; constexpr WebMessageInfo_WebMessageInfoStatus WebMessageInfo::PENDING; constexpr WebMessageInfo_WebMessageInfoStatus WebMessageInfo::SERVER_ACK; @@ -4365,7 +4472,7 @@ constexpr WebMessageInfo_WebMessageInfoStatus WebMessageInfo::PLAYED; constexpr WebMessageInfo_WebMessageInfoStatus WebMessageInfo::WebMessageInfoStatus_MIN; constexpr WebMessageInfo_WebMessageInfoStatus WebMessageInfo::WebMessageInfoStatus_MAX; constexpr int WebMessageInfo::WebMessageInfoStatus_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* WebMessageInfo_WebMessageInfoStubType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[22]; @@ -4497,7 +4604,7 @@ bool WebMessageInfo_WebMessageInfoStubType_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::UNKNOWN; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::REVOKE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::CIPHERTEXT; @@ -4620,7 +4727,7 @@ constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::E2E_IDENTITY_UNA constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::WebMessageInfoStubType_MIN; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::WebMessageInfoStubType_MAX; constexpr int WebMessageInfo::WebMessageInfoStubType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* WebMessageInfo_WebMessageInfoBizPrivacyStatus_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[23]; @@ -4637,7 +4744,7 @@ bool WebMessageInfo_WebMessageInfoBizPrivacyStatus_IsValid(int value) { } } -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) constexpr WebMessageInfo_WebMessageInfoBizPrivacyStatus WebMessageInfo::E2EE; constexpr WebMessageInfo_WebMessageInfoBizPrivacyStatus WebMessageInfo::FB; constexpr WebMessageInfo_WebMessageInfoBizPrivacyStatus WebMessageInfo::BSP; @@ -4645,13 +4752,13 @@ constexpr WebMessageInfo_WebMessageInfoBizPrivacyStatus WebMessageInfo::BSP_AND_ constexpr WebMessageInfo_WebMessageInfoBizPrivacyStatus WebMessageInfo::WebMessageInfoBizPrivacyStatus_MIN; constexpr WebMessageInfo_WebMessageInfoBizPrivacyStatus WebMessageInfo::WebMessageInfoBizPrivacyStatus_MAX; constexpr int WebMessageInfo::WebMessageInfoBizPrivacyStatus_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) // =================================================================== class PaymentMoney::_Internal { public: - using HasBits = decltype(std::declval<PaymentMoney>()._has_bits_); + using HasBits = decltype(std::declval<PaymentMoney>()._impl_._has_bits_); static void set_has_value(HasBits* has_bits) { (*has_bits)[0] |= 2u; } @@ -4666,110 +4773,122 @@ class PaymentMoney::_Internal { PaymentMoney::PaymentMoney(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.PaymentMoney) } PaymentMoney::PaymentMoney(const PaymentMoney& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + PaymentMoney* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.currencycode_){} + , decltype(_impl_.value_){} + , decltype(_impl_.offset_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - currencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.currencycode_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.currencycode_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_currencycode()) { - currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_currencycode(), - GetArenaForAllocation()); + _this->_impl_.currencycode_.Set(from._internal_currencycode(), + _this->GetArenaForAllocation()); } - ::memcpy(&value_, &from.value_, - static_cast<size_t>(reinterpret_cast<char*>(&offset_) - - reinterpret_cast<char*>(&value_)) + sizeof(offset_)); + ::memcpy(&_impl_.value_, &from._impl_.value_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.offset_) - + reinterpret_cast<char*>(&_impl_.value_)) + sizeof(_impl_.offset_)); // @@protoc_insertion_point(copy_constructor:proto.PaymentMoney) } -void PaymentMoney::SharedCtor() { -currencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&value_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&offset_) - - reinterpret_cast<char*>(&value_)) + sizeof(offset_)); +inline void PaymentMoney::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.currencycode_){} + , decltype(_impl_.value_){int64_t{0}} + , decltype(_impl_.offset_){0u} + }; + _impl_.currencycode_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.currencycode_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } PaymentMoney::~PaymentMoney() { // @@protoc_insertion_point(destructor:proto.PaymentMoney) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void PaymentMoney::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - currencycode_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.currencycode_.Destroy(); } -void PaymentMoney::ArenaDtor(void* object) { - PaymentMoney* _this = reinterpret_cast< PaymentMoney* >(object); - (void)_this; -} -void PaymentMoney::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void PaymentMoney::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void PaymentMoney::Clear() { // @@protoc_insertion_point(message_clear_start:proto.PaymentMoney) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - currencycode_.ClearNonDefaultToEmpty(); + _impl_.currencycode_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000006u) { - ::memset(&value_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&offset_) - - reinterpret_cast<char*>(&value_)) + sizeof(offset_)); + ::memset(&_impl_.value_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.offset_) - + reinterpret_cast<char*>(&_impl_.value_)) + sizeof(_impl_.offset_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* PaymentMoney::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* PaymentMoney::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional int64 value = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { _Internal::set_has_value(&has_bits); - value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 offset = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { _Internal::set_has_offset(&has_bits); - offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string currencyCode = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { auto str = _internal_mutable_currencycode(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.PaymentMoney.currencyCode"); + ::_pbi::VerifyUTF8(str, "proto.PaymentMoney.currencyCode"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -4789,7 +4908,7 @@ const char* PaymentMoney::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -4797,23 +4916,23 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* PaymentMoney::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* PaymentMoney::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.PaymentMoney) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional int64 value = 1; if (cached_has_bits & 0x00000002u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_value(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_value(), target); } // optional uint32 offset = 2; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_offset(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_offset(), target); } // optional string currencyCode = 3; @@ -4827,7 +4946,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.PaymentMoney) @@ -4838,11 +4957,11 @@ size_t PaymentMoney::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.PaymentMoney) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string currencyCode = 3; if (cached_has_bits & 0x00000001u) { @@ -4853,51 +4972,47 @@ size_t PaymentMoney::ByteSizeLong() const { // optional int64 value = 1; if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_value()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_value()); } // optional uint32 offset = 2; if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_offset()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_offset()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PaymentMoney::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, PaymentMoney::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PaymentMoney::GetClassData() const { return &_class_data_; } -void PaymentMoney::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<PaymentMoney *>(to)->MergeFrom( - static_cast<const PaymentMoney &>(from)); -} - -void PaymentMoney::MergeFrom(const PaymentMoney& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.PaymentMoney) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void PaymentMoney::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<PaymentMoney*>(&to_msg); + auto& from = static_cast<const PaymentMoney&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.PaymentMoney) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _internal_set_currencycode(from._internal_currencycode()); + _this->_internal_set_currencycode(from._internal_currencycode()); } if (cached_has_bits & 0x00000002u) { - value_ = from.value_; + _this->_impl_.value_ = from._impl_.value_; } if (cached_has_bits & 0x00000004u) { - offset_ = from.offset_; + _this->_impl_.offset_ = from._impl_.offset_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PaymentMoney::CopyFrom(const PaymentMoney& from) { @@ -4916,22 +5031,21 @@ void PaymentMoney::InternalSwap(PaymentMoney* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ¤cycode_, lhs_arena, - &other->currencycode_, rhs_arena + &_impl_.currencycode_, lhs_arena, + &other->_impl_.currencycode_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(PaymentMoney, offset_) - + sizeof(PaymentMoney::offset_) - - PROTOBUF_FIELD_OFFSET(PaymentMoney, value_)>( - reinterpret_cast<char*>(&value_), - reinterpret_cast<char*>(&other->value_)); + PROTOBUF_FIELD_OFFSET(PaymentMoney, _impl_.offset_) + + sizeof(PaymentMoney::_impl_.offset_) + - PROTOBUF_FIELD_OFFSET(PaymentMoney, _impl_.value_)>( + reinterpret_cast<char*>(&_impl_.value_), + reinterpret_cast<char*>(&other->_impl_.value_)); } ::PROTOBUF_NAMESPACE_ID::Metadata PaymentMoney::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[0]); } @@ -4940,7 +5054,7 @@ void PaymentMoney::InternalSwap(PaymentMoney* other) { class HydratedQuickReplyButton::_Internal { public: - using HasBits = decltype(std::declval<HydratedQuickReplyButton>()._has_bits_); + using HasBits = decltype(std::declval<HydratedQuickReplyButton>()._impl_._has_bits_); static void set_has_displaytext(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -4952,104 +5066,124 @@ class HydratedQuickReplyButton::_Internal { HydratedQuickReplyButton::HydratedQuickReplyButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.HydratedQuickReplyButton) } HydratedQuickReplyButton::HydratedQuickReplyButton(const HydratedQuickReplyButton& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + HydratedQuickReplyButton* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.displaytext_){} + , decltype(_impl_.id_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.displaytext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.displaytext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_displaytext()) { - displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displaytext(), - GetArenaForAllocation()); + _this->_impl_.displaytext_.Set(from._internal_displaytext(), + _this->GetArenaForAllocation()); } - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_id()) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), - GetArenaForAllocation()); + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.HydratedQuickReplyButton) } -void HydratedQuickReplyButton::SharedCtor() { -displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void HydratedQuickReplyButton::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.displaytext_){} + , decltype(_impl_.id_){} + }; + _impl_.displaytext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.displaytext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } HydratedQuickReplyButton::~HydratedQuickReplyButton() { // @@protoc_insertion_point(destructor:proto.HydratedQuickReplyButton) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void HydratedQuickReplyButton::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - displaytext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.displaytext_.Destroy(); + _impl_.id_.Destroy(); } -void HydratedQuickReplyButton::ArenaDtor(void* object) { - HydratedQuickReplyButton* _this = reinterpret_cast< HydratedQuickReplyButton* >(object); - (void)_this; -} -void HydratedQuickReplyButton::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void HydratedQuickReplyButton::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void HydratedQuickReplyButton::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HydratedQuickReplyButton) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - displaytext_.ClearNonDefaultToEmpty(); + _impl_.displaytext_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - id_.ClearNonDefaultToEmpty(); + _impl_.id_.ClearNonDefaultToEmpty(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HydratedQuickReplyButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* HydratedQuickReplyButton::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string displayText = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_displaytext(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedQuickReplyButton.displayText"); + ::_pbi::VerifyUTF8(str, "proto.HydratedQuickReplyButton.displayText"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string id = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedQuickReplyButton.id"); + ::_pbi::VerifyUTF8(str, "proto.HydratedQuickReplyButton.id"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -5069,7 +5203,7 @@ const char* HydratedQuickReplyButton::_InternalParse(const char* ptr, ::PROTOBUF CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -5077,13 +5211,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* HydratedQuickReplyButton::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* HydratedQuickReplyButton::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.HydratedQuickReplyButton) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string displayText = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -5105,7 +5239,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HydratedQuickReplyButton) @@ -5116,11 +5250,11 @@ size_t HydratedQuickReplyButton::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.HydratedQuickReplyButton) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string displayText = 1; if (cached_has_bits & 0x00000001u) { @@ -5137,38 +5271,34 @@ size_t HydratedQuickReplyButton::ByteSizeLong() const { } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HydratedQuickReplyButton::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, HydratedQuickReplyButton::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HydratedQuickReplyButton::GetClassData() const { return &_class_data_; } -void HydratedQuickReplyButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<HydratedQuickReplyButton *>(to)->MergeFrom( - static_cast<const HydratedQuickReplyButton &>(from)); -} - -void HydratedQuickReplyButton::MergeFrom(const HydratedQuickReplyButton& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedQuickReplyButton) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void HydratedQuickReplyButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<HydratedQuickReplyButton*>(&to_msg); + auto& from = static_cast<const HydratedQuickReplyButton&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedQuickReplyButton) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _internal_set_displaytext(from._internal_displaytext()); + _this->_internal_set_displaytext(from._internal_displaytext()); } if (cached_has_bits & 0x00000002u) { - _internal_set_id(from._internal_id()); + _this->_internal_set_id(from._internal_id()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HydratedQuickReplyButton::CopyFrom(const HydratedQuickReplyButton& from) { @@ -5187,21 +5317,19 @@ void HydratedQuickReplyButton::InternalSwap(HydratedQuickReplyButton* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &displaytext_, lhs_arena, - &other->displaytext_, rhs_arena + &_impl_.displaytext_, lhs_arena, + &other->_impl_.displaytext_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &id_, lhs_arena, - &other->id_, rhs_arena + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena ); } ::PROTOBUF_NAMESPACE_ID::Metadata HydratedQuickReplyButton::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[1]); } @@ -5210,7 +5338,7 @@ void HydratedQuickReplyButton::InternalSwap(HydratedQuickReplyButton* other) { class HydratedURLButton::_Internal { public: - using HasBits = decltype(std::declval<HydratedURLButton>()._has_bits_); + using HasBits = decltype(std::declval<HydratedURLButton>()._impl_._has_bits_); static void set_has_displaytext(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -5222,104 +5350,124 @@ class HydratedURLButton::_Internal { HydratedURLButton::HydratedURLButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.HydratedURLButton) } HydratedURLButton::HydratedURLButton(const HydratedURLButton& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + HydratedURLButton* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.displaytext_){} + , decltype(_impl_.url_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.displaytext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.displaytext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_displaytext()) { - displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displaytext(), - GetArenaForAllocation()); + _this->_impl_.displaytext_.Set(from._internal_displaytext(), + _this->GetArenaForAllocation()); } - url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_url()) { - url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), - GetArenaForAllocation()); + _this->_impl_.url_.Set(from._internal_url(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.HydratedURLButton) } -void HydratedURLButton::SharedCtor() { -displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void HydratedURLButton::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.displaytext_){} + , decltype(_impl_.url_){} + }; + _impl_.displaytext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.displaytext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } HydratedURLButton::~HydratedURLButton() { // @@protoc_insertion_point(destructor:proto.HydratedURLButton) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void HydratedURLButton::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - displaytext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.displaytext_.Destroy(); + _impl_.url_.Destroy(); } -void HydratedURLButton::ArenaDtor(void* object) { - HydratedURLButton* _this = reinterpret_cast< HydratedURLButton* >(object); - (void)_this; -} -void HydratedURLButton::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void HydratedURLButton::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void HydratedURLButton::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HydratedURLButton) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - displaytext_.ClearNonDefaultToEmpty(); + _impl_.displaytext_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - url_.ClearNonDefaultToEmpty(); + _impl_.url_.ClearNonDefaultToEmpty(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HydratedURLButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* HydratedURLButton::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string displayText = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_displaytext(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedURLButton.displayText"); + ::_pbi::VerifyUTF8(str, "proto.HydratedURLButton.displayText"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string url = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_url(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedURLButton.url"); + ::_pbi::VerifyUTF8(str, "proto.HydratedURLButton.url"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -5339,7 +5487,7 @@ const char* HydratedURLButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -5347,13 +5495,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* HydratedURLButton::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* HydratedURLButton::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.HydratedURLButton) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string displayText = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -5375,7 +5523,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HydratedURLButton) @@ -5386,11 +5534,11 @@ size_t HydratedURLButton::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.HydratedURLButton) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string displayText = 1; if (cached_has_bits & 0x00000001u) { @@ -5407,38 +5555,34 @@ size_t HydratedURLButton::ByteSizeLong() const { } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HydratedURLButton::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, HydratedURLButton::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HydratedURLButton::GetClassData() const { return &_class_data_; } -void HydratedURLButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<HydratedURLButton *>(to)->MergeFrom( - static_cast<const HydratedURLButton &>(from)); -} - -void HydratedURLButton::MergeFrom(const HydratedURLButton& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedURLButton) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void HydratedURLButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<HydratedURLButton*>(&to_msg); + auto& from = static_cast<const HydratedURLButton&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedURLButton) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _internal_set_displaytext(from._internal_displaytext()); + _this->_internal_set_displaytext(from._internal_displaytext()); } if (cached_has_bits & 0x00000002u) { - _internal_set_url(from._internal_url()); + _this->_internal_set_url(from._internal_url()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HydratedURLButton::CopyFrom(const HydratedURLButton& from) { @@ -5457,21 +5601,19 @@ void HydratedURLButton::InternalSwap(HydratedURLButton* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &displaytext_, lhs_arena, - &other->displaytext_, rhs_arena + &_impl_.displaytext_, lhs_arena, + &other->_impl_.displaytext_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &url_, lhs_arena, - &other->url_, rhs_arena + &_impl_.url_, lhs_arena, + &other->_impl_.url_, rhs_arena ); } ::PROTOBUF_NAMESPACE_ID::Metadata HydratedURLButton::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[2]); } @@ -5480,7 +5622,7 @@ void HydratedURLButton::InternalSwap(HydratedURLButton* other) { class HydratedCallButton::_Internal { public: - using HasBits = decltype(std::declval<HydratedCallButton>()._has_bits_); + using HasBits = decltype(std::declval<HydratedCallButton>()._impl_._has_bits_); static void set_has_displaytext(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -5492,104 +5634,124 @@ class HydratedCallButton::_Internal { HydratedCallButton::HydratedCallButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.HydratedCallButton) } HydratedCallButton::HydratedCallButton(const HydratedCallButton& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + HydratedCallButton* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.displaytext_){} + , decltype(_impl_.phonenumber_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.displaytext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.displaytext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_displaytext()) { - displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displaytext(), - GetArenaForAllocation()); + _this->_impl_.displaytext_.Set(from._internal_displaytext(), + _this->GetArenaForAllocation()); } - phonenumber_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.phonenumber_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.phonenumber_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_phonenumber()) { - phonenumber_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_phonenumber(), - GetArenaForAllocation()); + _this->_impl_.phonenumber_.Set(from._internal_phonenumber(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.HydratedCallButton) } -void HydratedCallButton::SharedCtor() { -displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -phonenumber_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void HydratedCallButton::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.displaytext_){} + , decltype(_impl_.phonenumber_){} + }; + _impl_.displaytext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.displaytext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.phonenumber_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.phonenumber_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } HydratedCallButton::~HydratedCallButton() { // @@protoc_insertion_point(destructor:proto.HydratedCallButton) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void HydratedCallButton::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - displaytext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - phonenumber_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.displaytext_.Destroy(); + _impl_.phonenumber_.Destroy(); } -void HydratedCallButton::ArenaDtor(void* object) { - HydratedCallButton* _this = reinterpret_cast< HydratedCallButton* >(object); - (void)_this; -} -void HydratedCallButton::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void HydratedCallButton::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void HydratedCallButton::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HydratedCallButton) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - displaytext_.ClearNonDefaultToEmpty(); + _impl_.displaytext_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - phonenumber_.ClearNonDefaultToEmpty(); + _impl_.phonenumber_.ClearNonDefaultToEmpty(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HydratedCallButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* HydratedCallButton::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string displayText = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_displaytext(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedCallButton.displayText"); + ::_pbi::VerifyUTF8(str, "proto.HydratedCallButton.displayText"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string phoneNumber = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_phonenumber(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedCallButton.phoneNumber"); + ::_pbi::VerifyUTF8(str, "proto.HydratedCallButton.phoneNumber"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -5609,7 +5771,7 @@ const char* HydratedCallButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMES CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -5617,13 +5779,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* HydratedCallButton::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* HydratedCallButton::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.HydratedCallButton) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string displayText = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -5645,7 +5807,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HydratedCallButton) @@ -5656,11 +5818,11 @@ size_t HydratedCallButton::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.HydratedCallButton) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string displayText = 1; if (cached_has_bits & 0x00000001u) { @@ -5677,38 +5839,34 @@ size_t HydratedCallButton::ByteSizeLong() const { } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HydratedCallButton::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, HydratedCallButton::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HydratedCallButton::GetClassData() const { return &_class_data_; } -void HydratedCallButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<HydratedCallButton *>(to)->MergeFrom( - static_cast<const HydratedCallButton &>(from)); -} - -void HydratedCallButton::MergeFrom(const HydratedCallButton& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedCallButton) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void HydratedCallButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<HydratedCallButton*>(&to_msg); + auto& from = static_cast<const HydratedCallButton&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedCallButton) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _internal_set_displaytext(from._internal_displaytext()); + _this->_internal_set_displaytext(from._internal_displaytext()); } if (cached_has_bits & 0x00000002u) { - _internal_set_phonenumber(from._internal_phonenumber()); + _this->_internal_set_phonenumber(from._internal_phonenumber()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HydratedCallButton::CopyFrom(const HydratedCallButton& from) { @@ -5727,21 +5885,19 @@ void HydratedCallButton::InternalSwap(HydratedCallButton* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &displaytext_, lhs_arena, - &other->displaytext_, rhs_arena + &_impl_.displaytext_, lhs_arena, + &other->_impl_.displaytext_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &phonenumber_, lhs_arena, - &other->phonenumber_, rhs_arena + &_impl_.phonenumber_, lhs_arena, + &other->_impl_.phonenumber_, rhs_arena ); } ::PROTOBUF_NAMESPACE_ID::Metadata HydratedCallButton::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[3]); } @@ -5750,7 +5906,7 @@ void HydratedCallButton::InternalSwap(HydratedCallButton* other) { class HydratedTemplateButton::_Internal { public: - using HasBits = decltype(std::declval<HydratedTemplateButton>()._has_bits_); + using HasBits = decltype(std::declval<HydratedTemplateButton>()._impl_._has_bits_); static void set_has_index(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -5761,28 +5917,28 @@ class HydratedTemplateButton::_Internal { const ::proto::HydratedQuickReplyButton& HydratedTemplateButton::_Internal::quickreplybutton(const HydratedTemplateButton* msg) { - return *msg->hydratedButton_.quickreplybutton_; + return *msg->_impl_.hydratedButton_.quickreplybutton_; } const ::proto::HydratedURLButton& HydratedTemplateButton::_Internal::urlbutton(const HydratedTemplateButton* msg) { - return *msg->hydratedButton_.urlbutton_; + return *msg->_impl_.hydratedButton_.urlbutton_; } const ::proto::HydratedCallButton& HydratedTemplateButton::_Internal::callbutton(const HydratedTemplateButton* msg) { - return *msg->hydratedButton_.callbutton_; + return *msg->_impl_.hydratedButton_.callbutton_; } void HydratedTemplateButton::set_allocated_quickreplybutton(::proto::HydratedQuickReplyButton* quickreplybutton) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_hydratedButton(); if (quickreplybutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HydratedQuickReplyButton>::GetOwningArena(quickreplybutton); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(quickreplybutton); if (message_arena != submessage_arena) { quickreplybutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, quickreplybutton, submessage_arena); } set_has_quickreplybutton(); - hydratedButton_.quickreplybutton_ = quickreplybutton; + _impl_.hydratedButton_.quickreplybutton_ = quickreplybutton; } // @@protoc_insertion_point(field_set_allocated:proto.HydratedTemplateButton.quickReplyButton) } @@ -5791,13 +5947,13 @@ void HydratedTemplateButton::set_allocated_urlbutton(::proto::HydratedURLButton* clear_hydratedButton(); if (urlbutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HydratedURLButton>::GetOwningArena(urlbutton); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(urlbutton); if (message_arena != submessage_arena) { urlbutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, urlbutton, submessage_arena); } set_has_urlbutton(); - hydratedButton_.urlbutton_ = urlbutton; + _impl_.hydratedButton_.urlbutton_ = urlbutton; } // @@protoc_insertion_point(field_set_allocated:proto.HydratedTemplateButton.urlButton) } @@ -5806,42 +5962,49 @@ void HydratedTemplateButton::set_allocated_callbutton(::proto::HydratedCallButto clear_hydratedButton(); if (callbutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HydratedCallButton>::GetOwningArena(callbutton); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(callbutton); if (message_arena != submessage_arena) { callbutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, callbutton, submessage_arena); } set_has_callbutton(); - hydratedButton_.callbutton_ = callbutton; + _impl_.hydratedButton_.callbutton_ = callbutton; } // @@protoc_insertion_point(field_set_allocated:proto.HydratedTemplateButton.callButton) } HydratedTemplateButton::HydratedTemplateButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.HydratedTemplateButton) } HydratedTemplateButton::HydratedTemplateButton(const HydratedTemplateButton& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + HydratedTemplateButton* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.index_){} + , decltype(_impl_.hydratedButton_){} + , /*decltype(_impl_._oneof_case_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - index_ = from.index_; + _this->_impl_.index_ = from._impl_.index_; clear_has_hydratedButton(); switch (from.hydratedButton_case()) { case kQuickReplyButton: { - _internal_mutable_quickreplybutton()->::proto::HydratedQuickReplyButton::MergeFrom(from._internal_quickreplybutton()); + _this->_internal_mutable_quickreplybutton()->::proto::HydratedQuickReplyButton::MergeFrom( + from._internal_quickreplybutton()); break; } case kUrlButton: { - _internal_mutable_urlbutton()->::proto::HydratedURLButton::MergeFrom(from._internal_urlbutton()); + _this->_internal_mutable_urlbutton()->::proto::HydratedURLButton::MergeFrom( + from._internal_urlbutton()); break; } case kCallButton: { - _internal_mutable_callbutton()->::proto::HydratedCallButton::MergeFrom(from._internal_callbutton()); + _this->_internal_mutable_callbutton()->::proto::HydratedCallButton::MergeFrom( + from._internal_callbutton()); break; } case HYDRATEDBUTTON_NOT_SET: { @@ -5851,16 +6014,27 @@ HydratedTemplateButton::HydratedTemplateButton(const HydratedTemplateButton& fro // @@protoc_insertion_point(copy_constructor:proto.HydratedTemplateButton) } -void HydratedTemplateButton::SharedCtor() { -index_ = 0u; -clear_has_hydratedButton(); +inline void HydratedTemplateButton::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.index_){0u} + , decltype(_impl_.hydratedButton_){} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_hydratedButton(); } HydratedTemplateButton::~HydratedTemplateButton() { // @@protoc_insertion_point(destructor:proto.HydratedTemplateButton) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void HydratedTemplateButton::SharedDtor() { @@ -5870,14 +6044,8 @@ inline void HydratedTemplateButton::SharedDtor() { } } -void HydratedTemplateButton::ArenaDtor(void* object) { - HydratedTemplateButton* _this = reinterpret_cast< HydratedTemplateButton* >(object); - (void)_this; -} -void HydratedTemplateButton::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void HydratedTemplateButton::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void HydratedTemplateButton::clear_hydratedButton() { @@ -5885,19 +6053,19 @@ void HydratedTemplateButton::clear_hydratedButton() { switch (hydratedButton_case()) { case kQuickReplyButton: { if (GetArenaForAllocation() == nullptr) { - delete hydratedButton_.quickreplybutton_; + delete _impl_.hydratedButton_.quickreplybutton_; } break; } case kUrlButton: { if (GetArenaForAllocation() == nullptr) { - delete hydratedButton_.urlbutton_; + delete _impl_.hydratedButton_.urlbutton_; } break; } case kCallButton: { if (GetArenaForAllocation() == nullptr) { - delete hydratedButton_.callbutton_; + delete _impl_.hydratedButton_.callbutton_; } break; } @@ -5905,32 +6073,32 @@ void HydratedTemplateButton::clear_hydratedButton() { break; } } - _oneof_case_[0] = HYDRATEDBUTTON_NOT_SET; + _impl_._oneof_case_[0] = HYDRATEDBUTTON_NOT_SET; } void HydratedTemplateButton::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HydratedTemplateButton) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - index_ = 0u; + _impl_.index_ = 0u; clear_hydratedButton(); - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HydratedTemplateButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* HydratedTemplateButton::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .proto.HydratedQuickReplyButton quickReplyButton = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_quickreplybutton(), ptr); CHK_(ptr); } else @@ -5938,7 +6106,7 @@ const char* HydratedTemplateButton::_InternalParse(const char* ptr, ::PROTOBUF_N continue; // .proto.HydratedURLButton urlButton = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_urlbutton(), ptr); CHK_(ptr); } else @@ -5946,7 +6114,7 @@ const char* HydratedTemplateButton::_InternalParse(const char* ptr, ::PROTOBUF_N continue; // .proto.HydratedCallButton callButton = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_callbutton(), ptr); CHK_(ptr); } else @@ -5954,9 +6122,9 @@ const char* HydratedTemplateButton::_InternalParse(const char* ptr, ::PROTOBUF_N continue; // optional uint32 index = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { _Internal::set_has_index(&has_bits); - index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -5977,7 +6145,7 @@ const char* HydratedTemplateButton::_InternalParse(const char* ptr, ::PROTOBUF_N CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -5985,45 +6153,42 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* HydratedTemplateButton::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* HydratedTemplateButton::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.HydratedTemplateButton) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (hydratedButton_case()) { case kQuickReplyButton: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::quickreplybutton(this), target, stream); + InternalWriteMessage(1, _Internal::quickreplybutton(this), + _Internal::quickreplybutton(this).GetCachedSize(), target, stream); break; } case kUrlButton: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::urlbutton(this), target, stream); + InternalWriteMessage(2, _Internal::urlbutton(this), + _Internal::urlbutton(this).GetCachedSize(), target, stream); break; } case kCallButton: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::callbutton(this), target, stream); + InternalWriteMessage(3, _Internal::callbutton(this), + _Internal::callbutton(this).GetCachedSize(), target, stream); break; } default: ; } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional uint32 index = 4; if (cached_has_bits & 0x00000001u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_index(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_index(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HydratedTemplateButton) @@ -6034,14 +6199,14 @@ size_t HydratedTemplateButton::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.HydratedTemplateButton) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional uint32 index = 4; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); } switch (hydratedButton_case()) { @@ -6049,70 +6214,69 @@ size_t HydratedTemplateButton::ByteSizeLong() const { case kQuickReplyButton: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *hydratedButton_.quickreplybutton_); + *_impl_.hydratedButton_.quickreplybutton_); break; } // .proto.HydratedURLButton urlButton = 2; case kUrlButton: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *hydratedButton_.urlbutton_); + *_impl_.hydratedButton_.urlbutton_); break; } // .proto.HydratedCallButton callButton = 3; case kCallButton: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *hydratedButton_.callbutton_); + *_impl_.hydratedButton_.callbutton_); break; } case HYDRATEDBUTTON_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HydratedTemplateButton::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, HydratedTemplateButton::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HydratedTemplateButton::GetClassData() const { return &_class_data_; } -void HydratedTemplateButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<HydratedTemplateButton *>(to)->MergeFrom( - static_cast<const HydratedTemplateButton &>(from)); -} - -void HydratedTemplateButton::MergeFrom(const HydratedTemplateButton& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedTemplateButton) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void HydratedTemplateButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<HydratedTemplateButton*>(&to_msg); + auto& from = static_cast<const HydratedTemplateButton&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedTemplateButton) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_index()) { - _internal_set_index(from._internal_index()); + _this->_internal_set_index(from._internal_index()); } switch (from.hydratedButton_case()) { case kQuickReplyButton: { - _internal_mutable_quickreplybutton()->::proto::HydratedQuickReplyButton::MergeFrom(from._internal_quickreplybutton()); + _this->_internal_mutable_quickreplybutton()->::proto::HydratedQuickReplyButton::MergeFrom( + from._internal_quickreplybutton()); break; } case kUrlButton: { - _internal_mutable_urlbutton()->::proto::HydratedURLButton::MergeFrom(from._internal_urlbutton()); + _this->_internal_mutable_urlbutton()->::proto::HydratedURLButton::MergeFrom( + from._internal_urlbutton()); break; } case kCallButton: { - _internal_mutable_callbutton()->::proto::HydratedCallButton::MergeFrom(from._internal_callbutton()); + _this->_internal_mutable_callbutton()->::proto::HydratedCallButton::MergeFrom( + from._internal_callbutton()); break; } case HYDRATEDBUTTON_NOT_SET: { break; } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HydratedTemplateButton::CopyFrom(const HydratedTemplateButton& from) { @@ -6129,14 +6293,14 @@ bool HydratedTemplateButton::IsInitialized() const { void HydratedTemplateButton::InternalSwap(HydratedTemplateButton* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(index_, other->index_); - swap(hydratedButton_, other->hydratedButton_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.index_, other->_impl_.index_); + swap(_impl_.hydratedButton_, other->_impl_.hydratedButton_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata HydratedTemplateButton::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[4]); } @@ -6145,7 +6309,7 @@ void HydratedTemplateButton::InternalSwap(HydratedTemplateButton* other) { class QuickReplyButton::_Internal { public: - using HasBits = decltype(std::declval<QuickReplyButton>()._has_bits_); + using HasBits = decltype(std::declval<QuickReplyButton>()._impl_._has_bits_); static const ::proto::HighlyStructuredMessage& displaytext(const QuickReplyButton* msg); static void set_has_displaytext(HasBits* has_bits) { (*has_bits)[0] |= 2u; @@ -6157,92 +6321,103 @@ class QuickReplyButton::_Internal { const ::proto::HighlyStructuredMessage& QuickReplyButton::_Internal::displaytext(const QuickReplyButton* msg) { - return *msg->displaytext_; + return *msg->_impl_.displaytext_; } QuickReplyButton::QuickReplyButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.QuickReplyButton) } QuickReplyButton::QuickReplyButton(const QuickReplyButton& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + QuickReplyButton* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.id_){} + , decltype(_impl_.displaytext_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_id()) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), - GetArenaForAllocation()); + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); } if (from._internal_has_displaytext()) { - displaytext_ = new ::proto::HighlyStructuredMessage(*from.displaytext_); - } else { - displaytext_ = nullptr; + _this->_impl_.displaytext_ = new ::proto::HighlyStructuredMessage(*from._impl_.displaytext_); } // @@protoc_insertion_point(copy_constructor:proto.QuickReplyButton) } -void QuickReplyButton::SharedCtor() { -id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -displaytext_ = nullptr; +inline void QuickReplyButton::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.id_){} + , decltype(_impl_.displaytext_){nullptr} + }; + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } QuickReplyButton::~QuickReplyButton() { // @@protoc_insertion_point(destructor:proto.QuickReplyButton) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void QuickReplyButton::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete displaytext_; + _impl_.id_.Destroy(); + if (this != internal_default_instance()) delete _impl_.displaytext_; } -void QuickReplyButton::ArenaDtor(void* object) { - QuickReplyButton* _this = reinterpret_cast< QuickReplyButton* >(object); - (void)_this; -} -void QuickReplyButton::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void QuickReplyButton::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void QuickReplyButton::Clear() { // @@protoc_insertion_point(message_clear_start:proto.QuickReplyButton) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - id_.ClearNonDefaultToEmpty(); + _impl_.id_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(displaytext_ != nullptr); - displaytext_->Clear(); + GOOGLE_DCHECK(_impl_.displaytext_ != nullptr); + _impl_.displaytext_->Clear(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* QuickReplyButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* QuickReplyButton::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional .proto.HighlyStructuredMessage displayText = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_displaytext(), ptr); CHK_(ptr); } else @@ -6250,13 +6425,13 @@ const char* QuickReplyButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPA continue; // optional string id = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.QuickReplyButton.id"); + ::_pbi::VerifyUTF8(str, "proto.QuickReplyButton.id"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -6276,7 +6451,7 @@ const char* QuickReplyButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPA CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -6284,19 +6459,18 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* QuickReplyButton::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* QuickReplyButton::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.QuickReplyButton) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.HighlyStructuredMessage displayText = 1; if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::displaytext(this), target, stream); + InternalWriteMessage(1, _Internal::displaytext(this), + _Internal::displaytext(this).GetCachedSize(), target, stream); } // optional string id = 2; @@ -6310,7 +6484,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.QuickReplyButton) @@ -6321,11 +6495,11 @@ size_t QuickReplyButton::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.QuickReplyButton) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string id = 2; if (cached_has_bits & 0x00000001u) { @@ -6338,42 +6512,39 @@ size_t QuickReplyButton::ByteSizeLong() const { if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *displaytext_); + *_impl_.displaytext_); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData QuickReplyButton::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, QuickReplyButton::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*QuickReplyButton::GetClassData() const { return &_class_data_; } -void QuickReplyButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<QuickReplyButton *>(to)->MergeFrom( - static_cast<const QuickReplyButton &>(from)); -} - -void QuickReplyButton::MergeFrom(const QuickReplyButton& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.QuickReplyButton) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void QuickReplyButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<QuickReplyButton*>(&to_msg); + auto& from = static_cast<const QuickReplyButton&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.QuickReplyButton) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _internal_set_id(from._internal_id()); + _this->_internal_set_id(from._internal_id()); } if (cached_has_bits & 0x00000002u) { - _internal_mutable_displaytext()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_displaytext()); + _this->_internal_mutable_displaytext()->::proto::HighlyStructuredMessage::MergeFrom( + from._internal_displaytext()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void QuickReplyButton::CopyFrom(const QuickReplyButton& from) { @@ -6392,17 +6563,16 @@ void QuickReplyButton::InternalSwap(QuickReplyButton* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &id_, lhs_arena, - &other->id_, rhs_arena + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena ); - swap(displaytext_, other->displaytext_); + swap(_impl_.displaytext_, other->_impl_.displaytext_); } ::PROTOBUF_NAMESPACE_ID::Metadata QuickReplyButton::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[5]); } @@ -6411,7 +6581,7 @@ void QuickReplyButton::InternalSwap(QuickReplyButton* other) { class URLButton::_Internal { public: - using HasBits = decltype(std::declval<URLButton>()._has_bits_); + using HasBits = decltype(std::declval<URLButton>()._impl_._has_bits_); static const ::proto::HighlyStructuredMessage& displaytext(const URLButton* msg); static void set_has_displaytext(HasBits* has_bits) { (*has_bits)[0] |= 1u; @@ -6424,99 +6594,99 @@ class URLButton::_Internal { const ::proto::HighlyStructuredMessage& URLButton::_Internal::displaytext(const URLButton* msg) { - return *msg->displaytext_; + return *msg->_impl_.displaytext_; } const ::proto::HighlyStructuredMessage& URLButton::_Internal::url(const URLButton* msg) { - return *msg->url_; + return *msg->_impl_.url_; } URLButton::URLButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.URLButton) } URLButton::URLButton(const URLButton& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + URLButton* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.displaytext_){nullptr} + , decltype(_impl_.url_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_displaytext()) { - displaytext_ = new ::proto::HighlyStructuredMessage(*from.displaytext_); - } else { - displaytext_ = nullptr; + _this->_impl_.displaytext_ = new ::proto::HighlyStructuredMessage(*from._impl_.displaytext_); } if (from._internal_has_url()) { - url_ = new ::proto::HighlyStructuredMessage(*from.url_); - } else { - url_ = nullptr; + _this->_impl_.url_ = new ::proto::HighlyStructuredMessage(*from._impl_.url_); } // @@protoc_insertion_point(copy_constructor:proto.URLButton) } -void URLButton::SharedCtor() { -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&displaytext_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&url_) - - reinterpret_cast<char*>(&displaytext_)) + sizeof(url_)); +inline void URLButton::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.displaytext_){nullptr} + , decltype(_impl_.url_){nullptr} + }; } URLButton::~URLButton() { // @@protoc_insertion_point(destructor:proto.URLButton) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void URLButton::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete displaytext_; - if (this != internal_default_instance()) delete url_; + if (this != internal_default_instance()) delete _impl_.displaytext_; + if (this != internal_default_instance()) delete _impl_.url_; } -void URLButton::ArenaDtor(void* object) { - URLButton* _this = reinterpret_cast< URLButton* >(object); - (void)_this; -} -void URLButton::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void URLButton::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void URLButton::Clear() { // @@protoc_insertion_point(message_clear_start:proto.URLButton) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(displaytext_ != nullptr); - displaytext_->Clear(); + GOOGLE_DCHECK(_impl_.displaytext_ != nullptr); + _impl_.displaytext_->Clear(); } if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(url_ != nullptr); - url_->Clear(); + GOOGLE_DCHECK(_impl_.url_ != nullptr); + _impl_.url_->Clear(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* URLButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* URLButton::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional .proto.HighlyStructuredMessage displayText = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_displaytext(), ptr); CHK_(ptr); } else @@ -6524,7 +6694,7 @@ const char* URLButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID:: continue; // optional .proto.HighlyStructuredMessage url = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_url(), ptr); CHK_(ptr); } else @@ -6546,7 +6716,7 @@ const char* URLButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID:: CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -6554,31 +6724,29 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* URLButton::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* URLButton::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.URLButton) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.HighlyStructuredMessage displayText = 1; if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::displaytext(this), target, stream); + InternalWriteMessage(1, _Internal::displaytext(this), + _Internal::displaytext(this).GetCachedSize(), target, stream); } // optional .proto.HighlyStructuredMessage url = 2; if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::url(this), target, stream); + InternalWriteMessage(2, _Internal::url(this), + _Internal::url(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.URLButton) @@ -6589,59 +6757,57 @@ size_t URLButton::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.URLButton) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional .proto.HighlyStructuredMessage displayText = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *displaytext_); + *_impl_.displaytext_); } // optional .proto.HighlyStructuredMessage url = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *url_); + *_impl_.url_); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData URLButton::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, URLButton::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*URLButton::GetClassData() const { return &_class_data_; } -void URLButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<URLButton *>(to)->MergeFrom( - static_cast<const URLButton &>(from)); -} - -void URLButton::MergeFrom(const URLButton& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.URLButton) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void URLButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<URLButton*>(&to_msg); + auto& from = static_cast<const URLButton&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.URLButton) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _internal_mutable_displaytext()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_displaytext()); + _this->_internal_mutable_displaytext()->::proto::HighlyStructuredMessage::MergeFrom( + from._internal_displaytext()); } if (cached_has_bits & 0x00000002u) { - _internal_mutable_url()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_url()); + _this->_internal_mutable_url()->::proto::HighlyStructuredMessage::MergeFrom( + from._internal_url()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void URLButton::CopyFrom(const URLButton& from) { @@ -6658,17 +6824,17 @@ bool URLButton::IsInitialized() const { void URLButton::InternalSwap(URLButton* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(URLButton, url_) - + sizeof(URLButton::url_) - - PROTOBUF_FIELD_OFFSET(URLButton, displaytext_)>( - reinterpret_cast<char*>(&displaytext_), - reinterpret_cast<char*>(&other->displaytext_)); + PROTOBUF_FIELD_OFFSET(URLButton, _impl_.url_) + + sizeof(URLButton::_impl_.url_) + - PROTOBUF_FIELD_OFFSET(URLButton, _impl_.displaytext_)>( + reinterpret_cast<char*>(&_impl_.displaytext_), + reinterpret_cast<char*>(&other->_impl_.displaytext_)); } ::PROTOBUF_NAMESPACE_ID::Metadata URLButton::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[6]); } @@ -6677,7 +6843,7 @@ void URLButton::InternalSwap(URLButton* other) { class CallButton::_Internal { public: - using HasBits = decltype(std::declval<CallButton>()._has_bits_); + using HasBits = decltype(std::declval<CallButton>()._impl_._has_bits_); static const ::proto::HighlyStructuredMessage& displaytext(const CallButton* msg); static void set_has_displaytext(HasBits* has_bits) { (*has_bits)[0] |= 1u; @@ -6690,99 +6856,99 @@ class CallButton::_Internal { const ::proto::HighlyStructuredMessage& CallButton::_Internal::displaytext(const CallButton* msg) { - return *msg->displaytext_; + return *msg->_impl_.displaytext_; } const ::proto::HighlyStructuredMessage& CallButton::_Internal::phonenumber(const CallButton* msg) { - return *msg->phonenumber_; + return *msg->_impl_.phonenumber_; } CallButton::CallButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.CallButton) } CallButton::CallButton(const CallButton& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + CallButton* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.displaytext_){nullptr} + , decltype(_impl_.phonenumber_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_displaytext()) { - displaytext_ = new ::proto::HighlyStructuredMessage(*from.displaytext_); - } else { - displaytext_ = nullptr; + _this->_impl_.displaytext_ = new ::proto::HighlyStructuredMessage(*from._impl_.displaytext_); } if (from._internal_has_phonenumber()) { - phonenumber_ = new ::proto::HighlyStructuredMessage(*from.phonenumber_); - } else { - phonenumber_ = nullptr; + _this->_impl_.phonenumber_ = new ::proto::HighlyStructuredMessage(*from._impl_.phonenumber_); } // @@protoc_insertion_point(copy_constructor:proto.CallButton) } -void CallButton::SharedCtor() { -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&displaytext_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&phonenumber_) - - reinterpret_cast<char*>(&displaytext_)) + sizeof(phonenumber_)); +inline void CallButton::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.displaytext_){nullptr} + , decltype(_impl_.phonenumber_){nullptr} + }; } CallButton::~CallButton() { // @@protoc_insertion_point(destructor:proto.CallButton) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void CallButton::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete displaytext_; - if (this != internal_default_instance()) delete phonenumber_; + if (this != internal_default_instance()) delete _impl_.displaytext_; + if (this != internal_default_instance()) delete _impl_.phonenumber_; } -void CallButton::ArenaDtor(void* object) { - CallButton* _this = reinterpret_cast< CallButton* >(object); - (void)_this; -} -void CallButton::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void CallButton::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CallButton::Clear() { // @@protoc_insertion_point(message_clear_start:proto.CallButton) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(displaytext_ != nullptr); - displaytext_->Clear(); + GOOGLE_DCHECK(_impl_.displaytext_ != nullptr); + _impl_.displaytext_->Clear(); } if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(phonenumber_ != nullptr); - phonenumber_->Clear(); + GOOGLE_DCHECK(_impl_.phonenumber_ != nullptr); + _impl_.phonenumber_->Clear(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* CallButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* CallButton::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional .proto.HighlyStructuredMessage displayText = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_displaytext(), ptr); CHK_(ptr); } else @@ -6790,7 +6956,7 @@ const char* CallButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: continue; // optional .proto.HighlyStructuredMessage phoneNumber = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_phonenumber(), ptr); CHK_(ptr); } else @@ -6812,7 +6978,7 @@ const char* CallButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -6820,31 +6986,29 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* CallButton::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* CallButton::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.CallButton) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.HighlyStructuredMessage displayText = 1; if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::displaytext(this), target, stream); + InternalWriteMessage(1, _Internal::displaytext(this), + _Internal::displaytext(this).GetCachedSize(), target, stream); } // optional .proto.HighlyStructuredMessage phoneNumber = 2; if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::phonenumber(this), target, stream); + InternalWriteMessage(2, _Internal::phonenumber(this), + _Internal::phonenumber(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.CallButton) @@ -6855,59 +7019,57 @@ size_t CallButton::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.CallButton) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional .proto.HighlyStructuredMessage displayText = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *displaytext_); + *_impl_.displaytext_); } // optional .proto.HighlyStructuredMessage phoneNumber = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *phonenumber_); + *_impl_.phonenumber_); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CallButton::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, CallButton::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CallButton::GetClassData() const { return &_class_data_; } -void CallButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<CallButton *>(to)->MergeFrom( - static_cast<const CallButton &>(from)); -} - -void CallButton::MergeFrom(const CallButton& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.CallButton) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void CallButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<CallButton*>(&to_msg); + auto& from = static_cast<const CallButton&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.CallButton) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _internal_mutable_displaytext()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_displaytext()); + _this->_internal_mutable_displaytext()->::proto::HighlyStructuredMessage::MergeFrom( + from._internal_displaytext()); } if (cached_has_bits & 0x00000002u) { - _internal_mutable_phonenumber()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_phonenumber()); + _this->_internal_mutable_phonenumber()->::proto::HighlyStructuredMessage::MergeFrom( + from._internal_phonenumber()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CallButton::CopyFrom(const CallButton& from) { @@ -6924,17 +7086,17 @@ bool CallButton::IsInitialized() const { void CallButton::InternalSwap(CallButton* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(CallButton, phonenumber_) - + sizeof(CallButton::phonenumber_) - - PROTOBUF_FIELD_OFFSET(CallButton, displaytext_)>( - reinterpret_cast<char*>(&displaytext_), - reinterpret_cast<char*>(&other->displaytext_)); + PROTOBUF_FIELD_OFFSET(CallButton, _impl_.phonenumber_) + + sizeof(CallButton::_impl_.phonenumber_) + - PROTOBUF_FIELD_OFFSET(CallButton, _impl_.displaytext_)>( + reinterpret_cast<char*>(&_impl_.displaytext_), + reinterpret_cast<char*>(&other->_impl_.displaytext_)); } ::PROTOBUF_NAMESPACE_ID::Metadata CallButton::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[7]); } @@ -6943,7 +7105,7 @@ void CallButton::InternalSwap(CallButton* other) { class TemplateButton::_Internal { public: - using HasBits = decltype(std::declval<TemplateButton>()._has_bits_); + using HasBits = decltype(std::declval<TemplateButton>()._impl_._has_bits_); static void set_has_index(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -6954,28 +7116,28 @@ class TemplateButton::_Internal { const ::proto::QuickReplyButton& TemplateButton::_Internal::quickreplybutton(const TemplateButton* msg) { - return *msg->button_.quickreplybutton_; + return *msg->_impl_.button_.quickreplybutton_; } const ::proto::URLButton& TemplateButton::_Internal::urlbutton(const TemplateButton* msg) { - return *msg->button_.urlbutton_; + return *msg->_impl_.button_.urlbutton_; } const ::proto::CallButton& TemplateButton::_Internal::callbutton(const TemplateButton* msg) { - return *msg->button_.callbutton_; + return *msg->_impl_.button_.callbutton_; } void TemplateButton::set_allocated_quickreplybutton(::proto::QuickReplyButton* quickreplybutton) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_button(); if (quickreplybutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::QuickReplyButton>::GetOwningArena(quickreplybutton); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(quickreplybutton); if (message_arena != submessage_arena) { quickreplybutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, quickreplybutton, submessage_arena); } set_has_quickreplybutton(); - button_.quickreplybutton_ = quickreplybutton; + _impl_.button_.quickreplybutton_ = quickreplybutton; } // @@protoc_insertion_point(field_set_allocated:proto.TemplateButton.quickReplyButton) } @@ -6984,13 +7146,13 @@ void TemplateButton::set_allocated_urlbutton(::proto::URLButton* urlbutton) { clear_button(); if (urlbutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::URLButton>::GetOwningArena(urlbutton); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(urlbutton); if (message_arena != submessage_arena) { urlbutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, urlbutton, submessage_arena); } set_has_urlbutton(); - button_.urlbutton_ = urlbutton; + _impl_.button_.urlbutton_ = urlbutton; } // @@protoc_insertion_point(field_set_allocated:proto.TemplateButton.urlButton) } @@ -6999,42 +7161,49 @@ void TemplateButton::set_allocated_callbutton(::proto::CallButton* callbutton) { clear_button(); if (callbutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::CallButton>::GetOwningArena(callbutton); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(callbutton); if (message_arena != submessage_arena) { callbutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, callbutton, submessage_arena); } set_has_callbutton(); - button_.callbutton_ = callbutton; + _impl_.button_.callbutton_ = callbutton; } // @@protoc_insertion_point(field_set_allocated:proto.TemplateButton.callButton) } TemplateButton::TemplateButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.TemplateButton) } TemplateButton::TemplateButton(const TemplateButton& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + TemplateButton* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.index_){} + , decltype(_impl_.button_){} + , /*decltype(_impl_._oneof_case_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - index_ = from.index_; + _this->_impl_.index_ = from._impl_.index_; clear_has_button(); switch (from.button_case()) { case kQuickReplyButton: { - _internal_mutable_quickreplybutton()->::proto::QuickReplyButton::MergeFrom(from._internal_quickreplybutton()); + _this->_internal_mutable_quickreplybutton()->::proto::QuickReplyButton::MergeFrom( + from._internal_quickreplybutton()); break; } case kUrlButton: { - _internal_mutable_urlbutton()->::proto::URLButton::MergeFrom(from._internal_urlbutton()); + _this->_internal_mutable_urlbutton()->::proto::URLButton::MergeFrom( + from._internal_urlbutton()); break; } case kCallButton: { - _internal_mutable_callbutton()->::proto::CallButton::MergeFrom(from._internal_callbutton()); + _this->_internal_mutable_callbutton()->::proto::CallButton::MergeFrom( + from._internal_callbutton()); break; } case BUTTON_NOT_SET: { @@ -7044,16 +7213,27 @@ TemplateButton::TemplateButton(const TemplateButton& from) // @@protoc_insertion_point(copy_constructor:proto.TemplateButton) } -void TemplateButton::SharedCtor() { -index_ = 0u; -clear_has_button(); +inline void TemplateButton::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.index_){0u} + , decltype(_impl_.button_){} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_button(); } TemplateButton::~TemplateButton() { // @@protoc_insertion_point(destructor:proto.TemplateButton) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void TemplateButton::SharedDtor() { @@ -7063,14 +7243,8 @@ inline void TemplateButton::SharedDtor() { } } -void TemplateButton::ArenaDtor(void* object) { - TemplateButton* _this = reinterpret_cast< TemplateButton* >(object); - (void)_this; -} -void TemplateButton::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void TemplateButton::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void TemplateButton::clear_button() { @@ -7078,19 +7252,19 @@ void TemplateButton::clear_button() { switch (button_case()) { case kQuickReplyButton: { if (GetArenaForAllocation() == nullptr) { - delete button_.quickreplybutton_; + delete _impl_.button_.quickreplybutton_; } break; } case kUrlButton: { if (GetArenaForAllocation() == nullptr) { - delete button_.urlbutton_; + delete _impl_.button_.urlbutton_; } break; } case kCallButton: { if (GetArenaForAllocation() == nullptr) { - delete button_.callbutton_; + delete _impl_.button_.callbutton_; } break; } @@ -7098,32 +7272,32 @@ void TemplateButton::clear_button() { break; } } - _oneof_case_[0] = BUTTON_NOT_SET; + _impl_._oneof_case_[0] = BUTTON_NOT_SET; } void TemplateButton::Clear() { // @@protoc_insertion_point(message_clear_start:proto.TemplateButton) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - index_ = 0u; + _impl_.index_ = 0u; clear_button(); - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* TemplateButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* TemplateButton::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .proto.QuickReplyButton quickReplyButton = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_quickreplybutton(), ptr); CHK_(ptr); } else @@ -7131,7 +7305,7 @@ const char* TemplateButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // .proto.URLButton urlButton = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_urlbutton(), ptr); CHK_(ptr); } else @@ -7139,7 +7313,7 @@ const char* TemplateButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // .proto.CallButton callButton = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_callbutton(), ptr); CHK_(ptr); } else @@ -7147,9 +7321,9 @@ const char* TemplateButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // optional uint32 index = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { _Internal::set_has_index(&has_bits); - index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -7170,7 +7344,7 @@ const char* TemplateButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -7178,45 +7352,42 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* TemplateButton::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* TemplateButton::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.TemplateButton) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (button_case()) { case kQuickReplyButton: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::quickreplybutton(this), target, stream); + InternalWriteMessage(1, _Internal::quickreplybutton(this), + _Internal::quickreplybutton(this).GetCachedSize(), target, stream); break; } case kUrlButton: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::urlbutton(this), target, stream); + InternalWriteMessage(2, _Internal::urlbutton(this), + _Internal::urlbutton(this).GetCachedSize(), target, stream); break; } case kCallButton: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::callbutton(this), target, stream); + InternalWriteMessage(3, _Internal::callbutton(this), + _Internal::callbutton(this).GetCachedSize(), target, stream); break; } default: ; } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional uint32 index = 4; if (cached_has_bits & 0x00000001u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_index(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_index(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.TemplateButton) @@ -7227,14 +7398,14 @@ size_t TemplateButton::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.TemplateButton) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional uint32 index = 4; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); } switch (button_case()) { @@ -7242,70 +7413,69 @@ size_t TemplateButton::ByteSizeLong() const { case kQuickReplyButton: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *button_.quickreplybutton_); + *_impl_.button_.quickreplybutton_); break; } // .proto.URLButton urlButton = 2; case kUrlButton: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *button_.urlbutton_); + *_impl_.button_.urlbutton_); break; } // .proto.CallButton callButton = 3; case kCallButton: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *button_.callbutton_); + *_impl_.button_.callbutton_); break; } case BUTTON_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TemplateButton::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, TemplateButton::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TemplateButton::GetClassData() const { return &_class_data_; } -void TemplateButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<TemplateButton *>(to)->MergeFrom( - static_cast<const TemplateButton &>(from)); -} - -void TemplateButton::MergeFrom(const TemplateButton& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.TemplateButton) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void TemplateButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<TemplateButton*>(&to_msg); + auto& from = static_cast<const TemplateButton&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.TemplateButton) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_index()) { - _internal_set_index(from._internal_index()); + _this->_internal_set_index(from._internal_index()); } switch (from.button_case()) { case kQuickReplyButton: { - _internal_mutable_quickreplybutton()->::proto::QuickReplyButton::MergeFrom(from._internal_quickreplybutton()); + _this->_internal_mutable_quickreplybutton()->::proto::QuickReplyButton::MergeFrom( + from._internal_quickreplybutton()); break; } case kUrlButton: { - _internal_mutable_urlbutton()->::proto::URLButton::MergeFrom(from._internal_urlbutton()); + _this->_internal_mutable_urlbutton()->::proto::URLButton::MergeFrom( + from._internal_urlbutton()); break; } case kCallButton: { - _internal_mutable_callbutton()->::proto::CallButton::MergeFrom(from._internal_callbutton()); + _this->_internal_mutable_callbutton()->::proto::CallButton::MergeFrom( + from._internal_callbutton()); break; } case BUTTON_NOT_SET: { break; } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TemplateButton::CopyFrom(const TemplateButton& from) { @@ -7322,14 +7492,14 @@ bool TemplateButton::IsInitialized() const { void TemplateButton::InternalSwap(TemplateButton* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(index_, other->index_); - swap(button_, other->button_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.index_, other->_impl_.index_); + swap(_impl_.button_, other->_impl_.button_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata TemplateButton::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[8]); } @@ -7338,7 +7508,7 @@ void TemplateButton::InternalSwap(TemplateButton* other) { class Location::_Internal { public: - using HasBits = decltype(std::declval<Location>()._has_bits_); + using HasBits = decltype(std::declval<Location>()._impl_._has_bits_); static void set_has_degreeslatitude(HasBits* has_bits) { (*has_bits)[0] |= 2u; } @@ -7353,110 +7523,122 @@ class Location::_Internal { Location::Location(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.Location) } Location::Location(const Location& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + Location* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.name_){} + , decltype(_impl_.degreeslatitude_){} + , decltype(_impl_.degreeslongitude_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_name()) { - name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), - GetArenaForAllocation()); + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); } - ::memcpy(°reeslatitude_, &from.degreeslatitude_, - static_cast<size_t>(reinterpret_cast<char*>(°reeslongitude_) - - reinterpret_cast<char*>(°reeslatitude_)) + sizeof(degreeslongitude_)); + ::memcpy(&_impl_.degreeslatitude_, &from._impl_.degreeslatitude_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.degreeslongitude_) - + reinterpret_cast<char*>(&_impl_.degreeslatitude_)) + sizeof(_impl_.degreeslongitude_)); // @@protoc_insertion_point(copy_constructor:proto.Location) } -void Location::SharedCtor() { -name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(°reeslatitude_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(°reeslongitude_) - - reinterpret_cast<char*>(°reeslatitude_)) + sizeof(degreeslongitude_)); +inline void Location::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.name_){} + , decltype(_impl_.degreeslatitude_){0} + , decltype(_impl_.degreeslongitude_){0} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Location::~Location() { // @@protoc_insertion_point(destructor:proto.Location) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void Location::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.name_.Destroy(); } -void Location::ArenaDtor(void* object) { - Location* _this = reinterpret_cast< Location* >(object); - (void)_this; -} -void Location::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void Location::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void Location::Clear() { // @@protoc_insertion_point(message_clear_start:proto.Location) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - name_.ClearNonDefaultToEmpty(); + _impl_.name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000006u) { - ::memset(°reeslatitude_, 0, static_cast<size_t>( - reinterpret_cast<char*>(°reeslongitude_) - - reinterpret_cast<char*>(°reeslatitude_)) + sizeof(degreeslongitude_)); + ::memset(&_impl_.degreeslatitude_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.degreeslongitude_) - + reinterpret_cast<char*>(&_impl_.degreeslatitude_)) + sizeof(_impl_.degreeslongitude_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Location::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Location::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional double degreesLatitude = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 9)) { _Internal::set_has_degreeslatitude(&has_bits); - degreeslatitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); + _impl_.degreeslatitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); ptr += sizeof(double); } else goto handle_unusual; continue; // optional double degreesLongitude = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17)) { _Internal::set_has_degreeslongitude(&has_bits); - degreeslongitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); + _impl_.degreeslongitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); ptr += sizeof(double); } else goto handle_unusual; continue; // optional string name = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { auto str = _internal_mutable_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Location.name"); + ::_pbi::VerifyUTF8(str, "proto.Location.name"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -7476,7 +7658,7 @@ const char* Location::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -7484,23 +7666,23 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Location::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* Location::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.Location) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional double degreesLatitude = 1; if (cached_has_bits & 0x00000002u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_degreeslatitude(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_degreeslatitude(), target); } // optional double degreesLongitude = 2; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_degreeslongitude(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_degreeslongitude(), target); } // optional string name = 3; @@ -7514,7 +7696,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.Location) @@ -7525,11 +7707,11 @@ size_t Location::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.Location) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string name = 3; if (cached_has_bits & 0x00000001u) { @@ -7549,42 +7731,38 @@ size_t Location::ByteSizeLong() const { } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Location::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, Location::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Location::GetClassData() const { return &_class_data_; } -void Location::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<Location *>(to)->MergeFrom( - static_cast<const Location &>(from)); -} - -void Location::MergeFrom(const Location& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.Location) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void Location::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<Location*>(&to_msg); + auto& from = static_cast<const Location&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.Location) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _internal_set_name(from._internal_name()); + _this->_internal_set_name(from._internal_name()); } if (cached_has_bits & 0x00000002u) { - degreeslatitude_ = from.degreeslatitude_; + _this->_impl_.degreeslatitude_ = from._impl_.degreeslatitude_; } if (cached_has_bits & 0x00000004u) { - degreeslongitude_ = from.degreeslongitude_; + _this->_impl_.degreeslongitude_ = from._impl_.degreeslongitude_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Location::CopyFrom(const Location& from) { @@ -7603,22 +7781,21 @@ void Location::InternalSwap(Location* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &name_, lhs_arena, - &other->name_, rhs_arena + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Location, degreeslongitude_) - + sizeof(Location::degreeslongitude_) - - PROTOBUF_FIELD_OFFSET(Location, degreeslatitude_)>( - reinterpret_cast<char*>(°reeslatitude_), - reinterpret_cast<char*>(&other->degreeslatitude_)); + PROTOBUF_FIELD_OFFSET(Location, _impl_.degreeslongitude_) + + sizeof(Location::_impl_.degreeslongitude_) + - PROTOBUF_FIELD_OFFSET(Location, _impl_.degreeslatitude_)>( + reinterpret_cast<char*>(&_impl_.degreeslatitude_), + reinterpret_cast<char*>(&other->_impl_.degreeslatitude_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Location::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[9]); } @@ -7627,7 +7804,7 @@ void Location::InternalSwap(Location* other) { class Point::_Internal { public: - using HasBits = decltype(std::declval<Point>()._has_bits_); + using HasBits = decltype(std::declval<Point>()._impl_._has_bits_); static void set_has_xdeprecated(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -7645,105 +7822,113 @@ class Point::_Internal { Point::Point(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.Point) } Point::Point(const Point& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + Point* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.xdeprecated_){} + , decltype(_impl_.ydeprecated_){} + , decltype(_impl_.x_){} + , decltype(_impl_.y_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&xdeprecated_, &from.xdeprecated_, - static_cast<size_t>(reinterpret_cast<char*>(&y_) - - reinterpret_cast<char*>(&xdeprecated_)) + sizeof(y_)); + ::memcpy(&_impl_.xdeprecated_, &from._impl_.xdeprecated_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.y_) - + reinterpret_cast<char*>(&_impl_.xdeprecated_)) + sizeof(_impl_.y_)); // @@protoc_insertion_point(copy_constructor:proto.Point) } -void Point::SharedCtor() { -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&xdeprecated_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&y_) - - reinterpret_cast<char*>(&xdeprecated_)) + sizeof(y_)); +inline void Point::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.xdeprecated_){0} + , decltype(_impl_.ydeprecated_){0} + , decltype(_impl_.x_){0} + , decltype(_impl_.y_){0} + }; } Point::~Point() { // @@protoc_insertion_point(destructor:proto.Point) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void Point::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -void Point::ArenaDtor(void* object) { - Point* _this = reinterpret_cast< Point* >(object); - (void)_this; -} -void Point::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void Point::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void Point::Clear() { // @@protoc_insertion_point(message_clear_start:proto.Point) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { - ::memset(&xdeprecated_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&y_) - - reinterpret_cast<char*>(&xdeprecated_)) + sizeof(y_)); + ::memset(&_impl_.xdeprecated_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.y_) - + reinterpret_cast<char*>(&_impl_.xdeprecated_)) + sizeof(_impl_.y_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Point::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Point::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional int32 xDeprecated = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { _Internal::set_has_xdeprecated(&has_bits); - xdeprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.xdeprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional int32 yDeprecated = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { _Internal::set_has_ydeprecated(&has_bits); - ydeprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.ydeprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional double x = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 25)) { _Internal::set_has_x(&has_bits); - x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); + _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); ptr += sizeof(double); } else goto handle_unusual; continue; // optional double y = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33)) { _Internal::set_has_y(&has_bits); - y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); + _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); ptr += sizeof(double); } else goto handle_unusual; @@ -7764,7 +7949,7 @@ const char* Point::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -7772,39 +7957,39 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Point::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* Point::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.Point) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional int32 xDeprecated = 1; if (cached_has_bits & 0x00000001u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_xdeprecated(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_xdeprecated(), target); } // optional int32 yDeprecated = 2; if (cached_has_bits & 0x00000002u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_ydeprecated(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_ydeprecated(), target); } // optional double x = 3; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(3, this->_internal_x(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_x(), target); } // optional double y = 4; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_y(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_y(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.Point) @@ -7815,20 +8000,20 @@ size_t Point::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.Point) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional int32 xDeprecated = 1; if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_xdeprecated()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_xdeprecated()); } // optional int32 yDeprecated = 2; if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_ydeprecated()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_ydeprecated()); } // optional double x = 3; @@ -7842,45 +8027,41 @@ size_t Point::ByteSizeLong() const { } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Point::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, Point::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Point::GetClassData() const { return &_class_data_; } -void Point::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<Point *>(to)->MergeFrom( - static_cast<const Point &>(from)); -} - -void Point::MergeFrom(const Point& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.Point) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void Point::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<Point*>(&to_msg); + auto& from = static_cast<const Point&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.Point) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - xdeprecated_ = from.xdeprecated_; + _this->_impl_.xdeprecated_ = from._impl_.xdeprecated_; } if (cached_has_bits & 0x00000002u) { - ydeprecated_ = from.ydeprecated_; + _this->_impl_.ydeprecated_ = from._impl_.ydeprecated_; } if (cached_has_bits & 0x00000004u) { - x_ = from.x_; + _this->_impl_.x_ = from._impl_.x_; } if (cached_has_bits & 0x00000008u) { - y_ = from.y_; + _this->_impl_.y_ = from._impl_.y_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Point::CopyFrom(const Point& from) { @@ -7897,17 +8078,17 @@ bool Point::IsInitialized() const { void Point::InternalSwap(Point* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Point, y_) - + sizeof(Point::y_) - - PROTOBUF_FIELD_OFFSET(Point, xdeprecated_)>( - reinterpret_cast<char*>(&xdeprecated_), - reinterpret_cast<char*>(&other->xdeprecated_)); + PROTOBUF_FIELD_OFFSET(Point, _impl_.y_) + + sizeof(Point::_impl_.y_) + - PROTOBUF_FIELD_OFFSET(Point, _impl_.xdeprecated_)>( + reinterpret_cast<char*>(&_impl_.xdeprecated_), + reinterpret_cast<char*>(&other->_impl_.xdeprecated_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Point::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[10]); } @@ -7921,41 +8102,44 @@ class InteractiveAnnotation::_Internal { const ::proto::Location& InteractiveAnnotation::_Internal::location(const InteractiveAnnotation* msg) { - return *msg->action_.location_; + return *msg->_impl_.action_.location_; } void InteractiveAnnotation::set_allocated_location(::proto::Location* location) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_action(); if (location) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::Location>::GetOwningArena(location); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(location); if (message_arena != submessage_arena) { location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, location, submessage_arena); } set_has_location(); - action_.location_ = location; + _impl_.action_.location_ = location; } // @@protoc_insertion_point(field_set_allocated:proto.InteractiveAnnotation.location) } InteractiveAnnotation::InteractiveAnnotation(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - polygonvertices_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.InteractiveAnnotation) } InteractiveAnnotation::InteractiveAnnotation(const InteractiveAnnotation& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - polygonvertices_(from.polygonvertices_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + InteractiveAnnotation* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.polygonvertices_){from._impl_.polygonvertices_} + , decltype(_impl_.action_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); clear_has_action(); switch (from.action_case()) { case kLocation: { - _internal_mutable_location()->::proto::Location::MergeFrom(from._internal_location()); + _this->_internal_mutable_location()->::proto::Location::MergeFrom( + from._internal_location()); break; } case ACTION_NOT_SET: { @@ -7965,32 +8149,38 @@ InteractiveAnnotation::InteractiveAnnotation(const InteractiveAnnotation& from) // @@protoc_insertion_point(copy_constructor:proto.InteractiveAnnotation) } -void InteractiveAnnotation::SharedCtor() { -clear_has_action(); +inline void InteractiveAnnotation::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.polygonvertices_){arena} + , decltype(_impl_.action_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_action(); } InteractiveAnnotation::~InteractiveAnnotation() { // @@protoc_insertion_point(destructor:proto.InteractiveAnnotation) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void InteractiveAnnotation::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.polygonvertices_.~RepeatedPtrField(); if (has_action()) { clear_action(); } } -void InteractiveAnnotation::ArenaDtor(void* object) { - InteractiveAnnotation* _this = reinterpret_cast< InteractiveAnnotation* >(object); - (void)_this; -} -void InteractiveAnnotation::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void InteractiveAnnotation::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void InteractiveAnnotation::clear_action() { @@ -7998,7 +8188,7 @@ void InteractiveAnnotation::clear_action() { switch (action_case()) { case kLocation: { if (GetArenaForAllocation() == nullptr) { - delete action_.location_; + delete _impl_.action_.location_; } break; } @@ -8006,30 +8196,30 @@ void InteractiveAnnotation::clear_action() { break; } } - _oneof_case_[0] = ACTION_NOT_SET; + _impl_._oneof_case_[0] = ACTION_NOT_SET; } void InteractiveAnnotation::Clear() { // @@protoc_insertion_point(message_clear_start:proto.InteractiveAnnotation) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - polygonvertices_.Clear(); + _impl_.polygonvertices_.Clear(); clear_action(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* InteractiveAnnotation::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* InteractiveAnnotation::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .proto.Point polygonVertices = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr -= 1; do { ptr += 1; @@ -8042,7 +8232,7 @@ const char* InteractiveAnnotation::_InternalParse(const char* ptr, ::PROTOBUF_NA continue; // .proto.Location location = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_location(), ptr); CHK_(ptr); } else @@ -8071,30 +8261,29 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* InteractiveAnnotation::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* InteractiveAnnotation::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.InteractiveAnnotation) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // repeated .proto.Point polygonVertices = 1; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->_internal_polygonvertices_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast<unsigned>(this->_internal_polygonvertices_size()); i < n; i++) { + const auto& repfield = this->_internal_polygonvertices(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_polygonvertices(i), target, stream); + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // .proto.Location location = 2; if (_internal_has_location()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::location(this), target, stream); + InternalWriteMessage(2, _Internal::location(this), + _Internal::location(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.InteractiveAnnotation) @@ -8105,13 +8294,13 @@ size_t InteractiveAnnotation::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.InteractiveAnnotation) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .proto.Point polygonVertices = 1; total_size += 1UL * this->_internal_polygonvertices_size(); - for (const auto& msg : this->polygonvertices_) { + for (const auto& msg : this->_impl_.polygonvertices_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } @@ -8121,46 +8310,43 @@ size_t InteractiveAnnotation::ByteSizeLong() const { case kLocation: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *action_.location_); + *_impl_.action_.location_); break; } case ACTION_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData InteractiveAnnotation::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, InteractiveAnnotation::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*InteractiveAnnotation::GetClassData() const { return &_class_data_; } -void InteractiveAnnotation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<InteractiveAnnotation *>(to)->MergeFrom( - static_cast<const InteractiveAnnotation &>(from)); -} - -void InteractiveAnnotation::MergeFrom(const InteractiveAnnotation& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.InteractiveAnnotation) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void InteractiveAnnotation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<InteractiveAnnotation*>(&to_msg); + auto& from = static_cast<const InteractiveAnnotation&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.InteractiveAnnotation) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - polygonvertices_.MergeFrom(from.polygonvertices_); + _this->_impl_.polygonvertices_.MergeFrom(from._impl_.polygonvertices_); switch (from.action_case()) { case kLocation: { - _internal_mutable_location()->::proto::Location::MergeFrom(from._internal_location()); + _this->_internal_mutable_location()->::proto::Location::MergeFrom( + from._internal_location()); break; } case ACTION_NOT_SET: { break; } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void InteractiveAnnotation::CopyFrom(const InteractiveAnnotation& from) { @@ -8177,13 +8363,13 @@ bool InteractiveAnnotation::IsInitialized() const { void InteractiveAnnotation::InternalSwap(InteractiveAnnotation* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - polygonvertices_.InternalSwap(&other->polygonvertices_); - swap(action_, other->action_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + _impl_.polygonvertices_.InternalSwap(&other->_impl_.polygonvertices_); + swap(_impl_.action_, other->_impl_.action_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata InteractiveAnnotation::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[11]); } @@ -8192,7 +8378,7 @@ void InteractiveAnnotation::InternalSwap(InteractiveAnnotation* other) { class DeviceListMetadata::_Internal { public: - using HasBits = decltype(std::declval<DeviceListMetadata>()._has_bits_); + using HasBits = decltype(std::declval<DeviceListMetadata>()._impl_._has_bits_); static void set_has_senderkeyhash(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -8210,127 +8396,147 @@ class DeviceListMetadata::_Internal { DeviceListMetadata::DeviceListMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.DeviceListMetadata) } DeviceListMetadata::DeviceListMetadata(const DeviceListMetadata& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + DeviceListMetadata* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.senderkeyhash_){} + , decltype(_impl_.recipientkeyhash_){} + , decltype(_impl_.sendertimestamp_){} + , decltype(_impl_.recipienttimestamp_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - senderkeyhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.senderkeyhash_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.senderkeyhash_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_senderkeyhash()) { - senderkeyhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_senderkeyhash(), - GetArenaForAllocation()); + _this->_impl_.senderkeyhash_.Set(from._internal_senderkeyhash(), + _this->GetArenaForAllocation()); } - recipientkeyhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.recipientkeyhash_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.recipientkeyhash_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_recipientkeyhash()) { - recipientkeyhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_recipientkeyhash(), - GetArenaForAllocation()); + _this->_impl_.recipientkeyhash_.Set(from._internal_recipientkeyhash(), + _this->GetArenaForAllocation()); } - ::memcpy(&sendertimestamp_, &from.sendertimestamp_, - static_cast<size_t>(reinterpret_cast<char*>(&recipienttimestamp_) - - reinterpret_cast<char*>(&sendertimestamp_)) + sizeof(recipienttimestamp_)); + ::memcpy(&_impl_.sendertimestamp_, &from._impl_.sendertimestamp_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.recipienttimestamp_) - + reinterpret_cast<char*>(&_impl_.sendertimestamp_)) + sizeof(_impl_.recipienttimestamp_)); // @@protoc_insertion_point(copy_constructor:proto.DeviceListMetadata) } -void DeviceListMetadata::SharedCtor() { -senderkeyhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -recipientkeyhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&sendertimestamp_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&recipienttimestamp_) - - reinterpret_cast<char*>(&sendertimestamp_)) + sizeof(recipienttimestamp_)); +inline void DeviceListMetadata::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.senderkeyhash_){} + , decltype(_impl_.recipientkeyhash_){} + , decltype(_impl_.sendertimestamp_){uint64_t{0u}} + , decltype(_impl_.recipienttimestamp_){uint64_t{0u}} + }; + _impl_.senderkeyhash_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.senderkeyhash_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.recipientkeyhash_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.recipientkeyhash_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } DeviceListMetadata::~DeviceListMetadata() { // @@protoc_insertion_point(destructor:proto.DeviceListMetadata) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void DeviceListMetadata::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - senderkeyhash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - recipientkeyhash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.senderkeyhash_.Destroy(); + _impl_.recipientkeyhash_.Destroy(); } -void DeviceListMetadata::ArenaDtor(void* object) { - DeviceListMetadata* _this = reinterpret_cast< DeviceListMetadata* >(object); - (void)_this; -} -void DeviceListMetadata::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void DeviceListMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void DeviceListMetadata::Clear() { // @@protoc_insertion_point(message_clear_start:proto.DeviceListMetadata) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - senderkeyhash_.ClearNonDefaultToEmpty(); + _impl_.senderkeyhash_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - recipientkeyhash_.ClearNonDefaultToEmpty(); + _impl_.recipientkeyhash_.ClearNonDefaultToEmpty(); } } if (cached_has_bits & 0x0000000cu) { - ::memset(&sendertimestamp_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&recipienttimestamp_) - - reinterpret_cast<char*>(&sendertimestamp_)) + sizeof(recipienttimestamp_)); + ::memset(&_impl_.sendertimestamp_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.recipienttimestamp_) - + reinterpret_cast<char*>(&_impl_.sendertimestamp_)) + sizeof(_impl_.recipienttimestamp_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* DeviceListMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* DeviceListMetadata::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional bytes senderKeyHash = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_senderkeyhash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional uint64 senderTimestamp = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { _Internal::set_has_sendertimestamp(&has_bits); - sendertimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.sendertimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes recipientKeyHash = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { auto str = _internal_mutable_recipientkeyhash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional uint64 recipientTimestamp = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) { _Internal::set_has_recipienttimestamp(&has_bits); - recipienttimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.recipienttimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -8351,7 +8557,7 @@ const char* DeviceListMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMES CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -8359,13 +8565,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* DeviceListMetadata::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* DeviceListMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.DeviceListMetadata) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional bytes senderKeyHash = 1; if (cached_has_bits & 0x00000001u) { target = stream->WriteBytesMaybeAliased( @@ -8375,7 +8581,7 @@ failure: // optional uint64 senderTimestamp = 2; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_sendertimestamp(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_sendertimestamp(), target); } // optional bytes recipientKeyHash = 8; @@ -8387,11 +8593,11 @@ failure: // optional uint64 recipientTimestamp = 9; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(9, this->_internal_recipienttimestamp(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(9, this->_internal_recipienttimestamp(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.DeviceListMetadata) @@ -8402,11 +8608,11 @@ size_t DeviceListMetadata::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.DeviceListMetadata) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional bytes senderKeyHash = 1; if (cached_has_bits & 0x00000001u) { @@ -8424,54 +8630,50 @@ size_t DeviceListMetadata::ByteSizeLong() const { // optional uint64 senderTimestamp = 2; if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_sendertimestamp()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_sendertimestamp()); } // optional uint64 recipientTimestamp = 9; if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_recipienttimestamp()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_recipienttimestamp()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeviceListMetadata::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, DeviceListMetadata::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeviceListMetadata::GetClassData() const { return &_class_data_; } -void DeviceListMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<DeviceListMetadata *>(to)->MergeFrom( - static_cast<const DeviceListMetadata &>(from)); -} - -void DeviceListMetadata::MergeFrom(const DeviceListMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.DeviceListMetadata) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void DeviceListMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<DeviceListMetadata*>(&to_msg); + auto& from = static_cast<const DeviceListMetadata&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.DeviceListMetadata) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - _internal_set_senderkeyhash(from._internal_senderkeyhash()); + _this->_internal_set_senderkeyhash(from._internal_senderkeyhash()); } if (cached_has_bits & 0x00000002u) { - _internal_set_recipientkeyhash(from._internal_recipientkeyhash()); + _this->_internal_set_recipientkeyhash(from._internal_recipientkeyhash()); } if (cached_has_bits & 0x00000004u) { - sendertimestamp_ = from.sendertimestamp_; + _this->_impl_.sendertimestamp_ = from._impl_.sendertimestamp_; } if (cached_has_bits & 0x00000008u) { - recipienttimestamp_ = from.recipienttimestamp_; + _this->_impl_.recipienttimestamp_ = from._impl_.recipienttimestamp_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeviceListMetadata::CopyFrom(const DeviceListMetadata& from) { @@ -8490,27 +8692,25 @@ void DeviceListMetadata::InternalSwap(DeviceListMetadata* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &senderkeyhash_, lhs_arena, - &other->senderkeyhash_, rhs_arena + &_impl_.senderkeyhash_, lhs_arena, + &other->_impl_.senderkeyhash_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &recipientkeyhash_, lhs_arena, - &other->recipientkeyhash_, rhs_arena + &_impl_.recipientkeyhash_, lhs_arena, + &other->_impl_.recipientkeyhash_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(DeviceListMetadata, recipienttimestamp_) - + sizeof(DeviceListMetadata::recipienttimestamp_) - - PROTOBUF_FIELD_OFFSET(DeviceListMetadata, sendertimestamp_)>( - reinterpret_cast<char*>(&sendertimestamp_), - reinterpret_cast<char*>(&other->sendertimestamp_)); + PROTOBUF_FIELD_OFFSET(DeviceListMetadata, _impl_.recipienttimestamp_) + + sizeof(DeviceListMetadata::_impl_.recipienttimestamp_) + - PROTOBUF_FIELD_OFFSET(DeviceListMetadata, _impl_.sendertimestamp_)>( + reinterpret_cast<char*>(&_impl_.sendertimestamp_), + reinterpret_cast<char*>(&other->_impl_.sendertimestamp_)); } ::PROTOBUF_NAMESPACE_ID::Metadata DeviceListMetadata::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[12]); } @@ -8519,7 +8719,7 @@ void DeviceListMetadata::InternalSwap(DeviceListMetadata* other) { class MessageContextInfo::_Internal { public: - using HasBits = decltype(std::declval<MessageContextInfo>()._has_bits_); + using HasBits = decltype(std::declval<MessageContextInfo>()._impl_._has_bits_); static const ::proto::DeviceListMetadata& devicelistmetadata(const MessageContextInfo* msg); static void set_has_devicelistmetadata(HasBits* has_bits) { (*has_bits)[0] |= 1u; @@ -8528,80 +8728,83 @@ class MessageContextInfo::_Internal { const ::proto::DeviceListMetadata& MessageContextInfo::_Internal::devicelistmetadata(const MessageContextInfo* msg) { - return *msg->devicelistmetadata_; + return *msg->_impl_.devicelistmetadata_; } MessageContextInfo::MessageContextInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.MessageContextInfo) } MessageContextInfo::MessageContextInfo(const MessageContextInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageContextInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.devicelistmetadata_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_devicelistmetadata()) { - devicelistmetadata_ = new ::proto::DeviceListMetadata(*from.devicelistmetadata_); - } else { - devicelistmetadata_ = nullptr; + _this->_impl_.devicelistmetadata_ = new ::proto::DeviceListMetadata(*from._impl_.devicelistmetadata_); } // @@protoc_insertion_point(copy_constructor:proto.MessageContextInfo) } -void MessageContextInfo::SharedCtor() { -devicelistmetadata_ = nullptr; +inline void MessageContextInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.devicelistmetadata_){nullptr} + }; } MessageContextInfo::~MessageContextInfo() { // @@protoc_insertion_point(destructor:proto.MessageContextInfo) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageContextInfo::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete devicelistmetadata_; + if (this != internal_default_instance()) delete _impl_.devicelistmetadata_; } -void MessageContextInfo::ArenaDtor(void* object) { - MessageContextInfo* _this = reinterpret_cast< MessageContextInfo* >(object); - (void)_this; -} -void MessageContextInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void MessageContextInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageContextInfo::Clear() { // @@protoc_insertion_point(message_clear_start:proto.MessageContextInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(devicelistmetadata_ != nullptr); - devicelistmetadata_->Clear(); + GOOGLE_DCHECK(_impl_.devicelistmetadata_ != nullptr); + _impl_.devicelistmetadata_->Clear(); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MessageContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* MessageContextInfo::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional .proto.DeviceListMetadata deviceListMetadata = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_devicelistmetadata(), ptr); CHK_(ptr); } else @@ -8623,7 +8826,7 @@ const char* MessageContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMES CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -8631,23 +8834,22 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* MessageContextInfo::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* MessageContextInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.MessageContextInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.DeviceListMetadata deviceListMetadata = 1; if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::devicelistmetadata(this), target, stream); + InternalWriteMessage(1, _Internal::devicelistmetadata(this), + _Internal::devicelistmetadata(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.MessageContextInfo) @@ -8658,44 +8860,41 @@ size_t MessageContextInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.MessageContextInfo) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional .proto.DeviceListMetadata deviceListMetadata = 1; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *devicelistmetadata_); + *_impl_.devicelistmetadata_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageContextInfo::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageContextInfo::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessageContextInfo::GetClassData() const { return &_class_data_; } -void MessageContextInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<MessageContextInfo *>(to)->MergeFrom( - static_cast<const MessageContextInfo &>(from)); -} - -void MessageContextInfo::MergeFrom(const MessageContextInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.MessageContextInfo) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void MessageContextInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<MessageContextInfo*>(&to_msg); + auto& from = static_cast<const MessageContextInfo&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.MessageContextInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_devicelistmetadata()) { - _internal_mutable_devicelistmetadata()->::proto::DeviceListMetadata::MergeFrom(from._internal_devicelistmetadata()); + _this->_internal_mutable_devicelistmetadata()->::proto::DeviceListMetadata::MergeFrom( + from._internal_devicelistmetadata()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageContextInfo::CopyFrom(const MessageContextInfo& from) { @@ -8712,12 +8911,12 @@ bool MessageContextInfo::IsInitialized() const { void MessageContextInfo::InternalSwap(MessageContextInfo* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(devicelistmetadata_, other->devicelistmetadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.devicelistmetadata_, other->_impl_.devicelistmetadata_); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageContextInfo::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[13]); } @@ -8726,7 +8925,7 @@ void MessageContextInfo::InternalSwap(MessageContextInfo* other) { class AdReplyInfo::_Internal { public: - using HasBits = decltype(std::declval<AdReplyInfo>()._has_bits_); + using HasBits = decltype(std::declval<AdReplyInfo>()._impl_._has_bits_); static void set_has_advertisername(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -8744,112 +8943,141 @@ class AdReplyInfo::_Internal { AdReplyInfo::AdReplyInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.AdReplyInfo) } AdReplyInfo::AdReplyInfo(const AdReplyInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + AdReplyInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.advertisername_){} + , decltype(_impl_.jpegthumbnail_){} + , decltype(_impl_.caption_){} + , decltype(_impl_.mediatype_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - advertisername_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.advertisername_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.advertisername_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_advertisername()) { - advertisername_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_advertisername(), - GetArenaForAllocation()); + _this->_impl_.advertisername_.Set(from._internal_advertisername(), + _this->GetArenaForAllocation()); } - jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.jpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_jpegthumbnail()) { - jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), - GetArenaForAllocation()); + _this->_impl_.jpegthumbnail_.Set(from._internal_jpegthumbnail(), + _this->GetArenaForAllocation()); } - caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.caption_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.caption_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_caption()) { - caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_caption(), - GetArenaForAllocation()); + _this->_impl_.caption_.Set(from._internal_caption(), + _this->GetArenaForAllocation()); } - mediatype_ = from.mediatype_; + _this->_impl_.mediatype_ = from._impl_.mediatype_; // @@protoc_insertion_point(copy_constructor:proto.AdReplyInfo) } -void AdReplyInfo::SharedCtor() { -advertisername_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -mediatype_ = 0; +inline void AdReplyInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.advertisername_){} + , decltype(_impl_.jpegthumbnail_){} + , decltype(_impl_.caption_){} + , decltype(_impl_.mediatype_){0} + }; + _impl_.advertisername_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.advertisername_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.caption_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.caption_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } AdReplyInfo::~AdReplyInfo() { // @@protoc_insertion_point(destructor:proto.AdReplyInfo) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void AdReplyInfo::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - advertisername_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - jpegthumbnail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - caption_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.advertisername_.Destroy(); + _impl_.jpegthumbnail_.Destroy(); + _impl_.caption_.Destroy(); } -void AdReplyInfo::ArenaDtor(void* object) { - AdReplyInfo* _this = reinterpret_cast< AdReplyInfo* >(object); - (void)_this; -} -void AdReplyInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void AdReplyInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void AdReplyInfo::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AdReplyInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - advertisername_.ClearNonDefaultToEmpty(); + _impl_.advertisername_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - jpegthumbnail_.ClearNonDefaultToEmpty(); + _impl_.jpegthumbnail_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - caption_.ClearNonDefaultToEmpty(); + _impl_.caption_.ClearNonDefaultToEmpty(); } } - mediatype_ = 0; - _has_bits_.Clear(); + _impl_.mediatype_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* AdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* AdReplyInfo::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string advertiserName = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_advertisername(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.AdReplyInfo.advertiserName"); + ::_pbi::VerifyUTF8(str, "proto.AdReplyInfo.advertiserName"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.AdReplyInfo.AdReplyInfoMediaType mediaType = 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); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::AdReplyInfo_AdReplyInfoMediaType_IsValid(val))) { _internal_set_mediatype(static_cast<::proto::AdReplyInfo_AdReplyInfoMediaType>(val)); @@ -8861,22 +9089,22 @@ const char* AdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional bytes jpegThumbnail = 16; case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 130)) { auto str = _internal_mutable_jpegthumbnail(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional string caption = 17; case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) { auto str = _internal_mutable_caption(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.AdReplyInfo.caption"); + ::_pbi::VerifyUTF8(str, "proto.AdReplyInfo.caption"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -8896,7 +9124,7 @@ const char* AdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -8904,13 +9132,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* AdReplyInfo::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* AdReplyInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.AdReplyInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string advertiserName = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -8924,7 +9152,7 @@ failure: // optional .proto.AdReplyInfo.AdReplyInfoMediaType mediaType = 2; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 2, this->_internal_mediatype(), target); } @@ -8945,7 +9173,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AdReplyInfo) @@ -8956,11 +9184,11 @@ size_t AdReplyInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.AdReplyInfo) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional string advertiserName = 1; if (cached_has_bits & 0x00000001u) { @@ -8986,49 +9214,45 @@ size_t AdReplyInfo::ByteSizeLong() const { // optional .proto.AdReplyInfo.AdReplyInfoMediaType mediaType = 2; if (cached_has_bits & 0x00000008u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_mediatype()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_mediatype()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AdReplyInfo::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, AdReplyInfo::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AdReplyInfo::GetClassData() const { return &_class_data_; } -void AdReplyInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<AdReplyInfo *>(to)->MergeFrom( - static_cast<const AdReplyInfo &>(from)); -} - -void AdReplyInfo::MergeFrom(const AdReplyInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.AdReplyInfo) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void AdReplyInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<AdReplyInfo*>(&to_msg); + auto& from = static_cast<const AdReplyInfo&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.AdReplyInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - _internal_set_advertisername(from._internal_advertisername()); + _this->_internal_set_advertisername(from._internal_advertisername()); } if (cached_has_bits & 0x00000002u) { - _internal_set_jpegthumbnail(from._internal_jpegthumbnail()); + _this->_internal_set_jpegthumbnail(from._internal_jpegthumbnail()); } if (cached_has_bits & 0x00000004u) { - _internal_set_caption(from._internal_caption()); + _this->_internal_set_caption(from._internal_caption()); } if (cached_has_bits & 0x00000008u) { - mediatype_ = from.mediatype_; + _this->_impl_.mediatype_ = from._impl_.mediatype_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AdReplyInfo::CopyFrom(const AdReplyInfo& from) { @@ -9047,27 +9271,24 @@ void AdReplyInfo::InternalSwap(AdReplyInfo* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &advertisername_, lhs_arena, - &other->advertisername_, rhs_arena + &_impl_.advertisername_, lhs_arena, + &other->_impl_.advertisername_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &jpegthumbnail_, lhs_arena, - &other->jpegthumbnail_, rhs_arena + &_impl_.jpegthumbnail_, lhs_arena, + &other->_impl_.jpegthumbnail_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &caption_, lhs_arena, - &other->caption_, rhs_arena + &_impl_.caption_, lhs_arena, + &other->_impl_.caption_, rhs_arena ); - swap(mediatype_, other->mediatype_); + swap(_impl_.mediatype_, other->_impl_.mediatype_); } ::PROTOBUF_NAMESPACE_ID::Metadata AdReplyInfo::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[14]); } @@ -9076,7 +9297,7 @@ void AdReplyInfo::InternalSwap(AdReplyInfo* other) { class ExternalAdReplyInfo::_Internal { public: - using HasBits = decltype(std::declval<ExternalAdReplyInfo>()._has_bits_); + using HasBits = decltype(std::declval<ExternalAdReplyInfo>()._impl_._has_bits_); static void set_has_title(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -9109,174 +9330,243 @@ class ExternalAdReplyInfo::_Internal { ExternalAdReplyInfo::ExternalAdReplyInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.ExternalAdReplyInfo) } ExternalAdReplyInfo::ExternalAdReplyInfo(const ExternalAdReplyInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + ExternalAdReplyInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.title_){} + , decltype(_impl_.body_){} + , decltype(_impl_.thumbnailurl_){} + , decltype(_impl_.mediaurl_){} + , decltype(_impl_.thumbnail_){} + , decltype(_impl_.sourcetype_){} + , decltype(_impl_.sourceid_){} + , decltype(_impl_.sourceurl_){} + , decltype(_impl_.mediatype_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_title()) { - title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArenaForAllocation()); + _this->_impl_.title_.Set(from._internal_title(), + _this->GetArenaForAllocation()); } - body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.body_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.body_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_body()) { - body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_body(), - GetArenaForAllocation()); + _this->_impl_.body_.Set(from._internal_body(), + _this->GetArenaForAllocation()); } - thumbnailurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.thumbnailurl_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailurl_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_thumbnailurl()) { - thumbnailurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailurl(), - GetArenaForAllocation()); + _this->_impl_.thumbnailurl_.Set(from._internal_thumbnailurl(), + _this->GetArenaForAllocation()); } - mediaurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.mediaurl_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediaurl_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_mediaurl()) { - mediaurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediaurl(), - GetArenaForAllocation()); + _this->_impl_.mediaurl_.Set(from._internal_mediaurl(), + _this->GetArenaForAllocation()); } - thumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.thumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_thumbnail()) { - thumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnail(), - GetArenaForAllocation()); + _this->_impl_.thumbnail_.Set(from._internal_thumbnail(), + _this->GetArenaForAllocation()); } - sourcetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.sourcetype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sourcetype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_sourcetype()) { - sourcetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sourcetype(), - GetArenaForAllocation()); + _this->_impl_.sourcetype_.Set(from._internal_sourcetype(), + _this->GetArenaForAllocation()); } - sourceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.sourceid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sourceid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_sourceid()) { - sourceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sourceid(), - GetArenaForAllocation()); + _this->_impl_.sourceid_.Set(from._internal_sourceid(), + _this->GetArenaForAllocation()); } - sourceurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.sourceurl_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sourceurl_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_sourceurl()) { - sourceurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sourceurl(), - GetArenaForAllocation()); + _this->_impl_.sourceurl_.Set(from._internal_sourceurl(), + _this->GetArenaForAllocation()); } - mediatype_ = from.mediatype_; + _this->_impl_.mediatype_ = from._impl_.mediatype_; // @@protoc_insertion_point(copy_constructor:proto.ExternalAdReplyInfo) } -void ExternalAdReplyInfo::SharedCtor() { -title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -thumbnailurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -mediaurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -thumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -sourcetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -sourceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -sourceurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -mediatype_ = 0; +inline void ExternalAdReplyInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.title_){} + , decltype(_impl_.body_){} + , decltype(_impl_.thumbnailurl_){} + , decltype(_impl_.mediaurl_){} + , decltype(_impl_.thumbnail_){} + , decltype(_impl_.sourcetype_){} + , decltype(_impl_.sourceid_){} + , decltype(_impl_.sourceurl_){} + , decltype(_impl_.mediatype_){0} + }; + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.body_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.body_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailurl_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailurl_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediaurl_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediaurl_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sourcetype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sourcetype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sourceid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sourceid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sourceurl_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sourceurl_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ExternalAdReplyInfo::~ExternalAdReplyInfo() { // @@protoc_insertion_point(destructor:proto.ExternalAdReplyInfo) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void ExternalAdReplyInfo::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - body_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - thumbnailurl_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - mediaurl_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - thumbnail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - sourcetype_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - sourceid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - sourceurl_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.title_.Destroy(); + _impl_.body_.Destroy(); + _impl_.thumbnailurl_.Destroy(); + _impl_.mediaurl_.Destroy(); + _impl_.thumbnail_.Destroy(); + _impl_.sourcetype_.Destroy(); + _impl_.sourceid_.Destroy(); + _impl_.sourceurl_.Destroy(); } -void ExternalAdReplyInfo::ArenaDtor(void* object) { - ExternalAdReplyInfo* _this = reinterpret_cast< ExternalAdReplyInfo* >(object); - (void)_this; -} -void ExternalAdReplyInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void ExternalAdReplyInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ExternalAdReplyInfo::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ExternalAdReplyInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - title_.ClearNonDefaultToEmpty(); + _impl_.title_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - body_.ClearNonDefaultToEmpty(); + _impl_.body_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - thumbnailurl_.ClearNonDefaultToEmpty(); + _impl_.thumbnailurl_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - mediaurl_.ClearNonDefaultToEmpty(); + _impl_.mediaurl_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { - thumbnail_.ClearNonDefaultToEmpty(); + _impl_.thumbnail_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { - sourcetype_.ClearNonDefaultToEmpty(); + _impl_.sourcetype_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { - sourceid_.ClearNonDefaultToEmpty(); + _impl_.sourceid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { - sourceurl_.ClearNonDefaultToEmpty(); + _impl_.sourceurl_.ClearNonDefaultToEmpty(); } } - mediatype_ = 0; - _has_bits_.Clear(); + _impl_.mediatype_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ExternalAdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ExternalAdReplyInfo::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string title = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_title(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExternalAdReplyInfo.title"); + ::_pbi::VerifyUTF8(str, "proto.ExternalAdReplyInfo.title"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string body = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_body(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExternalAdReplyInfo.body"); + ::_pbi::VerifyUTF8(str, "proto.ExternalAdReplyInfo.body"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ExternalAdReplyInfo.ExternalAdReplyInfoMediaType mediaType = 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); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_IsValid(val))) { _internal_set_mediatype(static_cast<::proto::ExternalAdReplyInfo_ExternalAdReplyInfoMediaType>(val)); @@ -9288,70 +9578,70 @@ const char* ExternalAdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAME continue; // optional string thumbnailUrl = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { auto str = _internal_mutable_thumbnailurl(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExternalAdReplyInfo.thumbnailUrl"); + ::_pbi::VerifyUTF8(str, "proto.ExternalAdReplyInfo.thumbnailUrl"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string mediaUrl = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { auto str = _internal_mutable_mediaurl(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExternalAdReplyInfo.mediaUrl"); + ::_pbi::VerifyUTF8(str, "proto.ExternalAdReplyInfo.mediaUrl"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes thumbnail = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { auto str = _internal_mutable_thumbnail(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional string sourceType = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { auto str = _internal_mutable_sourcetype(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExternalAdReplyInfo.sourceType"); + ::_pbi::VerifyUTF8(str, "proto.ExternalAdReplyInfo.sourceType"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string sourceId = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { auto str = _internal_mutable_sourceid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExternalAdReplyInfo.sourceId"); + ::_pbi::VerifyUTF8(str, "proto.ExternalAdReplyInfo.sourceId"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string sourceUrl = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) { auto str = _internal_mutable_sourceurl(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExternalAdReplyInfo.sourceUrl"); + ::_pbi::VerifyUTF8(str, "proto.ExternalAdReplyInfo.sourceUrl"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -9371,7 +9661,7 @@ const char* ExternalAdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAME CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -9379,13 +9669,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ExternalAdReplyInfo::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* ExternalAdReplyInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.ExternalAdReplyInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string title = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -9409,7 +9699,7 @@ failure: // optional .proto.ExternalAdReplyInfo.ExternalAdReplyInfoMediaType mediaType = 3; if (cached_has_bits & 0x00000100u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 3, this->_internal_mediatype(), target); } @@ -9470,7 +9760,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ExternalAdReplyInfo) @@ -9481,11 +9771,11 @@ size_t ExternalAdReplyInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.ExternalAdReplyInfo) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string title = 1; if (cached_has_bits & 0x00000001u) { @@ -9547,62 +9837,58 @@ size_t ExternalAdReplyInfo::ByteSizeLong() const { // optional .proto.ExternalAdReplyInfo.ExternalAdReplyInfoMediaType mediaType = 3; if (cached_has_bits & 0x00000100u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_mediatype()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_mediatype()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExternalAdReplyInfo::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ExternalAdReplyInfo::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExternalAdReplyInfo::GetClassData() const { return &_class_data_; } -void ExternalAdReplyInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<ExternalAdReplyInfo *>(to)->MergeFrom( - static_cast<const ExternalAdReplyInfo &>(from)); -} - -void ExternalAdReplyInfo::MergeFrom(const ExternalAdReplyInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.ExternalAdReplyInfo) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void ExternalAdReplyInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<ExternalAdReplyInfo*>(&to_msg); + auto& from = static_cast<const ExternalAdReplyInfo&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.ExternalAdReplyInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_set_title(from._internal_title()); + _this->_internal_set_title(from._internal_title()); } if (cached_has_bits & 0x00000002u) { - _internal_set_body(from._internal_body()); + _this->_internal_set_body(from._internal_body()); } if (cached_has_bits & 0x00000004u) { - _internal_set_thumbnailurl(from._internal_thumbnailurl()); + _this->_internal_set_thumbnailurl(from._internal_thumbnailurl()); } if (cached_has_bits & 0x00000008u) { - _internal_set_mediaurl(from._internal_mediaurl()); + _this->_internal_set_mediaurl(from._internal_mediaurl()); } if (cached_has_bits & 0x00000010u) { - _internal_set_thumbnail(from._internal_thumbnail()); + _this->_internal_set_thumbnail(from._internal_thumbnail()); } if (cached_has_bits & 0x00000020u) { - _internal_set_sourcetype(from._internal_sourcetype()); + _this->_internal_set_sourcetype(from._internal_sourcetype()); } if (cached_has_bits & 0x00000040u) { - _internal_set_sourceid(from._internal_sourceid()); + _this->_internal_set_sourceid(from._internal_sourceid()); } if (cached_has_bits & 0x00000080u) { - _internal_set_sourceurl(from._internal_sourceurl()); + _this->_internal_set_sourceurl(from._internal_sourceurl()); } } if (cached_has_bits & 0x00000100u) { - _internal_set_mediatype(from._internal_mediatype()); + _this->_internal_set_mediatype(from._internal_mediatype()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ExternalAdReplyInfo::CopyFrom(const ExternalAdReplyInfo& from) { @@ -9621,52 +9907,44 @@ void ExternalAdReplyInfo::InternalSwap(ExternalAdReplyInfo* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &title_, lhs_arena, - &other->title_, rhs_arena + &_impl_.title_, lhs_arena, + &other->_impl_.title_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &body_, lhs_arena, - &other->body_, rhs_arena + &_impl_.body_, lhs_arena, + &other->_impl_.body_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &thumbnailurl_, lhs_arena, - &other->thumbnailurl_, rhs_arena + &_impl_.thumbnailurl_, lhs_arena, + &other->_impl_.thumbnailurl_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &mediaurl_, lhs_arena, - &other->mediaurl_, rhs_arena + &_impl_.mediaurl_, lhs_arena, + &other->_impl_.mediaurl_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &thumbnail_, lhs_arena, - &other->thumbnail_, rhs_arena + &_impl_.thumbnail_, lhs_arena, + &other->_impl_.thumbnail_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &sourcetype_, lhs_arena, - &other->sourcetype_, rhs_arena + &_impl_.sourcetype_, lhs_arena, + &other->_impl_.sourcetype_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &sourceid_, lhs_arena, - &other->sourceid_, rhs_arena + &_impl_.sourceid_, lhs_arena, + &other->_impl_.sourceid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &sourceurl_, lhs_arena, - &other->sourceurl_, rhs_arena + &_impl_.sourceurl_, lhs_arena, + &other->_impl_.sourceurl_, rhs_arena ); - swap(mediatype_, other->mediatype_); + swap(_impl_.mediatype_, other->_impl_.mediatype_); } ::PROTOBUF_NAMESPACE_ID::Metadata ExternalAdReplyInfo::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[15]); } @@ -9675,7 +9953,7 @@ void ExternalAdReplyInfo::InternalSwap(ExternalAdReplyInfo* other) { class ContextInfo::_Internal { public: - using HasBits = decltype(std::declval<ContextInfo>()._has_bits_); + using HasBits = decltype(std::declval<ContextInfo>()._impl_._has_bits_); static void set_has_stanzaid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -9729,224 +10007,283 @@ class ContextInfo::_Internal { const ::proto::Message& ContextInfo::_Internal::quotedmessage(const ContextInfo* msg) { - return *msg->quotedmessage_; + return *msg->_impl_.quotedmessage_; } const ::proto::AdReplyInfo& ContextInfo::_Internal::quotedad(const ContextInfo* msg) { - return *msg->quotedad_; + return *msg->_impl_.quotedad_; } const ::proto::MessageKey& ContextInfo::_Internal::placeholderkey(const ContextInfo* msg) { - return *msg->placeholderkey_; + return *msg->_impl_.placeholderkey_; } const ::proto::ExternalAdReplyInfo& ContextInfo::_Internal::externaladreply(const ContextInfo* msg) { - return *msg->externaladreply_; + return *msg->_impl_.externaladreply_; } ContextInfo::ContextInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - mentionedjid_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.ContextInfo) } ContextInfo::ContextInfo(const ContextInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - mentionedjid_(from.mentionedjid_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + ContextInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.mentionedjid_){from._impl_.mentionedjid_} + , decltype(_impl_.stanzaid_){} + , decltype(_impl_.participant_){} + , decltype(_impl_.remotejid_){} + , decltype(_impl_.conversionsource_){} + , decltype(_impl_.conversiondata_){} + , decltype(_impl_.ephemeralsharedsecret_){} + , decltype(_impl_.quotedmessage_){nullptr} + , decltype(_impl_.quotedad_){nullptr} + , decltype(_impl_.placeholderkey_){nullptr} + , decltype(_impl_.externaladreply_){nullptr} + , decltype(_impl_.conversiondelayseconds_){} + , decltype(_impl_.forwardingscore_){} + , decltype(_impl_.isforwarded_){} + , decltype(_impl_.expiration_){} + , decltype(_impl_.ephemeralsettingtimestamp_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - stanzaid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.stanzaid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.stanzaid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_stanzaid()) { - stanzaid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_stanzaid(), - GetArenaForAllocation()); + _this->_impl_.stanzaid_.Set(from._internal_stanzaid(), + _this->GetArenaForAllocation()); } - participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.participant_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.participant_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_participant()) { - participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_participant(), - GetArenaForAllocation()); + _this->_impl_.participant_.Set(from._internal_participant(), + _this->GetArenaForAllocation()); } - remotejid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.remotejid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.remotejid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_remotejid()) { - remotejid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_remotejid(), - GetArenaForAllocation()); + _this->_impl_.remotejid_.Set(from._internal_remotejid(), + _this->GetArenaForAllocation()); } - conversionsource_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.conversionsource_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.conversionsource_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_conversionsource()) { - conversionsource_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_conversionsource(), - GetArenaForAllocation()); + _this->_impl_.conversionsource_.Set(from._internal_conversionsource(), + _this->GetArenaForAllocation()); } - conversiondata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.conversiondata_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.conversiondata_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_conversiondata()) { - conversiondata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_conversiondata(), - GetArenaForAllocation()); + _this->_impl_.conversiondata_.Set(from._internal_conversiondata(), + _this->GetArenaForAllocation()); } - ephemeralsharedsecret_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.ephemeralsharedsecret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.ephemeralsharedsecret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_ephemeralsharedsecret()) { - ephemeralsharedsecret_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ephemeralsharedsecret(), - GetArenaForAllocation()); + _this->_impl_.ephemeralsharedsecret_.Set(from._internal_ephemeralsharedsecret(), + _this->GetArenaForAllocation()); } if (from._internal_has_quotedmessage()) { - quotedmessage_ = new ::proto::Message(*from.quotedmessage_); - } else { - quotedmessage_ = nullptr; + _this->_impl_.quotedmessage_ = new ::proto::Message(*from._impl_.quotedmessage_); } if (from._internal_has_quotedad()) { - quotedad_ = new ::proto::AdReplyInfo(*from.quotedad_); - } else { - quotedad_ = nullptr; + _this->_impl_.quotedad_ = new ::proto::AdReplyInfo(*from._impl_.quotedad_); } if (from._internal_has_placeholderkey()) { - placeholderkey_ = new ::proto::MessageKey(*from.placeholderkey_); - } else { - placeholderkey_ = nullptr; + _this->_impl_.placeholderkey_ = new ::proto::MessageKey(*from._impl_.placeholderkey_); } if (from._internal_has_externaladreply()) { - externaladreply_ = new ::proto::ExternalAdReplyInfo(*from.externaladreply_); - } else { - externaladreply_ = nullptr; + _this->_impl_.externaladreply_ = new ::proto::ExternalAdReplyInfo(*from._impl_.externaladreply_); } - ::memcpy(&conversiondelayseconds_, &from.conversiondelayseconds_, - static_cast<size_t>(reinterpret_cast<char*>(&ephemeralsettingtimestamp_) - - reinterpret_cast<char*>(&conversiondelayseconds_)) + sizeof(ephemeralsettingtimestamp_)); + ::memcpy(&_impl_.conversiondelayseconds_, &from._impl_.conversiondelayseconds_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.ephemeralsettingtimestamp_) - + reinterpret_cast<char*>(&_impl_.conversiondelayseconds_)) + sizeof(_impl_.ephemeralsettingtimestamp_)); // @@protoc_insertion_point(copy_constructor:proto.ContextInfo) } -void ContextInfo::SharedCtor() { -stanzaid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -remotejid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -conversionsource_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -conversiondata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -ephemeralsharedsecret_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>("edmessage_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&ephemeralsettingtimestamp_) - - reinterpret_cast<char*>("edmessage_)) + sizeof(ephemeralsettingtimestamp_)); +inline void ContextInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.mentionedjid_){arena} + , decltype(_impl_.stanzaid_){} + , decltype(_impl_.participant_){} + , decltype(_impl_.remotejid_){} + , decltype(_impl_.conversionsource_){} + , decltype(_impl_.conversiondata_){} + , decltype(_impl_.ephemeralsharedsecret_){} + , decltype(_impl_.quotedmessage_){nullptr} + , decltype(_impl_.quotedad_){nullptr} + , decltype(_impl_.placeholderkey_){nullptr} + , decltype(_impl_.externaladreply_){nullptr} + , decltype(_impl_.conversiondelayseconds_){0u} + , decltype(_impl_.forwardingscore_){0u} + , decltype(_impl_.isforwarded_){false} + , decltype(_impl_.expiration_){0u} + , decltype(_impl_.ephemeralsettingtimestamp_){int64_t{0}} + }; + _impl_.stanzaid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.stanzaid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.participant_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.participant_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.remotejid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.remotejid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.conversionsource_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.conversionsource_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.conversiondata_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.conversiondata_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.ephemeralsharedsecret_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.ephemeralsharedsecret_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ContextInfo::~ContextInfo() { // @@protoc_insertion_point(destructor:proto.ContextInfo) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void ContextInfo::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - stanzaid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - participant_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - remotejid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - conversionsource_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - conversiondata_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ephemeralsharedsecret_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete quotedmessage_; - if (this != internal_default_instance()) delete quotedad_; - if (this != internal_default_instance()) delete placeholderkey_; - if (this != internal_default_instance()) delete externaladreply_; + _impl_.mentionedjid_.~RepeatedPtrField(); + _impl_.stanzaid_.Destroy(); + _impl_.participant_.Destroy(); + _impl_.remotejid_.Destroy(); + _impl_.conversionsource_.Destroy(); + _impl_.conversiondata_.Destroy(); + _impl_.ephemeralsharedsecret_.Destroy(); + if (this != internal_default_instance()) delete _impl_.quotedmessage_; + if (this != internal_default_instance()) delete _impl_.quotedad_; + if (this != internal_default_instance()) delete _impl_.placeholderkey_; + if (this != internal_default_instance()) delete _impl_.externaladreply_; } -void ContextInfo::ArenaDtor(void* object) { - ContextInfo* _this = reinterpret_cast< ContextInfo* >(object); - (void)_this; -} -void ContextInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void ContextInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ContextInfo::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ContextInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - mentionedjid_.Clear(); - cached_has_bits = _has_bits_[0]; + _impl_.mentionedjid_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - stanzaid_.ClearNonDefaultToEmpty(); + _impl_.stanzaid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - participant_.ClearNonDefaultToEmpty(); + _impl_.participant_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - remotejid_.ClearNonDefaultToEmpty(); + _impl_.remotejid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - conversionsource_.ClearNonDefaultToEmpty(); + _impl_.conversionsource_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { - conversiondata_.ClearNonDefaultToEmpty(); + _impl_.conversiondata_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { - ephemeralsharedsecret_.ClearNonDefaultToEmpty(); + _impl_.ephemeralsharedsecret_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { - GOOGLE_DCHECK(quotedmessage_ != nullptr); - quotedmessage_->Clear(); + GOOGLE_DCHECK(_impl_.quotedmessage_ != nullptr); + _impl_.quotedmessage_->Clear(); } if (cached_has_bits & 0x00000080u) { - GOOGLE_DCHECK(quotedad_ != nullptr); - quotedad_->Clear(); + GOOGLE_DCHECK(_impl_.quotedad_ != nullptr); + _impl_.quotedad_->Clear(); } } if (cached_has_bits & 0x00000300u) { if (cached_has_bits & 0x00000100u) { - GOOGLE_DCHECK(placeholderkey_ != nullptr); - placeholderkey_->Clear(); + GOOGLE_DCHECK(_impl_.placeholderkey_ != nullptr); + _impl_.placeholderkey_->Clear(); } if (cached_has_bits & 0x00000200u) { - GOOGLE_DCHECK(externaladreply_ != nullptr); - externaladreply_->Clear(); + GOOGLE_DCHECK(_impl_.externaladreply_ != nullptr); + _impl_.externaladreply_->Clear(); } } if (cached_has_bits & 0x00007c00u) { - ::memset(&conversiondelayseconds_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&ephemeralsettingtimestamp_) - - reinterpret_cast<char*>(&conversiondelayseconds_)) + sizeof(ephemeralsettingtimestamp_)); + ::memset(&_impl_.conversiondelayseconds_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.ephemeralsettingtimestamp_) - + reinterpret_cast<char*>(&_impl_.conversiondelayseconds_)) + sizeof(_impl_.ephemeralsettingtimestamp_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ContextInfo::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string stanzaId = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_stanzaid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ContextInfo.stanzaId"); + ::_pbi::VerifyUTF8(str, "proto.ContextInfo.stanzaId"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string participant = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_participant(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ContextInfo.participant"); + ::_pbi::VerifyUTF8(str, "proto.ContextInfo.participant"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.Message quotedMessage = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_quotedmessage(), ptr); CHK_(ptr); } else @@ -9954,28 +10291,28 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional string remoteJid = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { auto str = _internal_mutable_remotejid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ContextInfo.remoteJid"); + ::_pbi::VerifyUTF8(str, "proto.ContextInfo.remoteJid"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // repeated string mentionedJid = 15; case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 122)) { ptr -= 1; do { ptr += 1; auto str = _internal_add_mentionedjid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ContextInfo.mentionedJid"); + ::_pbi::VerifyUTF8(str, "proto.ContextInfo.mentionedJid"); #endif // !NDEBUG - CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<122>(ptr)); } else @@ -9983,55 +10320,55 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional string conversionSource = 18; case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 146)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 146)) { auto str = _internal_mutable_conversionsource(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ContextInfo.conversionSource"); + ::_pbi::VerifyUTF8(str, "proto.ContextInfo.conversionSource"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes conversionData = 19; case 19: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 154)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 154)) { auto str = _internal_mutable_conversiondata(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 conversionDelaySeconds = 20; case 20: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 160)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160)) { _Internal::set_has_conversiondelayseconds(&has_bits); - conversiondelayseconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.conversiondelayseconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 forwardingScore = 21; case 21: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 168)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 168)) { _Internal::set_has_forwardingscore(&has_bits); - forwardingscore_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.forwardingscore_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bool isForwarded = 22; case 22: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 176)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 176)) { _Internal::set_has_isforwarded(&has_bits); - isforwarded_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.isforwarded_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.AdReplyInfo quotedAd = 23; case 23: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 186)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 186)) { ptr = ctx->ParseMessage(_internal_mutable_quotedad(), ptr); CHK_(ptr); } else @@ -10039,7 +10376,7 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.MessageKey placeholderKey = 24; case 24: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 194)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 194)) { ptr = ctx->ParseMessage(_internal_mutable_placeholderkey(), ptr); CHK_(ptr); } else @@ -10047,34 +10384,34 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional uint32 expiration = 25; case 25: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 200)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 200)) { _Internal::set_has_expiration(&has_bits); - expiration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.expiration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional int64 ephemeralSettingTimestamp = 26; case 26: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 208)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 208)) { _Internal::set_has_ephemeralsettingtimestamp(&has_bits); - ephemeralsettingtimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.ephemeralsettingtimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes ephemeralSharedSecret = 27; case 27: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 218)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 218)) { auto str = _internal_mutable_ephemeralsharedsecret(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ExternalAdReplyInfo externalAdReply = 28; case 28: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 226)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 226)) { ptr = ctx->ParseMessage(_internal_mutable_externaladreply(), ptr); CHK_(ptr); } else @@ -10096,7 +10433,7 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -10104,13 +10441,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ContextInfo::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* ContextInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.ContextInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string stanzaId = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -10133,10 +10470,9 @@ failure: // optional .proto.Message quotedMessage = 3; if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::quotedmessage(this), target, stream); + InternalWriteMessage(3, _Internal::quotedmessage(this), + _Internal::quotedmessage(this).GetCachedSize(), target, stream); } // optional string remoteJid = 4; @@ -10178,47 +10514,45 @@ failure: // optional uint32 conversionDelaySeconds = 20; if (cached_has_bits & 0x00000400u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(20, this->_internal_conversiondelayseconds(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(20, this->_internal_conversiondelayseconds(), target); } // optional uint32 forwardingScore = 21; if (cached_has_bits & 0x00000800u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(21, this->_internal_forwardingscore(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(21, this->_internal_forwardingscore(), target); } // optional bool isForwarded = 22; if (cached_has_bits & 0x00001000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(22, this->_internal_isforwarded(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(22, this->_internal_isforwarded(), target); } // optional .proto.AdReplyInfo quotedAd = 23; if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 23, _Internal::quotedad(this), target, stream); + InternalWriteMessage(23, _Internal::quotedad(this), + _Internal::quotedad(this).GetCachedSize(), target, stream); } // optional .proto.MessageKey placeholderKey = 24; if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 24, _Internal::placeholderkey(this), target, stream); + InternalWriteMessage(24, _Internal::placeholderkey(this), + _Internal::placeholderkey(this).GetCachedSize(), target, stream); } // optional uint32 expiration = 25; if (cached_has_bits & 0x00002000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(25, this->_internal_expiration(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(25, this->_internal_expiration(), target); } // optional int64 ephemeralSettingTimestamp = 26; if (cached_has_bits & 0x00004000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(26, this->_internal_ephemeralsettingtimestamp(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(26, this->_internal_ephemeralsettingtimestamp(), target); } // optional bytes ephemeralSharedSecret = 27; @@ -10229,14 +10563,13 @@ failure: // optional .proto.ExternalAdReplyInfo externalAdReply = 28; if (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 28, _Internal::externaladreply(this), target, stream); + InternalWriteMessage(28, _Internal::externaladreply(this), + _Internal::externaladreply(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ContextInfo) @@ -10247,19 +10580,19 @@ size_t ContextInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.ContextInfo) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string mentionedJid = 15; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(mentionedjid_.size()); - for (int i = 0, n = mentionedjid_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.mentionedjid_.size()); + for (int i = 0, n = _impl_.mentionedjid_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - mentionedjid_.Get(i)); + _impl_.mentionedjid_.Get(i)); } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string stanzaId = 1; if (cached_has_bits & 0x00000001u) { @@ -10307,14 +10640,14 @@ size_t ContextInfo::ByteSizeLong() const { if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *quotedmessage_); + *_impl_.quotedmessage_); } // optional .proto.AdReplyInfo quotedAd = 23; if (cached_has_bits & 0x00000080u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *quotedad_); + *_impl_.quotedad_); } } @@ -10323,27 +10656,27 @@ size_t ContextInfo::ByteSizeLong() const { if (cached_has_bits & 0x00000100u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *placeholderkey_); + *_impl_.placeholderkey_); } // optional .proto.ExternalAdReplyInfo externalAdReply = 28; if (cached_has_bits & 0x00000200u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *externaladreply_); + *_impl_.externaladreply_); } // optional uint32 conversionDelaySeconds = 20; if (cached_has_bits & 0x00000400u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + ::_pbi::WireFormatLite::UInt32Size( this->_internal_conversiondelayseconds()); } // optional uint32 forwardingScore = 21; if (cached_has_bits & 0x00000800u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + ::_pbi::WireFormatLite::UInt32Size( this->_internal_forwardingscore()); } @@ -10355,93 +10688,93 @@ size_t ContextInfo::ByteSizeLong() const { // optional uint32 expiration = 25; if (cached_has_bits & 0x00002000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + ::_pbi::WireFormatLite::UInt32Size( this->_internal_expiration()); } // optional int64 ephemeralSettingTimestamp = 26; if (cached_has_bits & 0x00004000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + ::_pbi::WireFormatLite::Int64Size( this->_internal_ephemeralsettingtimestamp()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ContextInfo::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ContextInfo::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ContextInfo::GetClassData() const { return &_class_data_; } -void ContextInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<ContextInfo *>(to)->MergeFrom( - static_cast<const ContextInfo &>(from)); -} - -void ContextInfo::MergeFrom(const ContextInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.ContextInfo) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void ContextInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<ContextInfo*>(&to_msg); + auto& from = static_cast<const ContextInfo&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.ContextInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - mentionedjid_.MergeFrom(from.mentionedjid_); - cached_has_bits = from._has_bits_[0]; + _this->_impl_.mentionedjid_.MergeFrom(from._impl_.mentionedjid_); + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_set_stanzaid(from._internal_stanzaid()); + _this->_internal_set_stanzaid(from._internal_stanzaid()); } if (cached_has_bits & 0x00000002u) { - _internal_set_participant(from._internal_participant()); + _this->_internal_set_participant(from._internal_participant()); } if (cached_has_bits & 0x00000004u) { - _internal_set_remotejid(from._internal_remotejid()); + _this->_internal_set_remotejid(from._internal_remotejid()); } if (cached_has_bits & 0x00000008u) { - _internal_set_conversionsource(from._internal_conversionsource()); + _this->_internal_set_conversionsource(from._internal_conversionsource()); } if (cached_has_bits & 0x00000010u) { - _internal_set_conversiondata(from._internal_conversiondata()); + _this->_internal_set_conversiondata(from._internal_conversiondata()); } if (cached_has_bits & 0x00000020u) { - _internal_set_ephemeralsharedsecret(from._internal_ephemeralsharedsecret()); + _this->_internal_set_ephemeralsharedsecret(from._internal_ephemeralsharedsecret()); } if (cached_has_bits & 0x00000040u) { - _internal_mutable_quotedmessage()->::proto::Message::MergeFrom(from._internal_quotedmessage()); + _this->_internal_mutable_quotedmessage()->::proto::Message::MergeFrom( + from._internal_quotedmessage()); } if (cached_has_bits & 0x00000080u) { - _internal_mutable_quotedad()->::proto::AdReplyInfo::MergeFrom(from._internal_quotedad()); + _this->_internal_mutable_quotedad()->::proto::AdReplyInfo::MergeFrom( + from._internal_quotedad()); } } if (cached_has_bits & 0x00007f00u) { if (cached_has_bits & 0x00000100u) { - _internal_mutable_placeholderkey()->::proto::MessageKey::MergeFrom(from._internal_placeholderkey()); + _this->_internal_mutable_placeholderkey()->::proto::MessageKey::MergeFrom( + from._internal_placeholderkey()); } if (cached_has_bits & 0x00000200u) { - _internal_mutable_externaladreply()->::proto::ExternalAdReplyInfo::MergeFrom(from._internal_externaladreply()); + _this->_internal_mutable_externaladreply()->::proto::ExternalAdReplyInfo::MergeFrom( + from._internal_externaladreply()); } if (cached_has_bits & 0x00000400u) { - conversiondelayseconds_ = from.conversiondelayseconds_; + _this->_impl_.conversiondelayseconds_ = from._impl_.conversiondelayseconds_; } if (cached_has_bits & 0x00000800u) { - forwardingscore_ = from.forwardingscore_; + _this->_impl_.forwardingscore_ = from._impl_.forwardingscore_; } if (cached_has_bits & 0x00001000u) { - isforwarded_ = from.isforwarded_; + _this->_impl_.isforwarded_ = from._impl_.isforwarded_; } if (cached_has_bits & 0x00002000u) { - expiration_ = from.expiration_; + _this->_impl_.expiration_ = from._impl_.expiration_; } if (cached_has_bits & 0x00004000u) { - ephemeralsettingtimestamp_ = from.ephemeralsettingtimestamp_; + _this->_impl_.ephemeralsettingtimestamp_ = from._impl_.ephemeralsettingtimestamp_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ContextInfo::CopyFrom(const ContextInfo& from) { @@ -10460,48 +10793,42 @@ void ContextInfo::InternalSwap(ContextInfo* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - mentionedjid_.InternalSwap(&other->mentionedjid_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.mentionedjid_.InternalSwap(&other->_impl_.mentionedjid_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &stanzaid_, lhs_arena, - &other->stanzaid_, rhs_arena + &_impl_.stanzaid_, lhs_arena, + &other->_impl_.stanzaid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &participant_, lhs_arena, - &other->participant_, rhs_arena + &_impl_.participant_, lhs_arena, + &other->_impl_.participant_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &remotejid_, lhs_arena, - &other->remotejid_, rhs_arena + &_impl_.remotejid_, lhs_arena, + &other->_impl_.remotejid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &conversionsource_, lhs_arena, - &other->conversionsource_, rhs_arena + &_impl_.conversionsource_, lhs_arena, + &other->_impl_.conversionsource_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &conversiondata_, lhs_arena, - &other->conversiondata_, rhs_arena + &_impl_.conversiondata_, lhs_arena, + &other->_impl_.conversiondata_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &ephemeralsharedsecret_, lhs_arena, - &other->ephemeralsharedsecret_, rhs_arena + &_impl_.ephemeralsharedsecret_, lhs_arena, + &other->_impl_.ephemeralsharedsecret_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ContextInfo, ephemeralsettingtimestamp_) - + sizeof(ContextInfo::ephemeralsettingtimestamp_) - - PROTOBUF_FIELD_OFFSET(ContextInfo, quotedmessage_)>( - reinterpret_cast<char*>("edmessage_), - reinterpret_cast<char*>(&other->quotedmessage_)); + PROTOBUF_FIELD_OFFSET(ContextInfo, _impl_.ephemeralsettingtimestamp_) + + sizeof(ContextInfo::_impl_.ephemeralsettingtimestamp_) + - PROTOBUF_FIELD_OFFSET(ContextInfo, _impl_.quotedmessage_)>( + reinterpret_cast<char*>(&_impl_.quotedmessage_), + reinterpret_cast<char*>(&other->_impl_.quotedmessage_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ContextInfo::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[16]); } @@ -10510,7 +10837,7 @@ void ContextInfo::InternalSwap(ContextInfo* other) { class SenderKeyDistributionMessage::_Internal { public: - using HasBits = decltype(std::declval<SenderKeyDistributionMessage>()._has_bits_); + using HasBits = decltype(std::declval<SenderKeyDistributionMessage>()._impl_._has_bits_); static void set_has_groupid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -10522,100 +10849,120 @@ class SenderKeyDistributionMessage::_Internal { SenderKeyDistributionMessage::SenderKeyDistributionMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.SenderKeyDistributionMessage) } SenderKeyDistributionMessage::SenderKeyDistributionMessage(const SenderKeyDistributionMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + SenderKeyDistributionMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.groupid_){} + , decltype(_impl_.axolotlsenderkeydistributionmessage_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - groupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.groupid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.groupid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_groupid()) { - groupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_groupid(), - GetArenaForAllocation()); + _this->_impl_.groupid_.Set(from._internal_groupid(), + _this->GetArenaForAllocation()); } - axolotlsenderkeydistributionmessage_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.axolotlsenderkeydistributionmessage_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.axolotlsenderkeydistributionmessage_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_axolotlsenderkeydistributionmessage()) { - axolotlsenderkeydistributionmessage_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_axolotlsenderkeydistributionmessage(), - GetArenaForAllocation()); + _this->_impl_.axolotlsenderkeydistributionmessage_.Set(from._internal_axolotlsenderkeydistributionmessage(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.SenderKeyDistributionMessage) } -void SenderKeyDistributionMessage::SharedCtor() { -groupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -axolotlsenderkeydistributionmessage_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void SenderKeyDistributionMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.groupid_){} + , decltype(_impl_.axolotlsenderkeydistributionmessage_){} + }; + _impl_.groupid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.groupid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.axolotlsenderkeydistributionmessage_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.axolotlsenderkeydistributionmessage_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } SenderKeyDistributionMessage::~SenderKeyDistributionMessage() { // @@protoc_insertion_point(destructor:proto.SenderKeyDistributionMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void SenderKeyDistributionMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - groupid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - axolotlsenderkeydistributionmessage_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.groupid_.Destroy(); + _impl_.axolotlsenderkeydistributionmessage_.Destroy(); } -void SenderKeyDistributionMessage::ArenaDtor(void* object) { - SenderKeyDistributionMessage* _this = reinterpret_cast< SenderKeyDistributionMessage* >(object); - (void)_this; -} -void SenderKeyDistributionMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void SenderKeyDistributionMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SenderKeyDistributionMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.SenderKeyDistributionMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - groupid_.ClearNonDefaultToEmpty(); + _impl_.groupid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - axolotlsenderkeydistributionmessage_.ClearNonDefaultToEmpty(); + _impl_.axolotlsenderkeydistributionmessage_.ClearNonDefaultToEmpty(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* SenderKeyDistributionMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* SenderKeyDistributionMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string groupId = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_groupid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.SenderKeyDistributionMessage.groupId"); + ::_pbi::VerifyUTF8(str, "proto.SenderKeyDistributionMessage.groupId"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes axolotlSenderKeyDistributionMessage = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_axolotlsenderkeydistributionmessage(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; @@ -10636,7 +10983,7 @@ const char* SenderKeyDistributionMessage::_InternalParse(const char* ptr, ::PROT CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -10644,13 +10991,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* SenderKeyDistributionMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* SenderKeyDistributionMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.SenderKeyDistributionMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string groupId = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -10668,7 +11015,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.SenderKeyDistributionMessage) @@ -10679,11 +11026,11 @@ size_t SenderKeyDistributionMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.SenderKeyDistributionMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string groupId = 1; if (cached_has_bits & 0x00000001u) { @@ -10700,38 +11047,34 @@ size_t SenderKeyDistributionMessage::ByteSizeLong() const { } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SenderKeyDistributionMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SenderKeyDistributionMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SenderKeyDistributionMessage::GetClassData() const { return &_class_data_; } -void SenderKeyDistributionMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<SenderKeyDistributionMessage *>(to)->MergeFrom( - static_cast<const SenderKeyDistributionMessage &>(from)); -} - -void SenderKeyDistributionMessage::MergeFrom(const SenderKeyDistributionMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.SenderKeyDistributionMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void SenderKeyDistributionMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<SenderKeyDistributionMessage*>(&to_msg); + auto& from = static_cast<const SenderKeyDistributionMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.SenderKeyDistributionMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _internal_set_groupid(from._internal_groupid()); + _this->_internal_set_groupid(from._internal_groupid()); } if (cached_has_bits & 0x00000002u) { - _internal_set_axolotlsenderkeydistributionmessage(from._internal_axolotlsenderkeydistributionmessage()); + _this->_internal_set_axolotlsenderkeydistributionmessage(from._internal_axolotlsenderkeydistributionmessage()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SenderKeyDistributionMessage::CopyFrom(const SenderKeyDistributionMessage& from) { @@ -10750,21 +11093,19 @@ void SenderKeyDistributionMessage::InternalSwap(SenderKeyDistributionMessage* ot auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &groupid_, lhs_arena, - &other->groupid_, rhs_arena + &_impl_.groupid_, lhs_arena, + &other->_impl_.groupid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &axolotlsenderkeydistributionmessage_, lhs_arena, - &other->axolotlsenderkeydistributionmessage_, rhs_arena + &_impl_.axolotlsenderkeydistributionmessage_, lhs_arena, + &other->_impl_.axolotlsenderkeydistributionmessage_, rhs_arena ); } ::PROTOBUF_NAMESPACE_ID::Metadata SenderKeyDistributionMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[17]); } @@ -10773,7 +11114,7 @@ void SenderKeyDistributionMessage::InternalSwap(SenderKeyDistributionMessage* ot class ImageMessage::_Internal { public: - using HasBits = decltype(std::declval<ImageMessage>()._has_bits_); + using HasBits = decltype(std::declval<ImageMessage>()._impl_._has_bits_); static void set_has_url(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -10848,341 +11189,477 @@ class ImageMessage::_Internal { const ::proto::ContextInfo& ImageMessage::_Internal::contextinfo(const ImageMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } ImageMessage::ImageMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - interactiveannotations_(arena), - scanlengths_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.ImageMessage) } ImageMessage::ImageMessage(const ImageMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - interactiveannotations_(from.interactiveannotations_), - scanlengths_(from.scanlengths_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + ImageMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.interactiveannotations_){from._impl_.interactiveannotations_} + , decltype(_impl_.scanlengths_){from._impl_.scanlengths_} + , decltype(_impl_.url_){} + , decltype(_impl_.mimetype_){} + , decltype(_impl_.caption_){} + , decltype(_impl_.filesha256_){} + , decltype(_impl_.mediakey_){} + , decltype(_impl_.fileencsha256_){} + , decltype(_impl_.directpath_){} + , decltype(_impl_.jpegthumbnail_){} + , decltype(_impl_.firstscansidecar_){} + , decltype(_impl_.scanssidecar_){} + , decltype(_impl_.midqualityfilesha256_){} + , decltype(_impl_.midqualityfileencsha256_){} + , decltype(_impl_.thumbnaildirectpath_){} + , decltype(_impl_.thumbnailsha256_){} + , decltype(_impl_.thumbnailencsha256_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.filelength_){} + , decltype(_impl_.height_){} + , decltype(_impl_.width_){} + , decltype(_impl_.mediakeytimestamp_){} + , decltype(_impl_.firstscanlength_){} + , decltype(_impl_.experimentgroupid_){} + , decltype(_impl_.viewonce_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_url()) { - url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), - GetArenaForAllocation()); + _this->_impl_.url_.Set(from._internal_url(), + _this->GetArenaForAllocation()); } - mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.mimetype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mimetype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_mimetype()) { - mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mimetype(), - GetArenaForAllocation()); + _this->_impl_.mimetype_.Set(from._internal_mimetype(), + _this->GetArenaForAllocation()); } - caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.caption_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.caption_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_caption()) { - caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_caption(), - GetArenaForAllocation()); + _this->_impl_.caption_.Set(from._internal_caption(), + _this->GetArenaForAllocation()); } - filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.filesha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filesha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_filesha256()) { - filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), - GetArenaForAllocation()); + _this->_impl_.filesha256_.Set(from._internal_filesha256(), + _this->GetArenaForAllocation()); } - mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.mediakey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_mediakey()) { - mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), - GetArenaForAllocation()); + _this->_impl_.mediakey_.Set(from._internal_mediakey(), + _this->GetArenaForAllocation()); } - fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.fileencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_fileencsha256()) { - fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), - GetArenaForAllocation()); + _this->_impl_.fileencsha256_.Set(from._internal_fileencsha256(), + _this->GetArenaForAllocation()); } - directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.directpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_directpath()) { - directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), - GetArenaForAllocation()); + _this->_impl_.directpath_.Set(from._internal_directpath(), + _this->GetArenaForAllocation()); } - jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.jpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_jpegthumbnail()) { - jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), - GetArenaForAllocation()); + _this->_impl_.jpegthumbnail_.Set(from._internal_jpegthumbnail(), + _this->GetArenaForAllocation()); } - firstscansidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.firstscansidecar_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.firstscansidecar_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_firstscansidecar()) { - firstscansidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_firstscansidecar(), - GetArenaForAllocation()); + _this->_impl_.firstscansidecar_.Set(from._internal_firstscansidecar(), + _this->GetArenaForAllocation()); } - scanssidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.scanssidecar_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.scanssidecar_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_scanssidecar()) { - scanssidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_scanssidecar(), - GetArenaForAllocation()); + _this->_impl_.scanssidecar_.Set(from._internal_scanssidecar(), + _this->GetArenaForAllocation()); } - midqualityfilesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.midqualityfilesha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.midqualityfilesha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_midqualityfilesha256()) { - midqualityfilesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_midqualityfilesha256(), - GetArenaForAllocation()); + _this->_impl_.midqualityfilesha256_.Set(from._internal_midqualityfilesha256(), + _this->GetArenaForAllocation()); } - midqualityfileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.midqualityfileencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.midqualityfileencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_midqualityfileencsha256()) { - midqualityfileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_midqualityfileencsha256(), - GetArenaForAllocation()); + _this->_impl_.midqualityfileencsha256_.Set(from._internal_midqualityfileencsha256(), + _this->GetArenaForAllocation()); } - thumbnaildirectpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.thumbnaildirectpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnaildirectpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_thumbnaildirectpath()) { - thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnaildirectpath(), - GetArenaForAllocation()); + _this->_impl_.thumbnaildirectpath_.Set(from._internal_thumbnaildirectpath(), + _this->GetArenaForAllocation()); } - thumbnailsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.thumbnailsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_thumbnailsha256()) { - thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailsha256(), - GetArenaForAllocation()); + _this->_impl_.thumbnailsha256_.Set(from._internal_thumbnailsha256(), + _this->GetArenaForAllocation()); } - thumbnailencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.thumbnailencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_thumbnailencsha256()) { - thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailencsha256(), - GetArenaForAllocation()); + _this->_impl_.thumbnailencsha256_.Set(from._internal_thumbnailencsha256(), + _this->GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } - ::memcpy(&filelength_, &from.filelength_, - static_cast<size_t>(reinterpret_cast<char*>(&viewonce_) - - reinterpret_cast<char*>(&filelength_)) + sizeof(viewonce_)); + ::memcpy(&_impl_.filelength_, &from._impl_.filelength_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.viewonce_) - + reinterpret_cast<char*>(&_impl_.filelength_)) + sizeof(_impl_.viewonce_)); // @@protoc_insertion_point(copy_constructor:proto.ImageMessage) } -void ImageMessage::SharedCtor() { -url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -firstscansidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -scanssidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -midqualityfilesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -midqualityfileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -thumbnaildirectpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -thumbnailsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -thumbnailencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&viewonce_) - - reinterpret_cast<char*>(&contextinfo_)) + sizeof(viewonce_)); +inline void ImageMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.interactiveannotations_){arena} + , decltype(_impl_.scanlengths_){arena} + , decltype(_impl_.url_){} + , decltype(_impl_.mimetype_){} + , decltype(_impl_.caption_){} + , decltype(_impl_.filesha256_){} + , decltype(_impl_.mediakey_){} + , decltype(_impl_.fileencsha256_){} + , decltype(_impl_.directpath_){} + , decltype(_impl_.jpegthumbnail_){} + , decltype(_impl_.firstscansidecar_){} + , decltype(_impl_.scanssidecar_){} + , decltype(_impl_.midqualityfilesha256_){} + , decltype(_impl_.midqualityfileencsha256_){} + , decltype(_impl_.thumbnaildirectpath_){} + , decltype(_impl_.thumbnailsha256_){} + , decltype(_impl_.thumbnailencsha256_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.filelength_){uint64_t{0u}} + , decltype(_impl_.height_){0u} + , decltype(_impl_.width_){0u} + , decltype(_impl_.mediakeytimestamp_){int64_t{0}} + , decltype(_impl_.firstscanlength_){0u} + , decltype(_impl_.experimentgroupid_){0u} + , decltype(_impl_.viewonce_){false} + }; + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mimetype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mimetype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.caption_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.caption_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filesha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filesha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.firstscansidecar_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.firstscansidecar_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.scanssidecar_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.scanssidecar_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.midqualityfilesha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.midqualityfilesha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.midqualityfileencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.midqualityfileencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnaildirectpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnaildirectpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ImageMessage::~ImageMessage() { // @@protoc_insertion_point(destructor:proto.ImageMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void ImageMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - mimetype_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - caption_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - filesha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - mediakey_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - fileencsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - directpath_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - jpegthumbnail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - firstscansidecar_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - scanssidecar_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - midqualityfilesha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - midqualityfileencsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - thumbnaildirectpath_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - thumbnailsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - thumbnailencsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete contextinfo_; -} - -void ImageMessage::ArenaDtor(void* object) { - ImageMessage* _this = reinterpret_cast< ImageMessage* >(object); - (void)_this; -} -void ImageMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { + _impl_.interactiveannotations_.~RepeatedPtrField(); + _impl_.scanlengths_.~RepeatedField(); + _impl_.url_.Destroy(); + _impl_.mimetype_.Destroy(); + _impl_.caption_.Destroy(); + _impl_.filesha256_.Destroy(); + _impl_.mediakey_.Destroy(); + _impl_.fileencsha256_.Destroy(); + _impl_.directpath_.Destroy(); + _impl_.jpegthumbnail_.Destroy(); + _impl_.firstscansidecar_.Destroy(); + _impl_.scanssidecar_.Destroy(); + _impl_.midqualityfilesha256_.Destroy(); + _impl_.midqualityfileencsha256_.Destroy(); + _impl_.thumbnaildirectpath_.Destroy(); + _impl_.thumbnailsha256_.Destroy(); + _impl_.thumbnailencsha256_.Destroy(); + if (this != internal_default_instance()) delete _impl_.contextinfo_; } + void ImageMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ImageMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ImageMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - interactiveannotations_.Clear(); - scanlengths_.Clear(); - cached_has_bits = _has_bits_[0]; + _impl_.interactiveannotations_.Clear(); + _impl_.scanlengths_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - url_.ClearNonDefaultToEmpty(); + _impl_.url_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - mimetype_.ClearNonDefaultToEmpty(); + _impl_.mimetype_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - caption_.ClearNonDefaultToEmpty(); + _impl_.caption_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - filesha256_.ClearNonDefaultToEmpty(); + _impl_.filesha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { - mediakey_.ClearNonDefaultToEmpty(); + _impl_.mediakey_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { - fileencsha256_.ClearNonDefaultToEmpty(); + _impl_.fileencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { - directpath_.ClearNonDefaultToEmpty(); + _impl_.directpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { - jpegthumbnail_.ClearNonDefaultToEmpty(); + _impl_.jpegthumbnail_.ClearNonDefaultToEmpty(); } } if (cached_has_bits & 0x0000ff00u) { if (cached_has_bits & 0x00000100u) { - firstscansidecar_.ClearNonDefaultToEmpty(); + _impl_.firstscansidecar_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000200u) { - scanssidecar_.ClearNonDefaultToEmpty(); + _impl_.scanssidecar_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000400u) { - midqualityfilesha256_.ClearNonDefaultToEmpty(); + _impl_.midqualityfilesha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000800u) { - midqualityfileencsha256_.ClearNonDefaultToEmpty(); + _impl_.midqualityfileencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00001000u) { - thumbnaildirectpath_.ClearNonDefaultToEmpty(); + _impl_.thumbnaildirectpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00002000u) { - thumbnailsha256_.ClearNonDefaultToEmpty(); + _impl_.thumbnailsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00004000u) { - thumbnailencsha256_.ClearNonDefaultToEmpty(); + _impl_.thumbnailencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00008000u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } } if (cached_has_bits & 0x007f0000u) { - ::memset(&filelength_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&viewonce_) - - reinterpret_cast<char*>(&filelength_)) + sizeof(viewonce_)); + ::memset(&_impl_.filelength_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.viewonce_) - + reinterpret_cast<char*>(&_impl_.filelength_)) + sizeof(_impl_.viewonce_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ImageMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string url = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_url(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ImageMessage.url"); + ::_pbi::VerifyUTF8(str, "proto.ImageMessage.url"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string mimetype = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_mimetype(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ImageMessage.mimetype"); + ::_pbi::VerifyUTF8(str, "proto.ImageMessage.mimetype"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string caption = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { auto str = _internal_mutable_caption(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ImageMessage.caption"); + ::_pbi::VerifyUTF8(str, "proto.ImageMessage.caption"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes fileSha256 = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { auto str = _internal_mutable_filesha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional uint64 fileLength = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) { _Internal::set_has_filelength(&has_bits); - filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 height = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) { _Internal::set_has_height(&has_bits); - height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 width = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) { _Internal::set_has_width(&has_bits); - width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes mediaKey = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { auto str = _internal_mutable_mediakey(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes fileEncSha256 = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) { auto str = _internal_mutable_fileencsha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // repeated .proto.InteractiveAnnotation interactiveAnnotations = 10; case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) { ptr -= 1; do { ptr += 1; @@ -11195,37 +11672,37 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I continue; // optional string directPath = 11; case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) { auto str = _internal_mutable_directpath(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ImageMessage.directPath"); + ::_pbi::VerifyUTF8(str, "proto.ImageMessage.directPath"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional int64 mediaKeyTimestamp = 12; case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) { _Internal::set_has_mediakeytimestamp(&has_bits); - mediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.mediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes jpegThumbnail = 16; case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 130)) { auto str = _internal_mutable_jpegthumbnail(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ContextInfo contextInfo = 17; case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -11233,43 +11710,43 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I continue; // optional bytes firstScanSidecar = 18; case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 146)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 146)) { auto str = _internal_mutable_firstscansidecar(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 firstScanLength = 19; case 19: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 152)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) { _Internal::set_has_firstscanlength(&has_bits); - firstscanlength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.firstscanlength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 experimentGroupId = 20; case 20: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 160)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160)) { _Internal::set_has_experimentgroupid(&has_bits); - experimentgroupid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.experimentgroupid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes scansSidecar = 21; case 21: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 170)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 170)) { auto str = _internal_mutable_scanssidecar(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // repeated uint32 scanLengths = 22; case 22: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 176)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 176)) { ptr -= 2; do { ptr += 2; @@ -11277,7 +11754,7 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<176>(ptr)); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 178) { + } else if (static_cast<uint8_t>(tag) == 178) { ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_scanlengths(), ptr, ctx); CHK_(ptr); } else @@ -11285,57 +11762,57 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I continue; // optional bytes midQualityFileSha256 = 23; case 23: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 186)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 186)) { auto str = _internal_mutable_midqualityfilesha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes midQualityFileEncSha256 = 24; case 24: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 194)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 194)) { auto str = _internal_mutable_midqualityfileencsha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional bool viewOnce = 25; case 25: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 200)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 200)) { _Internal::set_has_viewonce(&has_bits); - viewonce_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.viewonce_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string thumbnailDirectPath = 26; case 26: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 210)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 210)) { auto str = _internal_mutable_thumbnaildirectpath(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ImageMessage.thumbnailDirectPath"); + ::_pbi::VerifyUTF8(str, "proto.ImageMessage.thumbnailDirectPath"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes thumbnailSha256 = 27; case 27: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 218)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 218)) { auto str = _internal_mutable_thumbnailsha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes thumbnailEncSha256 = 28; case 28: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 226)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 226)) { auto str = _internal_mutable_thumbnailencsha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; @@ -11356,7 +11833,7 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -11364,13 +11841,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ImageMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* ImageMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.ImageMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string url = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -11410,19 +11887,19 @@ failure: // optional uint64 fileLength = 5; if (cached_has_bits & 0x00010000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_filelength(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_filelength(), target); } // optional uint32 height = 6; if (cached_has_bits & 0x00020000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_height(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_height(), target); } // optional uint32 width = 7; if (cached_has_bits & 0x00040000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->_internal_width(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_width(), target); } // optional bytes mediaKey = 8; @@ -11438,11 +11915,11 @@ failure: } // repeated .proto.InteractiveAnnotation interactiveAnnotations = 10; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->_internal_interactiveannotations_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast<unsigned>(this->_internal_interactiveannotations_size()); i < n; i++) { + const auto& repfield = this->_internal_interactiveannotations(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(10, this->_internal_interactiveannotations(i), target, stream); + InternalWriteMessage(10, repfield, repfield.GetCachedSize(), target, stream); } // optional string directPath = 11; @@ -11458,7 +11935,7 @@ failure: // optional int64 mediaKeyTimestamp = 12; if (cached_has_bits & 0x00080000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(12, this->_internal_mediakeytimestamp(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(12, this->_internal_mediakeytimestamp(), target); } // optional bytes jpegThumbnail = 16; @@ -11469,10 +11946,9 @@ failure: // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00008000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 17, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(17, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } // optional bytes firstScanSidecar = 18; @@ -11484,13 +11960,13 @@ failure: // optional uint32 firstScanLength = 19; if (cached_has_bits & 0x00100000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(19, this->_internal_firstscanlength(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(19, this->_internal_firstscanlength(), target); } // optional uint32 experimentGroupId = 20; if (cached_has_bits & 0x00200000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(20, this->_internal_experimentgroupid(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(20, this->_internal_experimentgroupid(), target); } // optional bytes scansSidecar = 21; @@ -11502,7 +11978,7 @@ failure: // repeated uint32 scanLengths = 22; for (int i = 0, n = this->_internal_scanlengths_size(); i < n; i++) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(22, this->_internal_scanlengths(i), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(22, this->_internal_scanlengths(i), target); } // optional bytes midQualityFileSha256 = 23; @@ -11520,7 +11996,7 @@ failure: // optional bool viewOnce = 25; if (cached_has_bits & 0x00400000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(25, this->_internal_viewonce(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(25, this->_internal_viewonce(), target); } // optional string thumbnailDirectPath = 26; @@ -11546,7 +12022,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ImageMessage) @@ -11557,27 +12033,27 @@ size_t ImageMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.ImageMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .proto.InteractiveAnnotation interactiveAnnotations = 10; total_size += 1UL * this->_internal_interactiveannotations_size(); - for (const auto& msg : this->interactiveannotations_) { + for (const auto& msg : this->_impl_.interactiveannotations_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // repeated uint32 scanLengths = 22; { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - UInt32Size(this->scanlengths_); + size_t data_size = ::_pbi::WireFormatLite:: + UInt32Size(this->_impl_.scanlengths_); total_size += 2 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_scanlengths_size()); + ::_pbi::FromIntSize(this->_internal_scanlengths_size()); total_size += data_size; } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string url = 1; if (cached_has_bits & 0x00000001u) { @@ -11690,42 +12166,42 @@ size_t ImageMessage::ByteSizeLong() const { if (cached_has_bits & 0x00008000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } } if (cached_has_bits & 0x007f0000u) { // optional uint64 fileLength = 5; if (cached_has_bits & 0x00010000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); } // optional uint32 height = 6; if (cached_has_bits & 0x00020000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_height()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_height()); } // optional uint32 width = 7; if (cached_has_bits & 0x00040000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_width()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_width()); } // optional int64 mediaKeyTimestamp = 12; if (cached_has_bits & 0x00080000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_mediakeytimestamp()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mediakeytimestamp()); } // optional uint32 firstScanLength = 19; if (cached_has_bits & 0x00100000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + ::_pbi::WireFormatLite::UInt32Size( this->_internal_firstscanlength()); } // optional uint32 experimentGroupId = 20; if (cached_has_bits & 0x00200000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + ::_pbi::WireFormatLite::UInt32Size( this->_internal_experimentgroupid()); } @@ -11735,108 +12211,105 @@ size_t ImageMessage::ByteSizeLong() const { } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ImageMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ImageMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ImageMessage::GetClassData() const { return &_class_data_; } -void ImageMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<ImageMessage *>(to)->MergeFrom( - static_cast<const ImageMessage &>(from)); -} - -void ImageMessage::MergeFrom(const ImageMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.ImageMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void ImageMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<ImageMessage*>(&to_msg); + auto& from = static_cast<const ImageMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.ImageMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - interactiveannotations_.MergeFrom(from.interactiveannotations_); - scanlengths_.MergeFrom(from.scanlengths_); - cached_has_bits = from._has_bits_[0]; + _this->_impl_.interactiveannotations_.MergeFrom(from._impl_.interactiveannotations_); + _this->_impl_.scanlengths_.MergeFrom(from._impl_.scanlengths_); + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_set_url(from._internal_url()); + _this->_internal_set_url(from._internal_url()); } if (cached_has_bits & 0x00000002u) { - _internal_set_mimetype(from._internal_mimetype()); + _this->_internal_set_mimetype(from._internal_mimetype()); } if (cached_has_bits & 0x00000004u) { - _internal_set_caption(from._internal_caption()); + _this->_internal_set_caption(from._internal_caption()); } if (cached_has_bits & 0x00000008u) { - _internal_set_filesha256(from._internal_filesha256()); + _this->_internal_set_filesha256(from._internal_filesha256()); } if (cached_has_bits & 0x00000010u) { - _internal_set_mediakey(from._internal_mediakey()); + _this->_internal_set_mediakey(from._internal_mediakey()); } if (cached_has_bits & 0x00000020u) { - _internal_set_fileencsha256(from._internal_fileencsha256()); + _this->_internal_set_fileencsha256(from._internal_fileencsha256()); } if (cached_has_bits & 0x00000040u) { - _internal_set_directpath(from._internal_directpath()); + _this->_internal_set_directpath(from._internal_directpath()); } if (cached_has_bits & 0x00000080u) { - _internal_set_jpegthumbnail(from._internal_jpegthumbnail()); + _this->_internal_set_jpegthumbnail(from._internal_jpegthumbnail()); } } if (cached_has_bits & 0x0000ff00u) { if (cached_has_bits & 0x00000100u) { - _internal_set_firstscansidecar(from._internal_firstscansidecar()); + _this->_internal_set_firstscansidecar(from._internal_firstscansidecar()); } if (cached_has_bits & 0x00000200u) { - _internal_set_scanssidecar(from._internal_scanssidecar()); + _this->_internal_set_scanssidecar(from._internal_scanssidecar()); } if (cached_has_bits & 0x00000400u) { - _internal_set_midqualityfilesha256(from._internal_midqualityfilesha256()); + _this->_internal_set_midqualityfilesha256(from._internal_midqualityfilesha256()); } if (cached_has_bits & 0x00000800u) { - _internal_set_midqualityfileencsha256(from._internal_midqualityfileencsha256()); + _this->_internal_set_midqualityfileencsha256(from._internal_midqualityfileencsha256()); } if (cached_has_bits & 0x00001000u) { - _internal_set_thumbnaildirectpath(from._internal_thumbnaildirectpath()); + _this->_internal_set_thumbnaildirectpath(from._internal_thumbnaildirectpath()); } if (cached_has_bits & 0x00002000u) { - _internal_set_thumbnailsha256(from._internal_thumbnailsha256()); + _this->_internal_set_thumbnailsha256(from._internal_thumbnailsha256()); } if (cached_has_bits & 0x00004000u) { - _internal_set_thumbnailencsha256(from._internal_thumbnailencsha256()); + _this->_internal_set_thumbnailencsha256(from._internal_thumbnailencsha256()); } if (cached_has_bits & 0x00008000u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } } if (cached_has_bits & 0x007f0000u) { if (cached_has_bits & 0x00010000u) { - filelength_ = from.filelength_; + _this->_impl_.filelength_ = from._impl_.filelength_; } if (cached_has_bits & 0x00020000u) { - height_ = from.height_; + _this->_impl_.height_ = from._impl_.height_; } if (cached_has_bits & 0x00040000u) { - width_ = from.width_; + _this->_impl_.width_ = from._impl_.width_; } if (cached_has_bits & 0x00080000u) { - mediakeytimestamp_ = from.mediakeytimestamp_; + _this->_impl_.mediakeytimestamp_ = from._impl_.mediakeytimestamp_; } if (cached_has_bits & 0x00100000u) { - firstscanlength_ = from.firstscanlength_; + _this->_impl_.firstscanlength_ = from._impl_.firstscanlength_; } if (cached_has_bits & 0x00200000u) { - experimentgroupid_ = from.experimentgroupid_; + _this->_impl_.experimentgroupid_ = from._impl_.experimentgroupid_; } if (cached_has_bits & 0x00400000u) { - viewonce_ = from.viewonce_; + _this->_impl_.viewonce_ = from._impl_.viewonce_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ImageMessage::CopyFrom(const ImageMessage& from) { @@ -11855,94 +12328,79 @@ void ImageMessage::InternalSwap(ImageMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - interactiveannotations_.InternalSwap(&other->interactiveannotations_); - scanlengths_.InternalSwap(&other->scanlengths_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.interactiveannotations_.InternalSwap(&other->_impl_.interactiveannotations_); + _impl_.scanlengths_.InternalSwap(&other->_impl_.scanlengths_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &url_, lhs_arena, - &other->url_, rhs_arena + &_impl_.url_, lhs_arena, + &other->_impl_.url_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &mimetype_, lhs_arena, - &other->mimetype_, rhs_arena + &_impl_.mimetype_, lhs_arena, + &other->_impl_.mimetype_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &caption_, lhs_arena, - &other->caption_, rhs_arena + &_impl_.caption_, lhs_arena, + &other->_impl_.caption_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &filesha256_, lhs_arena, - &other->filesha256_, rhs_arena + &_impl_.filesha256_, lhs_arena, + &other->_impl_.filesha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &mediakey_, lhs_arena, - &other->mediakey_, rhs_arena + &_impl_.mediakey_, lhs_arena, + &other->_impl_.mediakey_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &fileencsha256_, lhs_arena, - &other->fileencsha256_, rhs_arena + &_impl_.fileencsha256_, lhs_arena, + &other->_impl_.fileencsha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &directpath_, lhs_arena, - &other->directpath_, rhs_arena + &_impl_.directpath_, lhs_arena, + &other->_impl_.directpath_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &jpegthumbnail_, lhs_arena, - &other->jpegthumbnail_, rhs_arena + &_impl_.jpegthumbnail_, lhs_arena, + &other->_impl_.jpegthumbnail_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &firstscansidecar_, lhs_arena, - &other->firstscansidecar_, rhs_arena + &_impl_.firstscansidecar_, lhs_arena, + &other->_impl_.firstscansidecar_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &scanssidecar_, lhs_arena, - &other->scanssidecar_, rhs_arena + &_impl_.scanssidecar_, lhs_arena, + &other->_impl_.scanssidecar_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &midqualityfilesha256_, lhs_arena, - &other->midqualityfilesha256_, rhs_arena + &_impl_.midqualityfilesha256_, lhs_arena, + &other->_impl_.midqualityfilesha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &midqualityfileencsha256_, lhs_arena, - &other->midqualityfileencsha256_, rhs_arena + &_impl_.midqualityfileencsha256_, lhs_arena, + &other->_impl_.midqualityfileencsha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &thumbnaildirectpath_, lhs_arena, - &other->thumbnaildirectpath_, rhs_arena + &_impl_.thumbnaildirectpath_, lhs_arena, + &other->_impl_.thumbnaildirectpath_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &thumbnailsha256_, lhs_arena, - &other->thumbnailsha256_, rhs_arena + &_impl_.thumbnailsha256_, lhs_arena, + &other->_impl_.thumbnailsha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &thumbnailencsha256_, lhs_arena, - &other->thumbnailencsha256_, rhs_arena + &_impl_.thumbnailencsha256_, lhs_arena, + &other->_impl_.thumbnailencsha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ImageMessage, viewonce_) - + sizeof(ImageMessage::viewonce_) - - PROTOBUF_FIELD_OFFSET(ImageMessage, contextinfo_)>( - reinterpret_cast<char*>(&contextinfo_), - reinterpret_cast<char*>(&other->contextinfo_)); + PROTOBUF_FIELD_OFFSET(ImageMessage, _impl_.viewonce_) + + sizeof(ImageMessage::_impl_.viewonce_) + - PROTOBUF_FIELD_OFFSET(ImageMessage, _impl_.contextinfo_)>( + reinterpret_cast<char*>(&_impl_.contextinfo_), + reinterpret_cast<char*>(&other->_impl_.contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ImageMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[18]); } @@ -11951,7 +12409,7 @@ void ImageMessage::InternalSwap(ImageMessage* other) { class InvoiceMessage::_Internal { public: - using HasBits = decltype(std::declval<InvoiceMessage>()._has_bits_); + using HasBits = decltype(std::declval<InvoiceMessage>()._impl_._has_bits_); static void set_has_note(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -11987,183 +12445,251 @@ class InvoiceMessage::_Internal { InvoiceMessage::InvoiceMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.InvoiceMessage) } InvoiceMessage::InvoiceMessage(const InvoiceMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + InvoiceMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.note_){} + , decltype(_impl_.token_){} + , decltype(_impl_.attachmentmimetype_){} + , decltype(_impl_.attachmentmediakey_){} + , decltype(_impl_.attachmentfilesha256_){} + , decltype(_impl_.attachmentfileencsha256_){} + , decltype(_impl_.attachmentdirectpath_){} + , decltype(_impl_.attachmentjpegthumbnail_){} + , decltype(_impl_.attachmentmediakeytimestamp_){} + , decltype(_impl_.attachmenttype_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - note_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.note_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.note_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_note()) { - note_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_note(), - GetArenaForAllocation()); + _this->_impl_.note_.Set(from._internal_note(), + _this->GetArenaForAllocation()); } - token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_token()) { - token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_token(), - GetArenaForAllocation()); + _this->_impl_.token_.Set(from._internal_token(), + _this->GetArenaForAllocation()); } - attachmentmimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.attachmentmimetype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentmimetype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_attachmentmimetype()) { - attachmentmimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentmimetype(), - GetArenaForAllocation()); + _this->_impl_.attachmentmimetype_.Set(from._internal_attachmentmimetype(), + _this->GetArenaForAllocation()); } - attachmentmediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.attachmentmediakey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentmediakey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_attachmentmediakey()) { - attachmentmediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentmediakey(), - GetArenaForAllocation()); + _this->_impl_.attachmentmediakey_.Set(from._internal_attachmentmediakey(), + _this->GetArenaForAllocation()); } - attachmentfilesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.attachmentfilesha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentfilesha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_attachmentfilesha256()) { - attachmentfilesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentfilesha256(), - GetArenaForAllocation()); + _this->_impl_.attachmentfilesha256_.Set(from._internal_attachmentfilesha256(), + _this->GetArenaForAllocation()); } - attachmentfileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.attachmentfileencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentfileencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_attachmentfileencsha256()) { - attachmentfileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentfileencsha256(), - GetArenaForAllocation()); + _this->_impl_.attachmentfileencsha256_.Set(from._internal_attachmentfileencsha256(), + _this->GetArenaForAllocation()); } - attachmentdirectpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.attachmentdirectpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentdirectpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_attachmentdirectpath()) { - attachmentdirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentdirectpath(), - GetArenaForAllocation()); + _this->_impl_.attachmentdirectpath_.Set(from._internal_attachmentdirectpath(), + _this->GetArenaForAllocation()); } - attachmentjpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.attachmentjpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentjpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_attachmentjpegthumbnail()) { - attachmentjpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentjpegthumbnail(), - GetArenaForAllocation()); + _this->_impl_.attachmentjpegthumbnail_.Set(from._internal_attachmentjpegthumbnail(), + _this->GetArenaForAllocation()); } - ::memcpy(&attachmentmediakeytimestamp_, &from.attachmentmediakeytimestamp_, - static_cast<size_t>(reinterpret_cast<char*>(&attachmenttype_) - - reinterpret_cast<char*>(&attachmentmediakeytimestamp_)) + sizeof(attachmenttype_)); + ::memcpy(&_impl_.attachmentmediakeytimestamp_, &from._impl_.attachmentmediakeytimestamp_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.attachmenttype_) - + reinterpret_cast<char*>(&_impl_.attachmentmediakeytimestamp_)) + sizeof(_impl_.attachmenttype_)); // @@protoc_insertion_point(copy_constructor:proto.InvoiceMessage) } -void InvoiceMessage::SharedCtor() { -note_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -attachmentmimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -attachmentmediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -attachmentfilesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -attachmentfileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -attachmentdirectpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -attachmentjpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&attachmentmediakeytimestamp_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&attachmenttype_) - - reinterpret_cast<char*>(&attachmentmediakeytimestamp_)) + sizeof(attachmenttype_)); +inline void InvoiceMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.note_){} + , decltype(_impl_.token_){} + , decltype(_impl_.attachmentmimetype_){} + , decltype(_impl_.attachmentmediakey_){} + , decltype(_impl_.attachmentfilesha256_){} + , decltype(_impl_.attachmentfileencsha256_){} + , decltype(_impl_.attachmentdirectpath_){} + , decltype(_impl_.attachmentjpegthumbnail_){} + , decltype(_impl_.attachmentmediakeytimestamp_){int64_t{0}} + , decltype(_impl_.attachmenttype_){0} + }; + _impl_.note_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.note_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentmimetype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentmimetype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentmediakey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentmediakey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentfilesha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentfilesha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentfileencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentfileencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentdirectpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentdirectpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentjpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.attachmentjpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } InvoiceMessage::~InvoiceMessage() { // @@protoc_insertion_point(destructor:proto.InvoiceMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void InvoiceMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - note_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - attachmentmimetype_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - attachmentmediakey_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - attachmentfilesha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - attachmentfileencsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - attachmentdirectpath_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - attachmentjpegthumbnail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.note_.Destroy(); + _impl_.token_.Destroy(); + _impl_.attachmentmimetype_.Destroy(); + _impl_.attachmentmediakey_.Destroy(); + _impl_.attachmentfilesha256_.Destroy(); + _impl_.attachmentfileencsha256_.Destroy(); + _impl_.attachmentdirectpath_.Destroy(); + _impl_.attachmentjpegthumbnail_.Destroy(); } -void InvoiceMessage::ArenaDtor(void* object) { - InvoiceMessage* _this = reinterpret_cast< InvoiceMessage* >(object); - (void)_this; -} -void InvoiceMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void InvoiceMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void InvoiceMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.InvoiceMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - note_.ClearNonDefaultToEmpty(); + _impl_.note_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - token_.ClearNonDefaultToEmpty(); + _impl_.token_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - attachmentmimetype_.ClearNonDefaultToEmpty(); + _impl_.attachmentmimetype_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - attachmentmediakey_.ClearNonDefaultToEmpty(); + _impl_.attachmentmediakey_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { - attachmentfilesha256_.ClearNonDefaultToEmpty(); + _impl_.attachmentfilesha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { - attachmentfileencsha256_.ClearNonDefaultToEmpty(); + _impl_.attachmentfileencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { - attachmentdirectpath_.ClearNonDefaultToEmpty(); + _impl_.attachmentdirectpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { - attachmentjpegthumbnail_.ClearNonDefaultToEmpty(); + _impl_.attachmentjpegthumbnail_.ClearNonDefaultToEmpty(); } } if (cached_has_bits & 0x00000300u) { - ::memset(&attachmentmediakeytimestamp_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&attachmenttype_) - - reinterpret_cast<char*>(&attachmentmediakeytimestamp_)) + sizeof(attachmenttype_)); + ::memset(&_impl_.attachmentmediakeytimestamp_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.attachmenttype_) - + reinterpret_cast<char*>(&_impl_.attachmentmediakeytimestamp_)) + sizeof(_impl_.attachmenttype_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* InvoiceMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* InvoiceMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string note = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_note(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.InvoiceMessage.note"); + ::_pbi::VerifyUTF8(str, "proto.InvoiceMessage.note"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string token = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_token(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.InvoiceMessage.token"); + ::_pbi::VerifyUTF8(str, "proto.InvoiceMessage.token"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.InvoiceMessage.InvoiceMessageAttachmentType attachmentType = 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); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::InvoiceMessage_InvoiceMessageAttachmentType_IsValid(val))) { _internal_set_attachmenttype(static_cast<::proto::InvoiceMessage_InvoiceMessageAttachmentType>(val)); @@ -12175,69 +12701,69 @@ const char* InvoiceMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // optional string attachmentMimetype = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { auto str = _internal_mutable_attachmentmimetype(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.InvoiceMessage.attachmentMimetype"); + ::_pbi::VerifyUTF8(str, "proto.InvoiceMessage.attachmentMimetype"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes attachmentMediaKey = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { auto str = _internal_mutable_attachmentmediakey(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional int64 attachmentMediaKeyTimestamp = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) { _Internal::set_has_attachmentmediakeytimestamp(&has_bits); - attachmentmediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.attachmentmediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes attachmentFileSha256 = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { auto str = _internal_mutable_attachmentfilesha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes attachmentFileEncSha256 = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { auto str = _internal_mutable_attachmentfileencsha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional string attachmentDirectPath = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) { auto str = _internal_mutable_attachmentdirectpath(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.InvoiceMessage.attachmentDirectPath"); + ::_pbi::VerifyUTF8(str, "proto.InvoiceMessage.attachmentDirectPath"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes attachmentJpegThumbnail = 10; case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) { auto str = _internal_mutable_attachmentjpegthumbnail(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; @@ -12258,7 +12784,7 @@ const char* InvoiceMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -12266,13 +12792,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* InvoiceMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* InvoiceMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.InvoiceMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string note = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -12296,7 +12822,7 @@ failure: // optional .proto.InvoiceMessage.InvoiceMessageAttachmentType attachmentType = 3; if (cached_has_bits & 0x00000200u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 3, this->_internal_attachmenttype(), target); } @@ -12319,7 +12845,7 @@ failure: // optional int64 attachmentMediaKeyTimestamp = 6; if (cached_has_bits & 0x00000100u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_attachmentmediakeytimestamp(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(6, this->_internal_attachmentmediakeytimestamp(), target); } // optional bytes attachmentFileSha256 = 7; @@ -12351,7 +12877,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.InvoiceMessage) @@ -12362,11 +12888,11 @@ size_t InvoiceMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.InvoiceMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string note = 1; if (cached_has_bits & 0x00000001u) { @@ -12428,75 +12954,71 @@ size_t InvoiceMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000300u) { // optional int64 attachmentMediaKeyTimestamp = 6; if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_attachmentmediakeytimestamp()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_attachmentmediakeytimestamp()); } // optional .proto.InvoiceMessage.InvoiceMessageAttachmentType attachmentType = 3; if (cached_has_bits & 0x00000200u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_attachmenttype()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_attachmenttype()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData InvoiceMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, InvoiceMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*InvoiceMessage::GetClassData() const { return &_class_data_; } -void InvoiceMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<InvoiceMessage *>(to)->MergeFrom( - static_cast<const InvoiceMessage &>(from)); -} - -void InvoiceMessage::MergeFrom(const InvoiceMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.InvoiceMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void InvoiceMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<InvoiceMessage*>(&to_msg); + auto& from = static_cast<const InvoiceMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.InvoiceMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_set_note(from._internal_note()); + _this->_internal_set_note(from._internal_note()); } if (cached_has_bits & 0x00000002u) { - _internal_set_token(from._internal_token()); + _this->_internal_set_token(from._internal_token()); } if (cached_has_bits & 0x00000004u) { - _internal_set_attachmentmimetype(from._internal_attachmentmimetype()); + _this->_internal_set_attachmentmimetype(from._internal_attachmentmimetype()); } if (cached_has_bits & 0x00000008u) { - _internal_set_attachmentmediakey(from._internal_attachmentmediakey()); + _this->_internal_set_attachmentmediakey(from._internal_attachmentmediakey()); } if (cached_has_bits & 0x00000010u) { - _internal_set_attachmentfilesha256(from._internal_attachmentfilesha256()); + _this->_internal_set_attachmentfilesha256(from._internal_attachmentfilesha256()); } if (cached_has_bits & 0x00000020u) { - _internal_set_attachmentfileencsha256(from._internal_attachmentfileencsha256()); + _this->_internal_set_attachmentfileencsha256(from._internal_attachmentfileencsha256()); } if (cached_has_bits & 0x00000040u) { - _internal_set_attachmentdirectpath(from._internal_attachmentdirectpath()); + _this->_internal_set_attachmentdirectpath(from._internal_attachmentdirectpath()); } if (cached_has_bits & 0x00000080u) { - _internal_set_attachmentjpegthumbnail(from._internal_attachmentjpegthumbnail()); + _this->_internal_set_attachmentjpegthumbnail(from._internal_attachmentjpegthumbnail()); } } if (cached_has_bits & 0x00000300u) { if (cached_has_bits & 0x00000100u) { - attachmentmediakeytimestamp_ = from.attachmentmediakeytimestamp_; + _this->_impl_.attachmentmediakeytimestamp_ = from._impl_.attachmentmediakeytimestamp_; } if (cached_has_bits & 0x00000200u) { - attachmenttype_ = from.attachmenttype_; + _this->_impl_.attachmenttype_ = from._impl_.attachmenttype_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void InvoiceMessage::CopyFrom(const InvoiceMessage& from) { @@ -12515,57 +13037,49 @@ void InvoiceMessage::InternalSwap(InvoiceMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ¬e_, lhs_arena, - &other->note_, rhs_arena + &_impl_.note_, lhs_arena, + &other->_impl_.note_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &token_, lhs_arena, - &other->token_, rhs_arena + &_impl_.token_, lhs_arena, + &other->_impl_.token_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &attachmentmimetype_, lhs_arena, - &other->attachmentmimetype_, rhs_arena + &_impl_.attachmentmimetype_, lhs_arena, + &other->_impl_.attachmentmimetype_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &attachmentmediakey_, lhs_arena, - &other->attachmentmediakey_, rhs_arena + &_impl_.attachmentmediakey_, lhs_arena, + &other->_impl_.attachmentmediakey_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &attachmentfilesha256_, lhs_arena, - &other->attachmentfilesha256_, rhs_arena + &_impl_.attachmentfilesha256_, lhs_arena, + &other->_impl_.attachmentfilesha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &attachmentfileencsha256_, lhs_arena, - &other->attachmentfileencsha256_, rhs_arena + &_impl_.attachmentfileencsha256_, lhs_arena, + &other->_impl_.attachmentfileencsha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &attachmentdirectpath_, lhs_arena, - &other->attachmentdirectpath_, rhs_arena + &_impl_.attachmentdirectpath_, lhs_arena, + &other->_impl_.attachmentdirectpath_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &attachmentjpegthumbnail_, lhs_arena, - &other->attachmentjpegthumbnail_, rhs_arena + &_impl_.attachmentjpegthumbnail_, lhs_arena, + &other->_impl_.attachmentjpegthumbnail_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(InvoiceMessage, attachmenttype_) - + sizeof(InvoiceMessage::attachmenttype_) - - PROTOBUF_FIELD_OFFSET(InvoiceMessage, attachmentmediakeytimestamp_)>( - reinterpret_cast<char*>(&attachmentmediakeytimestamp_), - reinterpret_cast<char*>(&other->attachmentmediakeytimestamp_)); + PROTOBUF_FIELD_OFFSET(InvoiceMessage, _impl_.attachmenttype_) + + sizeof(InvoiceMessage::_impl_.attachmenttype_) + - PROTOBUF_FIELD_OFFSET(InvoiceMessage, _impl_.attachmentmediakeytimestamp_)>( + reinterpret_cast<char*>(&_impl_.attachmentmediakeytimestamp_), + reinterpret_cast<char*>(&other->_impl_.attachmentmediakeytimestamp_)); } ::PROTOBUF_NAMESPACE_ID::Metadata InvoiceMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[19]); } @@ -12574,7 +13088,7 @@ void InvoiceMessage::InternalSwap(InvoiceMessage* other) { class ContactMessage::_Internal { public: - using HasBits = decltype(std::declval<ContactMessage>()._has_bits_); + using HasBits = decltype(std::declval<ContactMessage>()._impl_._has_bits_); static void set_has_displayname(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -12589,126 +13103,145 @@ class ContactMessage::_Internal { const ::proto::ContextInfo& ContactMessage::_Internal::contextinfo(const ContactMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } ContactMessage::ContactMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.ContactMessage) } ContactMessage::ContactMessage(const ContactMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + ContactMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.displayname_){} + , decltype(_impl_.vcard_){} + , decltype(_impl_.contextinfo_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - displayname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.displayname_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.displayname_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_displayname()) { - displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displayname(), - GetArenaForAllocation()); + _this->_impl_.displayname_.Set(from._internal_displayname(), + _this->GetArenaForAllocation()); } - vcard_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.vcard_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.vcard_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_vcard()) { - vcard_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_vcard(), - GetArenaForAllocation()); + _this->_impl_.vcard_.Set(from._internal_vcard(), + _this->GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } // @@protoc_insertion_point(copy_constructor:proto.ContactMessage) } -void ContactMessage::SharedCtor() { -displayname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -vcard_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -contextinfo_ = nullptr; +inline void ContactMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.displayname_){} + , decltype(_impl_.vcard_){} + , decltype(_impl_.contextinfo_){nullptr} + }; + _impl_.displayname_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.displayname_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.vcard_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.vcard_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ContactMessage::~ContactMessage() { // @@protoc_insertion_point(destructor:proto.ContactMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void ContactMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - displayname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - vcard_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete contextinfo_; + _impl_.displayname_.Destroy(); + _impl_.vcard_.Destroy(); + if (this != internal_default_instance()) delete _impl_.contextinfo_; } -void ContactMessage::ArenaDtor(void* object) { - ContactMessage* _this = reinterpret_cast< ContactMessage* >(object); - (void)_this; -} -void ContactMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void ContactMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ContactMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ContactMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - displayname_.ClearNonDefaultToEmpty(); + _impl_.displayname_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - vcard_.ClearNonDefaultToEmpty(); + _impl_.vcard_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ContactMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ContactMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string displayName = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_displayname(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ContactMessage.displayName"); + ::_pbi::VerifyUTF8(str, "proto.ContactMessage.displayName"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string vcard = 16; case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 130)) { auto str = _internal_mutable_vcard(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ContactMessage.vcard"); + ::_pbi::VerifyUTF8(str, "proto.ContactMessage.vcard"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ContextInfo contextInfo = 17; case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -12730,7 +13263,7 @@ const char* ContactMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -12738,13 +13271,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ContactMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* ContactMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.ContactMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string displayName = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -12767,14 +13300,13 @@ failure: // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 17, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(17, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ContactMessage) @@ -12785,11 +13317,11 @@ size_t ContactMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.ContactMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string displayName = 1; if (cached_has_bits & 0x00000001u) { @@ -12809,45 +13341,42 @@ size_t ContactMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000004u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ContactMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ContactMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ContactMessage::GetClassData() const { return &_class_data_; } -void ContactMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<ContactMessage *>(to)->MergeFrom( - static_cast<const ContactMessage &>(from)); -} - -void ContactMessage::MergeFrom(const ContactMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.ContactMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void ContactMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<ContactMessage*>(&to_msg); + auto& from = static_cast<const ContactMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.ContactMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _internal_set_displayname(from._internal_displayname()); + _this->_internal_set_displayname(from._internal_displayname()); } if (cached_has_bits & 0x00000002u) { - _internal_set_vcard(from._internal_vcard()); + _this->_internal_set_vcard(from._internal_vcard()); } if (cached_has_bits & 0x00000004u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ContactMessage::CopyFrom(const ContactMessage& from) { @@ -12866,22 +13395,20 @@ void ContactMessage::InternalSwap(ContactMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &displayname_, lhs_arena, - &other->displayname_, rhs_arena + &_impl_.displayname_, lhs_arena, + &other->_impl_.displayname_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &vcard_, lhs_arena, - &other->vcard_, rhs_arena + &_impl_.vcard_, lhs_arena, + &other->_impl_.vcard_, rhs_arena ); - swap(contextinfo_, other->contextinfo_); + swap(_impl_.contextinfo_, other->_impl_.contextinfo_); } ::PROTOBUF_NAMESPACE_ID::Metadata ContactMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[20]); } @@ -12890,7 +13417,7 @@ void ContactMessage::InternalSwap(ContactMessage* other) { class LocationMessage::_Internal { public: - using HasBits = decltype(std::declval<LocationMessage>()._has_bits_); + using HasBits = decltype(std::declval<LocationMessage>()._impl_._has_bits_); static void set_has_degreeslatitude(HasBits* has_bits) { (*has_bits)[0] |= 64u; } @@ -12932,259 +13459,311 @@ class LocationMessage::_Internal { const ::proto::ContextInfo& LocationMessage::_Internal::contextinfo(const LocationMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } LocationMessage::LocationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.LocationMessage) } LocationMessage::LocationMessage(const LocationMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + LocationMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.name_){} + , decltype(_impl_.address_){} + , decltype(_impl_.url_){} + , decltype(_impl_.comment_){} + , decltype(_impl_.jpegthumbnail_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.degreeslatitude_){} + , decltype(_impl_.degreeslongitude_){} + , decltype(_impl_.islive_){} + , decltype(_impl_.accuracyinmeters_){} + , decltype(_impl_.speedinmps_){} + , decltype(_impl_.degreesclockwisefrommagneticnorth_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_name()) { - name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), - GetArenaForAllocation()); + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); } - address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.address_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.address_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_address()) { - address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_address(), - GetArenaForAllocation()); + _this->_impl_.address_.Set(from._internal_address(), + _this->GetArenaForAllocation()); } - url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_url()) { - url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), - GetArenaForAllocation()); + _this->_impl_.url_.Set(from._internal_url(), + _this->GetArenaForAllocation()); } - comment_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.comment_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.comment_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_comment()) { - comment_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_comment(), - GetArenaForAllocation()); + _this->_impl_.comment_.Set(from._internal_comment(), + _this->GetArenaForAllocation()); } - jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.jpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_jpegthumbnail()) { - jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), - GetArenaForAllocation()); + _this->_impl_.jpegthumbnail_.Set(from._internal_jpegthumbnail(), + _this->GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } - ::memcpy(°reeslatitude_, &from.degreeslatitude_, - static_cast<size_t>(reinterpret_cast<char*>(°reesclockwisefrommagneticnorth_) - - reinterpret_cast<char*>(°reeslatitude_)) + sizeof(degreesclockwisefrommagneticnorth_)); + ::memcpy(&_impl_.degreeslatitude_, &from._impl_.degreeslatitude_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.degreesclockwisefrommagneticnorth_) - + reinterpret_cast<char*>(&_impl_.degreeslatitude_)) + sizeof(_impl_.degreesclockwisefrommagneticnorth_)); // @@protoc_insertion_point(copy_constructor:proto.LocationMessage) } -void LocationMessage::SharedCtor() { -name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -comment_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(°reesclockwisefrommagneticnorth_) - - reinterpret_cast<char*>(&contextinfo_)) + sizeof(degreesclockwisefrommagneticnorth_)); +inline void LocationMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.name_){} + , decltype(_impl_.address_){} + , decltype(_impl_.url_){} + , decltype(_impl_.comment_){} + , decltype(_impl_.jpegthumbnail_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.degreeslatitude_){0} + , decltype(_impl_.degreeslongitude_){0} + , decltype(_impl_.islive_){false} + , decltype(_impl_.accuracyinmeters_){0u} + , decltype(_impl_.speedinmps_){0} + , decltype(_impl_.degreesclockwisefrommagneticnorth_){0u} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.address_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.address_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.comment_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.comment_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } LocationMessage::~LocationMessage() { // @@protoc_insertion_point(destructor:proto.LocationMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void LocationMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - comment_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - jpegthumbnail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete contextinfo_; + _impl_.name_.Destroy(); + _impl_.address_.Destroy(); + _impl_.url_.Destroy(); + _impl_.comment_.Destroy(); + _impl_.jpegthumbnail_.Destroy(); + if (this != internal_default_instance()) delete _impl_.contextinfo_; } -void LocationMessage::ArenaDtor(void* object) { - LocationMessage* _this = reinterpret_cast< LocationMessage* >(object); - (void)_this; -} -void LocationMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void LocationMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void LocationMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.LocationMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000003fu) { if (cached_has_bits & 0x00000001u) { - name_.ClearNonDefaultToEmpty(); + _impl_.name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - address_.ClearNonDefaultToEmpty(); + _impl_.address_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - url_.ClearNonDefaultToEmpty(); + _impl_.url_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - comment_.ClearNonDefaultToEmpty(); + _impl_.comment_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { - jpegthumbnail_.ClearNonDefaultToEmpty(); + _impl_.jpegthumbnail_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } } if (cached_has_bits & 0x000000c0u) { - ::memset(°reeslatitude_, 0, static_cast<size_t>( - reinterpret_cast<char*>(°reeslongitude_) - - reinterpret_cast<char*>(°reeslatitude_)) + sizeof(degreeslongitude_)); + ::memset(&_impl_.degreeslatitude_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.degreeslongitude_) - + reinterpret_cast<char*>(&_impl_.degreeslatitude_)) + sizeof(_impl_.degreeslongitude_)); } if (cached_has_bits & 0x00000f00u) { - ::memset(&islive_, 0, static_cast<size_t>( - reinterpret_cast<char*>(°reesclockwisefrommagneticnorth_) - - reinterpret_cast<char*>(&islive_)) + sizeof(degreesclockwisefrommagneticnorth_)); + ::memset(&_impl_.islive_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.degreesclockwisefrommagneticnorth_) - + reinterpret_cast<char*>(&_impl_.islive_)) + sizeof(_impl_.degreesclockwisefrommagneticnorth_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* LocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* LocationMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional double degreesLatitude = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 9)) { _Internal::set_has_degreeslatitude(&has_bits); - degreeslatitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); + _impl_.degreeslatitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); ptr += sizeof(double); } else goto handle_unusual; continue; // optional double degreesLongitude = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17)) { _Internal::set_has_degreeslongitude(&has_bits); - degreeslongitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); + _impl_.degreeslongitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); ptr += sizeof(double); } else goto handle_unusual; continue; // optional string name = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { auto str = _internal_mutable_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.LocationMessage.name"); + ::_pbi::VerifyUTF8(str, "proto.LocationMessage.name"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string address = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { auto str = _internal_mutable_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.LocationMessage.address"); + ::_pbi::VerifyUTF8(str, "proto.LocationMessage.address"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string url = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { auto str = _internal_mutable_url(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.LocationMessage.url"); + ::_pbi::VerifyUTF8(str, "proto.LocationMessage.url"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bool isLive = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) { _Internal::set_has_islive(&has_bits); - islive_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.islive_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 accuracyInMeters = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) { _Internal::set_has_accuracyinmeters(&has_bits); - accuracyinmeters_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.accuracyinmeters_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional float speedInMps = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 69)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 69)) { _Internal::set_has_speedinmps(&has_bits); - speedinmps_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr); + _impl_.speedinmps_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // optional uint32 degreesClockwiseFromMagneticNorth = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) { _Internal::set_has_degreesclockwisefrommagneticnorth(&has_bits); - degreesclockwisefrommagneticnorth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.degreesclockwisefrommagneticnorth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string comment = 11; case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) { auto str = _internal_mutable_comment(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.LocationMessage.comment"); + ::_pbi::VerifyUTF8(str, "proto.LocationMessage.comment"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes jpegThumbnail = 16; case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 130)) { auto str = _internal_mutable_jpegthumbnail(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ContextInfo contextInfo = 17; case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -13206,7 +13785,7 @@ const char* LocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -13214,23 +13793,23 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* LocationMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* LocationMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.LocationMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional double degreesLatitude = 1; if (cached_has_bits & 0x00000040u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_degreeslatitude(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_degreeslatitude(), target); } // optional double degreesLongitude = 2; if (cached_has_bits & 0x00000080u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_degreeslongitude(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_degreeslongitude(), target); } // optional string name = 3; @@ -13266,25 +13845,25 @@ failure: // optional bool isLive = 6; if (cached_has_bits & 0x00000100u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_islive(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_islive(), target); } // optional uint32 accuracyInMeters = 7; if (cached_has_bits & 0x00000200u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->_internal_accuracyinmeters(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_accuracyinmeters(), target); } // optional float speedInMps = 8; if (cached_has_bits & 0x00000400u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(8, this->_internal_speedinmps(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(8, this->_internal_speedinmps(), target); } // optional uint32 degreesClockwiseFromMagneticNorth = 9; if (cached_has_bits & 0x00000800u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(9, this->_internal_degreesclockwisefrommagneticnorth(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_degreesclockwisefrommagneticnorth(), target); } // optional string comment = 11; @@ -13305,14 +13884,13 @@ failure: // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 17, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(17, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.LocationMessage) @@ -13323,11 +13901,11 @@ size_t LocationMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.LocationMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string name = 3; if (cached_has_bits & 0x00000001u) { @@ -13368,7 +13946,7 @@ size_t LocationMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000020u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } // optional double degreesLatitude = 1; @@ -13390,7 +13968,7 @@ size_t LocationMessage::ByteSizeLong() const { // optional uint32 accuracyInMeters = 7; if (cached_has_bits & 0x00000200u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_accuracyinmeters()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_accuracyinmeters()); } // optional float speedInMps = 8; @@ -13400,76 +13978,73 @@ size_t LocationMessage::ByteSizeLong() const { // optional uint32 degreesClockwiseFromMagneticNorth = 9; if (cached_has_bits & 0x00000800u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_degreesclockwisefrommagneticnorth()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_degreesclockwisefrommagneticnorth()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocationMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, LocationMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocationMessage::GetClassData() const { return &_class_data_; } -void LocationMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<LocationMessage *>(to)->MergeFrom( - static_cast<const LocationMessage &>(from)); -} - -void LocationMessage::MergeFrom(const LocationMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.LocationMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void LocationMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<LocationMessage*>(&to_msg); + auto& from = static_cast<const LocationMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.LocationMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_set_name(from._internal_name()); + _this->_internal_set_name(from._internal_name()); } if (cached_has_bits & 0x00000002u) { - _internal_set_address(from._internal_address()); + _this->_internal_set_address(from._internal_address()); } if (cached_has_bits & 0x00000004u) { - _internal_set_url(from._internal_url()); + _this->_internal_set_url(from._internal_url()); } if (cached_has_bits & 0x00000008u) { - _internal_set_comment(from._internal_comment()); + _this->_internal_set_comment(from._internal_comment()); } if (cached_has_bits & 0x00000010u) { - _internal_set_jpegthumbnail(from._internal_jpegthumbnail()); + _this->_internal_set_jpegthumbnail(from._internal_jpegthumbnail()); } if (cached_has_bits & 0x00000020u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } if (cached_has_bits & 0x00000040u) { - degreeslatitude_ = from.degreeslatitude_; + _this->_impl_.degreeslatitude_ = from._impl_.degreeslatitude_; } if (cached_has_bits & 0x00000080u) { - degreeslongitude_ = from.degreeslongitude_; + _this->_impl_.degreeslongitude_ = from._impl_.degreeslongitude_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00000f00u) { if (cached_has_bits & 0x00000100u) { - islive_ = from.islive_; + _this->_impl_.islive_ = from._impl_.islive_; } if (cached_has_bits & 0x00000200u) { - accuracyinmeters_ = from.accuracyinmeters_; + _this->_impl_.accuracyinmeters_ = from._impl_.accuracyinmeters_; } if (cached_has_bits & 0x00000400u) { - speedinmps_ = from.speedinmps_; + _this->_impl_.speedinmps_ = from._impl_.speedinmps_; } if (cached_has_bits & 0x00000800u) { - degreesclockwisefrommagneticnorth_ = from.degreesclockwisefrommagneticnorth_; + _this->_impl_.degreesclockwisefrommagneticnorth_ = from._impl_.degreesclockwisefrommagneticnorth_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LocationMessage::CopyFrom(const LocationMessage& from) { @@ -13488,42 +14063,37 @@ void LocationMessage::InternalSwap(LocationMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &name_, lhs_arena, - &other->name_, rhs_arena + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &address_, lhs_arena, - &other->address_, rhs_arena + &_impl_.address_, lhs_arena, + &other->_impl_.address_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &url_, lhs_arena, - &other->url_, rhs_arena + &_impl_.url_, lhs_arena, + &other->_impl_.url_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &comment_, lhs_arena, - &other->comment_, rhs_arena + &_impl_.comment_, lhs_arena, + &other->_impl_.comment_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &jpegthumbnail_, lhs_arena, - &other->jpegthumbnail_, rhs_arena + &_impl_.jpegthumbnail_, lhs_arena, + &other->_impl_.jpegthumbnail_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(LocationMessage, degreesclockwisefrommagneticnorth_) - + sizeof(LocationMessage::degreesclockwisefrommagneticnorth_) - - PROTOBUF_FIELD_OFFSET(LocationMessage, contextinfo_)>( - reinterpret_cast<char*>(&contextinfo_), - reinterpret_cast<char*>(&other->contextinfo_)); + PROTOBUF_FIELD_OFFSET(LocationMessage, _impl_.degreesclockwisefrommagneticnorth_) + + sizeof(LocationMessage::_impl_.degreesclockwisefrommagneticnorth_) + - PROTOBUF_FIELD_OFFSET(LocationMessage, _impl_.contextinfo_)>( + reinterpret_cast<char*>(&_impl_.contextinfo_), + reinterpret_cast<char*>(&other->_impl_.contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata LocationMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[21]); } @@ -13532,7 +14102,7 @@ void LocationMessage::InternalSwap(LocationMessage* other) { class ExtendedTextMessage::_Internal { public: - using HasBits = decltype(std::declval<ExtendedTextMessage>()._has_bits_); + using HasBits = decltype(std::declval<ExtendedTextMessage>()._impl_._has_bits_); static void set_has_text(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -13574,233 +14144,291 @@ class ExtendedTextMessage::_Internal { const ::proto::ContextInfo& ExtendedTextMessage::_Internal::contextinfo(const ExtendedTextMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } ExtendedTextMessage::ExtendedTextMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.ExtendedTextMessage) } ExtendedTextMessage::ExtendedTextMessage(const ExtendedTextMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + ExtendedTextMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.text_){} + , decltype(_impl_.matchedtext_){} + , decltype(_impl_.canonicalurl_){} + , decltype(_impl_.description_){} + , decltype(_impl_.title_){} + , decltype(_impl_.jpegthumbnail_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.textargb_){} + , decltype(_impl_.backgroundargb_){} + , decltype(_impl_.font_){} + , decltype(_impl_.previewtype_){} + , decltype(_impl_.donotplayinline_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.text_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.text_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_text()) { - text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_text(), - GetArenaForAllocation()); + _this->_impl_.text_.Set(from._internal_text(), + _this->GetArenaForAllocation()); } - matchedtext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.matchedtext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.matchedtext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_matchedtext()) { - matchedtext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_matchedtext(), - GetArenaForAllocation()); + _this->_impl_.matchedtext_.Set(from._internal_matchedtext(), + _this->GetArenaForAllocation()); } - canonicalurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.canonicalurl_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.canonicalurl_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_canonicalurl()) { - canonicalurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_canonicalurl(), - GetArenaForAllocation()); + _this->_impl_.canonicalurl_.Set(from._internal_canonicalurl(), + _this->GetArenaForAllocation()); } - description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_description()) { - description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), - GetArenaForAllocation()); + _this->_impl_.description_.Set(from._internal_description(), + _this->GetArenaForAllocation()); } - title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_title()) { - title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArenaForAllocation()); + _this->_impl_.title_.Set(from._internal_title(), + _this->GetArenaForAllocation()); } - jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.jpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_jpegthumbnail()) { - jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), - GetArenaForAllocation()); + _this->_impl_.jpegthumbnail_.Set(from._internal_jpegthumbnail(), + _this->GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } - ::memcpy(&textargb_, &from.textargb_, - static_cast<size_t>(reinterpret_cast<char*>(&donotplayinline_) - - reinterpret_cast<char*>(&textargb_)) + sizeof(donotplayinline_)); + ::memcpy(&_impl_.textargb_, &from._impl_.textargb_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.donotplayinline_) - + reinterpret_cast<char*>(&_impl_.textargb_)) + sizeof(_impl_.donotplayinline_)); // @@protoc_insertion_point(copy_constructor:proto.ExtendedTextMessage) } -void ExtendedTextMessage::SharedCtor() { -text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -matchedtext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -canonicalurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&donotplayinline_) - - reinterpret_cast<char*>(&contextinfo_)) + sizeof(donotplayinline_)); +inline void ExtendedTextMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.text_){} + , decltype(_impl_.matchedtext_){} + , decltype(_impl_.canonicalurl_){} + , decltype(_impl_.description_){} + , decltype(_impl_.title_){} + , decltype(_impl_.jpegthumbnail_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.textargb_){0u} + , decltype(_impl_.backgroundargb_){0u} + , decltype(_impl_.font_){0} + , decltype(_impl_.previewtype_){0} + , decltype(_impl_.donotplayinline_){false} + }; + _impl_.text_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.text_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.matchedtext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.matchedtext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.canonicalurl_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.canonicalurl_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ExtendedTextMessage::~ExtendedTextMessage() { // @@protoc_insertion_point(destructor:proto.ExtendedTextMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void ExtendedTextMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - text_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - matchedtext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - canonicalurl_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - jpegthumbnail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete contextinfo_; + _impl_.text_.Destroy(); + _impl_.matchedtext_.Destroy(); + _impl_.canonicalurl_.Destroy(); + _impl_.description_.Destroy(); + _impl_.title_.Destroy(); + _impl_.jpegthumbnail_.Destroy(); + if (this != internal_default_instance()) delete _impl_.contextinfo_; } -void ExtendedTextMessage::ArenaDtor(void* object) { - ExtendedTextMessage* _this = reinterpret_cast< ExtendedTextMessage* >(object); - (void)_this; -} -void ExtendedTextMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void ExtendedTextMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ExtendedTextMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ExtendedTextMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000007fu) { if (cached_has_bits & 0x00000001u) { - text_.ClearNonDefaultToEmpty(); + _impl_.text_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - matchedtext_.ClearNonDefaultToEmpty(); + _impl_.matchedtext_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - canonicalurl_.ClearNonDefaultToEmpty(); + _impl_.canonicalurl_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - description_.ClearNonDefaultToEmpty(); + _impl_.description_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { - title_.ClearNonDefaultToEmpty(); + _impl_.title_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { - jpegthumbnail_.ClearNonDefaultToEmpty(); + _impl_.jpegthumbnail_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } } - textargb_ = 0u; + _impl_.textargb_ = 0u; if (cached_has_bits & 0x00000f00u) { - ::memset(&backgroundargb_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&donotplayinline_) - - reinterpret_cast<char*>(&backgroundargb_)) + sizeof(donotplayinline_)); + ::memset(&_impl_.backgroundargb_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.donotplayinline_) - + reinterpret_cast<char*>(&_impl_.backgroundargb_)) + sizeof(_impl_.donotplayinline_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string text = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_text(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExtendedTextMessage.text"); + ::_pbi::VerifyUTF8(str, "proto.ExtendedTextMessage.text"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string matchedText = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_matchedtext(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExtendedTextMessage.matchedText"); + ::_pbi::VerifyUTF8(str, "proto.ExtendedTextMessage.matchedText"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string canonicalUrl = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { auto str = _internal_mutable_canonicalurl(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExtendedTextMessage.canonicalUrl"); + ::_pbi::VerifyUTF8(str, "proto.ExtendedTextMessage.canonicalUrl"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string description = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { auto str = _internal_mutable_description(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExtendedTextMessage.description"); + ::_pbi::VerifyUTF8(str, "proto.ExtendedTextMessage.description"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string title = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { auto str = _internal_mutable_title(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExtendedTextMessage.title"); + ::_pbi::VerifyUTF8(str, "proto.ExtendedTextMessage.title"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional fixed32 textArgb = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 61)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 61)) { _Internal::set_has_textargb(&has_bits); - textargb_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint32>(ptr); - ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint32); + _impl_.textargb_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr); + ptr += sizeof(uint32_t); } else goto handle_unusual; continue; // optional fixed32 backgroundArgb = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 69)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 69)) { _Internal::set_has_backgroundargb(&has_bits); - backgroundargb_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint32>(ptr); - ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint32); + _impl_.backgroundargb_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<uint32_t>(ptr); + ptr += sizeof(uint32_t); } else goto handle_unusual; continue; // optional .proto.ExtendedTextMessage.ExtendedTextMessageFontType font = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::ExtendedTextMessage_ExtendedTextMessageFontType_IsValid(val))) { _internal_set_font(static_cast<::proto::ExtendedTextMessage_ExtendedTextMessageFontType>(val)); @@ -13812,8 +14440,8 @@ const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME continue; // optional .proto.ExtendedTextMessage.ExtendedTextMessagePreviewType previewType = 10; case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::ExtendedTextMessage_ExtendedTextMessagePreviewType_IsValid(val))) { _internal_set_previewtype(static_cast<::proto::ExtendedTextMessage_ExtendedTextMessagePreviewType>(val)); @@ -13825,16 +14453,16 @@ const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME continue; // optional bytes jpegThumbnail = 16; case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 130)) { auto str = _internal_mutable_jpegthumbnail(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ContextInfo contextInfo = 17; case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -13842,9 +14470,9 @@ const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME continue; // optional bool doNotPlayInline = 18; case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) { _Internal::set_has_donotplayinline(&has_bits); - donotplayinline_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.donotplayinline_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -13865,7 +14493,7 @@ const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -13873,13 +14501,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ExtendedTextMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* ExtendedTextMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.ExtendedTextMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string text = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -13933,26 +14561,26 @@ failure: // optional fixed32 textArgb = 7; if (cached_has_bits & 0x00000080u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed32ToArray(7, this->_internal_textargb(), target); + target = ::_pbi::WireFormatLite::WriteFixed32ToArray(7, this->_internal_textargb(), target); } // optional fixed32 backgroundArgb = 8; if (cached_has_bits & 0x00000100u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFixed32ToArray(8, this->_internal_backgroundargb(), target); + target = ::_pbi::WireFormatLite::WriteFixed32ToArray(8, this->_internal_backgroundargb(), target); } // optional .proto.ExtendedTextMessage.ExtendedTextMessageFontType font = 9; if (cached_has_bits & 0x00000200u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 9, this->_internal_font(), target); } // optional .proto.ExtendedTextMessage.ExtendedTextMessagePreviewType previewType = 10; if (cached_has_bits & 0x00000400u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 10, this->_internal_previewtype(), target); } @@ -13964,20 +14592,19 @@ failure: // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 17, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(17, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } // optional bool doNotPlayInline = 18; if (cached_has_bits & 0x00000800u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(18, this->_internal_donotplayinline(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(18, this->_internal_donotplayinline(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ExtendedTextMessage) @@ -13988,11 +14615,11 @@ size_t ExtendedTextMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.ExtendedTextMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string text = 1; if (cached_has_bits & 0x00000001u) { @@ -14040,7 +14667,7 @@ size_t ExtendedTextMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000040u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } // optional fixed32 textArgb = 7; @@ -14058,13 +14685,13 @@ size_t ExtendedTextMessage::ByteSizeLong() const { // optional .proto.ExtendedTextMessage.ExtendedTextMessageFontType font = 9; if (cached_has_bits & 0x00000200u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_font()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_font()); } // optional .proto.ExtendedTextMessage.ExtendedTextMessagePreviewType previewType = 10; if (cached_has_bits & 0x00000400u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_previewtype()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_previewtype()); } // optional bool doNotPlayInline = 18; @@ -14073,72 +14700,69 @@ size_t ExtendedTextMessage::ByteSizeLong() const { } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExtendedTextMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ExtendedTextMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExtendedTextMessage::GetClassData() const { return &_class_data_; } -void ExtendedTextMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<ExtendedTextMessage *>(to)->MergeFrom( - static_cast<const ExtendedTextMessage &>(from)); -} - -void ExtendedTextMessage::MergeFrom(const ExtendedTextMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.ExtendedTextMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void ExtendedTextMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<ExtendedTextMessage*>(&to_msg); + auto& from = static_cast<const ExtendedTextMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.ExtendedTextMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_set_text(from._internal_text()); + _this->_internal_set_text(from._internal_text()); } if (cached_has_bits & 0x00000002u) { - _internal_set_matchedtext(from._internal_matchedtext()); + _this->_internal_set_matchedtext(from._internal_matchedtext()); } if (cached_has_bits & 0x00000004u) { - _internal_set_canonicalurl(from._internal_canonicalurl()); + _this->_internal_set_canonicalurl(from._internal_canonicalurl()); } if (cached_has_bits & 0x00000008u) { - _internal_set_description(from._internal_description()); + _this->_internal_set_description(from._internal_description()); } if (cached_has_bits & 0x00000010u) { - _internal_set_title(from._internal_title()); + _this->_internal_set_title(from._internal_title()); } if (cached_has_bits & 0x00000020u) { - _internal_set_jpegthumbnail(from._internal_jpegthumbnail()); + _this->_internal_set_jpegthumbnail(from._internal_jpegthumbnail()); } if (cached_has_bits & 0x00000040u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } if (cached_has_bits & 0x00000080u) { - textargb_ = from.textargb_; + _this->_impl_.textargb_ = from._impl_.textargb_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00000f00u) { if (cached_has_bits & 0x00000100u) { - backgroundargb_ = from.backgroundargb_; + _this->_impl_.backgroundargb_ = from._impl_.backgroundargb_; } if (cached_has_bits & 0x00000200u) { - font_ = from.font_; + _this->_impl_.font_ = from._impl_.font_; } if (cached_has_bits & 0x00000400u) { - previewtype_ = from.previewtype_; + _this->_impl_.previewtype_ = from._impl_.previewtype_; } if (cached_has_bits & 0x00000800u) { - donotplayinline_ = from.donotplayinline_; + _this->_impl_.donotplayinline_ = from._impl_.donotplayinline_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ExtendedTextMessage::CopyFrom(const ExtendedTextMessage& from) { @@ -14157,47 +14781,41 @@ void ExtendedTextMessage::InternalSwap(ExtendedTextMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &text_, lhs_arena, - &other->text_, rhs_arena + &_impl_.text_, lhs_arena, + &other->_impl_.text_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &matchedtext_, lhs_arena, - &other->matchedtext_, rhs_arena + &_impl_.matchedtext_, lhs_arena, + &other->_impl_.matchedtext_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &canonicalurl_, lhs_arena, - &other->canonicalurl_, rhs_arena + &_impl_.canonicalurl_, lhs_arena, + &other->_impl_.canonicalurl_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &description_, lhs_arena, - &other->description_, rhs_arena + &_impl_.description_, lhs_arena, + &other->_impl_.description_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &title_, lhs_arena, - &other->title_, rhs_arena + &_impl_.title_, lhs_arena, + &other->_impl_.title_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &jpegthumbnail_, lhs_arena, - &other->jpegthumbnail_, rhs_arena + &_impl_.jpegthumbnail_, lhs_arena, + &other->_impl_.jpegthumbnail_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ExtendedTextMessage, donotplayinline_) - + sizeof(ExtendedTextMessage::donotplayinline_) - - PROTOBUF_FIELD_OFFSET(ExtendedTextMessage, contextinfo_)>( - reinterpret_cast<char*>(&contextinfo_), - reinterpret_cast<char*>(&other->contextinfo_)); + PROTOBUF_FIELD_OFFSET(ExtendedTextMessage, _impl_.donotplayinline_) + + sizeof(ExtendedTextMessage::_impl_.donotplayinline_) + - PROTOBUF_FIELD_OFFSET(ExtendedTextMessage, _impl_.contextinfo_)>( + reinterpret_cast<char*>(&_impl_.contextinfo_), + reinterpret_cast<char*>(&other->_impl_.contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ExtendedTextMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[22]); } @@ -14206,7 +14824,7 @@ void ExtendedTextMessage::InternalSwap(ExtendedTextMessage* other) { class DocumentMessage::_Internal { public: - using HasBits = decltype(std::declval<DocumentMessage>()._has_bits_); + using HasBits = decltype(std::declval<DocumentMessage>()._impl_._has_bits_); static void set_has_url(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -14269,382 +14887,490 @@ class DocumentMessage::_Internal { const ::proto::ContextInfo& DocumentMessage::_Internal::contextinfo(const DocumentMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } DocumentMessage::DocumentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.DocumentMessage) } DocumentMessage::DocumentMessage(const DocumentMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + DocumentMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.url_){} + , decltype(_impl_.mimetype_){} + , decltype(_impl_.title_){} + , decltype(_impl_.filesha256_){} + , decltype(_impl_.mediakey_){} + , decltype(_impl_.filename_){} + , decltype(_impl_.fileencsha256_){} + , decltype(_impl_.directpath_){} + , decltype(_impl_.thumbnaildirectpath_){} + , decltype(_impl_.thumbnailsha256_){} + , decltype(_impl_.thumbnailencsha256_){} + , decltype(_impl_.jpegthumbnail_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.filelength_){} + , decltype(_impl_.pagecount_){} + , decltype(_impl_.contactvcard_){} + , decltype(_impl_.mediakeytimestamp_){} + , decltype(_impl_.thumbnailheight_){} + , decltype(_impl_.thumbnailwidth_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_url()) { - url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), - GetArenaForAllocation()); + _this->_impl_.url_.Set(from._internal_url(), + _this->GetArenaForAllocation()); } - mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.mimetype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mimetype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_mimetype()) { - mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mimetype(), - GetArenaForAllocation()); + _this->_impl_.mimetype_.Set(from._internal_mimetype(), + _this->GetArenaForAllocation()); } - title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_title()) { - title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArenaForAllocation()); + _this->_impl_.title_.Set(from._internal_title(), + _this->GetArenaForAllocation()); } - filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.filesha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filesha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_filesha256()) { - filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), - GetArenaForAllocation()); + _this->_impl_.filesha256_.Set(from._internal_filesha256(), + _this->GetArenaForAllocation()); } - mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.mediakey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_mediakey()) { - mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), - GetArenaForAllocation()); + _this->_impl_.mediakey_.Set(from._internal_mediakey(), + _this->GetArenaForAllocation()); } - filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.filename_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filename_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_filename()) { - filename_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filename(), - GetArenaForAllocation()); + _this->_impl_.filename_.Set(from._internal_filename(), + _this->GetArenaForAllocation()); } - fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.fileencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_fileencsha256()) { - fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), - GetArenaForAllocation()); + _this->_impl_.fileencsha256_.Set(from._internal_fileencsha256(), + _this->GetArenaForAllocation()); } - directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.directpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_directpath()) { - directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), - GetArenaForAllocation()); + _this->_impl_.directpath_.Set(from._internal_directpath(), + _this->GetArenaForAllocation()); } - thumbnaildirectpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.thumbnaildirectpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnaildirectpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_thumbnaildirectpath()) { - thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnaildirectpath(), - GetArenaForAllocation()); + _this->_impl_.thumbnaildirectpath_.Set(from._internal_thumbnaildirectpath(), + _this->GetArenaForAllocation()); } - thumbnailsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.thumbnailsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_thumbnailsha256()) { - thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailsha256(), - GetArenaForAllocation()); + _this->_impl_.thumbnailsha256_.Set(from._internal_thumbnailsha256(), + _this->GetArenaForAllocation()); } - thumbnailencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.thumbnailencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_thumbnailencsha256()) { - thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailencsha256(), - GetArenaForAllocation()); + _this->_impl_.thumbnailencsha256_.Set(from._internal_thumbnailencsha256(), + _this->GetArenaForAllocation()); } - jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.jpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_jpegthumbnail()) { - jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), - GetArenaForAllocation()); + _this->_impl_.jpegthumbnail_.Set(from._internal_jpegthumbnail(), + _this->GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } - ::memcpy(&filelength_, &from.filelength_, - static_cast<size_t>(reinterpret_cast<char*>(&thumbnailwidth_) - - reinterpret_cast<char*>(&filelength_)) + sizeof(thumbnailwidth_)); + ::memcpy(&_impl_.filelength_, &from._impl_.filelength_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.thumbnailwidth_) - + reinterpret_cast<char*>(&_impl_.filelength_)) + sizeof(_impl_.thumbnailwidth_)); // @@protoc_insertion_point(copy_constructor:proto.DocumentMessage) } -void DocumentMessage::SharedCtor() { -url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -thumbnaildirectpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -thumbnailsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -thumbnailencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&thumbnailwidth_) - - reinterpret_cast<char*>(&contextinfo_)) + sizeof(thumbnailwidth_)); +inline void DocumentMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.url_){} + , decltype(_impl_.mimetype_){} + , decltype(_impl_.title_){} + , decltype(_impl_.filesha256_){} + , decltype(_impl_.mediakey_){} + , decltype(_impl_.filename_){} + , decltype(_impl_.fileencsha256_){} + , decltype(_impl_.directpath_){} + , decltype(_impl_.thumbnaildirectpath_){} + , decltype(_impl_.thumbnailsha256_){} + , decltype(_impl_.thumbnailencsha256_){} + , decltype(_impl_.jpegthumbnail_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.filelength_){uint64_t{0u}} + , decltype(_impl_.pagecount_){0u} + , decltype(_impl_.contactvcard_){false} + , decltype(_impl_.mediakeytimestamp_){int64_t{0}} + , decltype(_impl_.thumbnailheight_){0u} + , decltype(_impl_.thumbnailwidth_){0u} + }; + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mimetype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mimetype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filesha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filesha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filename_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filename_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnaildirectpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnaildirectpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } DocumentMessage::~DocumentMessage() { // @@protoc_insertion_point(destructor:proto.DocumentMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void DocumentMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - mimetype_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - filesha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - mediakey_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - filename_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - fileencsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - directpath_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - thumbnaildirectpath_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - thumbnailsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - thumbnailencsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - jpegthumbnail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete contextinfo_; -} - -void DocumentMessage::ArenaDtor(void* object) { - DocumentMessage* _this = reinterpret_cast< DocumentMessage* >(object); - (void)_this; -} -void DocumentMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { + _impl_.url_.Destroy(); + _impl_.mimetype_.Destroy(); + _impl_.title_.Destroy(); + _impl_.filesha256_.Destroy(); + _impl_.mediakey_.Destroy(); + _impl_.filename_.Destroy(); + _impl_.fileencsha256_.Destroy(); + _impl_.directpath_.Destroy(); + _impl_.thumbnaildirectpath_.Destroy(); + _impl_.thumbnailsha256_.Destroy(); + _impl_.thumbnailencsha256_.Destroy(); + _impl_.jpegthumbnail_.Destroy(); + if (this != internal_default_instance()) delete _impl_.contextinfo_; } + void DocumentMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void DocumentMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.DocumentMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - url_.ClearNonDefaultToEmpty(); + _impl_.url_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - mimetype_.ClearNonDefaultToEmpty(); + _impl_.mimetype_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - title_.ClearNonDefaultToEmpty(); + _impl_.title_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - filesha256_.ClearNonDefaultToEmpty(); + _impl_.filesha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { - mediakey_.ClearNonDefaultToEmpty(); + _impl_.mediakey_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { - filename_.ClearNonDefaultToEmpty(); + _impl_.filename_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { - fileencsha256_.ClearNonDefaultToEmpty(); + _impl_.fileencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { - directpath_.ClearNonDefaultToEmpty(); + _impl_.directpath_.ClearNonDefaultToEmpty(); } } if (cached_has_bits & 0x00001f00u) { if (cached_has_bits & 0x00000100u) { - thumbnaildirectpath_.ClearNonDefaultToEmpty(); + _impl_.thumbnaildirectpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000200u) { - thumbnailsha256_.ClearNonDefaultToEmpty(); + _impl_.thumbnailsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000400u) { - thumbnailencsha256_.ClearNonDefaultToEmpty(); + _impl_.thumbnailencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000800u) { - jpegthumbnail_.ClearNonDefaultToEmpty(); + _impl_.jpegthumbnail_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00001000u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } } if (cached_has_bits & 0x0000e000u) { - ::memset(&filelength_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&contactvcard_) - - reinterpret_cast<char*>(&filelength_)) + sizeof(contactvcard_)); + ::memset(&_impl_.filelength_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.contactvcard_) - + reinterpret_cast<char*>(&_impl_.filelength_)) + sizeof(_impl_.contactvcard_)); } if (cached_has_bits & 0x00070000u) { - ::memset(&mediakeytimestamp_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&thumbnailwidth_) - - reinterpret_cast<char*>(&mediakeytimestamp_)) + sizeof(thumbnailwidth_)); + ::memset(&_impl_.mediakeytimestamp_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.thumbnailwidth_) - + reinterpret_cast<char*>(&_impl_.mediakeytimestamp_)) + sizeof(_impl_.thumbnailwidth_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* DocumentMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string url = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_url(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.DocumentMessage.url"); + ::_pbi::VerifyUTF8(str, "proto.DocumentMessage.url"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string mimetype = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_mimetype(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.DocumentMessage.mimetype"); + ::_pbi::VerifyUTF8(str, "proto.DocumentMessage.mimetype"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string title = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { auto str = _internal_mutable_title(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.DocumentMessage.title"); + ::_pbi::VerifyUTF8(str, "proto.DocumentMessage.title"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes fileSha256 = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { auto str = _internal_mutable_filesha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional uint64 fileLength = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) { _Internal::set_has_filelength(&has_bits); - filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 pageCount = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) { _Internal::set_has_pagecount(&has_bits); - pagecount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.pagecount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes mediaKey = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { auto str = _internal_mutable_mediakey(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional string fileName = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { auto str = _internal_mutable_filename(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.DocumentMessage.fileName"); + ::_pbi::VerifyUTF8(str, "proto.DocumentMessage.fileName"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes fileEncSha256 = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) { auto str = _internal_mutable_fileencsha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional string directPath = 10; case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) { auto str = _internal_mutable_directpath(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.DocumentMessage.directPath"); + ::_pbi::VerifyUTF8(str, "proto.DocumentMessage.directPath"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional int64 mediaKeyTimestamp = 11; case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) { _Internal::set_has_mediakeytimestamp(&has_bits); - mediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.mediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bool contactVcard = 12; case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) { _Internal::set_has_contactvcard(&has_bits); - contactvcard_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.contactvcard_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string thumbnailDirectPath = 13; case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 106)) { auto str = _internal_mutable_thumbnaildirectpath(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.DocumentMessage.thumbnailDirectPath"); + ::_pbi::VerifyUTF8(str, "proto.DocumentMessage.thumbnailDirectPath"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes thumbnailSha256 = 14; case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 114)) { auto str = _internal_mutable_thumbnailsha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes thumbnailEncSha256 = 15; case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 122)) { auto str = _internal_mutable_thumbnailencsha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes jpegThumbnail = 16; case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 130)) { auto str = _internal_mutable_jpegthumbnail(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ContextInfo contextInfo = 17; case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -14652,18 +15378,18 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // optional uint32 thumbnailHeight = 18; case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) { _Internal::set_has_thumbnailheight(&has_bits); - thumbnailheight_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.thumbnailheight_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 thumbnailWidth = 19; case 19: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 152)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) { _Internal::set_has_thumbnailwidth(&has_bits); - thumbnailwidth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.thumbnailwidth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -14684,7 +15410,7 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -14692,13 +15418,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* DocumentMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* DocumentMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.DocumentMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string url = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -14738,13 +15464,13 @@ failure: // optional uint64 fileLength = 5; if (cached_has_bits & 0x00002000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_filelength(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_filelength(), target); } // optional uint32 pageCount = 6; if (cached_has_bits & 0x00004000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_pagecount(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_pagecount(), target); } // optional bytes mediaKey = 7; @@ -14782,13 +15508,13 @@ failure: // optional int64 mediaKeyTimestamp = 11; if (cached_has_bits & 0x00010000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(11, this->_internal_mediakeytimestamp(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(11, this->_internal_mediakeytimestamp(), target); } // optional bool contactVcard = 12; if (cached_has_bits & 0x00008000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(12, this->_internal_contactvcard(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(12, this->_internal_contactvcard(), target); } // optional string thumbnailDirectPath = 13; @@ -14821,26 +15547,25 @@ failure: // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00001000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 17, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(17, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } // optional uint32 thumbnailHeight = 18; if (cached_has_bits & 0x00020000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(18, this->_internal_thumbnailheight(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(18, this->_internal_thumbnailheight(), target); } // optional uint32 thumbnailWidth = 19; if (cached_has_bits & 0x00040000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(19, this->_internal_thumbnailwidth(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(19, this->_internal_thumbnailwidth(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.DocumentMessage) @@ -14851,11 +15576,11 @@ size_t DocumentMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.DocumentMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string url = 1; if (cached_has_bits & 0x00000001u) { @@ -14947,17 +15672,17 @@ size_t DocumentMessage::ByteSizeLong() const { if (cached_has_bits & 0x00001000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } // optional uint64 fileLength = 5; if (cached_has_bits & 0x00002000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); } // optional uint32 pageCount = 6; if (cached_has_bits & 0x00004000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_pagecount()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_pagecount()); } // optional bool contactVcard = 12; @@ -14969,113 +15694,110 @@ size_t DocumentMessage::ByteSizeLong() const { if (cached_has_bits & 0x00070000u) { // optional int64 mediaKeyTimestamp = 11; if (cached_has_bits & 0x00010000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_mediakeytimestamp()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mediakeytimestamp()); } // optional uint32 thumbnailHeight = 18; if (cached_has_bits & 0x00020000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + ::_pbi::WireFormatLite::UInt32Size( this->_internal_thumbnailheight()); } // optional uint32 thumbnailWidth = 19; if (cached_has_bits & 0x00040000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + ::_pbi::WireFormatLite::UInt32Size( this->_internal_thumbnailwidth()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DocumentMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, DocumentMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DocumentMessage::GetClassData() const { return &_class_data_; } -void DocumentMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<DocumentMessage *>(to)->MergeFrom( - static_cast<const DocumentMessage &>(from)); -} - -void DocumentMessage::MergeFrom(const DocumentMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.DocumentMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void DocumentMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<DocumentMessage*>(&to_msg); + auto& from = static_cast<const DocumentMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.DocumentMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_set_url(from._internal_url()); + _this->_internal_set_url(from._internal_url()); } if (cached_has_bits & 0x00000002u) { - _internal_set_mimetype(from._internal_mimetype()); + _this->_internal_set_mimetype(from._internal_mimetype()); } if (cached_has_bits & 0x00000004u) { - _internal_set_title(from._internal_title()); + _this->_internal_set_title(from._internal_title()); } if (cached_has_bits & 0x00000008u) { - _internal_set_filesha256(from._internal_filesha256()); + _this->_internal_set_filesha256(from._internal_filesha256()); } if (cached_has_bits & 0x00000010u) { - _internal_set_mediakey(from._internal_mediakey()); + _this->_internal_set_mediakey(from._internal_mediakey()); } if (cached_has_bits & 0x00000020u) { - _internal_set_filename(from._internal_filename()); + _this->_internal_set_filename(from._internal_filename()); } if (cached_has_bits & 0x00000040u) { - _internal_set_fileencsha256(from._internal_fileencsha256()); + _this->_internal_set_fileencsha256(from._internal_fileencsha256()); } if (cached_has_bits & 0x00000080u) { - _internal_set_directpath(from._internal_directpath()); + _this->_internal_set_directpath(from._internal_directpath()); } } if (cached_has_bits & 0x0000ff00u) { if (cached_has_bits & 0x00000100u) { - _internal_set_thumbnaildirectpath(from._internal_thumbnaildirectpath()); + _this->_internal_set_thumbnaildirectpath(from._internal_thumbnaildirectpath()); } if (cached_has_bits & 0x00000200u) { - _internal_set_thumbnailsha256(from._internal_thumbnailsha256()); + _this->_internal_set_thumbnailsha256(from._internal_thumbnailsha256()); } if (cached_has_bits & 0x00000400u) { - _internal_set_thumbnailencsha256(from._internal_thumbnailencsha256()); + _this->_internal_set_thumbnailencsha256(from._internal_thumbnailencsha256()); } if (cached_has_bits & 0x00000800u) { - _internal_set_jpegthumbnail(from._internal_jpegthumbnail()); + _this->_internal_set_jpegthumbnail(from._internal_jpegthumbnail()); } if (cached_has_bits & 0x00001000u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } if (cached_has_bits & 0x00002000u) { - filelength_ = from.filelength_; + _this->_impl_.filelength_ = from._impl_.filelength_; } if (cached_has_bits & 0x00004000u) { - pagecount_ = from.pagecount_; + _this->_impl_.pagecount_ = from._impl_.pagecount_; } if (cached_has_bits & 0x00008000u) { - contactvcard_ = from.contactvcard_; + _this->_impl_.contactvcard_ = from._impl_.contactvcard_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00070000u) { if (cached_has_bits & 0x00010000u) { - mediakeytimestamp_ = from.mediakeytimestamp_; + _this->_impl_.mediakeytimestamp_ = from._impl_.mediakeytimestamp_; } if (cached_has_bits & 0x00020000u) { - thumbnailheight_ = from.thumbnailheight_; + _this->_impl_.thumbnailheight_ = from._impl_.thumbnailheight_; } if (cached_has_bits & 0x00040000u) { - thumbnailwidth_ = from.thumbnailwidth_; + _this->_impl_.thumbnailwidth_ = from._impl_.thumbnailwidth_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DocumentMessage::CopyFrom(const DocumentMessage& from) { @@ -15094,77 +15816,65 @@ void DocumentMessage::InternalSwap(DocumentMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &url_, lhs_arena, - &other->url_, rhs_arena + &_impl_.url_, lhs_arena, + &other->_impl_.url_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &mimetype_, lhs_arena, - &other->mimetype_, rhs_arena + &_impl_.mimetype_, lhs_arena, + &other->_impl_.mimetype_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &title_, lhs_arena, - &other->title_, rhs_arena + &_impl_.title_, lhs_arena, + &other->_impl_.title_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &filesha256_, lhs_arena, - &other->filesha256_, rhs_arena + &_impl_.filesha256_, lhs_arena, + &other->_impl_.filesha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &mediakey_, lhs_arena, - &other->mediakey_, rhs_arena + &_impl_.mediakey_, lhs_arena, + &other->_impl_.mediakey_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &filename_, lhs_arena, - &other->filename_, rhs_arena + &_impl_.filename_, lhs_arena, + &other->_impl_.filename_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &fileencsha256_, lhs_arena, - &other->fileencsha256_, rhs_arena + &_impl_.fileencsha256_, lhs_arena, + &other->_impl_.fileencsha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &directpath_, lhs_arena, - &other->directpath_, rhs_arena + &_impl_.directpath_, lhs_arena, + &other->_impl_.directpath_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &thumbnaildirectpath_, lhs_arena, - &other->thumbnaildirectpath_, rhs_arena + &_impl_.thumbnaildirectpath_, lhs_arena, + &other->_impl_.thumbnaildirectpath_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &thumbnailsha256_, lhs_arena, - &other->thumbnailsha256_, rhs_arena + &_impl_.thumbnailsha256_, lhs_arena, + &other->_impl_.thumbnailsha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &thumbnailencsha256_, lhs_arena, - &other->thumbnailencsha256_, rhs_arena + &_impl_.thumbnailencsha256_, lhs_arena, + &other->_impl_.thumbnailencsha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &jpegthumbnail_, lhs_arena, - &other->jpegthumbnail_, rhs_arena + &_impl_.jpegthumbnail_, lhs_arena, + &other->_impl_.jpegthumbnail_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(DocumentMessage, thumbnailwidth_) - + sizeof(DocumentMessage::thumbnailwidth_) - - PROTOBUF_FIELD_OFFSET(DocumentMessage, contextinfo_)>( - reinterpret_cast<char*>(&contextinfo_), - reinterpret_cast<char*>(&other->contextinfo_)); + PROTOBUF_FIELD_OFFSET(DocumentMessage, _impl_.thumbnailwidth_) + + sizeof(DocumentMessage::_impl_.thumbnailwidth_) + - PROTOBUF_FIELD_OFFSET(DocumentMessage, _impl_.contextinfo_)>( + reinterpret_cast<char*>(&_impl_.contextinfo_), + reinterpret_cast<char*>(&other->_impl_.contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata DocumentMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[23]); } @@ -15173,7 +15883,7 @@ void DocumentMessage::InternalSwap(DocumentMessage* other) { class AudioMessage::_Internal { public: - using HasBits = decltype(std::declval<AudioMessage>()._has_bits_); + using HasBits = decltype(std::declval<AudioMessage>()._impl_._has_bits_); static void set_has_url(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -15215,262 +15925,326 @@ class AudioMessage::_Internal { const ::proto::ContextInfo& AudioMessage::_Internal::contextinfo(const AudioMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } AudioMessage::AudioMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.AudioMessage) } AudioMessage::AudioMessage(const AudioMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + AudioMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.url_){} + , decltype(_impl_.mimetype_){} + , decltype(_impl_.filesha256_){} + , decltype(_impl_.mediakey_){} + , decltype(_impl_.fileencsha256_){} + , decltype(_impl_.directpath_){} + , decltype(_impl_.streamingsidecar_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.filelength_){} + , decltype(_impl_.seconds_){} + , decltype(_impl_.ptt_){} + , decltype(_impl_.mediakeytimestamp_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_url()) { - url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), - GetArenaForAllocation()); + _this->_impl_.url_.Set(from._internal_url(), + _this->GetArenaForAllocation()); } - mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.mimetype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mimetype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_mimetype()) { - mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mimetype(), - GetArenaForAllocation()); + _this->_impl_.mimetype_.Set(from._internal_mimetype(), + _this->GetArenaForAllocation()); } - filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.filesha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filesha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_filesha256()) { - filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), - GetArenaForAllocation()); + _this->_impl_.filesha256_.Set(from._internal_filesha256(), + _this->GetArenaForAllocation()); } - mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.mediakey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_mediakey()) { - mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), - GetArenaForAllocation()); + _this->_impl_.mediakey_.Set(from._internal_mediakey(), + _this->GetArenaForAllocation()); } - fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.fileencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_fileencsha256()) { - fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), - GetArenaForAllocation()); + _this->_impl_.fileencsha256_.Set(from._internal_fileencsha256(), + _this->GetArenaForAllocation()); } - directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.directpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_directpath()) { - directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), - GetArenaForAllocation()); + _this->_impl_.directpath_.Set(from._internal_directpath(), + _this->GetArenaForAllocation()); } - streamingsidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.streamingsidecar_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.streamingsidecar_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_streamingsidecar()) { - streamingsidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_streamingsidecar(), - GetArenaForAllocation()); + _this->_impl_.streamingsidecar_.Set(from._internal_streamingsidecar(), + _this->GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } - ::memcpy(&filelength_, &from.filelength_, - static_cast<size_t>(reinterpret_cast<char*>(&mediakeytimestamp_) - - reinterpret_cast<char*>(&filelength_)) + sizeof(mediakeytimestamp_)); + ::memcpy(&_impl_.filelength_, &from._impl_.filelength_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.mediakeytimestamp_) - + reinterpret_cast<char*>(&_impl_.filelength_)) + sizeof(_impl_.mediakeytimestamp_)); // @@protoc_insertion_point(copy_constructor:proto.AudioMessage) } -void AudioMessage::SharedCtor() { -url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -streamingsidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&mediakeytimestamp_) - - reinterpret_cast<char*>(&contextinfo_)) + sizeof(mediakeytimestamp_)); +inline void AudioMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.url_){} + , decltype(_impl_.mimetype_){} + , decltype(_impl_.filesha256_){} + , decltype(_impl_.mediakey_){} + , decltype(_impl_.fileencsha256_){} + , decltype(_impl_.directpath_){} + , decltype(_impl_.streamingsidecar_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.filelength_){uint64_t{0u}} + , decltype(_impl_.seconds_){0u} + , decltype(_impl_.ptt_){false} + , decltype(_impl_.mediakeytimestamp_){int64_t{0}} + }; + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mimetype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mimetype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filesha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filesha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.streamingsidecar_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.streamingsidecar_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } AudioMessage::~AudioMessage() { // @@protoc_insertion_point(destructor:proto.AudioMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void AudioMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - mimetype_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - filesha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - mediakey_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - fileencsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - directpath_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - streamingsidecar_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete contextinfo_; + _impl_.url_.Destroy(); + _impl_.mimetype_.Destroy(); + _impl_.filesha256_.Destroy(); + _impl_.mediakey_.Destroy(); + _impl_.fileencsha256_.Destroy(); + _impl_.directpath_.Destroy(); + _impl_.streamingsidecar_.Destroy(); + if (this != internal_default_instance()) delete _impl_.contextinfo_; } -void AudioMessage::ArenaDtor(void* object) { - AudioMessage* _this = reinterpret_cast< AudioMessage* >(object); - (void)_this; -} -void AudioMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void AudioMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void AudioMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AudioMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - url_.ClearNonDefaultToEmpty(); + _impl_.url_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - mimetype_.ClearNonDefaultToEmpty(); + _impl_.mimetype_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - filesha256_.ClearNonDefaultToEmpty(); + _impl_.filesha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - mediakey_.ClearNonDefaultToEmpty(); + _impl_.mediakey_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { - fileencsha256_.ClearNonDefaultToEmpty(); + _impl_.fileencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { - directpath_.ClearNonDefaultToEmpty(); + _impl_.directpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { - streamingsidecar_.ClearNonDefaultToEmpty(); + _impl_.streamingsidecar_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } } if (cached_has_bits & 0x00000f00u) { - ::memset(&filelength_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&mediakeytimestamp_) - - reinterpret_cast<char*>(&filelength_)) + sizeof(mediakeytimestamp_)); + ::memset(&_impl_.filelength_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.mediakeytimestamp_) - + reinterpret_cast<char*>(&_impl_.filelength_)) + sizeof(_impl_.mediakeytimestamp_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* AudioMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* AudioMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string url = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_url(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.AudioMessage.url"); + ::_pbi::VerifyUTF8(str, "proto.AudioMessage.url"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string mimetype = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_mimetype(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.AudioMessage.mimetype"); + ::_pbi::VerifyUTF8(str, "proto.AudioMessage.mimetype"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes fileSha256 = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { auto str = _internal_mutable_filesha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional uint64 fileLength = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { _Internal::set_has_filelength(&has_bits); - filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 seconds = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) { _Internal::set_has_seconds(&has_bits); - seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bool ptt = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) { _Internal::set_has_ptt(&has_bits); - ptt_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.ptt_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes mediaKey = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { auto str = _internal_mutable_mediakey(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes fileEncSha256 = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { auto str = _internal_mutable_fileencsha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional string directPath = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) { auto str = _internal_mutable_directpath(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.AudioMessage.directPath"); + ::_pbi::VerifyUTF8(str, "proto.AudioMessage.directPath"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional int64 mediaKeyTimestamp = 10; case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) { _Internal::set_has_mediakeytimestamp(&has_bits); - mediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.mediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ContextInfo contextInfo = 17; case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -15478,9 +16252,9 @@ const char* AudioMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I continue; // optional bytes streamingSidecar = 18; case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 146)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 146)) { auto str = _internal_mutable_streamingsidecar(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; @@ -15501,7 +16275,7 @@ const char* AudioMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -15509,13 +16283,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* AudioMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* AudioMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.AudioMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string url = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -15545,19 +16319,19 @@ failure: // optional uint64 fileLength = 4; if (cached_has_bits & 0x00000100u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_filelength(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_filelength(), target); } // optional uint32 seconds = 5; if (cached_has_bits & 0x00000200u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_seconds(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_seconds(), target); } // optional bool ptt = 6; if (cached_has_bits & 0x00000400u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_ptt(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_ptt(), target); } // optional bytes mediaKey = 7; @@ -15585,15 +16359,14 @@ failure: // optional int64 mediaKeyTimestamp = 10; if (cached_has_bits & 0x00000800u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(10, this->_internal_mediakeytimestamp(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_mediakeytimestamp(), target); } // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 17, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(17, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } // optional bytes streamingSidecar = 18; @@ -15603,7 +16376,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AudioMessage) @@ -15614,11 +16387,11 @@ size_t AudioMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.AudioMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string url = 1; if (cached_has_bits & 0x00000001u) { @@ -15673,19 +16446,19 @@ size_t AudioMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000080u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } } if (cached_has_bits & 0x00000f00u) { // optional uint64 fileLength = 4; if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); } // optional uint32 seconds = 5; if (cached_has_bits & 0x00000200u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_seconds()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_seconds()); } // optional bool ptt = 6; @@ -15695,75 +16468,72 @@ size_t AudioMessage::ByteSizeLong() const { // optional int64 mediaKeyTimestamp = 10; if (cached_has_bits & 0x00000800u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_mediakeytimestamp()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mediakeytimestamp()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AudioMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, AudioMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AudioMessage::GetClassData() const { return &_class_data_; } -void AudioMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<AudioMessage *>(to)->MergeFrom( - static_cast<const AudioMessage &>(from)); -} - -void AudioMessage::MergeFrom(const AudioMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.AudioMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void AudioMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<AudioMessage*>(&to_msg); + auto& from = static_cast<const AudioMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.AudioMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_set_url(from._internal_url()); + _this->_internal_set_url(from._internal_url()); } if (cached_has_bits & 0x00000002u) { - _internal_set_mimetype(from._internal_mimetype()); + _this->_internal_set_mimetype(from._internal_mimetype()); } if (cached_has_bits & 0x00000004u) { - _internal_set_filesha256(from._internal_filesha256()); + _this->_internal_set_filesha256(from._internal_filesha256()); } if (cached_has_bits & 0x00000008u) { - _internal_set_mediakey(from._internal_mediakey()); + _this->_internal_set_mediakey(from._internal_mediakey()); } if (cached_has_bits & 0x00000010u) { - _internal_set_fileencsha256(from._internal_fileencsha256()); + _this->_internal_set_fileencsha256(from._internal_fileencsha256()); } if (cached_has_bits & 0x00000020u) { - _internal_set_directpath(from._internal_directpath()); + _this->_internal_set_directpath(from._internal_directpath()); } if (cached_has_bits & 0x00000040u) { - _internal_set_streamingsidecar(from._internal_streamingsidecar()); + _this->_internal_set_streamingsidecar(from._internal_streamingsidecar()); } if (cached_has_bits & 0x00000080u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } } if (cached_has_bits & 0x00000f00u) { if (cached_has_bits & 0x00000100u) { - filelength_ = from.filelength_; + _this->_impl_.filelength_ = from._impl_.filelength_; } if (cached_has_bits & 0x00000200u) { - seconds_ = from.seconds_; + _this->_impl_.seconds_ = from._impl_.seconds_; } if (cached_has_bits & 0x00000400u) { - ptt_ = from.ptt_; + _this->_impl_.ptt_ = from._impl_.ptt_; } if (cached_has_bits & 0x00000800u) { - mediakeytimestamp_ = from.mediakeytimestamp_; + _this->_impl_.mediakeytimestamp_ = from._impl_.mediakeytimestamp_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AudioMessage::CopyFrom(const AudioMessage& from) { @@ -15782,52 +16552,45 @@ void AudioMessage::InternalSwap(AudioMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &url_, lhs_arena, - &other->url_, rhs_arena + &_impl_.url_, lhs_arena, + &other->_impl_.url_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &mimetype_, lhs_arena, - &other->mimetype_, rhs_arena + &_impl_.mimetype_, lhs_arena, + &other->_impl_.mimetype_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &filesha256_, lhs_arena, - &other->filesha256_, rhs_arena + &_impl_.filesha256_, lhs_arena, + &other->_impl_.filesha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &mediakey_, lhs_arena, - &other->mediakey_, rhs_arena + &_impl_.mediakey_, lhs_arena, + &other->_impl_.mediakey_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &fileencsha256_, lhs_arena, - &other->fileencsha256_, rhs_arena + &_impl_.fileencsha256_, lhs_arena, + &other->_impl_.fileencsha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &directpath_, lhs_arena, - &other->directpath_, rhs_arena + &_impl_.directpath_, lhs_arena, + &other->_impl_.directpath_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &streamingsidecar_, lhs_arena, - &other->streamingsidecar_, rhs_arena + &_impl_.streamingsidecar_, lhs_arena, + &other->_impl_.streamingsidecar_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(AudioMessage, mediakeytimestamp_) - + sizeof(AudioMessage::mediakeytimestamp_) - - PROTOBUF_FIELD_OFFSET(AudioMessage, contextinfo_)>( - reinterpret_cast<char*>(&contextinfo_), - reinterpret_cast<char*>(&other->contextinfo_)); + PROTOBUF_FIELD_OFFSET(AudioMessage, _impl_.mediakeytimestamp_) + + sizeof(AudioMessage::_impl_.mediakeytimestamp_) + - PROTOBUF_FIELD_OFFSET(AudioMessage, _impl_.contextinfo_)>( + reinterpret_cast<char*>(&_impl_.contextinfo_), + reinterpret_cast<char*>(&other->_impl_.contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata AudioMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[24]); } @@ -15836,7 +16599,7 @@ void AudioMessage::InternalSwap(AudioMessage* other) { class VideoMessage::_Internal { public: - using HasBits = decltype(std::declval<VideoMessage>()._has_bits_); + using HasBits = decltype(std::declval<VideoMessage>()._impl_._has_bits_); static void set_has_url(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -15905,331 +16668,444 @@ class VideoMessage::_Internal { const ::proto::ContextInfo& VideoMessage::_Internal::contextinfo(const VideoMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } VideoMessage::VideoMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - interactiveannotations_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.VideoMessage) } VideoMessage::VideoMessage(const VideoMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - interactiveannotations_(from.interactiveannotations_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + VideoMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.interactiveannotations_){from._impl_.interactiveannotations_} + , decltype(_impl_.url_){} + , decltype(_impl_.mimetype_){} + , decltype(_impl_.filesha256_){} + , decltype(_impl_.mediakey_){} + , decltype(_impl_.caption_){} + , decltype(_impl_.fileencsha256_){} + , decltype(_impl_.directpath_){} + , decltype(_impl_.jpegthumbnail_){} + , decltype(_impl_.streamingsidecar_){} + , decltype(_impl_.thumbnaildirectpath_){} + , decltype(_impl_.thumbnailsha256_){} + , decltype(_impl_.thumbnailencsha256_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.filelength_){} + , decltype(_impl_.seconds_){} + , decltype(_impl_.height_){} + , decltype(_impl_.width_){} + , decltype(_impl_.gifplayback_){} + , decltype(_impl_.viewonce_){} + , decltype(_impl_.mediakeytimestamp_){} + , decltype(_impl_.gifattribution_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_url()) { - url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), - GetArenaForAllocation()); + _this->_impl_.url_.Set(from._internal_url(), + _this->GetArenaForAllocation()); } - mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.mimetype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mimetype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_mimetype()) { - mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mimetype(), - GetArenaForAllocation()); + _this->_impl_.mimetype_.Set(from._internal_mimetype(), + _this->GetArenaForAllocation()); } - filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.filesha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filesha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_filesha256()) { - filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), - GetArenaForAllocation()); + _this->_impl_.filesha256_.Set(from._internal_filesha256(), + _this->GetArenaForAllocation()); } - mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.mediakey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_mediakey()) { - mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), - GetArenaForAllocation()); + _this->_impl_.mediakey_.Set(from._internal_mediakey(), + _this->GetArenaForAllocation()); } - caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.caption_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.caption_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_caption()) { - caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_caption(), - GetArenaForAllocation()); + _this->_impl_.caption_.Set(from._internal_caption(), + _this->GetArenaForAllocation()); } - fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.fileencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_fileencsha256()) { - fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), - GetArenaForAllocation()); + _this->_impl_.fileencsha256_.Set(from._internal_fileencsha256(), + _this->GetArenaForAllocation()); } - directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.directpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_directpath()) { - directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), - GetArenaForAllocation()); + _this->_impl_.directpath_.Set(from._internal_directpath(), + _this->GetArenaForAllocation()); } - jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.jpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_jpegthumbnail()) { - jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), - GetArenaForAllocation()); + _this->_impl_.jpegthumbnail_.Set(from._internal_jpegthumbnail(), + _this->GetArenaForAllocation()); } - streamingsidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.streamingsidecar_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.streamingsidecar_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_streamingsidecar()) { - streamingsidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_streamingsidecar(), - GetArenaForAllocation()); + _this->_impl_.streamingsidecar_.Set(from._internal_streamingsidecar(), + _this->GetArenaForAllocation()); } - thumbnaildirectpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.thumbnaildirectpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnaildirectpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_thumbnaildirectpath()) { - thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnaildirectpath(), - GetArenaForAllocation()); + _this->_impl_.thumbnaildirectpath_.Set(from._internal_thumbnaildirectpath(), + _this->GetArenaForAllocation()); } - thumbnailsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.thumbnailsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_thumbnailsha256()) { - thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailsha256(), - GetArenaForAllocation()); + _this->_impl_.thumbnailsha256_.Set(from._internal_thumbnailsha256(), + _this->GetArenaForAllocation()); } - thumbnailencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.thumbnailencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_thumbnailencsha256()) { - thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailencsha256(), - GetArenaForAllocation()); + _this->_impl_.thumbnailencsha256_.Set(from._internal_thumbnailencsha256(), + _this->GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } - ::memcpy(&filelength_, &from.filelength_, - static_cast<size_t>(reinterpret_cast<char*>(&gifattribution_) - - reinterpret_cast<char*>(&filelength_)) + sizeof(gifattribution_)); + ::memcpy(&_impl_.filelength_, &from._impl_.filelength_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.gifattribution_) - + reinterpret_cast<char*>(&_impl_.filelength_)) + sizeof(_impl_.gifattribution_)); // @@protoc_insertion_point(copy_constructor:proto.VideoMessage) } -void VideoMessage::SharedCtor() { -url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -streamingsidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -thumbnaildirectpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -thumbnailsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -thumbnailencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&gifattribution_) - - reinterpret_cast<char*>(&contextinfo_)) + sizeof(gifattribution_)); +inline void VideoMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.interactiveannotations_){arena} + , decltype(_impl_.url_){} + , decltype(_impl_.mimetype_){} + , decltype(_impl_.filesha256_){} + , decltype(_impl_.mediakey_){} + , decltype(_impl_.caption_){} + , decltype(_impl_.fileencsha256_){} + , decltype(_impl_.directpath_){} + , decltype(_impl_.jpegthumbnail_){} + , decltype(_impl_.streamingsidecar_){} + , decltype(_impl_.thumbnaildirectpath_){} + , decltype(_impl_.thumbnailsha256_){} + , decltype(_impl_.thumbnailencsha256_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.filelength_){uint64_t{0u}} + , decltype(_impl_.seconds_){0u} + , decltype(_impl_.height_){0u} + , decltype(_impl_.width_){0u} + , decltype(_impl_.gifplayback_){false} + , decltype(_impl_.viewonce_){false} + , decltype(_impl_.mediakeytimestamp_){int64_t{0}} + , decltype(_impl_.gifattribution_){0} + }; + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mimetype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mimetype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filesha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filesha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.caption_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.caption_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.streamingsidecar_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.streamingsidecar_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnaildirectpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnaildirectpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnailencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } VideoMessage::~VideoMessage() { // @@protoc_insertion_point(destructor:proto.VideoMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void VideoMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - mimetype_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - filesha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - mediakey_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - caption_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - fileencsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - directpath_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - jpegthumbnail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - streamingsidecar_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - thumbnaildirectpath_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - thumbnailsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - thumbnailencsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete contextinfo_; -} - -void VideoMessage::ArenaDtor(void* object) { - VideoMessage* _this = reinterpret_cast< VideoMessage* >(object); - (void)_this; -} -void VideoMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { + _impl_.interactiveannotations_.~RepeatedPtrField(); + _impl_.url_.Destroy(); + _impl_.mimetype_.Destroy(); + _impl_.filesha256_.Destroy(); + _impl_.mediakey_.Destroy(); + _impl_.caption_.Destroy(); + _impl_.fileencsha256_.Destroy(); + _impl_.directpath_.Destroy(); + _impl_.jpegthumbnail_.Destroy(); + _impl_.streamingsidecar_.Destroy(); + _impl_.thumbnaildirectpath_.Destroy(); + _impl_.thumbnailsha256_.Destroy(); + _impl_.thumbnailencsha256_.Destroy(); + if (this != internal_default_instance()) delete _impl_.contextinfo_; } + void VideoMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void VideoMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.VideoMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - interactiveannotations_.Clear(); - cached_has_bits = _has_bits_[0]; + _impl_.interactiveannotations_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - url_.ClearNonDefaultToEmpty(); + _impl_.url_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - mimetype_.ClearNonDefaultToEmpty(); + _impl_.mimetype_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - filesha256_.ClearNonDefaultToEmpty(); + _impl_.filesha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - mediakey_.ClearNonDefaultToEmpty(); + _impl_.mediakey_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { - caption_.ClearNonDefaultToEmpty(); + _impl_.caption_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { - fileencsha256_.ClearNonDefaultToEmpty(); + _impl_.fileencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { - directpath_.ClearNonDefaultToEmpty(); + _impl_.directpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { - jpegthumbnail_.ClearNonDefaultToEmpty(); + _impl_.jpegthumbnail_.ClearNonDefaultToEmpty(); } } if (cached_has_bits & 0x00001f00u) { if (cached_has_bits & 0x00000100u) { - streamingsidecar_.ClearNonDefaultToEmpty(); + _impl_.streamingsidecar_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000200u) { - thumbnaildirectpath_.ClearNonDefaultToEmpty(); + _impl_.thumbnaildirectpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000400u) { - thumbnailsha256_.ClearNonDefaultToEmpty(); + _impl_.thumbnailsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000800u) { - thumbnailencsha256_.ClearNonDefaultToEmpty(); + _impl_.thumbnailencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00001000u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } } if (cached_has_bits & 0x0000e000u) { - ::memset(&filelength_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&height_) - - reinterpret_cast<char*>(&filelength_)) + sizeof(height_)); + ::memset(&_impl_.filelength_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.height_) - + reinterpret_cast<char*>(&_impl_.filelength_)) + sizeof(_impl_.height_)); } if (cached_has_bits & 0x001f0000u) { - ::memset(&width_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&gifattribution_) - - reinterpret_cast<char*>(&width_)) + sizeof(gifattribution_)); + ::memset(&_impl_.width_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.gifattribution_) - + reinterpret_cast<char*>(&_impl_.width_)) + sizeof(_impl_.gifattribution_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* VideoMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string url = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_url(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.VideoMessage.url"); + ::_pbi::VerifyUTF8(str, "proto.VideoMessage.url"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string mimetype = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_mimetype(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.VideoMessage.mimetype"); + ::_pbi::VerifyUTF8(str, "proto.VideoMessage.mimetype"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes fileSha256 = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { auto str = _internal_mutable_filesha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional uint64 fileLength = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { _Internal::set_has_filelength(&has_bits); - filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 seconds = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) { _Internal::set_has_seconds(&has_bits); - seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes mediaKey = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { auto str = _internal_mutable_mediakey(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional string caption = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { auto str = _internal_mutable_caption(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.VideoMessage.caption"); + ::_pbi::VerifyUTF8(str, "proto.VideoMessage.caption"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bool gifPlayback = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) { _Internal::set_has_gifplayback(&has_bits); - gifplayback_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.gifplayback_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 height = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) { _Internal::set_has_height(&has_bits); - height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 width = 10; case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) { _Internal::set_has_width(&has_bits); - width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes fileEncSha256 = 11; case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) { auto str = _internal_mutable_fileencsha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // repeated .proto.InteractiveAnnotation interactiveAnnotations = 12; case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 98)) { ptr -= 1; do { ptr += 1; @@ -16242,37 +17118,37 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I continue; // optional string directPath = 13; case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 106)) { auto str = _internal_mutable_directpath(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.VideoMessage.directPath"); + ::_pbi::VerifyUTF8(str, "proto.VideoMessage.directPath"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional int64 mediaKeyTimestamp = 14; case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 112)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112)) { _Internal::set_has_mediakeytimestamp(&has_bits); - mediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.mediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes jpegThumbnail = 16; case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 130)) { auto str = _internal_mutable_jpegthumbnail(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ContextInfo contextInfo = 17; case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -16280,17 +17156,17 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I continue; // optional bytes streamingSidecar = 18; case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 146)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 146)) { auto str = _internal_mutable_streamingsidecar(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.VideoMessage.VideoMessageAttribution gifAttribution = 19; case 19: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 152)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::VideoMessage_VideoMessageAttribution_IsValid(val))) { _internal_set_gifattribution(static_cast<::proto::VideoMessage_VideoMessageAttribution>(val)); @@ -16302,39 +17178,39 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I continue; // optional bool viewOnce = 20; case 20: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 160)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160)) { _Internal::set_has_viewonce(&has_bits); - viewonce_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.viewonce_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string thumbnailDirectPath = 21; case 21: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 170)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 170)) { auto str = _internal_mutable_thumbnaildirectpath(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.VideoMessage.thumbnailDirectPath"); + ::_pbi::VerifyUTF8(str, "proto.VideoMessage.thumbnailDirectPath"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes thumbnailSha256 = 22; case 22: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 178)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 178)) { auto str = _internal_mutable_thumbnailsha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes thumbnailEncSha256 = 23; case 23: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 186)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 186)) { auto str = _internal_mutable_thumbnailencsha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; @@ -16355,7 +17231,7 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -16363,13 +17239,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* VideoMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* VideoMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.VideoMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string url = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -16399,13 +17275,13 @@ failure: // optional uint64 fileLength = 4; if (cached_has_bits & 0x00002000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_filelength(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_filelength(), target); } // optional uint32 seconds = 5; if (cached_has_bits & 0x00004000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_seconds(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_seconds(), target); } // optional bytes mediaKey = 6; @@ -16427,19 +17303,19 @@ failure: // optional bool gifPlayback = 8; if (cached_has_bits & 0x00020000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(8, this->_internal_gifplayback(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_gifplayback(), target); } // optional uint32 height = 9; if (cached_has_bits & 0x00008000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(9, this->_internal_height(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_height(), target); } // optional uint32 width = 10; if (cached_has_bits & 0x00010000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(10, this->_internal_width(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(10, this->_internal_width(), target); } // optional bytes fileEncSha256 = 11; @@ -16449,11 +17325,11 @@ failure: } // repeated .proto.InteractiveAnnotation interactiveAnnotations = 12; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->_internal_interactiveannotations_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast<unsigned>(this->_internal_interactiveannotations_size()); i < n; i++) { + const auto& repfield = this->_internal_interactiveannotations(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(12, this->_internal_interactiveannotations(i), target, stream); + InternalWriteMessage(12, repfield, repfield.GetCachedSize(), target, stream); } // optional string directPath = 13; @@ -16469,7 +17345,7 @@ failure: // optional int64 mediaKeyTimestamp = 14; if (cached_has_bits & 0x00080000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(14, this->_internal_mediakeytimestamp(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(14, this->_internal_mediakeytimestamp(), target); } // optional bytes jpegThumbnail = 16; @@ -16480,10 +17356,9 @@ failure: // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00001000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 17, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(17, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } // optional bytes streamingSidecar = 18; @@ -16495,14 +17370,14 @@ failure: // optional .proto.VideoMessage.VideoMessageAttribution gifAttribution = 19; if (cached_has_bits & 0x00100000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 19, this->_internal_gifattribution(), target); } // optional bool viewOnce = 20; if (cached_has_bits & 0x00040000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(20, this->_internal_viewonce(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(20, this->_internal_viewonce(), target); } // optional string thumbnailDirectPath = 21; @@ -16528,7 +17403,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.VideoMessage) @@ -16539,18 +17414,18 @@ size_t VideoMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.VideoMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .proto.InteractiveAnnotation interactiveAnnotations = 12; total_size += 1UL * this->_internal_interactiveannotations_size(); - for (const auto& msg : this->interactiveannotations_) { + for (const auto& msg : this->_impl_.interactiveannotations_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string url = 1; if (cached_has_bits & 0x00000001u) { @@ -16642,29 +17517,29 @@ size_t VideoMessage::ByteSizeLong() const { if (cached_has_bits & 0x00001000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } // optional uint64 fileLength = 4; if (cached_has_bits & 0x00002000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); } // optional uint32 seconds = 5; if (cached_has_bits & 0x00004000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_seconds()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_seconds()); } // optional uint32 height = 9; if (cached_has_bits & 0x00008000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_height()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_height()); } } if (cached_has_bits & 0x001f0000u) { // optional uint32 width = 10; if (cached_has_bits & 0x00010000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_width()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_width()); } // optional bool gifPlayback = 8; @@ -16679,112 +17554,109 @@ size_t VideoMessage::ByteSizeLong() const { // optional int64 mediaKeyTimestamp = 14; if (cached_has_bits & 0x00080000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_mediakeytimestamp()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mediakeytimestamp()); } // optional .proto.VideoMessage.VideoMessageAttribution gifAttribution = 19; if (cached_has_bits & 0x00100000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_gifattribution()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_gifattribution()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VideoMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, VideoMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VideoMessage::GetClassData() const { return &_class_data_; } -void VideoMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<VideoMessage *>(to)->MergeFrom( - static_cast<const VideoMessage &>(from)); -} - -void VideoMessage::MergeFrom(const VideoMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.VideoMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void VideoMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<VideoMessage*>(&to_msg); + auto& from = static_cast<const VideoMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.VideoMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - interactiveannotations_.MergeFrom(from.interactiveannotations_); - cached_has_bits = from._has_bits_[0]; + _this->_impl_.interactiveannotations_.MergeFrom(from._impl_.interactiveannotations_); + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_set_url(from._internal_url()); + _this->_internal_set_url(from._internal_url()); } if (cached_has_bits & 0x00000002u) { - _internal_set_mimetype(from._internal_mimetype()); + _this->_internal_set_mimetype(from._internal_mimetype()); } if (cached_has_bits & 0x00000004u) { - _internal_set_filesha256(from._internal_filesha256()); + _this->_internal_set_filesha256(from._internal_filesha256()); } if (cached_has_bits & 0x00000008u) { - _internal_set_mediakey(from._internal_mediakey()); + _this->_internal_set_mediakey(from._internal_mediakey()); } if (cached_has_bits & 0x00000010u) { - _internal_set_caption(from._internal_caption()); + _this->_internal_set_caption(from._internal_caption()); } if (cached_has_bits & 0x00000020u) { - _internal_set_fileencsha256(from._internal_fileencsha256()); + _this->_internal_set_fileencsha256(from._internal_fileencsha256()); } if (cached_has_bits & 0x00000040u) { - _internal_set_directpath(from._internal_directpath()); + _this->_internal_set_directpath(from._internal_directpath()); } if (cached_has_bits & 0x00000080u) { - _internal_set_jpegthumbnail(from._internal_jpegthumbnail()); + _this->_internal_set_jpegthumbnail(from._internal_jpegthumbnail()); } } if (cached_has_bits & 0x0000ff00u) { if (cached_has_bits & 0x00000100u) { - _internal_set_streamingsidecar(from._internal_streamingsidecar()); + _this->_internal_set_streamingsidecar(from._internal_streamingsidecar()); } if (cached_has_bits & 0x00000200u) { - _internal_set_thumbnaildirectpath(from._internal_thumbnaildirectpath()); + _this->_internal_set_thumbnaildirectpath(from._internal_thumbnaildirectpath()); } if (cached_has_bits & 0x00000400u) { - _internal_set_thumbnailsha256(from._internal_thumbnailsha256()); + _this->_internal_set_thumbnailsha256(from._internal_thumbnailsha256()); } if (cached_has_bits & 0x00000800u) { - _internal_set_thumbnailencsha256(from._internal_thumbnailencsha256()); + _this->_internal_set_thumbnailencsha256(from._internal_thumbnailencsha256()); } if (cached_has_bits & 0x00001000u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } if (cached_has_bits & 0x00002000u) { - filelength_ = from.filelength_; + _this->_impl_.filelength_ = from._impl_.filelength_; } if (cached_has_bits & 0x00004000u) { - seconds_ = from.seconds_; + _this->_impl_.seconds_ = from._impl_.seconds_; } if (cached_has_bits & 0x00008000u) { - height_ = from.height_; + _this->_impl_.height_ = from._impl_.height_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x001f0000u) { if (cached_has_bits & 0x00010000u) { - width_ = from.width_; + _this->_impl_.width_ = from._impl_.width_; } if (cached_has_bits & 0x00020000u) { - gifplayback_ = from.gifplayback_; + _this->_impl_.gifplayback_ = from._impl_.gifplayback_; } if (cached_has_bits & 0x00040000u) { - viewonce_ = from.viewonce_; + _this->_impl_.viewonce_ = from._impl_.viewonce_; } if (cached_has_bits & 0x00080000u) { - mediakeytimestamp_ = from.mediakeytimestamp_; + _this->_impl_.mediakeytimestamp_ = from._impl_.mediakeytimestamp_; } if (cached_has_bits & 0x00100000u) { - gifattribution_ = from.gifattribution_; + _this->_impl_.gifattribution_ = from._impl_.gifattribution_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void VideoMessage::CopyFrom(const VideoMessage& from) { @@ -16803,78 +17675,66 @@ void VideoMessage::InternalSwap(VideoMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - interactiveannotations_.InternalSwap(&other->interactiveannotations_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.interactiveannotations_.InternalSwap(&other->_impl_.interactiveannotations_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &url_, lhs_arena, - &other->url_, rhs_arena + &_impl_.url_, lhs_arena, + &other->_impl_.url_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &mimetype_, lhs_arena, - &other->mimetype_, rhs_arena + &_impl_.mimetype_, lhs_arena, + &other->_impl_.mimetype_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &filesha256_, lhs_arena, - &other->filesha256_, rhs_arena + &_impl_.filesha256_, lhs_arena, + &other->_impl_.filesha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &mediakey_, lhs_arena, - &other->mediakey_, rhs_arena + &_impl_.mediakey_, lhs_arena, + &other->_impl_.mediakey_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &caption_, lhs_arena, - &other->caption_, rhs_arena + &_impl_.caption_, lhs_arena, + &other->_impl_.caption_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &fileencsha256_, lhs_arena, - &other->fileencsha256_, rhs_arena + &_impl_.fileencsha256_, lhs_arena, + &other->_impl_.fileencsha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &directpath_, lhs_arena, - &other->directpath_, rhs_arena + &_impl_.directpath_, lhs_arena, + &other->_impl_.directpath_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &jpegthumbnail_, lhs_arena, - &other->jpegthumbnail_, rhs_arena + &_impl_.jpegthumbnail_, lhs_arena, + &other->_impl_.jpegthumbnail_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &streamingsidecar_, lhs_arena, - &other->streamingsidecar_, rhs_arena + &_impl_.streamingsidecar_, lhs_arena, + &other->_impl_.streamingsidecar_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &thumbnaildirectpath_, lhs_arena, - &other->thumbnaildirectpath_, rhs_arena + &_impl_.thumbnaildirectpath_, lhs_arena, + &other->_impl_.thumbnaildirectpath_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &thumbnailsha256_, lhs_arena, - &other->thumbnailsha256_, rhs_arena + &_impl_.thumbnailsha256_, lhs_arena, + &other->_impl_.thumbnailsha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &thumbnailencsha256_, lhs_arena, - &other->thumbnailencsha256_, rhs_arena + &_impl_.thumbnailencsha256_, lhs_arena, + &other->_impl_.thumbnailencsha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(VideoMessage, gifattribution_) - + sizeof(VideoMessage::gifattribution_) - - PROTOBUF_FIELD_OFFSET(VideoMessage, contextinfo_)>( - reinterpret_cast<char*>(&contextinfo_), - reinterpret_cast<char*>(&other->contextinfo_)); + PROTOBUF_FIELD_OFFSET(VideoMessage, _impl_.gifattribution_) + + sizeof(VideoMessage::_impl_.gifattribution_) + - PROTOBUF_FIELD_OFFSET(VideoMessage, _impl_.contextinfo_)>( + reinterpret_cast<char*>(&_impl_.contextinfo_), + reinterpret_cast<char*>(&other->_impl_.contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata VideoMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[25]); } @@ -16883,7 +17743,7 @@ void VideoMessage::InternalSwap(VideoMessage* other) { class Call::_Internal { public: - using HasBits = decltype(std::declval<Call>()._has_bits_); + using HasBits = decltype(std::declval<Call>()._impl_._has_bits_); static void set_has_callkey(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -16892,76 +17752,88 @@ class Call::_Internal { Call::Call(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.Call) } Call::Call(const Call& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + Call* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.callkey_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - callkey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.callkey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.callkey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_callkey()) { - callkey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_callkey(), - GetArenaForAllocation()); + _this->_impl_.callkey_.Set(from._internal_callkey(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.Call) } -void Call::SharedCtor() { -callkey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void Call::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.callkey_){} + }; + _impl_.callkey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.callkey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Call::~Call() { // @@protoc_insertion_point(destructor:proto.Call) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void Call::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - callkey_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.callkey_.Destroy(); } -void Call::ArenaDtor(void* object) { - Call* _this = reinterpret_cast< Call* >(object); - (void)_this; -} -void Call::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void Call::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void Call::Clear() { // @@protoc_insertion_point(message_clear_start:proto.Call) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - callkey_.ClearNonDefaultToEmpty(); + _impl_.callkey_.ClearNonDefaultToEmpty(); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Call::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Call::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional bytes callKey = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_callkey(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; @@ -16982,7 +17854,7 @@ const char* Call::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -16990,13 +17862,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Call::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* Call::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.Call) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional bytes callKey = 1; if (cached_has_bits & 0x00000001u) { target = stream->WriteBytesMaybeAliased( @@ -17004,7 +17876,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.Call) @@ -17015,44 +17887,40 @@ size_t Call::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.Call) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional bytes callKey = 1; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_callkey()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Call::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, Call::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Call::GetClassData() const { return &_class_data_; } -void Call::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<Call *>(to)->MergeFrom( - static_cast<const Call &>(from)); -} - -void Call::MergeFrom(const Call& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.Call) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void Call::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<Call*>(&to_msg); + auto& from = static_cast<const Call&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.Call) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_callkey()) { - _internal_set_callkey(from._internal_callkey()); + _this->_internal_set_callkey(from._internal_callkey()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Call::CopyFrom(const Call& from) { @@ -17071,16 +17939,15 @@ void Call::InternalSwap(Call* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &callkey_, lhs_arena, - &other->callkey_, rhs_arena + &_impl_.callkey_, lhs_arena, + &other->_impl_.callkey_, rhs_arena ); } ::PROTOBUF_NAMESPACE_ID::Metadata Call::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[26]); } @@ -17089,7 +17956,7 @@ void Call::InternalSwap(Call* other) { class Chat::_Internal { public: - using HasBits = decltype(std::declval<Chat>()._has_bits_); + using HasBits = decltype(std::declval<Chat>()._impl_._has_bits_); static void set_has_displayname(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -17101,104 +17968,124 @@ class Chat::_Internal { Chat::Chat(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.Chat) } Chat::Chat(const Chat& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + Chat* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.displayname_){} + , decltype(_impl_.id_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - displayname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.displayname_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.displayname_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_displayname()) { - displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displayname(), - GetArenaForAllocation()); + _this->_impl_.displayname_.Set(from._internal_displayname(), + _this->GetArenaForAllocation()); } - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_id()) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), - GetArenaForAllocation()); + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.Chat) } -void Chat::SharedCtor() { -displayname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void Chat::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.displayname_){} + , decltype(_impl_.id_){} + }; + _impl_.displayname_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.displayname_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Chat::~Chat() { // @@protoc_insertion_point(destructor:proto.Chat) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void Chat::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - displayname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.displayname_.Destroy(); + _impl_.id_.Destroy(); } -void Chat::ArenaDtor(void* object) { - Chat* _this = reinterpret_cast< Chat* >(object); - (void)_this; -} -void Chat::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void Chat::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void Chat::Clear() { // @@protoc_insertion_point(message_clear_start:proto.Chat) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - displayname_.ClearNonDefaultToEmpty(); + _impl_.displayname_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - id_.ClearNonDefaultToEmpty(); + _impl_.id_.ClearNonDefaultToEmpty(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Chat::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Chat::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string displayName = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_displayname(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Chat.displayName"); + ::_pbi::VerifyUTF8(str, "proto.Chat.displayName"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string id = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Chat.id"); + ::_pbi::VerifyUTF8(str, "proto.Chat.id"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -17218,7 +18105,7 @@ const char* Chat::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -17226,13 +18113,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Chat::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* Chat::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.Chat) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string displayName = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -17254,7 +18141,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.Chat) @@ -17265,11 +18152,11 @@ size_t Chat::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.Chat) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string displayName = 1; if (cached_has_bits & 0x00000001u) { @@ -17286,38 +18173,34 @@ size_t Chat::ByteSizeLong() const { } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Chat::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, Chat::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Chat::GetClassData() const { return &_class_data_; } -void Chat::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<Chat *>(to)->MergeFrom( - static_cast<const Chat &>(from)); -} - -void Chat::MergeFrom(const Chat& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.Chat) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void Chat::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<Chat*>(&to_msg); + auto& from = static_cast<const Chat&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.Chat) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _internal_set_displayname(from._internal_displayname()); + _this->_internal_set_displayname(from._internal_displayname()); } if (cached_has_bits & 0x00000002u) { - _internal_set_id(from._internal_id()); + _this->_internal_set_id(from._internal_id()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Chat::CopyFrom(const Chat& from) { @@ -17336,21 +18219,19 @@ void Chat::InternalSwap(Chat* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &displayname_, lhs_arena, - &other->displayname_, rhs_arena + &_impl_.displayname_, lhs_arena, + &other->_impl_.displayname_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &id_, lhs_arena, - &other->id_, rhs_arena + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena ); } ::PROTOBUF_NAMESPACE_ID::Metadata Chat::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[27]); } @@ -17359,7 +18240,7 @@ void Chat::InternalSwap(Chat* other) { class ProtocolMessage::_Internal { public: - using HasBits = decltype(std::declval<ProtocolMessage>()._has_bits_); + using HasBits = decltype(std::declval<ProtocolMessage>()._impl_._has_bits_); static const ::proto::MessageKey& key(const ProtocolMessage* msg); static void set_has_key(HasBits* has_bits) { (*has_bits)[0] |= 1u; @@ -17397,164 +18278,170 @@ class ProtocolMessage::_Internal { const ::proto::MessageKey& ProtocolMessage::_Internal::key(const ProtocolMessage* msg) { - return *msg->key_; + return *msg->_impl_.key_; } const ::proto::HistorySyncNotification& ProtocolMessage::_Internal::historysyncnotification(const ProtocolMessage* msg) { - return *msg->historysyncnotification_; + return *msg->_impl_.historysyncnotification_; } const ::proto::AppStateSyncKeyShare& ProtocolMessage::_Internal::appstatesynckeyshare(const ProtocolMessage* msg) { - return *msg->appstatesynckeyshare_; + return *msg->_impl_.appstatesynckeyshare_; } const ::proto::AppStateSyncKeyRequest& ProtocolMessage::_Internal::appstatesynckeyrequest(const ProtocolMessage* msg) { - return *msg->appstatesynckeyrequest_; + return *msg->_impl_.appstatesynckeyrequest_; } const ::proto::InitialSecurityNotificationSettingSync& ProtocolMessage::_Internal::initialsecuritynotificationsettingsync(const ProtocolMessage* msg) { - return *msg->initialsecuritynotificationsettingsync_; + return *msg->_impl_.initialsecuritynotificationsettingsync_; } const ::proto::AppStateFatalExceptionNotification& ProtocolMessage::_Internal::appstatefatalexceptionnotification(const ProtocolMessage* msg) { - return *msg->appstatefatalexceptionnotification_; + return *msg->_impl_.appstatefatalexceptionnotification_; } ProtocolMessage::ProtocolMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.ProtocolMessage) } ProtocolMessage::ProtocolMessage(const ProtocolMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + ProtocolMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.key_){nullptr} + , decltype(_impl_.historysyncnotification_){nullptr} + , decltype(_impl_.appstatesynckeyshare_){nullptr} + , decltype(_impl_.appstatesynckeyrequest_){nullptr} + , decltype(_impl_.initialsecuritynotificationsettingsync_){nullptr} + , decltype(_impl_.appstatefatalexceptionnotification_){nullptr} + , decltype(_impl_.type_){} + , decltype(_impl_.ephemeralexpiration_){} + , decltype(_impl_.ephemeralsettingtimestamp_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_key()) { - key_ = new ::proto::MessageKey(*from.key_); - } else { - key_ = nullptr; + _this->_impl_.key_ = new ::proto::MessageKey(*from._impl_.key_); } if (from._internal_has_historysyncnotification()) { - historysyncnotification_ = new ::proto::HistorySyncNotification(*from.historysyncnotification_); - } else { - historysyncnotification_ = nullptr; + _this->_impl_.historysyncnotification_ = new ::proto::HistorySyncNotification(*from._impl_.historysyncnotification_); } if (from._internal_has_appstatesynckeyshare()) { - appstatesynckeyshare_ = new ::proto::AppStateSyncKeyShare(*from.appstatesynckeyshare_); - } else { - appstatesynckeyshare_ = nullptr; + _this->_impl_.appstatesynckeyshare_ = new ::proto::AppStateSyncKeyShare(*from._impl_.appstatesynckeyshare_); } if (from._internal_has_appstatesynckeyrequest()) { - appstatesynckeyrequest_ = new ::proto::AppStateSyncKeyRequest(*from.appstatesynckeyrequest_); - } else { - appstatesynckeyrequest_ = nullptr; + _this->_impl_.appstatesynckeyrequest_ = new ::proto::AppStateSyncKeyRequest(*from._impl_.appstatesynckeyrequest_); } if (from._internal_has_initialsecuritynotificationsettingsync()) { - initialsecuritynotificationsettingsync_ = new ::proto::InitialSecurityNotificationSettingSync(*from.initialsecuritynotificationsettingsync_); - } else { - initialsecuritynotificationsettingsync_ = nullptr; + _this->_impl_.initialsecuritynotificationsettingsync_ = new ::proto::InitialSecurityNotificationSettingSync(*from._impl_.initialsecuritynotificationsettingsync_); } if (from._internal_has_appstatefatalexceptionnotification()) { - appstatefatalexceptionnotification_ = new ::proto::AppStateFatalExceptionNotification(*from.appstatefatalexceptionnotification_); - } else { - appstatefatalexceptionnotification_ = nullptr; + _this->_impl_.appstatefatalexceptionnotification_ = new ::proto::AppStateFatalExceptionNotification(*from._impl_.appstatefatalexceptionnotification_); } - ::memcpy(&type_, &from.type_, - static_cast<size_t>(reinterpret_cast<char*>(&ephemeralsettingtimestamp_) - - reinterpret_cast<char*>(&type_)) + sizeof(ephemeralsettingtimestamp_)); + ::memcpy(&_impl_.type_, &from._impl_.type_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.ephemeralsettingtimestamp_) - + reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.ephemeralsettingtimestamp_)); // @@protoc_insertion_point(copy_constructor:proto.ProtocolMessage) } -void ProtocolMessage::SharedCtor() { -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&key_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&ephemeralsettingtimestamp_) - - reinterpret_cast<char*>(&key_)) + sizeof(ephemeralsettingtimestamp_)); +inline void ProtocolMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.key_){nullptr} + , decltype(_impl_.historysyncnotification_){nullptr} + , decltype(_impl_.appstatesynckeyshare_){nullptr} + , decltype(_impl_.appstatesynckeyrequest_){nullptr} + , decltype(_impl_.initialsecuritynotificationsettingsync_){nullptr} + , decltype(_impl_.appstatefatalexceptionnotification_){nullptr} + , decltype(_impl_.type_){0} + , decltype(_impl_.ephemeralexpiration_){0u} + , decltype(_impl_.ephemeralsettingtimestamp_){int64_t{0}} + }; } ProtocolMessage::~ProtocolMessage() { // @@protoc_insertion_point(destructor:proto.ProtocolMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void ProtocolMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete key_; - if (this != internal_default_instance()) delete historysyncnotification_; - if (this != internal_default_instance()) delete appstatesynckeyshare_; - if (this != internal_default_instance()) delete appstatesynckeyrequest_; - if (this != internal_default_instance()) delete initialsecuritynotificationsettingsync_; - if (this != internal_default_instance()) delete appstatefatalexceptionnotification_; + if (this != internal_default_instance()) delete _impl_.key_; + if (this != internal_default_instance()) delete _impl_.historysyncnotification_; + if (this != internal_default_instance()) delete _impl_.appstatesynckeyshare_; + if (this != internal_default_instance()) delete _impl_.appstatesynckeyrequest_; + if (this != internal_default_instance()) delete _impl_.initialsecuritynotificationsettingsync_; + if (this != internal_default_instance()) delete _impl_.appstatefatalexceptionnotification_; } -void ProtocolMessage::ArenaDtor(void* object) { - ProtocolMessage* _this = reinterpret_cast< ProtocolMessage* >(object); - (void)_this; -} -void ProtocolMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void ProtocolMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ProtocolMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ProtocolMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000003fu) { if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(key_ != nullptr); - key_->Clear(); + GOOGLE_DCHECK(_impl_.key_ != nullptr); + _impl_.key_->Clear(); } if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(historysyncnotification_ != nullptr); - historysyncnotification_->Clear(); + GOOGLE_DCHECK(_impl_.historysyncnotification_ != nullptr); + _impl_.historysyncnotification_->Clear(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(appstatesynckeyshare_ != nullptr); - appstatesynckeyshare_->Clear(); + GOOGLE_DCHECK(_impl_.appstatesynckeyshare_ != nullptr); + _impl_.appstatesynckeyshare_->Clear(); } if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(appstatesynckeyrequest_ != nullptr); - appstatesynckeyrequest_->Clear(); + GOOGLE_DCHECK(_impl_.appstatesynckeyrequest_ != nullptr); + _impl_.appstatesynckeyrequest_->Clear(); } if (cached_has_bits & 0x00000010u) { - GOOGLE_DCHECK(initialsecuritynotificationsettingsync_ != nullptr); - initialsecuritynotificationsettingsync_->Clear(); + GOOGLE_DCHECK(_impl_.initialsecuritynotificationsettingsync_ != nullptr); + _impl_.initialsecuritynotificationsettingsync_->Clear(); } if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(appstatefatalexceptionnotification_ != nullptr); - appstatefatalexceptionnotification_->Clear(); + GOOGLE_DCHECK(_impl_.appstatefatalexceptionnotification_ != nullptr); + _impl_.appstatefatalexceptionnotification_->Clear(); } } if (cached_has_bits & 0x000000c0u) { - ::memset(&type_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&ephemeralexpiration_) - - reinterpret_cast<char*>(&type_)) + sizeof(ephemeralexpiration_)); + ::memset(&_impl_.type_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.ephemeralexpiration_) - + reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.ephemeralexpiration_)); } - ephemeralsettingtimestamp_ = int64_t{0}; - _has_bits_.Clear(); + _impl_.ephemeralsettingtimestamp_ = int64_t{0}; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ProtocolMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ProtocolMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional .proto.MessageKey key = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_key(), ptr); CHK_(ptr); } else @@ -17562,8 +18449,8 @@ const char* ProtocolMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // optional .proto.ProtocolMessage.ProtocolMessageType 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); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::ProtocolMessage_ProtocolMessageType_IsValid(val))) { _internal_set_type(static_cast<::proto::ProtocolMessage_ProtocolMessageType>(val)); @@ -17575,25 +18462,25 @@ const char* ProtocolMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // optional uint32 ephemeralExpiration = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { _Internal::set_has_ephemeralexpiration(&has_bits); - ephemeralexpiration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.ephemeralexpiration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional int64 ephemeralSettingTimestamp = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) { _Internal::set_has_ephemeralsettingtimestamp(&has_bits); - ephemeralsettingtimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.ephemeralsettingtimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.HistorySyncNotification historySyncNotification = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { ptr = ctx->ParseMessage(_internal_mutable_historysyncnotification(), ptr); CHK_(ptr); } else @@ -17601,7 +18488,7 @@ const char* ProtocolMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // optional .proto.AppStateSyncKeyShare appStateSyncKeyShare = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { ptr = ctx->ParseMessage(_internal_mutable_appstatesynckeyshare(), ptr); CHK_(ptr); } else @@ -17609,7 +18496,7 @@ const char* ProtocolMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // optional .proto.AppStateSyncKeyRequest appStateSyncKeyRequest = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { ptr = ctx->ParseMessage(_internal_mutable_appstatesynckeyrequest(), ptr); CHK_(ptr); } else @@ -17617,7 +18504,7 @@ const char* ProtocolMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // optional .proto.InitialSecurityNotificationSettingSync initialSecurityNotificationSettingSync = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) { ptr = ctx->ParseMessage(_internal_mutable_initialsecuritynotificationsettingsync(), ptr); CHK_(ptr); } else @@ -17625,7 +18512,7 @@ const char* ProtocolMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // optional .proto.AppStateFatalExceptionNotification appStateFatalExceptionNotification = 10; case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) { ptr = ctx->ParseMessage(_internal_mutable_appstatefatalexceptionnotification(), ptr); CHK_(ptr); } else @@ -17647,7 +18534,7 @@ const char* ProtocolMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -17655,82 +18542,76 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ProtocolMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* ProtocolMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.ProtocolMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.MessageKey key = 1; if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::key(this), target, stream); + InternalWriteMessage(1, _Internal::key(this), + _Internal::key(this).GetCachedSize(), target, stream); } // optional .proto.ProtocolMessage.ProtocolMessageType type = 2; if (cached_has_bits & 0x00000040u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 2, this->_internal_type(), target); } // optional uint32 ephemeralExpiration = 4; if (cached_has_bits & 0x00000080u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_ephemeralexpiration(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_ephemeralexpiration(), target); } // optional int64 ephemeralSettingTimestamp = 5; if (cached_has_bits & 0x00000100u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_ephemeralsettingtimestamp(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_ephemeralsettingtimestamp(), target); } // optional .proto.HistorySyncNotification historySyncNotification = 6; if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::historysyncnotification(this), target, stream); + InternalWriteMessage(6, _Internal::historysyncnotification(this), + _Internal::historysyncnotification(this).GetCachedSize(), target, stream); } // optional .proto.AppStateSyncKeyShare appStateSyncKeyShare = 7; if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::appstatesynckeyshare(this), target, stream); + InternalWriteMessage(7, _Internal::appstatesynckeyshare(this), + _Internal::appstatesynckeyshare(this).GetCachedSize(), target, stream); } // optional .proto.AppStateSyncKeyRequest appStateSyncKeyRequest = 8; if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::appstatesynckeyrequest(this), target, stream); + InternalWriteMessage(8, _Internal::appstatesynckeyrequest(this), + _Internal::appstatesynckeyrequest(this).GetCachedSize(), target, stream); } // optional .proto.InitialSecurityNotificationSettingSync initialSecurityNotificationSettingSync = 9; if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 9, _Internal::initialsecuritynotificationsettingsync(this), target, stream); + InternalWriteMessage(9, _Internal::initialsecuritynotificationsettingsync(this), + _Internal::initialsecuritynotificationsettingsync(this).GetCachedSize(), target, stream); } // optional .proto.AppStateFatalExceptionNotification appStateFatalExceptionNotification = 10; if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 10, _Internal::appstatefatalexceptionnotification(this), target, stream); + InternalWriteMessage(10, _Internal::appstatefatalexceptionnotification(this), + _Internal::appstatefatalexceptionnotification(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ProtocolMessage) @@ -17741,125 +18622,127 @@ size_t ProtocolMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.ProtocolMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional .proto.MessageKey key = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *key_); + *_impl_.key_); } // optional .proto.HistorySyncNotification historySyncNotification = 6; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *historysyncnotification_); + *_impl_.historysyncnotification_); } // optional .proto.AppStateSyncKeyShare appStateSyncKeyShare = 7; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *appstatesynckeyshare_); + *_impl_.appstatesynckeyshare_); } // optional .proto.AppStateSyncKeyRequest appStateSyncKeyRequest = 8; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *appstatesynckeyrequest_); + *_impl_.appstatesynckeyrequest_); } // optional .proto.InitialSecurityNotificationSettingSync initialSecurityNotificationSettingSync = 9; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *initialsecuritynotificationsettingsync_); + *_impl_.initialsecuritynotificationsettingsync_); } // optional .proto.AppStateFatalExceptionNotification appStateFatalExceptionNotification = 10; if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *appstatefatalexceptionnotification_); + *_impl_.appstatefatalexceptionnotification_); } // optional .proto.ProtocolMessage.ProtocolMessageType type = 2; if (cached_has_bits & 0x00000040u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } // optional uint32 ephemeralExpiration = 4; if (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_ephemeralexpiration()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_ephemeralexpiration()); } } // optional int64 ephemeralSettingTimestamp = 5; if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_ephemeralsettingtimestamp()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_ephemeralsettingtimestamp()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProtocolMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ProtocolMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProtocolMessage::GetClassData() const { return &_class_data_; } -void ProtocolMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<ProtocolMessage *>(to)->MergeFrom( - static_cast<const ProtocolMessage &>(from)); -} - -void ProtocolMessage::MergeFrom(const ProtocolMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.ProtocolMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void ProtocolMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<ProtocolMessage*>(&to_msg); + auto& from = static_cast<const ProtocolMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.ProtocolMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_mutable_key()->::proto::MessageKey::MergeFrom(from._internal_key()); + _this->_internal_mutable_key()->::proto::MessageKey::MergeFrom( + from._internal_key()); } if (cached_has_bits & 0x00000002u) { - _internal_mutable_historysyncnotification()->::proto::HistorySyncNotification::MergeFrom(from._internal_historysyncnotification()); + _this->_internal_mutable_historysyncnotification()->::proto::HistorySyncNotification::MergeFrom( + from._internal_historysyncnotification()); } if (cached_has_bits & 0x00000004u) { - _internal_mutable_appstatesynckeyshare()->::proto::AppStateSyncKeyShare::MergeFrom(from._internal_appstatesynckeyshare()); + _this->_internal_mutable_appstatesynckeyshare()->::proto::AppStateSyncKeyShare::MergeFrom( + from._internal_appstatesynckeyshare()); } if (cached_has_bits & 0x00000008u) { - _internal_mutable_appstatesynckeyrequest()->::proto::AppStateSyncKeyRequest::MergeFrom(from._internal_appstatesynckeyrequest()); + _this->_internal_mutable_appstatesynckeyrequest()->::proto::AppStateSyncKeyRequest::MergeFrom( + from._internal_appstatesynckeyrequest()); } if (cached_has_bits & 0x00000010u) { - _internal_mutable_initialsecuritynotificationsettingsync()->::proto::InitialSecurityNotificationSettingSync::MergeFrom(from._internal_initialsecuritynotificationsettingsync()); + _this->_internal_mutable_initialsecuritynotificationsettingsync()->::proto::InitialSecurityNotificationSettingSync::MergeFrom( + from._internal_initialsecuritynotificationsettingsync()); } if (cached_has_bits & 0x00000020u) { - _internal_mutable_appstatefatalexceptionnotification()->::proto::AppStateFatalExceptionNotification::MergeFrom(from._internal_appstatefatalexceptionnotification()); + _this->_internal_mutable_appstatefatalexceptionnotification()->::proto::AppStateFatalExceptionNotification::MergeFrom( + from._internal_appstatefatalexceptionnotification()); } if (cached_has_bits & 0x00000040u) { - type_ = from.type_; + _this->_impl_.type_ = from._impl_.type_; } if (cached_has_bits & 0x00000080u) { - ephemeralexpiration_ = from.ephemeralexpiration_; + _this->_impl_.ephemeralexpiration_ = from._impl_.ephemeralexpiration_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00000100u) { - _internal_set_ephemeralsettingtimestamp(from._internal_ephemeralsettingtimestamp()); + _this->_internal_set_ephemeralsettingtimestamp(from._internal_ephemeralsettingtimestamp()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ProtocolMessage::CopyFrom(const ProtocolMessage& from) { @@ -17876,17 +18759,17 @@ bool ProtocolMessage::IsInitialized() const { void ProtocolMessage::InternalSwap(ProtocolMessage* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ProtocolMessage, ephemeralsettingtimestamp_) - + sizeof(ProtocolMessage::ephemeralsettingtimestamp_) - - PROTOBUF_FIELD_OFFSET(ProtocolMessage, key_)>( - reinterpret_cast<char*>(&key_), - reinterpret_cast<char*>(&other->key_)); + PROTOBUF_FIELD_OFFSET(ProtocolMessage, _impl_.ephemeralsettingtimestamp_) + + sizeof(ProtocolMessage::_impl_.ephemeralsettingtimestamp_) + - PROTOBUF_FIELD_OFFSET(ProtocolMessage, _impl_.key_)>( + reinterpret_cast<char*>(&_impl_.key_), + reinterpret_cast<char*>(&other->_impl_.key_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ProtocolMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[28]); } @@ -17895,7 +18778,7 @@ void ProtocolMessage::InternalSwap(ProtocolMessage* other) { class HistorySyncNotification::_Internal { public: - using HasBits = decltype(std::declval<HistorySyncNotification>()._has_bits_); + using HasBits = decltype(std::declval<HistorySyncNotification>()._impl_._has_bits_); static void set_has_filesha256(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -17925,177 +18808,223 @@ class HistorySyncNotification::_Internal { HistorySyncNotification::HistorySyncNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.HistorySyncNotification) } HistorySyncNotification::HistorySyncNotification(const HistorySyncNotification& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + HistorySyncNotification* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.filesha256_){} + , decltype(_impl_.mediakey_){} + , decltype(_impl_.fileencsha256_){} + , decltype(_impl_.directpath_){} + , decltype(_impl_.originalmessageid_){} + , decltype(_impl_.filelength_){} + , decltype(_impl_.synctype_){} + , decltype(_impl_.chunkorder_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.filesha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filesha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_filesha256()) { - filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), - GetArenaForAllocation()); + _this->_impl_.filesha256_.Set(from._internal_filesha256(), + _this->GetArenaForAllocation()); } - mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.mediakey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_mediakey()) { - mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), - GetArenaForAllocation()); + _this->_impl_.mediakey_.Set(from._internal_mediakey(), + _this->GetArenaForAllocation()); } - fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.fileencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_fileencsha256()) { - fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), - GetArenaForAllocation()); + _this->_impl_.fileencsha256_.Set(from._internal_fileencsha256(), + _this->GetArenaForAllocation()); } - directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.directpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_directpath()) { - directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), - GetArenaForAllocation()); + _this->_impl_.directpath_.Set(from._internal_directpath(), + _this->GetArenaForAllocation()); } - originalmessageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.originalmessageid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.originalmessageid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_originalmessageid()) { - originalmessageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_originalmessageid(), - GetArenaForAllocation()); + _this->_impl_.originalmessageid_.Set(from._internal_originalmessageid(), + _this->GetArenaForAllocation()); } - ::memcpy(&filelength_, &from.filelength_, - static_cast<size_t>(reinterpret_cast<char*>(&chunkorder_) - - reinterpret_cast<char*>(&filelength_)) + sizeof(chunkorder_)); + ::memcpy(&_impl_.filelength_, &from._impl_.filelength_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.chunkorder_) - + reinterpret_cast<char*>(&_impl_.filelength_)) + sizeof(_impl_.chunkorder_)); // @@protoc_insertion_point(copy_constructor:proto.HistorySyncNotification) } -void HistorySyncNotification::SharedCtor() { -filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -originalmessageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&filelength_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&chunkorder_) - - reinterpret_cast<char*>(&filelength_)) + sizeof(chunkorder_)); +inline void HistorySyncNotification::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.filesha256_){} + , decltype(_impl_.mediakey_){} + , decltype(_impl_.fileencsha256_){} + , decltype(_impl_.directpath_){} + , decltype(_impl_.originalmessageid_){} + , decltype(_impl_.filelength_){uint64_t{0u}} + , decltype(_impl_.synctype_){0} + , decltype(_impl_.chunkorder_){0u} + }; + _impl_.filesha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filesha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.originalmessageid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.originalmessageid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } HistorySyncNotification::~HistorySyncNotification() { // @@protoc_insertion_point(destructor:proto.HistorySyncNotification) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void HistorySyncNotification::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - filesha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - mediakey_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - fileencsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - directpath_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - originalmessageid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.filesha256_.Destroy(); + _impl_.mediakey_.Destroy(); + _impl_.fileencsha256_.Destroy(); + _impl_.directpath_.Destroy(); + _impl_.originalmessageid_.Destroy(); } -void HistorySyncNotification::ArenaDtor(void* object) { - HistorySyncNotification* _this = reinterpret_cast< HistorySyncNotification* >(object); - (void)_this; -} -void HistorySyncNotification::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void HistorySyncNotification::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void HistorySyncNotification::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HistorySyncNotification) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000001fu) { if (cached_has_bits & 0x00000001u) { - filesha256_.ClearNonDefaultToEmpty(); + _impl_.filesha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - mediakey_.ClearNonDefaultToEmpty(); + _impl_.mediakey_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - fileencsha256_.ClearNonDefaultToEmpty(); + _impl_.fileencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - directpath_.ClearNonDefaultToEmpty(); + _impl_.directpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { - originalmessageid_.ClearNonDefaultToEmpty(); + _impl_.originalmessageid_.ClearNonDefaultToEmpty(); } } if (cached_has_bits & 0x000000e0u) { - ::memset(&filelength_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&chunkorder_) - - reinterpret_cast<char*>(&filelength_)) + sizeof(chunkorder_)); + ::memset(&_impl_.filelength_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.chunkorder_) - + reinterpret_cast<char*>(&_impl_.filelength_)) + sizeof(_impl_.chunkorder_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HistorySyncNotification::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* HistorySyncNotification::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional bytes fileSha256 = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_filesha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional uint64 fileLength = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { _Internal::set_has_filelength(&has_bits); - filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes mediaKey = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { auto str = _internal_mutable_mediakey(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes fileEncSha256 = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { auto str = _internal_mutable_fileencsha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional string directPath = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { auto str = _internal_mutable_directpath(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HistorySyncNotification.directPath"); + ::_pbi::VerifyUTF8(str, "proto.HistorySyncNotification.directPath"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.HistorySyncNotification.HistorySyncNotificationHistorySyncType syncType = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::HistorySyncNotification_HistorySyncNotificationHistorySyncType_IsValid(val))) { _internal_set_synctype(static_cast<::proto::HistorySyncNotification_HistorySyncNotificationHistorySyncType>(val)); @@ -18107,22 +19036,22 @@ const char* HistorySyncNotification::_InternalParse(const char* ptr, ::PROTOBUF_ continue; // optional uint32 chunkOrder = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) { _Internal::set_has_chunkorder(&has_bits); - chunkorder_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.chunkorder_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string originalMessageId = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { auto str = _internal_mutable_originalmessageid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HistorySyncNotification.originalMessageId"); + ::_pbi::VerifyUTF8(str, "proto.HistorySyncNotification.originalMessageId"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -18142,7 +19071,7 @@ const char* HistorySyncNotification::_InternalParse(const char* ptr, ::PROTOBUF_ CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -18150,13 +19079,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* HistorySyncNotification::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* HistorySyncNotification::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.HistorySyncNotification) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional bytes fileSha256 = 1; if (cached_has_bits & 0x00000001u) { target = stream->WriteBytesMaybeAliased( @@ -18166,7 +19095,7 @@ failure: // optional uint64 fileLength = 2; if (cached_has_bits & 0x00000020u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_filelength(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_filelength(), target); } // optional bytes mediaKey = 3; @@ -18194,14 +19123,14 @@ failure: // optional .proto.HistorySyncNotification.HistorySyncNotificationHistorySyncType syncType = 6; if (cached_has_bits & 0x00000040u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 6, this->_internal_synctype(), target); } // optional uint32 chunkOrder = 7; if (cached_has_bits & 0x00000080u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->_internal_chunkorder(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_chunkorder(), target); } // optional string originalMessageId = 8; @@ -18215,7 +19144,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HistorySyncNotification) @@ -18226,11 +19155,11 @@ size_t HistorySyncNotification::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.HistorySyncNotification) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional bytes fileSha256 = 1; if (cached_has_bits & 0x00000001u) { @@ -18269,72 +19198,68 @@ size_t HistorySyncNotification::ByteSizeLong() const { // optional uint64 fileLength = 2; if (cached_has_bits & 0x00000020u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); } // optional .proto.HistorySyncNotification.HistorySyncNotificationHistorySyncType syncType = 6; if (cached_has_bits & 0x00000040u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_synctype()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_synctype()); } // optional uint32 chunkOrder = 7; if (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_chunkorder()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_chunkorder()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HistorySyncNotification::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, HistorySyncNotification::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HistorySyncNotification::GetClassData() const { return &_class_data_; } -void HistorySyncNotification::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<HistorySyncNotification *>(to)->MergeFrom( - static_cast<const HistorySyncNotification &>(from)); -} - -void HistorySyncNotification::MergeFrom(const HistorySyncNotification& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.HistorySyncNotification) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void HistorySyncNotification::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<HistorySyncNotification*>(&to_msg); + auto& from = static_cast<const HistorySyncNotification&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.HistorySyncNotification) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_set_filesha256(from._internal_filesha256()); + _this->_internal_set_filesha256(from._internal_filesha256()); } if (cached_has_bits & 0x00000002u) { - _internal_set_mediakey(from._internal_mediakey()); + _this->_internal_set_mediakey(from._internal_mediakey()); } if (cached_has_bits & 0x00000004u) { - _internal_set_fileencsha256(from._internal_fileencsha256()); + _this->_internal_set_fileencsha256(from._internal_fileencsha256()); } if (cached_has_bits & 0x00000008u) { - _internal_set_directpath(from._internal_directpath()); + _this->_internal_set_directpath(from._internal_directpath()); } if (cached_has_bits & 0x00000010u) { - _internal_set_originalmessageid(from._internal_originalmessageid()); + _this->_internal_set_originalmessageid(from._internal_originalmessageid()); } if (cached_has_bits & 0x00000020u) { - filelength_ = from.filelength_; + _this->_impl_.filelength_ = from._impl_.filelength_; } if (cached_has_bits & 0x00000040u) { - synctype_ = from.synctype_; + _this->_impl_.synctype_ = from._impl_.synctype_; } if (cached_has_bits & 0x00000080u) { - chunkorder_ = from.chunkorder_; + _this->_impl_.chunkorder_ = from._impl_.chunkorder_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HistorySyncNotification::CopyFrom(const HistorySyncNotification& from) { @@ -18353,42 +19278,37 @@ void HistorySyncNotification::InternalSwap(HistorySyncNotification* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &filesha256_, lhs_arena, - &other->filesha256_, rhs_arena + &_impl_.filesha256_, lhs_arena, + &other->_impl_.filesha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &mediakey_, lhs_arena, - &other->mediakey_, rhs_arena + &_impl_.mediakey_, lhs_arena, + &other->_impl_.mediakey_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &fileencsha256_, lhs_arena, - &other->fileencsha256_, rhs_arena + &_impl_.fileencsha256_, lhs_arena, + &other->_impl_.fileencsha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &directpath_, lhs_arena, - &other->directpath_, rhs_arena + &_impl_.directpath_, lhs_arena, + &other->_impl_.directpath_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &originalmessageid_, lhs_arena, - &other->originalmessageid_, rhs_arena + &_impl_.originalmessageid_, lhs_arena, + &other->_impl_.originalmessageid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(HistorySyncNotification, chunkorder_) - + sizeof(HistorySyncNotification::chunkorder_) - - PROTOBUF_FIELD_OFFSET(HistorySyncNotification, filelength_)>( - reinterpret_cast<char*>(&filelength_), - reinterpret_cast<char*>(&other->filelength_)); + PROTOBUF_FIELD_OFFSET(HistorySyncNotification, _impl_.chunkorder_) + + sizeof(HistorySyncNotification::_impl_.chunkorder_) + - PROTOBUF_FIELD_OFFSET(HistorySyncNotification, _impl_.filelength_)>( + reinterpret_cast<char*>(&_impl_.filelength_), + reinterpret_cast<char*>(&other->_impl_.filelength_)); } ::PROTOBUF_NAMESPACE_ID::Metadata HistorySyncNotification::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[29]); } @@ -18397,7 +19317,7 @@ void HistorySyncNotification::InternalSwap(HistorySyncNotification* other) { class AppStateSyncKey::_Internal { public: - using HasBits = decltype(std::declval<AppStateSyncKey>()._has_bits_); + using HasBits = decltype(std::declval<AppStateSyncKey>()._impl_._has_bits_); static const ::proto::AppStateSyncKeyId& keyid(const AppStateSyncKey* msg); static void set_has_keyid(HasBits* has_bits) { (*has_bits)[0] |= 1u; @@ -18410,99 +19330,99 @@ class AppStateSyncKey::_Internal { const ::proto::AppStateSyncKeyId& AppStateSyncKey::_Internal::keyid(const AppStateSyncKey* msg) { - return *msg->keyid_; + return *msg->_impl_.keyid_; } const ::proto::AppStateSyncKeyData& AppStateSyncKey::_Internal::keydata(const AppStateSyncKey* msg) { - return *msg->keydata_; + return *msg->_impl_.keydata_; } AppStateSyncKey::AppStateSyncKey(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKey) } AppStateSyncKey::AppStateSyncKey(const AppStateSyncKey& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + AppStateSyncKey* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.keyid_){nullptr} + , decltype(_impl_.keydata_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_keyid()) { - keyid_ = new ::proto::AppStateSyncKeyId(*from.keyid_); - } else { - keyid_ = nullptr; + _this->_impl_.keyid_ = new ::proto::AppStateSyncKeyId(*from._impl_.keyid_); } if (from._internal_has_keydata()) { - keydata_ = new ::proto::AppStateSyncKeyData(*from.keydata_); - } else { - keydata_ = nullptr; + _this->_impl_.keydata_ = new ::proto::AppStateSyncKeyData(*from._impl_.keydata_); } // @@protoc_insertion_point(copy_constructor:proto.AppStateSyncKey) } -void AppStateSyncKey::SharedCtor() { -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&keyid_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&keydata_) - - reinterpret_cast<char*>(&keyid_)) + sizeof(keydata_)); +inline void AppStateSyncKey::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.keyid_){nullptr} + , decltype(_impl_.keydata_){nullptr} + }; } AppStateSyncKey::~AppStateSyncKey() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKey) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void AppStateSyncKey::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete keyid_; - if (this != internal_default_instance()) delete keydata_; + if (this != internal_default_instance()) delete _impl_.keyid_; + if (this != internal_default_instance()) delete _impl_.keydata_; } -void AppStateSyncKey::ArenaDtor(void* object) { - AppStateSyncKey* _this = reinterpret_cast< AppStateSyncKey* >(object); - (void)_this; -} -void AppStateSyncKey::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void AppStateSyncKey::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void AppStateSyncKey::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AppStateSyncKey) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(keyid_ != nullptr); - keyid_->Clear(); + GOOGLE_DCHECK(_impl_.keyid_ != nullptr); + _impl_.keyid_->Clear(); } if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(keydata_ != nullptr); - keydata_->Clear(); + GOOGLE_DCHECK(_impl_.keydata_ != nullptr); + _impl_.keydata_->Clear(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* AppStateSyncKey::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* AppStateSyncKey::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional .proto.AppStateSyncKeyId keyId = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_keyid(), ptr); CHK_(ptr); } else @@ -18510,7 +19430,7 @@ const char* AppStateSyncKey::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // optional .proto.AppStateSyncKeyData keyData = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_keydata(), ptr); CHK_(ptr); } else @@ -18532,7 +19452,7 @@ const char* AppStateSyncKey::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -18540,31 +19460,29 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* AppStateSyncKey::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* AppStateSyncKey::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.AppStateSyncKey) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.AppStateSyncKeyId keyId = 1; if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::keyid(this), target, stream); + InternalWriteMessage(1, _Internal::keyid(this), + _Internal::keyid(this).GetCachedSize(), target, stream); } // optional .proto.AppStateSyncKeyData keyData = 2; if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::keydata(this), target, stream); + InternalWriteMessage(2, _Internal::keydata(this), + _Internal::keydata(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AppStateSyncKey) @@ -18575,59 +19493,57 @@ size_t AppStateSyncKey::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.AppStateSyncKey) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional .proto.AppStateSyncKeyId keyId = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *keyid_); + *_impl_.keyid_); } // optional .proto.AppStateSyncKeyData keyData = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *keydata_); + *_impl_.keydata_); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AppStateSyncKey::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, AppStateSyncKey::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AppStateSyncKey::GetClassData() const { return &_class_data_; } -void AppStateSyncKey::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<AppStateSyncKey *>(to)->MergeFrom( - static_cast<const AppStateSyncKey &>(from)); -} - -void AppStateSyncKey::MergeFrom(const AppStateSyncKey& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKey) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void AppStateSyncKey::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<AppStateSyncKey*>(&to_msg); + auto& from = static_cast<const AppStateSyncKey&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKey) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _internal_mutable_keyid()->::proto::AppStateSyncKeyId::MergeFrom(from._internal_keyid()); + _this->_internal_mutable_keyid()->::proto::AppStateSyncKeyId::MergeFrom( + from._internal_keyid()); } if (cached_has_bits & 0x00000002u) { - _internal_mutable_keydata()->::proto::AppStateSyncKeyData::MergeFrom(from._internal_keydata()); + _this->_internal_mutable_keydata()->::proto::AppStateSyncKeyData::MergeFrom( + from._internal_keydata()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AppStateSyncKey::CopyFrom(const AppStateSyncKey& from) { @@ -18644,17 +19560,17 @@ bool AppStateSyncKey::IsInitialized() const { void AppStateSyncKey::InternalSwap(AppStateSyncKey* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(AppStateSyncKey, keydata_) - + sizeof(AppStateSyncKey::keydata_) - - PROTOBUF_FIELD_OFFSET(AppStateSyncKey, keyid_)>( - reinterpret_cast<char*>(&keyid_), - reinterpret_cast<char*>(&other->keyid_)); + PROTOBUF_FIELD_OFFSET(AppStateSyncKey, _impl_.keydata_) + + sizeof(AppStateSyncKey::_impl_.keydata_) + - PROTOBUF_FIELD_OFFSET(AppStateSyncKey, _impl_.keyid_)>( + reinterpret_cast<char*>(&_impl_.keyid_), + reinterpret_cast<char*>(&other->_impl_.keyid_)); } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKey::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[30]); } @@ -18663,7 +19579,7 @@ void AppStateSyncKey::InternalSwap(AppStateSyncKey* other) { class AppStateSyncKeyId::_Internal { public: - using HasBits = decltype(std::declval<AppStateSyncKeyId>()._has_bits_); + using HasBits = decltype(std::declval<AppStateSyncKeyId>()._impl_._has_bits_); static void set_has_keyid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -18672,76 +19588,88 @@ class AppStateSyncKeyId::_Internal { AppStateSyncKeyId::AppStateSyncKeyId(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKeyId) } AppStateSyncKeyId::AppStateSyncKeyId(const AppStateSyncKeyId& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + AppStateSyncKeyId* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.keyid_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - keyid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.keyid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.keyid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_keyid()) { - keyid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_keyid(), - GetArenaForAllocation()); + _this->_impl_.keyid_.Set(from._internal_keyid(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.AppStateSyncKeyId) } -void AppStateSyncKeyId::SharedCtor() { -keyid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void AppStateSyncKeyId::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.keyid_){} + }; + _impl_.keyid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.keyid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } AppStateSyncKeyId::~AppStateSyncKeyId() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKeyId) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void AppStateSyncKeyId::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - keyid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.keyid_.Destroy(); } -void AppStateSyncKeyId::ArenaDtor(void* object) { - AppStateSyncKeyId* _this = reinterpret_cast< AppStateSyncKeyId* >(object); - (void)_this; -} -void AppStateSyncKeyId::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void AppStateSyncKeyId::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void AppStateSyncKeyId::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AppStateSyncKeyId) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - keyid_.ClearNonDefaultToEmpty(); + _impl_.keyid_.ClearNonDefaultToEmpty(); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* AppStateSyncKeyId::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* AppStateSyncKeyId::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional bytes keyId = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_keyid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; @@ -18762,7 +19690,7 @@ const char* AppStateSyncKeyId::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -18770,13 +19698,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* AppStateSyncKeyId::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* AppStateSyncKeyId::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.AppStateSyncKeyId) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional bytes keyId = 1; if (cached_has_bits & 0x00000001u) { target = stream->WriteBytesMaybeAliased( @@ -18784,7 +19712,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AppStateSyncKeyId) @@ -18795,44 +19723,40 @@ size_t AppStateSyncKeyId::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.AppStateSyncKeyId) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional bytes keyId = 1; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_keyid()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AppStateSyncKeyId::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, AppStateSyncKeyId::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AppStateSyncKeyId::GetClassData() const { return &_class_data_; } -void AppStateSyncKeyId::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<AppStateSyncKeyId *>(to)->MergeFrom( - static_cast<const AppStateSyncKeyId &>(from)); -} - -void AppStateSyncKeyId::MergeFrom(const AppStateSyncKeyId& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyId) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void AppStateSyncKeyId::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<AppStateSyncKeyId*>(&to_msg); + auto& from = static_cast<const AppStateSyncKeyId&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyId) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_keyid()) { - _internal_set_keyid(from._internal_keyid()); + _this->_internal_set_keyid(from._internal_keyid()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AppStateSyncKeyId::CopyFrom(const AppStateSyncKeyId& from) { @@ -18851,16 +19775,15 @@ void AppStateSyncKeyId::InternalSwap(AppStateSyncKeyId* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &keyid_, lhs_arena, - &other->keyid_, rhs_arena + &_impl_.keyid_, lhs_arena, + &other->_impl_.keyid_, rhs_arena ); } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKeyId::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[31]); } @@ -18869,7 +19792,7 @@ void AppStateSyncKeyId::InternalSwap(AppStateSyncKeyId* other) { class AppStateSyncKeyFingerprint::_Internal { public: - using HasBits = decltype(std::declval<AppStateSyncKeyFingerprint>()._has_bits_); + using HasBits = decltype(std::declval<AppStateSyncKeyFingerprint>()._impl_._has_bits_); static void set_has_rawid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -18880,101 +19803,108 @@ class AppStateSyncKeyFingerprint::_Internal { AppStateSyncKeyFingerprint::AppStateSyncKeyFingerprint(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - deviceindexes_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKeyFingerprint) } AppStateSyncKeyFingerprint::AppStateSyncKeyFingerprint(const AppStateSyncKeyFingerprint& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - deviceindexes_(from.deviceindexes_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + AppStateSyncKeyFingerprint* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.deviceindexes_){from._impl_.deviceindexes_} + , /*decltype(_impl_._deviceindexes_cached_byte_size_)*/{0} + , decltype(_impl_.rawid_){} + , decltype(_impl_.currentindex_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&rawid_, &from.rawid_, - static_cast<size_t>(reinterpret_cast<char*>(¤tindex_) - - reinterpret_cast<char*>(&rawid_)) + sizeof(currentindex_)); + ::memcpy(&_impl_.rawid_, &from._impl_.rawid_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.currentindex_) - + reinterpret_cast<char*>(&_impl_.rawid_)) + sizeof(_impl_.currentindex_)); // @@protoc_insertion_point(copy_constructor:proto.AppStateSyncKeyFingerprint) } -void AppStateSyncKeyFingerprint::SharedCtor() { -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&rawid_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(¤tindex_) - - reinterpret_cast<char*>(&rawid_)) + sizeof(currentindex_)); +inline void AppStateSyncKeyFingerprint::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.deviceindexes_){arena} + , /*decltype(_impl_._deviceindexes_cached_byte_size_)*/{0} + , decltype(_impl_.rawid_){0u} + , decltype(_impl_.currentindex_){0u} + }; } AppStateSyncKeyFingerprint::~AppStateSyncKeyFingerprint() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKeyFingerprint) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void AppStateSyncKeyFingerprint::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.deviceindexes_.~RepeatedField(); } -void AppStateSyncKeyFingerprint::ArenaDtor(void* object) { - AppStateSyncKeyFingerprint* _this = reinterpret_cast< AppStateSyncKeyFingerprint* >(object); - (void)_this; -} -void AppStateSyncKeyFingerprint::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void AppStateSyncKeyFingerprint::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void AppStateSyncKeyFingerprint::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AppStateSyncKeyFingerprint) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - deviceindexes_.Clear(); - cached_has_bits = _has_bits_[0]; + _impl_.deviceindexes_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { - ::memset(&rawid_, 0, static_cast<size_t>( - reinterpret_cast<char*>(¤tindex_) - - reinterpret_cast<char*>(&rawid_)) + sizeof(currentindex_)); + ::memset(&_impl_.rawid_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.currentindex_) - + reinterpret_cast<char*>(&_impl_.rawid_)) + sizeof(_impl_.currentindex_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* AppStateSyncKeyFingerprint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* AppStateSyncKeyFingerprint::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional uint32 rawId = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { _Internal::set_has_rawid(&has_bits); - rawid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.rawid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 currentIndex = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { _Internal::set_has_currentindex(&has_bits); - currentindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.currentindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // repeated uint32 deviceIndexes = 3 [packed = true]; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_deviceindexes(), ptr, ctx); CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) { + } else if (static_cast<uint8_t>(tag) == 24) { _internal_add_deviceindexes(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); CHK_(ptr); } else @@ -18996,7 +19926,7 @@ const char* AppStateSyncKeyFingerprint::_InternalParse(const char* ptr, ::PROTOB CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -19004,28 +19934,28 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* AppStateSyncKeyFingerprint::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* AppStateSyncKeyFingerprint::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.AppStateSyncKeyFingerprint) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional uint32 rawId = 1; if (cached_has_bits & 0x00000001u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_rawid(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_rawid(), target); } // optional uint32 currentIndex = 2; if (cached_has_bits & 0x00000002u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_currentindex(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_currentindex(), target); } // repeated uint32 deviceIndexes = 3 [packed = true]; { - int byte_size = _deviceindexes_cached_byte_size_.load(std::memory_order_relaxed); + int byte_size = _impl_._deviceindexes_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteUInt32Packed( 3, _internal_deviceindexes(), byte_size, target); @@ -19033,7 +19963,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AppStateSyncKeyFingerprint) @@ -19044,72 +19974,67 @@ size_t AppStateSyncKeyFingerprint::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.AppStateSyncKeyFingerprint) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated uint32 deviceIndexes = 3 [packed = true]; { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - UInt32Size(this->deviceindexes_); + size_t data_size = ::_pbi::WireFormatLite:: + UInt32Size(this->_impl_.deviceindexes_); if (data_size > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size)); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _deviceindexes_cached_byte_size_.store(cached_size, + int cached_size = ::_pbi::ToCachedSize(data_size); + _impl_._deviceindexes_cached_byte_size_.store(cached_size, std::memory_order_relaxed); total_size += data_size; } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional uint32 rawId = 1; if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_rawid()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_rawid()); } // optional uint32 currentIndex = 2; if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_currentindex()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_currentindex()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AppStateSyncKeyFingerprint::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, AppStateSyncKeyFingerprint::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AppStateSyncKeyFingerprint::GetClassData() const { return &_class_data_; } -void AppStateSyncKeyFingerprint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<AppStateSyncKeyFingerprint *>(to)->MergeFrom( - static_cast<const AppStateSyncKeyFingerprint &>(from)); -} - -void AppStateSyncKeyFingerprint::MergeFrom(const AppStateSyncKeyFingerprint& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyFingerprint) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void AppStateSyncKeyFingerprint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<AppStateSyncKeyFingerprint*>(&to_msg); + auto& from = static_cast<const AppStateSyncKeyFingerprint&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyFingerprint) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - deviceindexes_.MergeFrom(from.deviceindexes_); - cached_has_bits = from._has_bits_[0]; + _this->_impl_.deviceindexes_.MergeFrom(from._impl_.deviceindexes_); + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - rawid_ = from.rawid_; + _this->_impl_.rawid_ = from._impl_.rawid_; } if (cached_has_bits & 0x00000002u) { - currentindex_ = from.currentindex_; + _this->_impl_.currentindex_ = from._impl_.currentindex_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AppStateSyncKeyFingerprint::CopyFrom(const AppStateSyncKeyFingerprint& from) { @@ -19126,18 +20051,18 @@ bool AppStateSyncKeyFingerprint::IsInitialized() const { void AppStateSyncKeyFingerprint::InternalSwap(AppStateSyncKeyFingerprint* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - deviceindexes_.InternalSwap(&other->deviceindexes_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.deviceindexes_.InternalSwap(&other->_impl_.deviceindexes_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(AppStateSyncKeyFingerprint, currentindex_) - + sizeof(AppStateSyncKeyFingerprint::currentindex_) - - PROTOBUF_FIELD_OFFSET(AppStateSyncKeyFingerprint, rawid_)>( - reinterpret_cast<char*>(&rawid_), - reinterpret_cast<char*>(&other->rawid_)); + PROTOBUF_FIELD_OFFSET(AppStateSyncKeyFingerprint, _impl_.currentindex_) + + sizeof(AppStateSyncKeyFingerprint::_impl_.currentindex_) + - PROTOBUF_FIELD_OFFSET(AppStateSyncKeyFingerprint, _impl_.rawid_)>( + reinterpret_cast<char*>(&_impl_.rawid_), + reinterpret_cast<char*>(&other->_impl_.rawid_)); } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKeyFingerprint::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[32]); } @@ -19146,7 +20071,7 @@ void AppStateSyncKeyFingerprint::InternalSwap(AppStateSyncKeyFingerprint* other) class AppStateSyncKeyData::_Internal { public: - using HasBits = decltype(std::declval<AppStateSyncKeyData>()._has_bits_); + using HasBits = decltype(std::declval<AppStateSyncKeyData>()._impl_._has_bits_); static void set_has_keydata(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -19161,106 +20086,116 @@ class AppStateSyncKeyData::_Internal { const ::proto::AppStateSyncKeyFingerprint& AppStateSyncKeyData::_Internal::fingerprint(const AppStateSyncKeyData* msg) { - return *msg->fingerprint_; + return *msg->_impl_.fingerprint_; } AppStateSyncKeyData::AppStateSyncKeyData(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKeyData) } AppStateSyncKeyData::AppStateSyncKeyData(const AppStateSyncKeyData& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + AppStateSyncKeyData* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.keydata_){} + , decltype(_impl_.fingerprint_){nullptr} + , decltype(_impl_.timestamp_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - keydata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.keydata_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.keydata_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_keydata()) { - keydata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_keydata(), - GetArenaForAllocation()); + _this->_impl_.keydata_.Set(from._internal_keydata(), + _this->GetArenaForAllocation()); } if (from._internal_has_fingerprint()) { - fingerprint_ = new ::proto::AppStateSyncKeyFingerprint(*from.fingerprint_); - } else { - fingerprint_ = nullptr; + _this->_impl_.fingerprint_ = new ::proto::AppStateSyncKeyFingerprint(*from._impl_.fingerprint_); } - timestamp_ = from.timestamp_; + _this->_impl_.timestamp_ = from._impl_.timestamp_; // @@protoc_insertion_point(copy_constructor:proto.AppStateSyncKeyData) } -void AppStateSyncKeyData::SharedCtor() { -keydata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&fingerprint_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(×tamp_) - - reinterpret_cast<char*>(&fingerprint_)) + sizeof(timestamp_)); +inline void AppStateSyncKeyData::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.keydata_){} + , decltype(_impl_.fingerprint_){nullptr} + , decltype(_impl_.timestamp_){int64_t{0}} + }; + _impl_.keydata_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.keydata_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } AppStateSyncKeyData::~AppStateSyncKeyData() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKeyData) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void AppStateSyncKeyData::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - keydata_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete fingerprint_; + _impl_.keydata_.Destroy(); + if (this != internal_default_instance()) delete _impl_.fingerprint_; } -void AppStateSyncKeyData::ArenaDtor(void* object) { - AppStateSyncKeyData* _this = reinterpret_cast< AppStateSyncKeyData* >(object); - (void)_this; -} -void AppStateSyncKeyData::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void AppStateSyncKeyData::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void AppStateSyncKeyData::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AppStateSyncKeyData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - keydata_.ClearNonDefaultToEmpty(); + _impl_.keydata_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(fingerprint_ != nullptr); - fingerprint_->Clear(); + GOOGLE_DCHECK(_impl_.fingerprint_ != nullptr); + _impl_.fingerprint_->Clear(); } } - timestamp_ = int64_t{0}; - _has_bits_.Clear(); + _impl_.timestamp_ = int64_t{0}; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* AppStateSyncKeyData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* AppStateSyncKeyData::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional bytes keyData = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_keydata(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.AppStateSyncKeyFingerprint fingerprint = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_fingerprint(), ptr); CHK_(ptr); } else @@ -19268,9 +20203,9 @@ const char* AppStateSyncKeyData::_InternalParse(const char* ptr, ::PROTOBUF_NAME continue; // optional int64 timestamp = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { _Internal::set_has_timestamp(&has_bits); - timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -19291,7 +20226,7 @@ const char* AppStateSyncKeyData::_InternalParse(const char* ptr, ::PROTOBUF_NAME CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -19299,13 +20234,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* AppStateSyncKeyData::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* AppStateSyncKeyData::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.AppStateSyncKeyData) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional bytes keyData = 1; if (cached_has_bits & 0x00000001u) { target = stream->WriteBytesMaybeAliased( @@ -19314,20 +20249,19 @@ failure: // optional .proto.AppStateSyncKeyFingerprint fingerprint = 2; if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::fingerprint(this), target, stream); + InternalWriteMessage(2, _Internal::fingerprint(this), + _Internal::fingerprint(this).GetCachedSize(), target, stream); } // optional int64 timestamp = 3; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_timestamp(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_timestamp(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AppStateSyncKeyData) @@ -19338,11 +20272,11 @@ size_t AppStateSyncKeyData::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.AppStateSyncKeyData) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional bytes keyData = 1; if (cached_has_bits & 0x00000001u) { @@ -19355,51 +20289,48 @@ size_t AppStateSyncKeyData::ByteSizeLong() const { if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *fingerprint_); + *_impl_.fingerprint_); } // optional int64 timestamp = 3; if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_timestamp()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_timestamp()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AppStateSyncKeyData::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, AppStateSyncKeyData::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AppStateSyncKeyData::GetClassData() const { return &_class_data_; } -void AppStateSyncKeyData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<AppStateSyncKeyData *>(to)->MergeFrom( - static_cast<const AppStateSyncKeyData &>(from)); -} - -void AppStateSyncKeyData::MergeFrom(const AppStateSyncKeyData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyData) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void AppStateSyncKeyData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<AppStateSyncKeyData*>(&to_msg); + auto& from = static_cast<const AppStateSyncKeyData&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyData) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _internal_set_keydata(from._internal_keydata()); + _this->_internal_set_keydata(from._internal_keydata()); } if (cached_has_bits & 0x00000002u) { - _internal_mutable_fingerprint()->::proto::AppStateSyncKeyFingerprint::MergeFrom(from._internal_fingerprint()); + _this->_internal_mutable_fingerprint()->::proto::AppStateSyncKeyFingerprint::MergeFrom( + from._internal_fingerprint()); } if (cached_has_bits & 0x00000004u) { - timestamp_ = from.timestamp_; + _this->_impl_.timestamp_ = from._impl_.timestamp_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AppStateSyncKeyData::CopyFrom(const AppStateSyncKeyData& from) { @@ -19418,22 +20349,21 @@ void AppStateSyncKeyData::InternalSwap(AppStateSyncKeyData* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &keydata_, lhs_arena, - &other->keydata_, rhs_arena + &_impl_.keydata_, lhs_arena, + &other->_impl_.keydata_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(AppStateSyncKeyData, timestamp_) - + sizeof(AppStateSyncKeyData::timestamp_) - - PROTOBUF_FIELD_OFFSET(AppStateSyncKeyData, fingerprint_)>( - reinterpret_cast<char*>(&fingerprint_), - reinterpret_cast<char*>(&other->fingerprint_)); + PROTOBUF_FIELD_OFFSET(AppStateSyncKeyData, _impl_.timestamp_) + + sizeof(AppStateSyncKeyData::_impl_.timestamp_) + - PROTOBUF_FIELD_OFFSET(AppStateSyncKeyData, _impl_.fingerprint_)>( + reinterpret_cast<char*>(&_impl_.fingerprint_), + reinterpret_cast<char*>(&other->_impl_.fingerprint_)); } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKeyData::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[33]); } @@ -19446,64 +20376,68 @@ class AppStateSyncKeyShare::_Internal { AppStateSyncKeyShare::AppStateSyncKeyShare(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - keys_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKeyShare) } AppStateSyncKeyShare::AppStateSyncKeyShare(const AppStateSyncKeyShare& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - keys_(from.keys_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + AppStateSyncKeyShare* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.keys_){from._impl_.keys_} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:proto.AppStateSyncKeyShare) } -void AppStateSyncKeyShare::SharedCtor() { +inline void AppStateSyncKeyShare::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.keys_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; } AppStateSyncKeyShare::~AppStateSyncKeyShare() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKeyShare) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void AppStateSyncKeyShare::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.keys_.~RepeatedPtrField(); } -void AppStateSyncKeyShare::ArenaDtor(void* object) { - AppStateSyncKeyShare* _this = reinterpret_cast< AppStateSyncKeyShare* >(object); - (void)_this; -} -void AppStateSyncKeyShare::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void AppStateSyncKeyShare::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void AppStateSyncKeyShare::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AppStateSyncKeyShare) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - keys_.Clear(); + _impl_.keys_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* AppStateSyncKeyShare::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* AppStateSyncKeyShare::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .proto.AppStateSyncKey keys = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr -= 1; do { ptr += 1; @@ -19537,22 +20471,22 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* AppStateSyncKeyShare::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* AppStateSyncKeyShare::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.AppStateSyncKeyShare) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // repeated .proto.AppStateSyncKey keys = 1; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->_internal_keys_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast<unsigned>(this->_internal_keys_size()); i < n; i++) { + const auto& repfield = this->_internal_keys(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_keys(i), target, stream); + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AppStateSyncKeyShare) @@ -19563,41 +20497,37 @@ size_t AppStateSyncKeyShare::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.AppStateSyncKeyShare) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .proto.AppStateSyncKey keys = 1; total_size += 1UL * this->_internal_keys_size(); - for (const auto& msg : this->keys_) { + for (const auto& msg : this->_impl_.keys_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AppStateSyncKeyShare::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, AppStateSyncKeyShare::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AppStateSyncKeyShare::GetClassData() const { return &_class_data_; } -void AppStateSyncKeyShare::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<AppStateSyncKeyShare *>(to)->MergeFrom( - static_cast<const AppStateSyncKeyShare &>(from)); -} - -void AppStateSyncKeyShare::MergeFrom(const AppStateSyncKeyShare& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyShare) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void AppStateSyncKeyShare::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<AppStateSyncKeyShare*>(&to_msg); + auto& from = static_cast<const AppStateSyncKeyShare&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyShare) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - keys_.MergeFrom(from.keys_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.keys_.MergeFrom(from._impl_.keys_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AppStateSyncKeyShare::CopyFrom(const AppStateSyncKeyShare& from) { @@ -19614,11 +20544,11 @@ bool AppStateSyncKeyShare::IsInitialized() const { void AppStateSyncKeyShare::InternalSwap(AppStateSyncKeyShare* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - keys_.InternalSwap(&other->keys_); + _impl_.keys_.InternalSwap(&other->_impl_.keys_); } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKeyShare::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[34]); } @@ -19631,64 +20561,68 @@ class AppStateSyncKeyRequest::_Internal { AppStateSyncKeyRequest::AppStateSyncKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - keyids_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKeyRequest) } AppStateSyncKeyRequest::AppStateSyncKeyRequest(const AppStateSyncKeyRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - keyids_(from.keyids_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + AppStateSyncKeyRequest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.keyids_){from._impl_.keyids_} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:proto.AppStateSyncKeyRequest) } -void AppStateSyncKeyRequest::SharedCtor() { +inline void AppStateSyncKeyRequest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.keyids_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; } AppStateSyncKeyRequest::~AppStateSyncKeyRequest() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKeyRequest) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void AppStateSyncKeyRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.keyids_.~RepeatedPtrField(); } -void AppStateSyncKeyRequest::ArenaDtor(void* object) { - AppStateSyncKeyRequest* _this = reinterpret_cast< AppStateSyncKeyRequest* >(object); - (void)_this; -} -void AppStateSyncKeyRequest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void AppStateSyncKeyRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void AppStateSyncKeyRequest::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AppStateSyncKeyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - keyids_.Clear(); + _impl_.keyids_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* AppStateSyncKeyRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* AppStateSyncKeyRequest::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .proto.AppStateSyncKeyId keyIds = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr -= 1; do { ptr += 1; @@ -19722,22 +20656,22 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* AppStateSyncKeyRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* AppStateSyncKeyRequest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.AppStateSyncKeyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // repeated .proto.AppStateSyncKeyId keyIds = 1; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->_internal_keyids_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast<unsigned>(this->_internal_keyids_size()); i < n; i++) { + const auto& repfield = this->_internal_keyids(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_keyids(i), target, stream); + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AppStateSyncKeyRequest) @@ -19748,41 +20682,37 @@ size_t AppStateSyncKeyRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.AppStateSyncKeyRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .proto.AppStateSyncKeyId keyIds = 1; total_size += 1UL * this->_internal_keyids_size(); - for (const auto& msg : this->keyids_) { + for (const auto& msg : this->_impl_.keyids_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AppStateSyncKeyRequest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, AppStateSyncKeyRequest::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AppStateSyncKeyRequest::GetClassData() const { return &_class_data_; } -void AppStateSyncKeyRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<AppStateSyncKeyRequest *>(to)->MergeFrom( - static_cast<const AppStateSyncKeyRequest &>(from)); -} - -void AppStateSyncKeyRequest::MergeFrom(const AppStateSyncKeyRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyRequest) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void AppStateSyncKeyRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<AppStateSyncKeyRequest*>(&to_msg); + auto& from = static_cast<const AppStateSyncKeyRequest&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyRequest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - keyids_.MergeFrom(from.keyids_); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.keyids_.MergeFrom(from._impl_.keyids_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AppStateSyncKeyRequest::CopyFrom(const AppStateSyncKeyRequest& from) { @@ -19799,11 +20729,11 @@ bool AppStateSyncKeyRequest::IsInitialized() const { void AppStateSyncKeyRequest::InternalSwap(AppStateSyncKeyRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - keyids_.InternalSwap(&other->keyids_); + _impl_.keyids_.InternalSwap(&other->_impl_.keyids_); } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKeyRequest::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[35]); } @@ -19812,7 +20742,7 @@ void AppStateSyncKeyRequest::InternalSwap(AppStateSyncKeyRequest* other) { class AppStateFatalExceptionNotification::_Internal { public: - using HasBits = decltype(std::declval<AppStateFatalExceptionNotification>()._has_bits_); + using HasBits = decltype(std::declval<AppStateFatalExceptionNotification>()._impl_._has_bits_); static void set_has_timestamp(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -19820,79 +20750,85 @@ class AppStateFatalExceptionNotification::_Internal { AppStateFatalExceptionNotification::AppStateFatalExceptionNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - collectionnames_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.AppStateFatalExceptionNotification) } AppStateFatalExceptionNotification::AppStateFatalExceptionNotification(const AppStateFatalExceptionNotification& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - collectionnames_(from.collectionnames_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + AppStateFatalExceptionNotification* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.collectionnames_){from._impl_.collectionnames_} + , decltype(_impl_.timestamp_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - timestamp_ = from.timestamp_; + _this->_impl_.timestamp_ = from._impl_.timestamp_; // @@protoc_insertion_point(copy_constructor:proto.AppStateFatalExceptionNotification) } -void AppStateFatalExceptionNotification::SharedCtor() { -timestamp_ = int64_t{0}; +inline void AppStateFatalExceptionNotification::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.collectionnames_){arena} + , decltype(_impl_.timestamp_){int64_t{0}} + }; } AppStateFatalExceptionNotification::~AppStateFatalExceptionNotification() { // @@protoc_insertion_point(destructor:proto.AppStateFatalExceptionNotification) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void AppStateFatalExceptionNotification::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.collectionnames_.~RepeatedPtrField(); } -void AppStateFatalExceptionNotification::ArenaDtor(void* object) { - AppStateFatalExceptionNotification* _this = reinterpret_cast< AppStateFatalExceptionNotification* >(object); - (void)_this; -} -void AppStateFatalExceptionNotification::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void AppStateFatalExceptionNotification::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void AppStateFatalExceptionNotification::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AppStateFatalExceptionNotification) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - collectionnames_.Clear(); - timestamp_ = int64_t{0}; - _has_bits_.Clear(); + _impl_.collectionnames_.Clear(); + _impl_.timestamp_ = int64_t{0}; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* AppStateFatalExceptionNotification::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* AppStateFatalExceptionNotification::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated string collectionNames = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr -= 1; do { ptr += 1; auto str = _internal_add_collectionnames(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.AppStateFatalExceptionNotification.collectionNames"); + ::_pbi::VerifyUTF8(str, "proto.AppStateFatalExceptionNotification.collectionNames"); #endif // !NDEBUG - CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); } else @@ -19900,9 +20836,9 @@ const char* AppStateFatalExceptionNotification::_InternalParse(const char* ptr, continue; // optional int64 timestamp = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { _Internal::set_has_timestamp(&has_bits); - timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -19923,7 +20859,7 @@ const char* AppStateFatalExceptionNotification::_InternalParse(const char* ptr, CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -19931,10 +20867,10 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* AppStateFatalExceptionNotification::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* AppStateFatalExceptionNotification::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.AppStateFatalExceptionNotification) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // repeated string collectionNames = 1; @@ -19947,15 +20883,15 @@ failure: target = stream->WriteString(1, s, target); } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional int64 timestamp = 2; if (cached_has_bits & 0x00000001u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_timestamp(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_timestamp(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AppStateFatalExceptionNotification) @@ -19966,51 +20902,47 @@ size_t AppStateFatalExceptionNotification::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.AppStateFatalExceptionNotification) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string collectionNames = 1; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(collectionnames_.size()); - for (int i = 0, n = collectionnames_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.collectionnames_.size()); + for (int i = 0, n = _impl_.collectionnames_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - collectionnames_.Get(i)); + _impl_.collectionnames_.Get(i)); } // optional int64 timestamp = 2; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_timestamp()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_timestamp()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AppStateFatalExceptionNotification::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, AppStateFatalExceptionNotification::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AppStateFatalExceptionNotification::GetClassData() const { return &_class_data_; } -void AppStateFatalExceptionNotification::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<AppStateFatalExceptionNotification *>(to)->MergeFrom( - static_cast<const AppStateFatalExceptionNotification &>(from)); -} - -void AppStateFatalExceptionNotification::MergeFrom(const AppStateFatalExceptionNotification& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateFatalExceptionNotification) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void AppStateFatalExceptionNotification::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<AppStateFatalExceptionNotification*>(&to_msg); + auto& from = static_cast<const AppStateFatalExceptionNotification&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateFatalExceptionNotification) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - collectionnames_.MergeFrom(from.collectionnames_); + _this->_impl_.collectionnames_.MergeFrom(from._impl_.collectionnames_); if (from._internal_has_timestamp()) { - _internal_set_timestamp(from._internal_timestamp()); + _this->_internal_set_timestamp(from._internal_timestamp()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AppStateFatalExceptionNotification::CopyFrom(const AppStateFatalExceptionNotification& from) { @@ -20027,13 +20959,13 @@ bool AppStateFatalExceptionNotification::IsInitialized() const { void AppStateFatalExceptionNotification::InternalSwap(AppStateFatalExceptionNotification* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - collectionnames_.InternalSwap(&other->collectionnames_); - swap(timestamp_, other->timestamp_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.collectionnames_.InternalSwap(&other->_impl_.collectionnames_); + swap(_impl_.timestamp_, other->_impl_.timestamp_); } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateFatalExceptionNotification::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[36]); } @@ -20042,7 +20974,7 @@ void AppStateFatalExceptionNotification::InternalSwap(AppStateFatalExceptionNoti class InitialSecurityNotificationSettingSync::_Internal { public: - using HasBits = decltype(std::declval<InitialSecurityNotificationSettingSync>()._has_bits_); + using HasBits = decltype(std::declval<InitialSecurityNotificationSettingSync>()._impl_._has_bits_); static void set_has_securitynotificationenabled(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -20051,68 +20983,73 @@ class InitialSecurityNotificationSettingSync::_Internal { InitialSecurityNotificationSettingSync::InitialSecurityNotificationSettingSync(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.InitialSecurityNotificationSettingSync) } InitialSecurityNotificationSettingSync::InitialSecurityNotificationSettingSync(const InitialSecurityNotificationSettingSync& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + InitialSecurityNotificationSettingSync* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.securitynotificationenabled_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - securitynotificationenabled_ = from.securitynotificationenabled_; + _this->_impl_.securitynotificationenabled_ = from._impl_.securitynotificationenabled_; // @@protoc_insertion_point(copy_constructor:proto.InitialSecurityNotificationSettingSync) } -void InitialSecurityNotificationSettingSync::SharedCtor() { -securitynotificationenabled_ = false; +inline void InitialSecurityNotificationSettingSync::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.securitynotificationenabled_){false} + }; } InitialSecurityNotificationSettingSync::~InitialSecurityNotificationSettingSync() { // @@protoc_insertion_point(destructor:proto.InitialSecurityNotificationSettingSync) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void InitialSecurityNotificationSettingSync::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -void InitialSecurityNotificationSettingSync::ArenaDtor(void* object) { - InitialSecurityNotificationSettingSync* _this = reinterpret_cast< InitialSecurityNotificationSettingSync* >(object); - (void)_this; -} -void InitialSecurityNotificationSettingSync::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void InitialSecurityNotificationSettingSync::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void InitialSecurityNotificationSettingSync::Clear() { // @@protoc_insertion_point(message_clear_start:proto.InitialSecurityNotificationSettingSync) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - securitynotificationenabled_ = false; - _has_bits_.Clear(); + _impl_.securitynotificationenabled_ = false; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* InitialSecurityNotificationSettingSync::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* InitialSecurityNotificationSettingSync::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional bool securityNotificationEnabled = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { _Internal::set_has_securitynotificationenabled(&has_bits); - securitynotificationenabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.securitynotificationenabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -20133,7 +21070,7 @@ const char* InitialSecurityNotificationSettingSync::_InternalParse(const char* p CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -20141,21 +21078,21 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* InitialSecurityNotificationSettingSync::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* InitialSecurityNotificationSettingSync::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.InitialSecurityNotificationSettingSync) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional bool securityNotificationEnabled = 1; if (cached_has_bits & 0x00000001u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_securitynotificationenabled(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_securitynotificationenabled(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.InitialSecurityNotificationSettingSync) @@ -20166,42 +21103,38 @@ size_t InitialSecurityNotificationSettingSync::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.InitialSecurityNotificationSettingSync) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional bool securityNotificationEnabled = 1; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData InitialSecurityNotificationSettingSync::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, InitialSecurityNotificationSettingSync::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*InitialSecurityNotificationSettingSync::GetClassData() const { return &_class_data_; } -void InitialSecurityNotificationSettingSync::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<InitialSecurityNotificationSettingSync *>(to)->MergeFrom( - static_cast<const InitialSecurityNotificationSettingSync &>(from)); -} - -void InitialSecurityNotificationSettingSync::MergeFrom(const InitialSecurityNotificationSettingSync& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.InitialSecurityNotificationSettingSync) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void InitialSecurityNotificationSettingSync::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<InitialSecurityNotificationSettingSync*>(&to_msg); + auto& from = static_cast<const InitialSecurityNotificationSettingSync&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.InitialSecurityNotificationSettingSync) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_securitynotificationenabled()) { - _internal_set_securitynotificationenabled(from._internal_securitynotificationenabled()); + _this->_internal_set_securitynotificationenabled(from._internal_securitynotificationenabled()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void InitialSecurityNotificationSettingSync::CopyFrom(const InitialSecurityNotificationSettingSync& from) { @@ -20218,12 +21151,12 @@ bool InitialSecurityNotificationSettingSync::IsInitialized() const { void InitialSecurityNotificationSettingSync::InternalSwap(InitialSecurityNotificationSettingSync* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(securitynotificationenabled_, other->securitynotificationenabled_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.securitynotificationenabled_, other->_impl_.securitynotificationenabled_); } ::PROTOBUF_NAMESPACE_ID::Metadata InitialSecurityNotificationSettingSync::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[37]); } @@ -20232,7 +21165,7 @@ void InitialSecurityNotificationSettingSync::InternalSwap(InitialSecurityNotific class ContactsArrayMessage::_Internal { public: - using HasBits = decltype(std::declval<ContactsArrayMessage>()._has_bits_); + using HasBits = decltype(std::declval<ContactsArrayMessage>()._impl_._has_bits_); static void set_has_displayname(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -20244,107 +21177,119 @@ class ContactsArrayMessage::_Internal { const ::proto::ContextInfo& ContactsArrayMessage::_Internal::contextinfo(const ContactsArrayMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } ContactsArrayMessage::ContactsArrayMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - contacts_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.ContactsArrayMessage) } ContactsArrayMessage::ContactsArrayMessage(const ContactsArrayMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - contacts_(from.contacts_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + ContactsArrayMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.contacts_){from._impl_.contacts_} + , decltype(_impl_.displayname_){} + , decltype(_impl_.contextinfo_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - displayname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.displayname_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.displayname_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_displayname()) { - displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displayname(), - GetArenaForAllocation()); + _this->_impl_.displayname_.Set(from._internal_displayname(), + _this->GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } // @@protoc_insertion_point(copy_constructor:proto.ContactsArrayMessage) } -void ContactsArrayMessage::SharedCtor() { -displayname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -contextinfo_ = nullptr; +inline void ContactsArrayMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.contacts_){arena} + , decltype(_impl_.displayname_){} + , decltype(_impl_.contextinfo_){nullptr} + }; + _impl_.displayname_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.displayname_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ContactsArrayMessage::~ContactsArrayMessage() { // @@protoc_insertion_point(destructor:proto.ContactsArrayMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void ContactsArrayMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - displayname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete contextinfo_; + _impl_.contacts_.~RepeatedPtrField(); + _impl_.displayname_.Destroy(); + if (this != internal_default_instance()) delete _impl_.contextinfo_; } -void ContactsArrayMessage::ArenaDtor(void* object) { - ContactsArrayMessage* _this = reinterpret_cast< ContactsArrayMessage* >(object); - (void)_this; -} -void ContactsArrayMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void ContactsArrayMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ContactsArrayMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ContactsArrayMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - contacts_.Clear(); - cached_has_bits = _has_bits_[0]; + _impl_.contacts_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - displayname_.ClearNonDefaultToEmpty(); + _impl_.displayname_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ContactsArrayMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ContactsArrayMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string displayName = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_displayname(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ContactsArrayMessage.displayName"); + ::_pbi::VerifyUTF8(str, "proto.ContactsArrayMessage.displayName"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // repeated .proto.ContactMessage contacts = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr -= 1; do { ptr += 1; @@ -20357,7 +21302,7 @@ const char* ContactsArrayMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAM continue; // optional .proto.ContextInfo contextInfo = 17; case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -20379,7 +21324,7 @@ const char* ContactsArrayMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAM CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -20387,13 +21332,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ContactsArrayMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* ContactsArrayMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.ContactsArrayMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string displayName = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -20405,23 +21350,22 @@ failure: } // repeated .proto.ContactMessage contacts = 2; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->_internal_contacts_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast<unsigned>(this->_internal_contacts_size()); i < n; i++) { + const auto& repfield = this->_internal_contacts(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, this->_internal_contacts(i), target, stream); + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 17, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(17, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ContactsArrayMessage) @@ -20432,18 +21376,18 @@ size_t ContactsArrayMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.ContactsArrayMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .proto.ContactMessage contacts = 2; total_size += 1UL * this->_internal_contacts_size(); - for (const auto& msg : this->contacts_) { + for (const auto& msg : this->_impl_.contacts_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string displayName = 1; if (cached_has_bits & 0x00000001u) { @@ -20456,43 +21400,40 @@ size_t ContactsArrayMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000002u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ContactsArrayMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ContactsArrayMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ContactsArrayMessage::GetClassData() const { return &_class_data_; } -void ContactsArrayMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<ContactsArrayMessage *>(to)->MergeFrom( - static_cast<const ContactsArrayMessage &>(from)); -} - -void ContactsArrayMessage::MergeFrom(const ContactsArrayMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.ContactsArrayMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void ContactsArrayMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<ContactsArrayMessage*>(&to_msg); + auto& from = static_cast<const ContactsArrayMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.ContactsArrayMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - contacts_.MergeFrom(from.contacts_); - cached_has_bits = from._has_bits_[0]; + _this->_impl_.contacts_.MergeFrom(from._impl_.contacts_); + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _internal_set_displayname(from._internal_displayname()); + _this->_internal_set_displayname(from._internal_displayname()); } if (cached_has_bits & 0x00000002u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ContactsArrayMessage::CopyFrom(const ContactsArrayMessage& from) { @@ -20511,18 +21452,17 @@ void ContactsArrayMessage::InternalSwap(ContactsArrayMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - contacts_.InternalSwap(&other->contacts_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.contacts_.InternalSwap(&other->_impl_.contacts_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &displayname_, lhs_arena, - &other->displayname_, rhs_arena + &_impl_.displayname_, lhs_arena, + &other->_impl_.displayname_, rhs_arena ); - swap(contextinfo_, other->contextinfo_); + swap(_impl_.contextinfo_, other->_impl_.contextinfo_); } ::PROTOBUF_NAMESPACE_ID::Metadata ContactsArrayMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[38]); } @@ -20531,7 +21471,7 @@ void ContactsArrayMessage::InternalSwap(ContactsArrayMessage* other) { class HSMCurrency::_Internal { public: - using HasBits = decltype(std::declval<HSMCurrency>()._has_bits_); + using HasBits = decltype(std::declval<HSMCurrency>()._impl_._has_bits_); static void set_has_currencycode(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -20543,91 +21483,104 @@ class HSMCurrency::_Internal { HSMCurrency::HSMCurrency(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.HSMCurrency) } HSMCurrency::HSMCurrency(const HSMCurrency& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + HSMCurrency* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.currencycode_){} + , decltype(_impl_.amount1000_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - currencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.currencycode_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.currencycode_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_currencycode()) { - currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_currencycode(), - GetArenaForAllocation()); + _this->_impl_.currencycode_.Set(from._internal_currencycode(), + _this->GetArenaForAllocation()); } - amount1000_ = from.amount1000_; + _this->_impl_.amount1000_ = from._impl_.amount1000_; // @@protoc_insertion_point(copy_constructor:proto.HSMCurrency) } -void HSMCurrency::SharedCtor() { -currencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -amount1000_ = int64_t{0}; +inline void HSMCurrency::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.currencycode_){} + , decltype(_impl_.amount1000_){int64_t{0}} + }; + _impl_.currencycode_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.currencycode_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } HSMCurrency::~HSMCurrency() { // @@protoc_insertion_point(destructor:proto.HSMCurrency) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void HSMCurrency::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - currencycode_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.currencycode_.Destroy(); } -void HSMCurrency::ArenaDtor(void* object) { - HSMCurrency* _this = reinterpret_cast< HSMCurrency* >(object); - (void)_this; -} -void HSMCurrency::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void HSMCurrency::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void HSMCurrency::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HSMCurrency) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - currencycode_.ClearNonDefaultToEmpty(); + _impl_.currencycode_.ClearNonDefaultToEmpty(); } - amount1000_ = int64_t{0}; - _has_bits_.Clear(); + _impl_.amount1000_ = int64_t{0}; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HSMCurrency::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* HSMCurrency::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string currencyCode = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_currencycode(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HSMCurrency.currencyCode"); + ::_pbi::VerifyUTF8(str, "proto.HSMCurrency.currencyCode"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional int64 amount1000 = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { _Internal::set_has_amount1000(&has_bits); - amount1000_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.amount1000_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -20648,7 +21601,7 @@ const char* HSMCurrency::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -20656,13 +21609,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* HSMCurrency::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* HSMCurrency::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.HSMCurrency) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string currencyCode = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -20676,11 +21629,11 @@ failure: // optional int64 amount1000 = 2; if (cached_has_bits & 0x00000002u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_amount1000(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_amount1000(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HSMCurrency) @@ -20691,11 +21644,11 @@ size_t HSMCurrency::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.HSMCurrency) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string currencyCode = 1; if (cached_has_bits & 0x00000001u) { @@ -20706,43 +21659,39 @@ size_t HSMCurrency::ByteSizeLong() const { // optional int64 amount1000 = 2; if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_amount1000()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_amount1000()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HSMCurrency::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, HSMCurrency::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HSMCurrency::GetClassData() const { return &_class_data_; } -void HSMCurrency::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<HSMCurrency *>(to)->MergeFrom( - static_cast<const HSMCurrency &>(from)); -} - -void HSMCurrency::MergeFrom(const HSMCurrency& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMCurrency) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void HSMCurrency::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<HSMCurrency*>(&to_msg); + auto& from = static_cast<const HSMCurrency&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMCurrency) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _internal_set_currencycode(from._internal_currencycode()); + _this->_internal_set_currencycode(from._internal_currencycode()); } if (cached_has_bits & 0x00000002u) { - amount1000_ = from.amount1000_; + _this->_impl_.amount1000_ = from._impl_.amount1000_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HSMCurrency::CopyFrom(const HSMCurrency& from) { @@ -20761,17 +21710,16 @@ void HSMCurrency::InternalSwap(HSMCurrency* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ¤cycode_, lhs_arena, - &other->currencycode_, rhs_arena + &_impl_.currencycode_, lhs_arena, + &other->_impl_.currencycode_, rhs_arena ); - swap(amount1000_, other->amount1000_); + swap(_impl_.amount1000_, other->_impl_.amount1000_); } ::PROTOBUF_NAMESPACE_ID::Metadata HSMCurrency::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[39]); } @@ -20780,7 +21728,7 @@ void HSMCurrency::InternalSwap(HSMCurrency* other) { class HSMDateTimeComponent::_Internal { public: - using HasBits = decltype(std::declval<HSMDateTimeComponent>()._has_bits_); + using HasBits = decltype(std::declval<HSMDateTimeComponent>()._impl_._has_bits_); static void set_has_dayofweek(HasBits* has_bits) { (*has_bits)[0] |= 32u; } @@ -20807,81 +21755,93 @@ class HSMDateTimeComponent::_Internal { HSMDateTimeComponent::HSMDateTimeComponent(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.HSMDateTimeComponent) } HSMDateTimeComponent::HSMDateTimeComponent(const HSMDateTimeComponent& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + HSMDateTimeComponent* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.year_){} + , decltype(_impl_.month_){} + , decltype(_impl_.dayofmonth_){} + , decltype(_impl_.hour_){} + , decltype(_impl_.minute_){} + , decltype(_impl_.dayofweek_){} + , decltype(_impl_.calendar_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&year_, &from.year_, - static_cast<size_t>(reinterpret_cast<char*>(&calendar_) - - reinterpret_cast<char*>(&year_)) + sizeof(calendar_)); + ::memcpy(&_impl_.year_, &from._impl_.year_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.calendar_) - + reinterpret_cast<char*>(&_impl_.year_)) + sizeof(_impl_.calendar_)); // @@protoc_insertion_point(copy_constructor:proto.HSMDateTimeComponent) } -void HSMDateTimeComponent::SharedCtor() { -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&year_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&minute_) - - reinterpret_cast<char*>(&year_)) + sizeof(minute_)); -dayofweek_ = 1; -calendar_ = 1; +inline void HSMDateTimeComponent::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.year_){0u} + , decltype(_impl_.month_){0u} + , decltype(_impl_.dayofmonth_){0u} + , decltype(_impl_.hour_){0u} + , decltype(_impl_.minute_){0u} + , decltype(_impl_.dayofweek_){1} + , decltype(_impl_.calendar_){1} + }; } HSMDateTimeComponent::~HSMDateTimeComponent() { // @@protoc_insertion_point(destructor:proto.HSMDateTimeComponent) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void HSMDateTimeComponent::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -void HSMDateTimeComponent::ArenaDtor(void* object) { - HSMDateTimeComponent* _this = reinterpret_cast< HSMDateTimeComponent* >(object); - (void)_this; -} -void HSMDateTimeComponent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void HSMDateTimeComponent::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void HSMDateTimeComponent::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HSMDateTimeComponent) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000007fu) { - ::memset(&year_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&minute_) - - reinterpret_cast<char*>(&year_)) + sizeof(minute_)); - dayofweek_ = 1; - calendar_ = 1; + ::memset(&_impl_.year_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.minute_) - + reinterpret_cast<char*>(&_impl_.year_)) + sizeof(_impl_.minute_)); + _impl_.dayofweek_ = 1; + _impl_.calendar_ = 1; } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HSMDateTimeComponent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* HSMDateTimeComponent::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional .proto.HSMDateTimeComponent.HSMDateTimeComponentDayOfWeekType dayOfWeek = 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); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_IsValid(val))) { _internal_set_dayofweek(static_cast<::proto::HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType>(val)); @@ -20893,53 +21853,53 @@ const char* HSMDateTimeComponent::_InternalParse(const char* ptr, ::PROTOBUF_NAM continue; // optional uint32 year = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { _Internal::set_has_year(&has_bits); - year_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.year_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 month = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { _Internal::set_has_month(&has_bits); - month_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.month_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 dayOfMonth = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { _Internal::set_has_dayofmonth(&has_bits); - dayofmonth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.dayofmonth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 hour = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) { _Internal::set_has_hour(&has_bits); - hour_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.hour_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 minute = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) { _Internal::set_has_minute(&has_bits); - minute_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.minute_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.HSMDateTimeComponent.HSMDateTimeComponentCalendarType calendar = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::HSMDateTimeComponent_HSMDateTimeComponentCalendarType_IsValid(val))) { _internal_set_calendar(static_cast<::proto::HSMDateTimeComponent_HSMDateTimeComponentCalendarType>(val)); @@ -20965,7 +21925,7 @@ const char* HSMDateTimeComponent::_InternalParse(const char* ptr, ::PROTOBUF_NAM CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -20973,59 +21933,59 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* HSMDateTimeComponent::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* HSMDateTimeComponent::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.HSMDateTimeComponent) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.HSMDateTimeComponent.HSMDateTimeComponentDayOfWeekType dayOfWeek = 1; if (cached_has_bits & 0x00000020u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 1, this->_internal_dayofweek(), target); } // optional uint32 year = 2; if (cached_has_bits & 0x00000001u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_year(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_year(), target); } // optional uint32 month = 3; if (cached_has_bits & 0x00000002u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_month(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_month(), target); } // optional uint32 dayOfMonth = 4; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_dayofmonth(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_dayofmonth(), target); } // optional uint32 hour = 5; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_hour(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_hour(), target); } // optional uint32 minute = 6; if (cached_has_bits & 0x00000010u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_minute(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_minute(), target); } // optional .proto.HSMDateTimeComponent.HSMDateTimeComponentCalendarType calendar = 7; if (cached_has_bits & 0x00000040u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 7, this->_internal_calendar(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HSMDateTimeComponent) @@ -21036,98 +21996,94 @@ size_t HSMDateTimeComponent::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.HSMDateTimeComponent) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000007fu) { // optional uint32 year = 2; if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_year()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_year()); } // optional uint32 month = 3; if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_month()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_month()); } // optional uint32 dayOfMonth = 4; if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_dayofmonth()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_dayofmonth()); } // optional uint32 hour = 5; if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_hour()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_hour()); } // optional uint32 minute = 6; if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_minute()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_minute()); } // optional .proto.HSMDateTimeComponent.HSMDateTimeComponentDayOfWeekType dayOfWeek = 1; if (cached_has_bits & 0x00000020u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_dayofweek()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_dayofweek()); } // optional .proto.HSMDateTimeComponent.HSMDateTimeComponentCalendarType calendar = 7; if (cached_has_bits & 0x00000040u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_calendar()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_calendar()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HSMDateTimeComponent::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, HSMDateTimeComponent::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HSMDateTimeComponent::GetClassData() const { return &_class_data_; } -void HSMDateTimeComponent::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<HSMDateTimeComponent *>(to)->MergeFrom( - static_cast<const HSMDateTimeComponent &>(from)); -} - -void HSMDateTimeComponent::MergeFrom(const HSMDateTimeComponent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMDateTimeComponent) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void HSMDateTimeComponent::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<HSMDateTimeComponent*>(&to_msg); + auto& from = static_cast<const HSMDateTimeComponent&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMDateTimeComponent) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000007fu) { if (cached_has_bits & 0x00000001u) { - year_ = from.year_; + _this->_impl_.year_ = from._impl_.year_; } if (cached_has_bits & 0x00000002u) { - month_ = from.month_; + _this->_impl_.month_ = from._impl_.month_; } if (cached_has_bits & 0x00000004u) { - dayofmonth_ = from.dayofmonth_; + _this->_impl_.dayofmonth_ = from._impl_.dayofmonth_; } if (cached_has_bits & 0x00000008u) { - hour_ = from.hour_; + _this->_impl_.hour_ = from._impl_.hour_; } if (cached_has_bits & 0x00000010u) { - minute_ = from.minute_; + _this->_impl_.minute_ = from._impl_.minute_; } if (cached_has_bits & 0x00000020u) { - dayofweek_ = from.dayofweek_; + _this->_impl_.dayofweek_ = from._impl_.dayofweek_; } if (cached_has_bits & 0x00000040u) { - calendar_ = from.calendar_; + _this->_impl_.calendar_ = from._impl_.calendar_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HSMDateTimeComponent::CopyFrom(const HSMDateTimeComponent& from) { @@ -21144,19 +22100,19 @@ bool HSMDateTimeComponent::IsInitialized() const { void HSMDateTimeComponent::InternalSwap(HSMDateTimeComponent* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(HSMDateTimeComponent, minute_) - + sizeof(HSMDateTimeComponent::minute_) - - PROTOBUF_FIELD_OFFSET(HSMDateTimeComponent, year_)>( - reinterpret_cast<char*>(&year_), - reinterpret_cast<char*>(&other->year_)); - swap(dayofweek_, other->dayofweek_); - swap(calendar_, other->calendar_); + PROTOBUF_FIELD_OFFSET(HSMDateTimeComponent, _impl_.minute_) + + sizeof(HSMDateTimeComponent::_impl_.minute_) + - PROTOBUF_FIELD_OFFSET(HSMDateTimeComponent, _impl_.year_)>( + reinterpret_cast<char*>(&_impl_.year_), + reinterpret_cast<char*>(&other->_impl_.year_)); + swap(_impl_.dayofweek_, other->_impl_.dayofweek_); + swap(_impl_.calendar_, other->_impl_.calendar_); } ::PROTOBUF_NAMESPACE_ID::Metadata HSMDateTimeComponent::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[40]); } @@ -21165,7 +22121,7 @@ void HSMDateTimeComponent::InternalSwap(HSMDateTimeComponent* other) { class HSMDateTimeUnixEpoch::_Internal { public: - using HasBits = decltype(std::declval<HSMDateTimeUnixEpoch>()._has_bits_); + using HasBits = decltype(std::declval<HSMDateTimeUnixEpoch>()._impl_._has_bits_); static void set_has_timestamp(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -21174,68 +22130,73 @@ class HSMDateTimeUnixEpoch::_Internal { HSMDateTimeUnixEpoch::HSMDateTimeUnixEpoch(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.HSMDateTimeUnixEpoch) } HSMDateTimeUnixEpoch::HSMDateTimeUnixEpoch(const HSMDateTimeUnixEpoch& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + HSMDateTimeUnixEpoch* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.timestamp_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - timestamp_ = from.timestamp_; + _this->_impl_.timestamp_ = from._impl_.timestamp_; // @@protoc_insertion_point(copy_constructor:proto.HSMDateTimeUnixEpoch) } -void HSMDateTimeUnixEpoch::SharedCtor() { -timestamp_ = int64_t{0}; +inline void HSMDateTimeUnixEpoch::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.timestamp_){int64_t{0}} + }; } HSMDateTimeUnixEpoch::~HSMDateTimeUnixEpoch() { // @@protoc_insertion_point(destructor:proto.HSMDateTimeUnixEpoch) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void HSMDateTimeUnixEpoch::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -void HSMDateTimeUnixEpoch::ArenaDtor(void* object) { - HSMDateTimeUnixEpoch* _this = reinterpret_cast< HSMDateTimeUnixEpoch* >(object); - (void)_this; -} -void HSMDateTimeUnixEpoch::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void HSMDateTimeUnixEpoch::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void HSMDateTimeUnixEpoch::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HSMDateTimeUnixEpoch) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - timestamp_ = int64_t{0}; - _has_bits_.Clear(); + _impl_.timestamp_ = int64_t{0}; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HSMDateTimeUnixEpoch::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* HSMDateTimeUnixEpoch::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional int64 timestamp = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { _Internal::set_has_timestamp(&has_bits); - timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -21256,7 +22217,7 @@ const char* HSMDateTimeUnixEpoch::_InternalParse(const char* ptr, ::PROTOBUF_NAM CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -21264,21 +22225,21 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* HSMDateTimeUnixEpoch::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* HSMDateTimeUnixEpoch::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.HSMDateTimeUnixEpoch) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional int64 timestamp = 1; if (cached_has_bits & 0x00000001u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_timestamp(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_timestamp(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HSMDateTimeUnixEpoch) @@ -21289,42 +22250,38 @@ size_t HSMDateTimeUnixEpoch::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.HSMDateTimeUnixEpoch) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional int64 timestamp = 1; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_timestamp()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_timestamp()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HSMDateTimeUnixEpoch::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, HSMDateTimeUnixEpoch::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HSMDateTimeUnixEpoch::GetClassData() const { return &_class_data_; } -void HSMDateTimeUnixEpoch::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<HSMDateTimeUnixEpoch *>(to)->MergeFrom( - static_cast<const HSMDateTimeUnixEpoch &>(from)); -} - -void HSMDateTimeUnixEpoch::MergeFrom(const HSMDateTimeUnixEpoch& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMDateTimeUnixEpoch) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void HSMDateTimeUnixEpoch::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<HSMDateTimeUnixEpoch*>(&to_msg); + auto& from = static_cast<const HSMDateTimeUnixEpoch&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMDateTimeUnixEpoch) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_timestamp()) { - _internal_set_timestamp(from._internal_timestamp()); + _this->_internal_set_timestamp(from._internal_timestamp()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HSMDateTimeUnixEpoch::CopyFrom(const HSMDateTimeUnixEpoch& from) { @@ -21341,12 +22298,12 @@ bool HSMDateTimeUnixEpoch::IsInitialized() const { void HSMDateTimeUnixEpoch::InternalSwap(HSMDateTimeUnixEpoch* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(timestamp_, other->timestamp_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.timestamp_, other->_impl_.timestamp_); } ::PROTOBUF_NAMESPACE_ID::Metadata HSMDateTimeUnixEpoch::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[41]); } @@ -21361,24 +22318,24 @@ class HSMDateTime::_Internal { const ::proto::HSMDateTimeComponent& HSMDateTime::_Internal::component(const HSMDateTime* msg) { - return *msg->datetimeOneof_.component_; + return *msg->_impl_.datetimeOneof_.component_; } const ::proto::HSMDateTimeUnixEpoch& HSMDateTime::_Internal::unixepoch(const HSMDateTime* msg) { - return *msg->datetimeOneof_.unixepoch_; + return *msg->_impl_.datetimeOneof_.unixepoch_; } void HSMDateTime::set_allocated_component(::proto::HSMDateTimeComponent* component) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_datetimeOneof(); if (component) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HSMDateTimeComponent>::GetOwningArena(component); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(component); if (message_arena != submessage_arena) { component = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, component, submessage_arena); } set_has_component(); - datetimeOneof_.component_ = component; + _impl_.datetimeOneof_.component_ = component; } // @@protoc_insertion_point(field_set_allocated:proto.HSMDateTime.component) } @@ -21387,36 +22344,41 @@ void HSMDateTime::set_allocated_unixepoch(::proto::HSMDateTimeUnixEpoch* unixepo clear_datetimeOneof(); if (unixepoch) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HSMDateTimeUnixEpoch>::GetOwningArena(unixepoch); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(unixepoch); if (message_arena != submessage_arena) { unixepoch = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, unixepoch, submessage_arena); } set_has_unixepoch(); - datetimeOneof_.unixepoch_ = unixepoch; + _impl_.datetimeOneof_.unixepoch_ = unixepoch; } // @@protoc_insertion_point(field_set_allocated:proto.HSMDateTime.unixEpoch) } HSMDateTime::HSMDateTime(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.HSMDateTime) } HSMDateTime::HSMDateTime(const HSMDateTime& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + HSMDateTime* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.datetimeOneof_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); clear_has_datetimeOneof(); switch (from.datetimeOneof_case()) { case kComponent: { - _internal_mutable_component()->::proto::HSMDateTimeComponent::MergeFrom(from._internal_component()); + _this->_internal_mutable_component()->::proto::HSMDateTimeComponent::MergeFrom( + from._internal_component()); break; } case kUnixEpoch: { - _internal_mutable_unixepoch()->::proto::HSMDateTimeUnixEpoch::MergeFrom(from._internal_unixepoch()); + _this->_internal_mutable_unixepoch()->::proto::HSMDateTimeUnixEpoch::MergeFrom( + from._internal_unixepoch()); break; } case DATETIMEONEOF_NOT_SET: { @@ -21426,15 +22388,25 @@ HSMDateTime::HSMDateTime(const HSMDateTime& from) // @@protoc_insertion_point(copy_constructor:proto.HSMDateTime) } -void HSMDateTime::SharedCtor() { -clear_has_datetimeOneof(); +inline void HSMDateTime::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.datetimeOneof_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_datetimeOneof(); } HSMDateTime::~HSMDateTime() { // @@protoc_insertion_point(destructor:proto.HSMDateTime) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void HSMDateTime::SharedDtor() { @@ -21444,14 +22416,8 @@ inline void HSMDateTime::SharedDtor() { } } -void HSMDateTime::ArenaDtor(void* object) { - HSMDateTime* _this = reinterpret_cast< HSMDateTime* >(object); - (void)_this; -} -void HSMDateTime::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void HSMDateTime::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void HSMDateTime::clear_datetimeOneof() { @@ -21459,13 +22425,13 @@ void HSMDateTime::clear_datetimeOneof() { switch (datetimeOneof_case()) { case kComponent: { if (GetArenaForAllocation() == nullptr) { - delete datetimeOneof_.component_; + delete _impl_.datetimeOneof_.component_; } break; } case kUnixEpoch: { if (GetArenaForAllocation() == nullptr) { - delete datetimeOneof_.unixepoch_; + delete _impl_.datetimeOneof_.unixepoch_; } break; } @@ -21473,13 +22439,13 @@ void HSMDateTime::clear_datetimeOneof() { break; } } - _oneof_case_[0] = DATETIMEONEOF_NOT_SET; + _impl_._oneof_case_[0] = DATETIMEONEOF_NOT_SET; } void HSMDateTime::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HSMDateTime) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -21487,15 +22453,15 @@ void HSMDateTime::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HSMDateTime::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* HSMDateTime::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .proto.HSMDateTimeComponent component = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_component(), ptr); CHK_(ptr); } else @@ -21503,7 +22469,7 @@ const char* HSMDateTime::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // .proto.HSMDateTimeUnixEpoch unixEpoch = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_unixepoch(), ptr); CHK_(ptr); } else @@ -21532,31 +22498,29 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* HSMDateTime::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* HSMDateTime::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.HSMDateTime) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (datetimeOneof_case()) { case kComponent: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::component(this), target, stream); + InternalWriteMessage(1, _Internal::component(this), + _Internal::component(this).GetCachedSize(), target, stream); break; } case kUnixEpoch: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::unixepoch(this), target, stream); + InternalWriteMessage(2, _Internal::unixepoch(this), + _Internal::unixepoch(this).GetCachedSize(), target, stream); break; } default: ; } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HSMDateTime) @@ -21567,7 +22531,7 @@ size_t HSMDateTime::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.HSMDateTime) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -21576,56 +22540,54 @@ size_t HSMDateTime::ByteSizeLong() const { case kComponent: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *datetimeOneof_.component_); + *_impl_.datetimeOneof_.component_); break; } // .proto.HSMDateTimeUnixEpoch unixEpoch = 2; case kUnixEpoch: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *datetimeOneof_.unixepoch_); + *_impl_.datetimeOneof_.unixepoch_); break; } case DATETIMEONEOF_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HSMDateTime::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, HSMDateTime::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HSMDateTime::GetClassData() const { return &_class_data_; } -void HSMDateTime::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<HSMDateTime *>(to)->MergeFrom( - static_cast<const HSMDateTime &>(from)); -} - -void HSMDateTime::MergeFrom(const HSMDateTime& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMDateTime) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void HSMDateTime::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<HSMDateTime*>(&to_msg); + auto& from = static_cast<const HSMDateTime&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMDateTime) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (from.datetimeOneof_case()) { case kComponent: { - _internal_mutable_component()->::proto::HSMDateTimeComponent::MergeFrom(from._internal_component()); + _this->_internal_mutable_component()->::proto::HSMDateTimeComponent::MergeFrom( + from._internal_component()); break; } case kUnixEpoch: { - _internal_mutable_unixepoch()->::proto::HSMDateTimeUnixEpoch::MergeFrom(from._internal_unixepoch()); + _this->_internal_mutable_unixepoch()->::proto::HSMDateTimeUnixEpoch::MergeFrom( + from._internal_unixepoch()); break; } case DATETIMEONEOF_NOT_SET: { break; } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HSMDateTime::CopyFrom(const HSMDateTime& from) { @@ -21642,12 +22604,12 @@ bool HSMDateTime::IsInitialized() const { void HSMDateTime::InternalSwap(HSMDateTime* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(datetimeOneof_, other->datetimeOneof_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(_impl_.datetimeOneof_, other->_impl_.datetimeOneof_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata HSMDateTime::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[42]); } @@ -21656,7 +22618,7 @@ void HSMDateTime::InternalSwap(HSMDateTime* other) { class HSMLocalizableParameter::_Internal { public: - using HasBits = decltype(std::declval<HSMLocalizableParameter>()._has_bits_); + using HasBits = decltype(std::declval<HSMLocalizableParameter>()._impl_._has_bits_); static void set_has_default_(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -21666,24 +22628,24 @@ class HSMLocalizableParameter::_Internal { const ::proto::HSMCurrency& HSMLocalizableParameter::_Internal::currency(const HSMLocalizableParameter* msg) { - return *msg->paramOneof_.currency_; + return *msg->_impl_.paramOneof_.currency_; } const ::proto::HSMDateTime& HSMLocalizableParameter::_Internal::datetime(const HSMLocalizableParameter* msg) { - return *msg->paramOneof_.datetime_; + return *msg->_impl_.paramOneof_.datetime_; } void HSMLocalizableParameter::set_allocated_currency(::proto::HSMCurrency* currency) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_paramOneof(); if (currency) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HSMCurrency>::GetOwningArena(currency); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(currency); if (message_arena != submessage_arena) { currency = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, currency, submessage_arena); } set_has_currency(); - paramOneof_.currency_ = currency; + _impl_.paramOneof_.currency_ = currency; } // @@protoc_insertion_point(field_set_allocated:proto.HSMLocalizableParameter.currency) } @@ -21692,42 +22654,51 @@ void HSMLocalizableParameter::set_allocated_datetime(::proto::HSMDateTime* datet clear_paramOneof(); if (datetime) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HSMDateTime>::GetOwningArena(datetime); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(datetime); if (message_arena != submessage_arena) { datetime = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, datetime, submessage_arena); } set_has_datetime(); - paramOneof_.datetime_ = datetime; + _impl_.paramOneof_.datetime_ = datetime; } // @@protoc_insertion_point(field_set_allocated:proto.HSMLocalizableParameter.dateTime) } HSMLocalizableParameter::HSMLocalizableParameter(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.HSMLocalizableParameter) } HSMLocalizableParameter::HSMLocalizableParameter(const HSMLocalizableParameter& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + HSMLocalizableParameter* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.default__){} + , decltype(_impl_.paramOneof_){} + , /*decltype(_impl_._oneof_case_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - default__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.default__.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.default__.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_default_()) { - default__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_default_(), - GetArenaForAllocation()); + _this->_impl_.default__.Set(from._internal_default_(), + _this->GetArenaForAllocation()); } clear_has_paramOneof(); switch (from.paramOneof_case()) { case kCurrency: { - _internal_mutable_currency()->::proto::HSMCurrency::MergeFrom(from._internal_currency()); + _this->_internal_mutable_currency()->::proto::HSMCurrency::MergeFrom( + from._internal_currency()); break; } case kDateTime: { - _internal_mutable_datetime()->::proto::HSMDateTime::MergeFrom(from._internal_datetime()); + _this->_internal_mutable_datetime()->::proto::HSMDateTime::MergeFrom( + from._internal_datetime()); break; } case PARAMONEOF_NOT_SET: { @@ -21737,34 +22708,43 @@ HSMLocalizableParameter::HSMLocalizableParameter(const HSMLocalizableParameter& // @@protoc_insertion_point(copy_constructor:proto.HSMLocalizableParameter) } -void HSMLocalizableParameter::SharedCtor() { -default__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -clear_has_paramOneof(); +inline void HSMLocalizableParameter::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.default__){} + , decltype(_impl_.paramOneof_){} + , /*decltype(_impl_._oneof_case_)*/{} + }; + _impl_.default__.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.default__.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + clear_has_paramOneof(); } HSMLocalizableParameter::~HSMLocalizableParameter() { // @@protoc_insertion_point(destructor:proto.HSMLocalizableParameter) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void HSMLocalizableParameter::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - default__.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.default__.Destroy(); if (has_paramOneof()) { clear_paramOneof(); } } -void HSMLocalizableParameter::ArenaDtor(void* object) { - HSMLocalizableParameter* _this = reinterpret_cast< HSMLocalizableParameter* >(object); - (void)_this; -} -void HSMLocalizableParameter::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void HSMLocalizableParameter::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void HSMLocalizableParameter::clear_paramOneof() { @@ -21772,13 +22752,13 @@ void HSMLocalizableParameter::clear_paramOneof() { switch (paramOneof_case()) { case kCurrency: { if (GetArenaForAllocation() == nullptr) { - delete paramOneof_.currency_; + delete _impl_.paramOneof_.currency_; } break; } case kDateTime: { if (GetArenaForAllocation() == nullptr) { - delete paramOneof_.datetime_; + delete _impl_.paramOneof_.datetime_; } break; } @@ -21786,47 +22766,47 @@ void HSMLocalizableParameter::clear_paramOneof() { break; } } - _oneof_case_[0] = PARAMONEOF_NOT_SET; + _impl_._oneof_case_[0] = PARAMONEOF_NOT_SET; } void HSMLocalizableParameter::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HSMLocalizableParameter) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - default__.ClearNonDefaultToEmpty(); + _impl_.default__.ClearNonDefaultToEmpty(); } clear_paramOneof(); - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HSMLocalizableParameter::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* HSMLocalizableParameter::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string default = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_default_(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HSMLocalizableParameter.default"); + ::_pbi::VerifyUTF8(str, "proto.HSMLocalizableParameter.default"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // .proto.HSMCurrency currency = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_currency(), ptr); CHK_(ptr); } else @@ -21834,7 +22814,7 @@ const char* HSMLocalizableParameter::_InternalParse(const char* ptr, ::PROTOBUF_ continue; // .proto.HSMDateTime dateTime = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_datetime(), ptr); CHK_(ptr); } else @@ -21856,7 +22836,7 @@ const char* HSMLocalizableParameter::_InternalParse(const char* ptr, ::PROTOBUF_ CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -21864,13 +22844,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* HSMLocalizableParameter::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* HSMLocalizableParameter::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.HSMLocalizableParameter) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string default = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -21883,23 +22863,21 @@ failure: switch (paramOneof_case()) { case kCurrency: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::currency(this), target, stream); + InternalWriteMessage(2, _Internal::currency(this), + _Internal::currency(this).GetCachedSize(), target, stream); break; } case kDateTime: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::datetime(this), target, stream); + InternalWriteMessage(3, _Internal::datetime(this), + _Internal::datetime(this).GetCachedSize(), target, stream); break; } default: ; } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HSMLocalizableParameter) @@ -21910,12 +22888,12 @@ size_t HSMLocalizableParameter::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.HSMLocalizableParameter) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional string default = 1; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( @@ -21927,59 +22905,57 @@ size_t HSMLocalizableParameter::ByteSizeLong() const { case kCurrency: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *paramOneof_.currency_); + *_impl_.paramOneof_.currency_); break; } // .proto.HSMDateTime dateTime = 3; case kDateTime: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *paramOneof_.datetime_); + *_impl_.paramOneof_.datetime_); break; } case PARAMONEOF_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HSMLocalizableParameter::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, HSMLocalizableParameter::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HSMLocalizableParameter::GetClassData() const { return &_class_data_; } -void HSMLocalizableParameter::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<HSMLocalizableParameter *>(to)->MergeFrom( - static_cast<const HSMLocalizableParameter &>(from)); -} - -void HSMLocalizableParameter::MergeFrom(const HSMLocalizableParameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMLocalizableParameter) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void HSMLocalizableParameter::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<HSMLocalizableParameter*>(&to_msg); + auto& from = static_cast<const HSMLocalizableParameter&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMLocalizableParameter) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_default_()) { - _internal_set_default_(from._internal_default_()); + _this->_internal_set_default_(from._internal_default_()); } switch (from.paramOneof_case()) { case kCurrency: { - _internal_mutable_currency()->::proto::HSMCurrency::MergeFrom(from._internal_currency()); + _this->_internal_mutable_currency()->::proto::HSMCurrency::MergeFrom( + from._internal_currency()); break; } case kDateTime: { - _internal_mutable_datetime()->::proto::HSMDateTime::MergeFrom(from._internal_datetime()); + _this->_internal_mutable_datetime()->::proto::HSMDateTime::MergeFrom( + from._internal_datetime()); break; } case PARAMONEOF_NOT_SET: { break; } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HSMLocalizableParameter::CopyFrom(const HSMLocalizableParameter& from) { @@ -21998,18 +22974,17 @@ void HSMLocalizableParameter::InternalSwap(HSMLocalizableParameter* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &default__, lhs_arena, - &other->default__, rhs_arena + &_impl_.default__, lhs_arena, + &other->_impl_.default__, rhs_arena ); - swap(paramOneof_, other->paramOneof_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(_impl_.paramOneof_, other->_impl_.paramOneof_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata HSMLocalizableParameter::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[43]); } @@ -22018,7 +22993,7 @@ void HSMLocalizableParameter::InternalSwap(HSMLocalizableParameter* other) { class HighlyStructuredMessage::_Internal { public: - using HasBits = decltype(std::declval<HighlyStructuredMessage>()._has_bits_); + using HasBits = decltype(std::declval<HighlyStructuredMessage>()._impl_._has_bits_); static void set_has_namespace_(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -22045,181 +23020,234 @@ class HighlyStructuredMessage::_Internal { const ::proto::TemplateMessage& HighlyStructuredMessage::_Internal::hydratedhsm(const HighlyStructuredMessage* msg) { - return *msg->hydratedhsm_; + return *msg->_impl_.hydratedhsm_; } HighlyStructuredMessage::HighlyStructuredMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - params_(arena), - localizableparams_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.HighlyStructuredMessage) } HighlyStructuredMessage::HighlyStructuredMessage(const HighlyStructuredMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - params_(from.params_), - localizableparams_(from.localizableparams_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + HighlyStructuredMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.params_){from._impl_.params_} + , decltype(_impl_.localizableparams_){from._impl_.localizableparams_} + , decltype(_impl_.namespace__){} + , decltype(_impl_.elementname_){} + , decltype(_impl_.fallbacklg_){} + , decltype(_impl_.fallbacklc_){} + , decltype(_impl_.deterministiclg_){} + , decltype(_impl_.deterministiclc_){} + , decltype(_impl_.hydratedhsm_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - namespace__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.namespace__.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.namespace__.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_namespace_()) { - namespace__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_namespace_(), - GetArenaForAllocation()); + _this->_impl_.namespace__.Set(from._internal_namespace_(), + _this->GetArenaForAllocation()); } - elementname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.elementname_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.elementname_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_elementname()) { - elementname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_elementname(), - GetArenaForAllocation()); + _this->_impl_.elementname_.Set(from._internal_elementname(), + _this->GetArenaForAllocation()); } - fallbacklg_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.fallbacklg_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fallbacklg_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_fallbacklg()) { - fallbacklg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fallbacklg(), - GetArenaForAllocation()); + _this->_impl_.fallbacklg_.Set(from._internal_fallbacklg(), + _this->GetArenaForAllocation()); } - fallbacklc_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.fallbacklc_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fallbacklc_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_fallbacklc()) { - fallbacklc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fallbacklc(), - GetArenaForAllocation()); + _this->_impl_.fallbacklc_.Set(from._internal_fallbacklc(), + _this->GetArenaForAllocation()); } - deterministiclg_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.deterministiclg_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.deterministiclg_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_deterministiclg()) { - deterministiclg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_deterministiclg(), - GetArenaForAllocation()); + _this->_impl_.deterministiclg_.Set(from._internal_deterministiclg(), + _this->GetArenaForAllocation()); } - deterministiclc_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.deterministiclc_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.deterministiclc_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_deterministiclc()) { - deterministiclc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_deterministiclc(), - GetArenaForAllocation()); + _this->_impl_.deterministiclc_.Set(from._internal_deterministiclc(), + _this->GetArenaForAllocation()); } if (from._internal_has_hydratedhsm()) { - hydratedhsm_ = new ::proto::TemplateMessage(*from.hydratedhsm_); - } else { - hydratedhsm_ = nullptr; + _this->_impl_.hydratedhsm_ = new ::proto::TemplateMessage(*from._impl_.hydratedhsm_); } // @@protoc_insertion_point(copy_constructor:proto.HighlyStructuredMessage) } -void HighlyStructuredMessage::SharedCtor() { -namespace__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -elementname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -fallbacklg_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -fallbacklc_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -deterministiclg_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -deterministiclc_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -hydratedhsm_ = nullptr; +inline void HighlyStructuredMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.params_){arena} + , decltype(_impl_.localizableparams_){arena} + , decltype(_impl_.namespace__){} + , decltype(_impl_.elementname_){} + , decltype(_impl_.fallbacklg_){} + , decltype(_impl_.fallbacklc_){} + , decltype(_impl_.deterministiclg_){} + , decltype(_impl_.deterministiclc_){} + , decltype(_impl_.hydratedhsm_){nullptr} + }; + _impl_.namespace__.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.namespace__.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.elementname_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.elementname_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fallbacklg_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fallbacklg_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fallbacklc_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fallbacklc_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.deterministiclg_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.deterministiclg_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.deterministiclc_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.deterministiclc_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } HighlyStructuredMessage::~HighlyStructuredMessage() { // @@protoc_insertion_point(destructor:proto.HighlyStructuredMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void HighlyStructuredMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - namespace__.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - elementname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - fallbacklg_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - fallbacklc_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - deterministiclg_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - deterministiclc_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete hydratedhsm_; + _impl_.params_.~RepeatedPtrField(); + _impl_.localizableparams_.~RepeatedPtrField(); + _impl_.namespace__.Destroy(); + _impl_.elementname_.Destroy(); + _impl_.fallbacklg_.Destroy(); + _impl_.fallbacklc_.Destroy(); + _impl_.deterministiclg_.Destroy(); + _impl_.deterministiclc_.Destroy(); + if (this != internal_default_instance()) delete _impl_.hydratedhsm_; } -void HighlyStructuredMessage::ArenaDtor(void* object) { - HighlyStructuredMessage* _this = reinterpret_cast< HighlyStructuredMessage* >(object); - (void)_this; -} -void HighlyStructuredMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void HighlyStructuredMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void HighlyStructuredMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HighlyStructuredMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - params_.Clear(); - localizableparams_.Clear(); - cached_has_bits = _has_bits_[0]; + _impl_.params_.Clear(); + _impl_.localizableparams_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000007fu) { if (cached_has_bits & 0x00000001u) { - namespace__.ClearNonDefaultToEmpty(); + _impl_.namespace__.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - elementname_.ClearNonDefaultToEmpty(); + _impl_.elementname_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - fallbacklg_.ClearNonDefaultToEmpty(); + _impl_.fallbacklg_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - fallbacklc_.ClearNonDefaultToEmpty(); + _impl_.fallbacklc_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { - deterministiclg_.ClearNonDefaultToEmpty(); + _impl_.deterministiclg_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { - deterministiclc_.ClearNonDefaultToEmpty(); + _impl_.deterministiclc_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { - GOOGLE_DCHECK(hydratedhsm_ != nullptr); - hydratedhsm_->Clear(); + GOOGLE_DCHECK(_impl_.hydratedhsm_ != nullptr); + _impl_.hydratedhsm_->Clear(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HighlyStructuredMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* HighlyStructuredMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string namespace = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_namespace_(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HighlyStructuredMessage.namespace"); + ::_pbi::VerifyUTF8(str, "proto.HighlyStructuredMessage.namespace"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string elementName = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_elementname(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HighlyStructuredMessage.elementName"); + ::_pbi::VerifyUTF8(str, "proto.HighlyStructuredMessage.elementName"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // repeated string params = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { ptr -= 1; do { ptr += 1; auto str = _internal_add_params(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HighlyStructuredMessage.params"); + ::_pbi::VerifyUTF8(str, "proto.HighlyStructuredMessage.params"); #endif // !NDEBUG - CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); } else @@ -22227,31 +23255,31 @@ const char* HighlyStructuredMessage::_InternalParse(const char* ptr, ::PROTOBUF_ continue; // optional string fallbackLg = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { auto str = _internal_mutable_fallbacklg(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HighlyStructuredMessage.fallbackLg"); + ::_pbi::VerifyUTF8(str, "proto.HighlyStructuredMessage.fallbackLg"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string fallbackLc = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { auto str = _internal_mutable_fallbacklc(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HighlyStructuredMessage.fallbackLc"); + ::_pbi::VerifyUTF8(str, "proto.HighlyStructuredMessage.fallbackLc"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // repeated .proto.HSMLocalizableParameter localizableParams = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { ptr -= 1; do { ptr += 1; @@ -22264,31 +23292,31 @@ const char* HighlyStructuredMessage::_InternalParse(const char* ptr, ::PROTOBUF_ continue; // optional string deterministicLg = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { auto str = _internal_mutable_deterministiclg(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HighlyStructuredMessage.deterministicLg"); + ::_pbi::VerifyUTF8(str, "proto.HighlyStructuredMessage.deterministicLg"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string deterministicLc = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { auto str = _internal_mutable_deterministiclc(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HighlyStructuredMessage.deterministicLc"); + ::_pbi::VerifyUTF8(str, "proto.HighlyStructuredMessage.deterministicLc"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.TemplateMessage hydratedHsm = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) { ptr = ctx->ParseMessage(_internal_mutable_hydratedhsm(), ptr); CHK_(ptr); } else @@ -22310,7 +23338,7 @@ const char* HighlyStructuredMessage::_InternalParse(const char* ptr, ::PROTOBUF_ CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -22318,13 +23346,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* HighlyStructuredMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* HighlyStructuredMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.HighlyStructuredMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string namespace = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -22376,11 +23404,11 @@ failure: } // repeated .proto.HSMLocalizableParameter localizableParams = 6; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->_internal_localizableparams_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast<unsigned>(this->_internal_localizableparams_size()); i < n; i++) { + const auto& repfield = this->_internal_localizableparams(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, this->_internal_localizableparams(i), target, stream); + InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); } // optional string deterministicLg = 7; @@ -22405,14 +23433,13 @@ failure: // optional .proto.TemplateMessage hydratedHsm = 9; if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 9, _Internal::hydratedhsm(this), target, stream); + InternalWriteMessage(9, _Internal::hydratedhsm(this), + _Internal::hydratedhsm(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HighlyStructuredMessage) @@ -22423,26 +23450,26 @@ size_t HighlyStructuredMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.HighlyStructuredMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string params = 3; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(params_.size()); - for (int i = 0, n = params_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.params_.size()); + for (int i = 0, n = _impl_.params_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - params_.Get(i)); + _impl_.params_.Get(i)); } // repeated .proto.HSMLocalizableParameter localizableParams = 6; total_size += 1UL * this->_internal_localizableparams_size(); - for (const auto& msg : this->localizableparams_) { + for (const auto& msg : this->_impl_.localizableparams_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000007fu) { // optional string namespace = 1; if (cached_has_bits & 0x00000001u) { @@ -22490,59 +23517,56 @@ size_t HighlyStructuredMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *hydratedhsm_); + *_impl_.hydratedhsm_); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HighlyStructuredMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, HighlyStructuredMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HighlyStructuredMessage::GetClassData() const { return &_class_data_; } -void HighlyStructuredMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<HighlyStructuredMessage *>(to)->MergeFrom( - static_cast<const HighlyStructuredMessage &>(from)); -} - -void HighlyStructuredMessage::MergeFrom(const HighlyStructuredMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.HighlyStructuredMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void HighlyStructuredMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<HighlyStructuredMessage*>(&to_msg); + auto& from = static_cast<const HighlyStructuredMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.HighlyStructuredMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - params_.MergeFrom(from.params_); - localizableparams_.MergeFrom(from.localizableparams_); - cached_has_bits = from._has_bits_[0]; + _this->_impl_.params_.MergeFrom(from._impl_.params_); + _this->_impl_.localizableparams_.MergeFrom(from._impl_.localizableparams_); + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000007fu) { if (cached_has_bits & 0x00000001u) { - _internal_set_namespace_(from._internal_namespace_()); + _this->_internal_set_namespace_(from._internal_namespace_()); } if (cached_has_bits & 0x00000002u) { - _internal_set_elementname(from._internal_elementname()); + _this->_internal_set_elementname(from._internal_elementname()); } if (cached_has_bits & 0x00000004u) { - _internal_set_fallbacklg(from._internal_fallbacklg()); + _this->_internal_set_fallbacklg(from._internal_fallbacklg()); } if (cached_has_bits & 0x00000008u) { - _internal_set_fallbacklc(from._internal_fallbacklc()); + _this->_internal_set_fallbacklc(from._internal_fallbacklc()); } if (cached_has_bits & 0x00000010u) { - _internal_set_deterministiclg(from._internal_deterministiclg()); + _this->_internal_set_deterministiclg(from._internal_deterministiclg()); } if (cached_has_bits & 0x00000020u) { - _internal_set_deterministiclc(from._internal_deterministiclc()); + _this->_internal_set_deterministiclc(from._internal_deterministiclc()); } if (cached_has_bits & 0x00000040u) { - _internal_mutable_hydratedhsm()->::proto::TemplateMessage::MergeFrom(from._internal_hydratedhsm()); + _this->_internal_mutable_hydratedhsm()->::proto::TemplateMessage::MergeFrom( + from._internal_hydratedhsm()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HighlyStructuredMessage::CopyFrom(const HighlyStructuredMessage& from) { @@ -22561,44 +23585,38 @@ void HighlyStructuredMessage::InternalSwap(HighlyStructuredMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - params_.InternalSwap(&other->params_); - localizableparams_.InternalSwap(&other->localizableparams_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.params_.InternalSwap(&other->_impl_.params_); + _impl_.localizableparams_.InternalSwap(&other->_impl_.localizableparams_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &namespace__, lhs_arena, - &other->namespace__, rhs_arena + &_impl_.namespace__, lhs_arena, + &other->_impl_.namespace__, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &elementname_, lhs_arena, - &other->elementname_, rhs_arena + &_impl_.elementname_, lhs_arena, + &other->_impl_.elementname_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &fallbacklg_, lhs_arena, - &other->fallbacklg_, rhs_arena + &_impl_.fallbacklg_, lhs_arena, + &other->_impl_.fallbacklg_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &fallbacklc_, lhs_arena, - &other->fallbacklc_, rhs_arena + &_impl_.fallbacklc_, lhs_arena, + &other->_impl_.fallbacklc_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &deterministiclg_, lhs_arena, - &other->deterministiclg_, rhs_arena + &_impl_.deterministiclg_, lhs_arena, + &other->_impl_.deterministiclg_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &deterministiclc_, lhs_arena, - &other->deterministiclc_, rhs_arena + &_impl_.deterministiclc_, lhs_arena, + &other->_impl_.deterministiclc_, rhs_arena ); - swap(hydratedhsm_, other->hydratedhsm_); + swap(_impl_.hydratedhsm_, other->_impl_.hydratedhsm_); } ::PROTOBUF_NAMESPACE_ID::Metadata HighlyStructuredMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[44]); } @@ -22607,7 +23625,7 @@ void HighlyStructuredMessage::InternalSwap(HighlyStructuredMessage* other) { class SendPaymentMessage::_Internal { public: - using HasBits = decltype(std::declval<SendPaymentMessage>()._has_bits_); + using HasBits = decltype(std::declval<SendPaymentMessage>()._impl_._has_bits_); static const ::proto::Message& notemessage(const SendPaymentMessage* msg); static void set_has_notemessage(HasBits* has_bits) { (*has_bits)[0] |= 1u; @@ -22620,99 +23638,99 @@ class SendPaymentMessage::_Internal { const ::proto::Message& SendPaymentMessage::_Internal::notemessage(const SendPaymentMessage* msg) { - return *msg->notemessage_; + return *msg->_impl_.notemessage_; } const ::proto::MessageKey& SendPaymentMessage::_Internal::requestmessagekey(const SendPaymentMessage* msg) { - return *msg->requestmessagekey_; + return *msg->_impl_.requestmessagekey_; } SendPaymentMessage::SendPaymentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.SendPaymentMessage) } SendPaymentMessage::SendPaymentMessage(const SendPaymentMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + SendPaymentMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.notemessage_){nullptr} + , decltype(_impl_.requestmessagekey_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_notemessage()) { - notemessage_ = new ::proto::Message(*from.notemessage_); - } else { - notemessage_ = nullptr; + _this->_impl_.notemessage_ = new ::proto::Message(*from._impl_.notemessage_); } if (from._internal_has_requestmessagekey()) { - requestmessagekey_ = new ::proto::MessageKey(*from.requestmessagekey_); - } else { - requestmessagekey_ = nullptr; + _this->_impl_.requestmessagekey_ = new ::proto::MessageKey(*from._impl_.requestmessagekey_); } // @@protoc_insertion_point(copy_constructor:proto.SendPaymentMessage) } -void SendPaymentMessage::SharedCtor() { -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(¬emessage_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&requestmessagekey_) - - reinterpret_cast<char*>(¬emessage_)) + sizeof(requestmessagekey_)); +inline void SendPaymentMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.notemessage_){nullptr} + , decltype(_impl_.requestmessagekey_){nullptr} + }; } SendPaymentMessage::~SendPaymentMessage() { // @@protoc_insertion_point(destructor:proto.SendPaymentMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void SendPaymentMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete notemessage_; - if (this != internal_default_instance()) delete requestmessagekey_; + if (this != internal_default_instance()) delete _impl_.notemessage_; + if (this != internal_default_instance()) delete _impl_.requestmessagekey_; } -void SendPaymentMessage::ArenaDtor(void* object) { - SendPaymentMessage* _this = reinterpret_cast< SendPaymentMessage* >(object); - (void)_this; -} -void SendPaymentMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void SendPaymentMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SendPaymentMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.SendPaymentMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(notemessage_ != nullptr); - notemessage_->Clear(); + GOOGLE_DCHECK(_impl_.notemessage_ != nullptr); + _impl_.notemessage_->Clear(); } if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(requestmessagekey_ != nullptr); - requestmessagekey_->Clear(); + GOOGLE_DCHECK(_impl_.requestmessagekey_ != nullptr); + _impl_.requestmessagekey_->Clear(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* SendPaymentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* SendPaymentMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional .proto.Message noteMessage = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_notemessage(), ptr); CHK_(ptr); } else @@ -22720,7 +23738,7 @@ const char* SendPaymentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMES continue; // optional .proto.MessageKey requestMessageKey = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_requestmessagekey(), ptr); CHK_(ptr); } else @@ -22742,7 +23760,7 @@ const char* SendPaymentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMES CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -22750,31 +23768,29 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* SendPaymentMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* SendPaymentMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.SendPaymentMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.Message noteMessage = 2; if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::notemessage(this), target, stream); + InternalWriteMessage(2, _Internal::notemessage(this), + _Internal::notemessage(this).GetCachedSize(), target, stream); } // optional .proto.MessageKey requestMessageKey = 3; if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::requestmessagekey(this), target, stream); + InternalWriteMessage(3, _Internal::requestmessagekey(this), + _Internal::requestmessagekey(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.SendPaymentMessage) @@ -22785,59 +23801,57 @@ size_t SendPaymentMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.SendPaymentMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional .proto.Message noteMessage = 2; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *notemessage_); + *_impl_.notemessage_); } // optional .proto.MessageKey requestMessageKey = 3; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *requestmessagekey_); + *_impl_.requestmessagekey_); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendPaymentMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SendPaymentMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SendPaymentMessage::GetClassData() const { return &_class_data_; } -void SendPaymentMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<SendPaymentMessage *>(to)->MergeFrom( - static_cast<const SendPaymentMessage &>(from)); -} - -void SendPaymentMessage::MergeFrom(const SendPaymentMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.SendPaymentMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void SendPaymentMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<SendPaymentMessage*>(&to_msg); + auto& from = static_cast<const SendPaymentMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.SendPaymentMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _internal_mutable_notemessage()->::proto::Message::MergeFrom(from._internal_notemessage()); + _this->_internal_mutable_notemessage()->::proto::Message::MergeFrom( + from._internal_notemessage()); } if (cached_has_bits & 0x00000002u) { - _internal_mutable_requestmessagekey()->::proto::MessageKey::MergeFrom(from._internal_requestmessagekey()); + _this->_internal_mutable_requestmessagekey()->::proto::MessageKey::MergeFrom( + from._internal_requestmessagekey()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SendPaymentMessage::CopyFrom(const SendPaymentMessage& from) { @@ -22854,17 +23868,17 @@ bool SendPaymentMessage::IsInitialized() const { void SendPaymentMessage::InternalSwap(SendPaymentMessage* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SendPaymentMessage, requestmessagekey_) - + sizeof(SendPaymentMessage::requestmessagekey_) - - PROTOBUF_FIELD_OFFSET(SendPaymentMessage, notemessage_)>( - reinterpret_cast<char*>(¬emessage_), - reinterpret_cast<char*>(&other->notemessage_)); + PROTOBUF_FIELD_OFFSET(SendPaymentMessage, _impl_.requestmessagekey_) + + sizeof(SendPaymentMessage::_impl_.requestmessagekey_) + - PROTOBUF_FIELD_OFFSET(SendPaymentMessage, _impl_.notemessage_)>( + reinterpret_cast<char*>(&_impl_.notemessage_), + reinterpret_cast<char*>(&other->_impl_.notemessage_)); } ::PROTOBUF_NAMESPACE_ID::Metadata SendPaymentMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[45]); } @@ -22873,7 +23887,7 @@ void SendPaymentMessage::InternalSwap(SendPaymentMessage* other) { class RequestPaymentMessage::_Internal { public: - using HasBits = decltype(std::declval<RequestPaymentMessage>()._has_bits_); + using HasBits = decltype(std::declval<RequestPaymentMessage>()._impl_._has_bits_); static const ::proto::Message& notemessage(const RequestPaymentMessage* msg); static void set_has_notemessage(HasBits* has_bits) { (*has_bits)[0] |= 4u; @@ -22898,160 +23912,180 @@ class RequestPaymentMessage::_Internal { const ::proto::Message& RequestPaymentMessage::_Internal::notemessage(const RequestPaymentMessage* msg) { - return *msg->notemessage_; + return *msg->_impl_.notemessage_; } const ::proto::PaymentMoney& RequestPaymentMessage::_Internal::amount(const RequestPaymentMessage* msg) { - return *msg->amount_; + return *msg->_impl_.amount_; } RequestPaymentMessage::RequestPaymentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.RequestPaymentMessage) } RequestPaymentMessage::RequestPaymentMessage(const RequestPaymentMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + RequestPaymentMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.currencycodeiso4217_){} + , decltype(_impl_.requestfrom_){} + , decltype(_impl_.notemessage_){nullptr} + , decltype(_impl_.amount_){nullptr} + , decltype(_impl_.amount1000_){} + , decltype(_impl_.expirytimestamp_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - currencycodeiso4217_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.currencycodeiso4217_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.currencycodeiso4217_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_currencycodeiso4217()) { - currencycodeiso4217_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_currencycodeiso4217(), - GetArenaForAllocation()); + _this->_impl_.currencycodeiso4217_.Set(from._internal_currencycodeiso4217(), + _this->GetArenaForAllocation()); } - requestfrom_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.requestfrom_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.requestfrom_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_requestfrom()) { - requestfrom_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_requestfrom(), - GetArenaForAllocation()); + _this->_impl_.requestfrom_.Set(from._internal_requestfrom(), + _this->GetArenaForAllocation()); } if (from._internal_has_notemessage()) { - notemessage_ = new ::proto::Message(*from.notemessage_); - } else { - notemessage_ = nullptr; + _this->_impl_.notemessage_ = new ::proto::Message(*from._impl_.notemessage_); } if (from._internal_has_amount()) { - amount_ = new ::proto::PaymentMoney(*from.amount_); - } else { - amount_ = nullptr; + _this->_impl_.amount_ = new ::proto::PaymentMoney(*from._impl_.amount_); } - ::memcpy(&amount1000_, &from.amount1000_, - static_cast<size_t>(reinterpret_cast<char*>(&expirytimestamp_) - - reinterpret_cast<char*>(&amount1000_)) + sizeof(expirytimestamp_)); + ::memcpy(&_impl_.amount1000_, &from._impl_.amount1000_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.expirytimestamp_) - + reinterpret_cast<char*>(&_impl_.amount1000_)) + sizeof(_impl_.expirytimestamp_)); // @@protoc_insertion_point(copy_constructor:proto.RequestPaymentMessage) } -void RequestPaymentMessage::SharedCtor() { -currencycodeiso4217_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -requestfrom_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(¬emessage_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&expirytimestamp_) - - reinterpret_cast<char*>(¬emessage_)) + sizeof(expirytimestamp_)); +inline void RequestPaymentMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.currencycodeiso4217_){} + , decltype(_impl_.requestfrom_){} + , decltype(_impl_.notemessage_){nullptr} + , decltype(_impl_.amount_){nullptr} + , decltype(_impl_.amount1000_){uint64_t{0u}} + , decltype(_impl_.expirytimestamp_){int64_t{0}} + }; + _impl_.currencycodeiso4217_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.currencycodeiso4217_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.requestfrom_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.requestfrom_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } RequestPaymentMessage::~RequestPaymentMessage() { // @@protoc_insertion_point(destructor:proto.RequestPaymentMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void RequestPaymentMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - currencycodeiso4217_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - requestfrom_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete notemessage_; - if (this != internal_default_instance()) delete amount_; + _impl_.currencycodeiso4217_.Destroy(); + _impl_.requestfrom_.Destroy(); + if (this != internal_default_instance()) delete _impl_.notemessage_; + if (this != internal_default_instance()) delete _impl_.amount_; } -void RequestPaymentMessage::ArenaDtor(void* object) { - RequestPaymentMessage* _this = reinterpret_cast< RequestPaymentMessage* >(object); - (void)_this; -} -void RequestPaymentMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void RequestPaymentMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void RequestPaymentMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.RequestPaymentMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - currencycodeiso4217_.ClearNonDefaultToEmpty(); + _impl_.currencycodeiso4217_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - requestfrom_.ClearNonDefaultToEmpty(); + _impl_.requestfrom_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(notemessage_ != nullptr); - notemessage_->Clear(); + GOOGLE_DCHECK(_impl_.notemessage_ != nullptr); + _impl_.notemessage_->Clear(); } if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(amount_ != nullptr); - amount_->Clear(); + GOOGLE_DCHECK(_impl_.amount_ != nullptr); + _impl_.amount_->Clear(); } } if (cached_has_bits & 0x00000030u) { - ::memset(&amount1000_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&expirytimestamp_) - - reinterpret_cast<char*>(&amount1000_)) + sizeof(expirytimestamp_)); + ::memset(&_impl_.amount1000_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.expirytimestamp_) - + reinterpret_cast<char*>(&_impl_.amount1000_)) + sizeof(_impl_.expirytimestamp_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* RequestPaymentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* RequestPaymentMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string currencyCodeIso4217 = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_currencycodeiso4217(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.RequestPaymentMessage.currencyCodeIso4217"); + ::_pbi::VerifyUTF8(str, "proto.RequestPaymentMessage.currencyCodeIso4217"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional uint64 amount1000 = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { _Internal::set_has_amount1000(&has_bits); - amount1000_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.amount1000_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string requestFrom = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { auto str = _internal_mutable_requestfrom(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.RequestPaymentMessage.requestFrom"); + ::_pbi::VerifyUTF8(str, "proto.RequestPaymentMessage.requestFrom"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.Message noteMessage = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_notemessage(), ptr); CHK_(ptr); } else @@ -23059,16 +24093,16 @@ const char* RequestPaymentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NA continue; // optional int64 expiryTimestamp = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) { _Internal::set_has_expirytimestamp(&has_bits); - expirytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.expirytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.PaymentMoney amount = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { ptr = ctx->ParseMessage(_internal_mutable_amount(), ptr); CHK_(ptr); } else @@ -23090,7 +24124,7 @@ const char* RequestPaymentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NA CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -23098,13 +24132,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* RequestPaymentMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* RequestPaymentMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.RequestPaymentMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string currencyCodeIso4217 = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -23118,7 +24152,7 @@ failure: // optional uint64 amount1000 = 2; if (cached_has_bits & 0x00000010u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_amount1000(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_amount1000(), target); } // optional string requestFrom = 3; @@ -23133,28 +24167,26 @@ failure: // optional .proto.Message noteMessage = 4; if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::notemessage(this), target, stream); + InternalWriteMessage(4, _Internal::notemessage(this), + _Internal::notemessage(this).GetCachedSize(), target, stream); } // optional int64 expiryTimestamp = 5; if (cached_has_bits & 0x00000020u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_expirytimestamp(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(5, this->_internal_expirytimestamp(), target); } // optional .proto.PaymentMoney amount = 6; if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::amount(this), target, stream); + InternalWriteMessage(6, _Internal::amount(this), + _Internal::amount(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.RequestPaymentMessage) @@ -23165,11 +24197,11 @@ size_t RequestPaymentMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.RequestPaymentMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000003fu) { // optional string currencyCodeIso4217 = 1; if (cached_has_bits & 0x00000001u) { @@ -23189,72 +24221,70 @@ size_t RequestPaymentMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *notemessage_); + *_impl_.notemessage_); } // optional .proto.PaymentMoney amount = 6; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *amount_); + *_impl_.amount_); } // optional uint64 amount1000 = 2; if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_amount1000()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_amount1000()); } // optional int64 expiryTimestamp = 5; if (cached_has_bits & 0x00000020u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_expirytimestamp()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_expirytimestamp()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RequestPaymentMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, RequestPaymentMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RequestPaymentMessage::GetClassData() const { return &_class_data_; } -void RequestPaymentMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<RequestPaymentMessage *>(to)->MergeFrom( - static_cast<const RequestPaymentMessage &>(from)); -} - -void RequestPaymentMessage::MergeFrom(const RequestPaymentMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.RequestPaymentMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void RequestPaymentMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<RequestPaymentMessage*>(&to_msg); + auto& from = static_cast<const RequestPaymentMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.RequestPaymentMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000003fu) { if (cached_has_bits & 0x00000001u) { - _internal_set_currencycodeiso4217(from._internal_currencycodeiso4217()); + _this->_internal_set_currencycodeiso4217(from._internal_currencycodeiso4217()); } if (cached_has_bits & 0x00000002u) { - _internal_set_requestfrom(from._internal_requestfrom()); + _this->_internal_set_requestfrom(from._internal_requestfrom()); } if (cached_has_bits & 0x00000004u) { - _internal_mutable_notemessage()->::proto::Message::MergeFrom(from._internal_notemessage()); + _this->_internal_mutable_notemessage()->::proto::Message::MergeFrom( + from._internal_notemessage()); } if (cached_has_bits & 0x00000008u) { - _internal_mutable_amount()->::proto::PaymentMoney::MergeFrom(from._internal_amount()); + _this->_internal_mutable_amount()->::proto::PaymentMoney::MergeFrom( + from._internal_amount()); } if (cached_has_bits & 0x00000010u) { - amount1000_ = from.amount1000_; + _this->_impl_.amount1000_ = from._impl_.amount1000_; } if (cached_has_bits & 0x00000020u) { - expirytimestamp_ = from.expirytimestamp_; + _this->_impl_.expirytimestamp_ = from._impl_.expirytimestamp_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RequestPaymentMessage::CopyFrom(const RequestPaymentMessage& from) { @@ -23273,27 +24303,25 @@ void RequestPaymentMessage::InternalSwap(RequestPaymentMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ¤cycodeiso4217_, lhs_arena, - &other->currencycodeiso4217_, rhs_arena + &_impl_.currencycodeiso4217_, lhs_arena, + &other->_impl_.currencycodeiso4217_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &requestfrom_, lhs_arena, - &other->requestfrom_, rhs_arena + &_impl_.requestfrom_, lhs_arena, + &other->_impl_.requestfrom_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(RequestPaymentMessage, expirytimestamp_) - + sizeof(RequestPaymentMessage::expirytimestamp_) - - PROTOBUF_FIELD_OFFSET(RequestPaymentMessage, notemessage_)>( - reinterpret_cast<char*>(¬emessage_), - reinterpret_cast<char*>(&other->notemessage_)); + PROTOBUF_FIELD_OFFSET(RequestPaymentMessage, _impl_.expirytimestamp_) + + sizeof(RequestPaymentMessage::_impl_.expirytimestamp_) + - PROTOBUF_FIELD_OFFSET(RequestPaymentMessage, _impl_.notemessage_)>( + reinterpret_cast<char*>(&_impl_.notemessage_), + reinterpret_cast<char*>(&other->_impl_.notemessage_)); } ::PROTOBUF_NAMESPACE_ID::Metadata RequestPaymentMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[46]); } @@ -23302,7 +24330,7 @@ void RequestPaymentMessage::InternalSwap(RequestPaymentMessage* other) { class DeclinePaymentRequestMessage::_Internal { public: - using HasBits = decltype(std::declval<DeclinePaymentRequestMessage>()._has_bits_); + using HasBits = decltype(std::declval<DeclinePaymentRequestMessage>()._impl_._has_bits_); static const ::proto::MessageKey& key(const DeclinePaymentRequestMessage* msg); static void set_has_key(HasBits* has_bits) { (*has_bits)[0] |= 1u; @@ -23311,80 +24339,83 @@ class DeclinePaymentRequestMessage::_Internal { const ::proto::MessageKey& DeclinePaymentRequestMessage::_Internal::key(const DeclinePaymentRequestMessage* msg) { - return *msg->key_; + return *msg->_impl_.key_; } DeclinePaymentRequestMessage::DeclinePaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.DeclinePaymentRequestMessage) } DeclinePaymentRequestMessage::DeclinePaymentRequestMessage(const DeclinePaymentRequestMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + DeclinePaymentRequestMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.key_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_key()) { - key_ = new ::proto::MessageKey(*from.key_); - } else { - key_ = nullptr; + _this->_impl_.key_ = new ::proto::MessageKey(*from._impl_.key_); } // @@protoc_insertion_point(copy_constructor:proto.DeclinePaymentRequestMessage) } -void DeclinePaymentRequestMessage::SharedCtor() { -key_ = nullptr; +inline void DeclinePaymentRequestMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.key_){nullptr} + }; } DeclinePaymentRequestMessage::~DeclinePaymentRequestMessage() { // @@protoc_insertion_point(destructor:proto.DeclinePaymentRequestMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void DeclinePaymentRequestMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete key_; + if (this != internal_default_instance()) delete _impl_.key_; } -void DeclinePaymentRequestMessage::ArenaDtor(void* object) { - DeclinePaymentRequestMessage* _this = reinterpret_cast< DeclinePaymentRequestMessage* >(object); - (void)_this; -} -void DeclinePaymentRequestMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void DeclinePaymentRequestMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void DeclinePaymentRequestMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.DeclinePaymentRequestMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(key_ != nullptr); - key_->Clear(); + GOOGLE_DCHECK(_impl_.key_ != nullptr); + _impl_.key_->Clear(); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* DeclinePaymentRequestMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* DeclinePaymentRequestMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional .proto.MessageKey key = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_key(), ptr); CHK_(ptr); } else @@ -23406,7 +24437,7 @@ const char* DeclinePaymentRequestMessage::_InternalParse(const char* ptr, ::PROT CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -23414,23 +24445,22 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* DeclinePaymentRequestMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* DeclinePaymentRequestMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.DeclinePaymentRequestMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.MessageKey key = 1; if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::key(this), target, stream); + InternalWriteMessage(1, _Internal::key(this), + _Internal::key(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.DeclinePaymentRequestMessage) @@ -23441,44 +24471,41 @@ size_t DeclinePaymentRequestMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.DeclinePaymentRequestMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional .proto.MessageKey key = 1; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *key_); + *_impl_.key_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeclinePaymentRequestMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, DeclinePaymentRequestMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeclinePaymentRequestMessage::GetClassData() const { return &_class_data_; } -void DeclinePaymentRequestMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<DeclinePaymentRequestMessage *>(to)->MergeFrom( - static_cast<const DeclinePaymentRequestMessage &>(from)); -} - -void DeclinePaymentRequestMessage::MergeFrom(const DeclinePaymentRequestMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.DeclinePaymentRequestMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void DeclinePaymentRequestMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<DeclinePaymentRequestMessage*>(&to_msg); + auto& from = static_cast<const DeclinePaymentRequestMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.DeclinePaymentRequestMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_key()) { - _internal_mutable_key()->::proto::MessageKey::MergeFrom(from._internal_key()); + _this->_internal_mutable_key()->::proto::MessageKey::MergeFrom( + from._internal_key()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeclinePaymentRequestMessage::CopyFrom(const DeclinePaymentRequestMessage& from) { @@ -23495,12 +24522,12 @@ bool DeclinePaymentRequestMessage::IsInitialized() const { void DeclinePaymentRequestMessage::InternalSwap(DeclinePaymentRequestMessage* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(key_, other->key_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.key_, other->_impl_.key_); } ::PROTOBUF_NAMESPACE_ID::Metadata DeclinePaymentRequestMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[47]); } @@ -23509,7 +24536,7 @@ void DeclinePaymentRequestMessage::InternalSwap(DeclinePaymentRequestMessage* ot class CancelPaymentRequestMessage::_Internal { public: - using HasBits = decltype(std::declval<CancelPaymentRequestMessage>()._has_bits_); + using HasBits = decltype(std::declval<CancelPaymentRequestMessage>()._impl_._has_bits_); static const ::proto::MessageKey& key(const CancelPaymentRequestMessage* msg); static void set_has_key(HasBits* has_bits) { (*has_bits)[0] |= 1u; @@ -23518,80 +24545,83 @@ class CancelPaymentRequestMessage::_Internal { const ::proto::MessageKey& CancelPaymentRequestMessage::_Internal::key(const CancelPaymentRequestMessage* msg) { - return *msg->key_; + return *msg->_impl_.key_; } CancelPaymentRequestMessage::CancelPaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.CancelPaymentRequestMessage) } CancelPaymentRequestMessage::CancelPaymentRequestMessage(const CancelPaymentRequestMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + CancelPaymentRequestMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.key_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_key()) { - key_ = new ::proto::MessageKey(*from.key_); - } else { - key_ = nullptr; + _this->_impl_.key_ = new ::proto::MessageKey(*from._impl_.key_); } // @@protoc_insertion_point(copy_constructor:proto.CancelPaymentRequestMessage) } -void CancelPaymentRequestMessage::SharedCtor() { -key_ = nullptr; +inline void CancelPaymentRequestMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.key_){nullptr} + }; } CancelPaymentRequestMessage::~CancelPaymentRequestMessage() { // @@protoc_insertion_point(destructor:proto.CancelPaymentRequestMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void CancelPaymentRequestMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete key_; + if (this != internal_default_instance()) delete _impl_.key_; } -void CancelPaymentRequestMessage::ArenaDtor(void* object) { - CancelPaymentRequestMessage* _this = reinterpret_cast< CancelPaymentRequestMessage* >(object); - (void)_this; -} -void CancelPaymentRequestMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void CancelPaymentRequestMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CancelPaymentRequestMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.CancelPaymentRequestMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(key_ != nullptr); - key_->Clear(); + GOOGLE_DCHECK(_impl_.key_ != nullptr); + _impl_.key_->Clear(); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* CancelPaymentRequestMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* CancelPaymentRequestMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional .proto.MessageKey key = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_key(), ptr); CHK_(ptr); } else @@ -23613,7 +24643,7 @@ const char* CancelPaymentRequestMessage::_InternalParse(const char* ptr, ::PROTO CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -23621,23 +24651,22 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* CancelPaymentRequestMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* CancelPaymentRequestMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.CancelPaymentRequestMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.MessageKey key = 1; if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::key(this), target, stream); + InternalWriteMessage(1, _Internal::key(this), + _Internal::key(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.CancelPaymentRequestMessage) @@ -23648,44 +24677,41 @@ size_t CancelPaymentRequestMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.CancelPaymentRequestMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional .proto.MessageKey key = 1; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *key_); + *_impl_.key_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CancelPaymentRequestMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, CancelPaymentRequestMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CancelPaymentRequestMessage::GetClassData() const { return &_class_data_; } -void CancelPaymentRequestMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<CancelPaymentRequestMessage *>(to)->MergeFrom( - static_cast<const CancelPaymentRequestMessage &>(from)); -} - -void CancelPaymentRequestMessage::MergeFrom(const CancelPaymentRequestMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.CancelPaymentRequestMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void CancelPaymentRequestMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<CancelPaymentRequestMessage*>(&to_msg); + auto& from = static_cast<const CancelPaymentRequestMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.CancelPaymentRequestMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_key()) { - _internal_mutable_key()->::proto::MessageKey::MergeFrom(from._internal_key()); + _this->_internal_mutable_key()->::proto::MessageKey::MergeFrom( + from._internal_key()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CancelPaymentRequestMessage::CopyFrom(const CancelPaymentRequestMessage& from) { @@ -23702,12 +24728,12 @@ bool CancelPaymentRequestMessage::IsInitialized() const { void CancelPaymentRequestMessage::InternalSwap(CancelPaymentRequestMessage* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(key_, other->key_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.key_, other->_impl_.key_); } ::PROTOBUF_NAMESPACE_ID::Metadata CancelPaymentRequestMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[48]); } @@ -23716,7 +24742,7 @@ void CancelPaymentRequestMessage::InternalSwap(CancelPaymentRequestMessage* othe class LiveLocationMessage::_Internal { public: - using HasBits = decltype(std::declval<LiveLocationMessage>()._has_bits_); + using HasBits = decltype(std::declval<LiveLocationMessage>()._impl_._has_bits_); static void set_has_degreeslatitude(HasBits* has_bits) { (*has_bits)[0] |= 8u; } @@ -23752,202 +24778,232 @@ class LiveLocationMessage::_Internal { const ::proto::ContextInfo& LiveLocationMessage::_Internal::contextinfo(const LiveLocationMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } LiveLocationMessage::LiveLocationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.LiveLocationMessage) } LiveLocationMessage::LiveLocationMessage(const LiveLocationMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + LiveLocationMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.caption_){} + , decltype(_impl_.jpegthumbnail_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.degreeslatitude_){} + , decltype(_impl_.degreeslongitude_){} + , decltype(_impl_.accuracyinmeters_){} + , decltype(_impl_.speedinmps_){} + , decltype(_impl_.degreesclockwisefrommagneticnorth_){} + , decltype(_impl_.timeoffset_){} + , decltype(_impl_.sequencenumber_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.caption_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.caption_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_caption()) { - caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_caption(), - GetArenaForAllocation()); + _this->_impl_.caption_.Set(from._internal_caption(), + _this->GetArenaForAllocation()); } - jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.jpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_jpegthumbnail()) { - jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), - GetArenaForAllocation()); + _this->_impl_.jpegthumbnail_.Set(from._internal_jpegthumbnail(), + _this->GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } - ::memcpy(°reeslatitude_, &from.degreeslatitude_, - static_cast<size_t>(reinterpret_cast<char*>(&sequencenumber_) - - reinterpret_cast<char*>(°reeslatitude_)) + sizeof(sequencenumber_)); + ::memcpy(&_impl_.degreeslatitude_, &from._impl_.degreeslatitude_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.sequencenumber_) - + reinterpret_cast<char*>(&_impl_.degreeslatitude_)) + sizeof(_impl_.sequencenumber_)); // @@protoc_insertion_point(copy_constructor:proto.LiveLocationMessage) } -void LiveLocationMessage::SharedCtor() { -caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&sequencenumber_) - - reinterpret_cast<char*>(&contextinfo_)) + sizeof(sequencenumber_)); +inline void LiveLocationMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.caption_){} + , decltype(_impl_.jpegthumbnail_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.degreeslatitude_){0} + , decltype(_impl_.degreeslongitude_){0} + , decltype(_impl_.accuracyinmeters_){0u} + , decltype(_impl_.speedinmps_){0} + , decltype(_impl_.degreesclockwisefrommagneticnorth_){0u} + , decltype(_impl_.timeoffset_){0u} + , decltype(_impl_.sequencenumber_){int64_t{0}} + }; + _impl_.caption_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.caption_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } LiveLocationMessage::~LiveLocationMessage() { // @@protoc_insertion_point(destructor:proto.LiveLocationMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void LiveLocationMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - caption_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - jpegthumbnail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete contextinfo_; + _impl_.caption_.Destroy(); + _impl_.jpegthumbnail_.Destroy(); + if (this != internal_default_instance()) delete _impl_.contextinfo_; } -void LiveLocationMessage::ArenaDtor(void* object) { - LiveLocationMessage* _this = reinterpret_cast< LiveLocationMessage* >(object); - (void)_this; -} -void LiveLocationMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void LiveLocationMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void LiveLocationMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.LiveLocationMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - caption_.ClearNonDefaultToEmpty(); + _impl_.caption_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - jpegthumbnail_.ClearNonDefaultToEmpty(); + _impl_.jpegthumbnail_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } } if (cached_has_bits & 0x000000f8u) { - ::memset(°reeslatitude_, 0, static_cast<size_t>( - reinterpret_cast<char*>(°reesclockwisefrommagneticnorth_) - - reinterpret_cast<char*>(°reeslatitude_)) + sizeof(degreesclockwisefrommagneticnorth_)); + ::memset(&_impl_.degreeslatitude_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.degreesclockwisefrommagneticnorth_) - + reinterpret_cast<char*>(&_impl_.degreeslatitude_)) + sizeof(_impl_.degreesclockwisefrommagneticnorth_)); } if (cached_has_bits & 0x00000300u) { - ::memset(&timeoffset_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&sequencenumber_) - - reinterpret_cast<char*>(&timeoffset_)) + sizeof(sequencenumber_)); + ::memset(&_impl_.timeoffset_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.sequencenumber_) - + reinterpret_cast<char*>(&_impl_.timeoffset_)) + sizeof(_impl_.sequencenumber_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* LiveLocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* LiveLocationMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional double degreesLatitude = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 9)) { _Internal::set_has_degreeslatitude(&has_bits); - degreeslatitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); + _impl_.degreeslatitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); ptr += sizeof(double); } else goto handle_unusual; continue; // optional double degreesLongitude = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17)) { _Internal::set_has_degreeslongitude(&has_bits); - degreeslongitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); + _impl_.degreeslongitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); ptr += sizeof(double); } else goto handle_unusual; continue; // optional uint32 accuracyInMeters = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { _Internal::set_has_accuracyinmeters(&has_bits); - accuracyinmeters_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.accuracyinmeters_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional float speedInMps = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 37)) { _Internal::set_has_speedinmps(&has_bits); - speedinmps_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr); + _impl_.speedinmps_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr); ptr += sizeof(float); } else goto handle_unusual; continue; // optional uint32 degreesClockwiseFromMagneticNorth = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) { _Internal::set_has_degreesclockwisefrommagneticnorth(&has_bits); - degreesclockwisefrommagneticnorth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.degreesclockwisefrommagneticnorth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string caption = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { auto str = _internal_mutable_caption(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.LiveLocationMessage.caption"); + ::_pbi::VerifyUTF8(str, "proto.LiveLocationMessage.caption"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional int64 sequenceNumber = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) { _Internal::set_has_sequencenumber(&has_bits); - sequencenumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.sequencenumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 timeOffset = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) { _Internal::set_has_timeoffset(&has_bits); - timeoffset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.timeoffset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes jpegThumbnail = 16; case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 130)) { auto str = _internal_mutable_jpegthumbnail(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ContextInfo contextInfo = 17; case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -23969,7 +25025,7 @@ const char* LiveLocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -23977,41 +25033,41 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* LiveLocationMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* LiveLocationMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.LiveLocationMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional double degreesLatitude = 1; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(1, this->_internal_degreeslatitude(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_degreeslatitude(), target); } // optional double degreesLongitude = 2; if (cached_has_bits & 0x00000010u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_degreeslongitude(), target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_degreeslongitude(), target); } // optional uint32 accuracyInMeters = 3; if (cached_has_bits & 0x00000020u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_accuracyinmeters(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_accuracyinmeters(), target); } // optional float speedInMps = 4; if (cached_has_bits & 0x00000040u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_speedinmps(), target); + target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_speedinmps(), target); } // optional uint32 degreesClockwiseFromMagneticNorth = 5; if (cached_has_bits & 0x00000080u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_degreesclockwisefrommagneticnorth(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_degreesclockwisefrommagneticnorth(), target); } // optional string caption = 6; @@ -24027,13 +25083,13 @@ failure: // optional int64 sequenceNumber = 7; if (cached_has_bits & 0x00000200u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->_internal_sequencenumber(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(7, this->_internal_sequencenumber(), target); } // optional uint32 timeOffset = 8; if (cached_has_bits & 0x00000100u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(8, this->_internal_timeoffset(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(8, this->_internal_timeoffset(), target); } // optional bytes jpegThumbnail = 16; @@ -24044,14 +25100,13 @@ failure: // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 17, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(17, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.LiveLocationMessage) @@ -24062,11 +25117,11 @@ size_t LiveLocationMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.LiveLocationMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string caption = 6; if (cached_has_bits & 0x00000001u) { @@ -24086,7 +25141,7 @@ size_t LiveLocationMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000004u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } // optional double degreesLatitude = 1; @@ -24101,7 +25156,7 @@ size_t LiveLocationMessage::ByteSizeLong() const { // optional uint32 accuracyInMeters = 3; if (cached_has_bits & 0x00000020u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_accuracyinmeters()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_accuracyinmeters()); } // optional float speedInMps = 4; @@ -24111,82 +25166,79 @@ size_t LiveLocationMessage::ByteSizeLong() const { // optional uint32 degreesClockwiseFromMagneticNorth = 5; if (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_degreesclockwisefrommagneticnorth()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_degreesclockwisefrommagneticnorth()); } } if (cached_has_bits & 0x00000300u) { // optional uint32 timeOffset = 8; if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_timeoffset()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_timeoffset()); } // optional int64 sequenceNumber = 7; if (cached_has_bits & 0x00000200u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_sequencenumber()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_sequencenumber()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LiveLocationMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, LiveLocationMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LiveLocationMessage::GetClassData() const { return &_class_data_; } -void LiveLocationMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<LiveLocationMessage *>(to)->MergeFrom( - static_cast<const LiveLocationMessage &>(from)); -} - -void LiveLocationMessage::MergeFrom(const LiveLocationMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.LiveLocationMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void LiveLocationMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<LiveLocationMessage*>(&to_msg); + auto& from = static_cast<const LiveLocationMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.LiveLocationMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_set_caption(from._internal_caption()); + _this->_internal_set_caption(from._internal_caption()); } if (cached_has_bits & 0x00000002u) { - _internal_set_jpegthumbnail(from._internal_jpegthumbnail()); + _this->_internal_set_jpegthumbnail(from._internal_jpegthumbnail()); } if (cached_has_bits & 0x00000004u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } if (cached_has_bits & 0x00000008u) { - degreeslatitude_ = from.degreeslatitude_; + _this->_impl_.degreeslatitude_ = from._impl_.degreeslatitude_; } if (cached_has_bits & 0x00000010u) { - degreeslongitude_ = from.degreeslongitude_; + _this->_impl_.degreeslongitude_ = from._impl_.degreeslongitude_; } if (cached_has_bits & 0x00000020u) { - accuracyinmeters_ = from.accuracyinmeters_; + _this->_impl_.accuracyinmeters_ = from._impl_.accuracyinmeters_; } if (cached_has_bits & 0x00000040u) { - speedinmps_ = from.speedinmps_; + _this->_impl_.speedinmps_ = from._impl_.speedinmps_; } if (cached_has_bits & 0x00000080u) { - degreesclockwisefrommagneticnorth_ = from.degreesclockwisefrommagneticnorth_; + _this->_impl_.degreesclockwisefrommagneticnorth_ = from._impl_.degreesclockwisefrommagneticnorth_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00000300u) { if (cached_has_bits & 0x00000100u) { - timeoffset_ = from.timeoffset_; + _this->_impl_.timeoffset_ = from._impl_.timeoffset_; } if (cached_has_bits & 0x00000200u) { - sequencenumber_ = from.sequencenumber_; + _this->_impl_.sequencenumber_ = from._impl_.sequencenumber_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LiveLocationMessage::CopyFrom(const LiveLocationMessage& from) { @@ -24205,27 +25257,25 @@ void LiveLocationMessage::InternalSwap(LiveLocationMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &caption_, lhs_arena, - &other->caption_, rhs_arena + &_impl_.caption_, lhs_arena, + &other->_impl_.caption_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &jpegthumbnail_, lhs_arena, - &other->jpegthumbnail_, rhs_arena + &_impl_.jpegthumbnail_, lhs_arena, + &other->_impl_.jpegthumbnail_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(LiveLocationMessage, sequencenumber_) - + sizeof(LiveLocationMessage::sequencenumber_) - - PROTOBUF_FIELD_OFFSET(LiveLocationMessage, contextinfo_)>( - reinterpret_cast<char*>(&contextinfo_), - reinterpret_cast<char*>(&other->contextinfo_)); + PROTOBUF_FIELD_OFFSET(LiveLocationMessage, _impl_.sequencenumber_) + + sizeof(LiveLocationMessage::_impl_.sequencenumber_) + - PROTOBUF_FIELD_OFFSET(LiveLocationMessage, _impl_.contextinfo_)>( + reinterpret_cast<char*>(&_impl_.contextinfo_), + reinterpret_cast<char*>(&other->_impl_.contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata LiveLocationMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[49]); } @@ -24234,7 +25284,7 @@ void LiveLocationMessage::InternalSwap(LiveLocationMessage* other) { class StickerMessage::_Internal { public: - using HasBits = decltype(std::declval<StickerMessage>()._has_bits_); + using HasBits = decltype(std::declval<StickerMessage>()._impl_._has_bits_); static void set_has_url(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -24285,308 +25335,384 @@ class StickerMessage::_Internal { const ::proto::ContextInfo& StickerMessage::_Internal::contextinfo(const StickerMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } StickerMessage::StickerMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.StickerMessage) } StickerMessage::StickerMessage(const StickerMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + StickerMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.url_){} + , decltype(_impl_.filesha256_){} + , decltype(_impl_.fileencsha256_){} + , decltype(_impl_.mediakey_){} + , decltype(_impl_.mimetype_){} + , decltype(_impl_.directpath_){} + , decltype(_impl_.firstframesidecar_){} + , decltype(_impl_.pngthumbnail_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.height_){} + , decltype(_impl_.width_){} + , decltype(_impl_.filelength_){} + , decltype(_impl_.mediakeytimestamp_){} + , decltype(_impl_.firstframelength_){} + , decltype(_impl_.isanimated_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_url()) { - url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), - GetArenaForAllocation()); + _this->_impl_.url_.Set(from._internal_url(), + _this->GetArenaForAllocation()); } - filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.filesha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filesha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_filesha256()) { - filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), - GetArenaForAllocation()); + _this->_impl_.filesha256_.Set(from._internal_filesha256(), + _this->GetArenaForAllocation()); } - fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.fileencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_fileencsha256()) { - fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), - GetArenaForAllocation()); + _this->_impl_.fileencsha256_.Set(from._internal_fileencsha256(), + _this->GetArenaForAllocation()); } - mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.mediakey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_mediakey()) { - mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), - GetArenaForAllocation()); + _this->_impl_.mediakey_.Set(from._internal_mediakey(), + _this->GetArenaForAllocation()); } - mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.mimetype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mimetype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_mimetype()) { - mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mimetype(), - GetArenaForAllocation()); + _this->_impl_.mimetype_.Set(from._internal_mimetype(), + _this->GetArenaForAllocation()); } - directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.directpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_directpath()) { - directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), - GetArenaForAllocation()); + _this->_impl_.directpath_.Set(from._internal_directpath(), + _this->GetArenaForAllocation()); } - firstframesidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.firstframesidecar_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.firstframesidecar_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_firstframesidecar()) { - firstframesidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_firstframesidecar(), - GetArenaForAllocation()); + _this->_impl_.firstframesidecar_.Set(from._internal_firstframesidecar(), + _this->GetArenaForAllocation()); } - pngthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.pngthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pngthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_pngthumbnail()) { - pngthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pngthumbnail(), - GetArenaForAllocation()); + _this->_impl_.pngthumbnail_.Set(from._internal_pngthumbnail(), + _this->GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } - ::memcpy(&height_, &from.height_, - static_cast<size_t>(reinterpret_cast<char*>(&isanimated_) - - reinterpret_cast<char*>(&height_)) + sizeof(isanimated_)); + ::memcpy(&_impl_.height_, &from._impl_.height_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.isanimated_) - + reinterpret_cast<char*>(&_impl_.height_)) + sizeof(_impl_.isanimated_)); // @@protoc_insertion_point(copy_constructor:proto.StickerMessage) } -void StickerMessage::SharedCtor() { -url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -firstframesidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -pngthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&isanimated_) - - reinterpret_cast<char*>(&contextinfo_)) + sizeof(isanimated_)); +inline void StickerMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.url_){} + , decltype(_impl_.filesha256_){} + , decltype(_impl_.fileencsha256_){} + , decltype(_impl_.mediakey_){} + , decltype(_impl_.mimetype_){} + , decltype(_impl_.directpath_){} + , decltype(_impl_.firstframesidecar_){} + , decltype(_impl_.pngthumbnail_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.height_){0u} + , decltype(_impl_.width_){0u} + , decltype(_impl_.filelength_){uint64_t{0u}} + , decltype(_impl_.mediakeytimestamp_){int64_t{0}} + , decltype(_impl_.firstframelength_){0u} + , decltype(_impl_.isanimated_){false} + }; + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filesha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.filesha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.fileencsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediakey_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mimetype_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mimetype_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.directpath_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.firstframesidecar_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.firstframesidecar_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pngthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pngthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } StickerMessage::~StickerMessage() { // @@protoc_insertion_point(destructor:proto.StickerMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void StickerMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - filesha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - fileencsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - mediakey_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - mimetype_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - directpath_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - firstframesidecar_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - pngthumbnail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete contextinfo_; + _impl_.url_.Destroy(); + _impl_.filesha256_.Destroy(); + _impl_.fileencsha256_.Destroy(); + _impl_.mediakey_.Destroy(); + _impl_.mimetype_.Destroy(); + _impl_.directpath_.Destroy(); + _impl_.firstframesidecar_.Destroy(); + _impl_.pngthumbnail_.Destroy(); + if (this != internal_default_instance()) delete _impl_.contextinfo_; } -void StickerMessage::ArenaDtor(void* object) { - StickerMessage* _this = reinterpret_cast< StickerMessage* >(object); - (void)_this; -} -void StickerMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void StickerMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void StickerMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.StickerMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - url_.ClearNonDefaultToEmpty(); + _impl_.url_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - filesha256_.ClearNonDefaultToEmpty(); + _impl_.filesha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - fileencsha256_.ClearNonDefaultToEmpty(); + _impl_.fileencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - mediakey_.ClearNonDefaultToEmpty(); + _impl_.mediakey_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { - mimetype_.ClearNonDefaultToEmpty(); + _impl_.mimetype_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { - directpath_.ClearNonDefaultToEmpty(); + _impl_.directpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { - firstframesidecar_.ClearNonDefaultToEmpty(); + _impl_.firstframesidecar_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { - pngthumbnail_.ClearNonDefaultToEmpty(); + _impl_.pngthumbnail_.ClearNonDefaultToEmpty(); } } if (cached_has_bits & 0x00000100u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } if (cached_has_bits & 0x00007e00u) { - ::memset(&height_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&isanimated_) - - reinterpret_cast<char*>(&height_)) + sizeof(isanimated_)); + ::memset(&_impl_.height_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.isanimated_) - + reinterpret_cast<char*>(&_impl_.height_)) + sizeof(_impl_.isanimated_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* StickerMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string url = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_url(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.StickerMessage.url"); + ::_pbi::VerifyUTF8(str, "proto.StickerMessage.url"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes fileSha256 = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_filesha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes fileEncSha256 = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { auto str = _internal_mutable_fileencsha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes mediaKey = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { auto str = _internal_mutable_mediakey(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional string mimetype = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { auto str = _internal_mutable_mimetype(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.StickerMessage.mimetype"); + ::_pbi::VerifyUTF8(str, "proto.StickerMessage.mimetype"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 height = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) { _Internal::set_has_height(&has_bits); - height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 width = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) { _Internal::set_has_width(&has_bits); - width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string directPath = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { auto str = _internal_mutable_directpath(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.StickerMessage.directPath"); + ::_pbi::VerifyUTF8(str, "proto.StickerMessage.directPath"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional uint64 fileLength = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) { _Internal::set_has_filelength(&has_bits); - filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional int64 mediaKeyTimestamp = 10; case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) { _Internal::set_has_mediakeytimestamp(&has_bits); - mediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.mediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 firstFrameLength = 11; case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) { _Internal::set_has_firstframelength(&has_bits); - firstframelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.firstframelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes firstFrameSidecar = 12; case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 98)) { auto str = _internal_mutable_firstframesidecar(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional bool isAnimated = 13; case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104)) { _Internal::set_has_isanimated(&has_bits); - isanimated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.isanimated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes pngThumbnail = 16; case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 130)) { auto str = _internal_mutable_pngthumbnail(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ContextInfo contextInfo = 17; case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -24608,7 +25734,7 @@ const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -24616,13 +25742,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* StickerMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* StickerMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.StickerMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string url = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -24664,13 +25790,13 @@ failure: // optional uint32 height = 6; if (cached_has_bits & 0x00000200u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_height(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_height(), target); } // optional uint32 width = 7; if (cached_has_bits & 0x00000400u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->_internal_width(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_width(), target); } // optional string directPath = 8; @@ -24686,19 +25812,19 @@ failure: // optional uint64 fileLength = 9; if (cached_has_bits & 0x00000800u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(9, this->_internal_filelength(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(9, this->_internal_filelength(), target); } // optional int64 mediaKeyTimestamp = 10; if (cached_has_bits & 0x00001000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(10, this->_internal_mediakeytimestamp(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_mediakeytimestamp(), target); } // optional uint32 firstFrameLength = 11; if (cached_has_bits & 0x00002000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(11, this->_internal_firstframelength(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(11, this->_internal_firstframelength(), target); } // optional bytes firstFrameSidecar = 12; @@ -24710,7 +25836,7 @@ failure: // optional bool isAnimated = 13; if (cached_has_bits & 0x00004000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(13, this->_internal_isanimated(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(13, this->_internal_isanimated(), target); } // optional bytes pngThumbnail = 16; @@ -24721,14 +25847,13 @@ failure: // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 17, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(17, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.StickerMessage) @@ -24739,11 +25864,11 @@ size_t StickerMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.StickerMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string url = 1; if (cached_has_bits & 0x00000001u) { @@ -24807,32 +25932,32 @@ size_t StickerMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000100u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } // optional uint32 height = 6; if (cached_has_bits & 0x00000200u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_height()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_height()); } // optional uint32 width = 7; if (cached_has_bits & 0x00000400u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_width()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_width()); } // optional uint64 fileLength = 9; if (cached_has_bits & 0x00000800u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); } // optional int64 mediaKeyTimestamp = 10; if (cached_has_bits & 0x00001000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_mediakeytimestamp()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_mediakeytimestamp()); } // optional uint32 firstFrameLength = 11; if (cached_has_bits & 0x00002000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_firstframelength()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_firstframelength()); } // optional bool isAnimated = 13; @@ -24841,80 +25966,77 @@ size_t StickerMessage::ByteSizeLong() const { } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StickerMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, StickerMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StickerMessage::GetClassData() const { return &_class_data_; } -void StickerMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<StickerMessage *>(to)->MergeFrom( - static_cast<const StickerMessage &>(from)); -} - -void StickerMessage::MergeFrom(const StickerMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.StickerMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void StickerMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<StickerMessage*>(&to_msg); + auto& from = static_cast<const StickerMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.StickerMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_set_url(from._internal_url()); + _this->_internal_set_url(from._internal_url()); } if (cached_has_bits & 0x00000002u) { - _internal_set_filesha256(from._internal_filesha256()); + _this->_internal_set_filesha256(from._internal_filesha256()); } if (cached_has_bits & 0x00000004u) { - _internal_set_fileencsha256(from._internal_fileencsha256()); + _this->_internal_set_fileencsha256(from._internal_fileencsha256()); } if (cached_has_bits & 0x00000008u) { - _internal_set_mediakey(from._internal_mediakey()); + _this->_internal_set_mediakey(from._internal_mediakey()); } if (cached_has_bits & 0x00000010u) { - _internal_set_mimetype(from._internal_mimetype()); + _this->_internal_set_mimetype(from._internal_mimetype()); } if (cached_has_bits & 0x00000020u) { - _internal_set_directpath(from._internal_directpath()); + _this->_internal_set_directpath(from._internal_directpath()); } if (cached_has_bits & 0x00000040u) { - _internal_set_firstframesidecar(from._internal_firstframesidecar()); + _this->_internal_set_firstframesidecar(from._internal_firstframesidecar()); } if (cached_has_bits & 0x00000080u) { - _internal_set_pngthumbnail(from._internal_pngthumbnail()); + _this->_internal_set_pngthumbnail(from._internal_pngthumbnail()); } } if (cached_has_bits & 0x00007f00u) { if (cached_has_bits & 0x00000100u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } if (cached_has_bits & 0x00000200u) { - height_ = from.height_; + _this->_impl_.height_ = from._impl_.height_; } if (cached_has_bits & 0x00000400u) { - width_ = from.width_; + _this->_impl_.width_ = from._impl_.width_; } if (cached_has_bits & 0x00000800u) { - filelength_ = from.filelength_; + _this->_impl_.filelength_ = from._impl_.filelength_; } if (cached_has_bits & 0x00001000u) { - mediakeytimestamp_ = from.mediakeytimestamp_; + _this->_impl_.mediakeytimestamp_ = from._impl_.mediakeytimestamp_; } if (cached_has_bits & 0x00002000u) { - firstframelength_ = from.firstframelength_; + _this->_impl_.firstframelength_ = from._impl_.firstframelength_; } if (cached_has_bits & 0x00004000u) { - isanimated_ = from.isanimated_; + _this->_impl_.isanimated_ = from._impl_.isanimated_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StickerMessage::CopyFrom(const StickerMessage& from) { @@ -24933,57 +26055,49 @@ void StickerMessage::InternalSwap(StickerMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &url_, lhs_arena, - &other->url_, rhs_arena + &_impl_.url_, lhs_arena, + &other->_impl_.url_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &filesha256_, lhs_arena, - &other->filesha256_, rhs_arena + &_impl_.filesha256_, lhs_arena, + &other->_impl_.filesha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &fileencsha256_, lhs_arena, - &other->fileencsha256_, rhs_arena + &_impl_.fileencsha256_, lhs_arena, + &other->_impl_.fileencsha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &mediakey_, lhs_arena, - &other->mediakey_, rhs_arena + &_impl_.mediakey_, lhs_arena, + &other->_impl_.mediakey_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &mimetype_, lhs_arena, - &other->mimetype_, rhs_arena + &_impl_.mimetype_, lhs_arena, + &other->_impl_.mimetype_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &directpath_, lhs_arena, - &other->directpath_, rhs_arena + &_impl_.directpath_, lhs_arena, + &other->_impl_.directpath_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &firstframesidecar_, lhs_arena, - &other->firstframesidecar_, rhs_arena + &_impl_.firstframesidecar_, lhs_arena, + &other->_impl_.firstframesidecar_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &pngthumbnail_, lhs_arena, - &other->pngthumbnail_, rhs_arena + &_impl_.pngthumbnail_, lhs_arena, + &other->_impl_.pngthumbnail_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(StickerMessage, isanimated_) - + sizeof(StickerMessage::isanimated_) - - PROTOBUF_FIELD_OFFSET(StickerMessage, contextinfo_)>( - reinterpret_cast<char*>(&contextinfo_), - reinterpret_cast<char*>(&other->contextinfo_)); + PROTOBUF_FIELD_OFFSET(StickerMessage, _impl_.isanimated_) + + sizeof(StickerMessage::_impl_.isanimated_) + - PROTOBUF_FIELD_OFFSET(StickerMessage, _impl_.contextinfo_)>( + reinterpret_cast<char*>(&_impl_.contextinfo_), + reinterpret_cast<char*>(&other->_impl_.contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata StickerMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[50]); } @@ -24992,7 +26106,7 @@ void StickerMessage::InternalSwap(StickerMessage* other) { class FourRowTemplate::_Internal { public: - using HasBits = decltype(std::declval<FourRowTemplate>()._has_bits_); + using HasBits = decltype(std::declval<FourRowTemplate>()._impl_._has_bits_); static const ::proto::HighlyStructuredMessage& content(const FourRowTemplate* msg); static void set_has_content(HasBits* has_bits) { (*has_bits)[0] |= 1u; @@ -25010,44 +26124,44 @@ class FourRowTemplate::_Internal { const ::proto::HighlyStructuredMessage& FourRowTemplate::_Internal::content(const FourRowTemplate* msg) { - return *msg->content_; + return *msg->_impl_.content_; } const ::proto::HighlyStructuredMessage& FourRowTemplate::_Internal::footer(const FourRowTemplate* msg) { - return *msg->footer_; + return *msg->_impl_.footer_; } const ::proto::DocumentMessage& FourRowTemplate::_Internal::documentmessage(const FourRowTemplate* msg) { - return *msg->title_.documentmessage_; + return *msg->_impl_.title_.documentmessage_; } const ::proto::HighlyStructuredMessage& FourRowTemplate::_Internal::highlystructuredmessage(const FourRowTemplate* msg) { - return *msg->title_.highlystructuredmessage_; + return *msg->_impl_.title_.highlystructuredmessage_; } const ::proto::ImageMessage& FourRowTemplate::_Internal::imagemessage(const FourRowTemplate* msg) { - return *msg->title_.imagemessage_; + return *msg->_impl_.title_.imagemessage_; } const ::proto::VideoMessage& FourRowTemplate::_Internal::videomessage(const FourRowTemplate* msg) { - return *msg->title_.videomessage_; + return *msg->_impl_.title_.videomessage_; } const ::proto::LocationMessage& FourRowTemplate::_Internal::locationmessage(const FourRowTemplate* msg) { - return *msg->title_.locationmessage_; + return *msg->_impl_.title_.locationmessage_; } void FourRowTemplate::set_allocated_documentmessage(::proto::DocumentMessage* documentmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_title(); if (documentmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::DocumentMessage>::GetOwningArena(documentmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(documentmessage); if (message_arena != submessage_arena) { documentmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, documentmessage, submessage_arena); } set_has_documentmessage(); - title_.documentmessage_ = documentmessage; + _impl_.title_.documentmessage_ = documentmessage; } // @@protoc_insertion_point(field_set_allocated:proto.FourRowTemplate.documentMessage) } @@ -25056,13 +26170,13 @@ void FourRowTemplate::set_allocated_highlystructuredmessage(::proto::HighlyStruc clear_title(); if (highlystructuredmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HighlyStructuredMessage>::GetOwningArena(highlystructuredmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(highlystructuredmessage); if (message_arena != submessage_arena) { highlystructuredmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, highlystructuredmessage, submessage_arena); } set_has_highlystructuredmessage(); - title_.highlystructuredmessage_ = highlystructuredmessage; + _impl_.title_.highlystructuredmessage_ = highlystructuredmessage; } // @@protoc_insertion_point(field_set_allocated:proto.FourRowTemplate.highlyStructuredMessage) } @@ -25071,13 +26185,13 @@ void FourRowTemplate::set_allocated_imagemessage(::proto::ImageMessage* imagemes clear_title(); if (imagemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ImageMessage>::GetOwningArena(imagemessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(imagemessage); if (message_arena != submessage_arena) { imagemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, imagemessage, submessage_arena); } set_has_imagemessage(); - title_.imagemessage_ = imagemessage; + _impl_.title_.imagemessage_ = imagemessage; } // @@protoc_insertion_point(field_set_allocated:proto.FourRowTemplate.imageMessage) } @@ -25086,13 +26200,13 @@ void FourRowTemplate::set_allocated_videomessage(::proto::VideoMessage* videomes clear_title(); if (videomessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::VideoMessage>::GetOwningArena(videomessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(videomessage); if (message_arena != submessage_arena) { videomessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, videomessage, submessage_arena); } set_has_videomessage(); - title_.videomessage_ = videomessage; + _impl_.title_.videomessage_ = videomessage; } // @@protoc_insertion_point(field_set_allocated:proto.FourRowTemplate.videoMessage) } @@ -25101,61 +26215,66 @@ void FourRowTemplate::set_allocated_locationmessage(::proto::LocationMessage* lo clear_title(); if (locationmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::LocationMessage>::GetOwningArena(locationmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(locationmessage); if (message_arena != submessage_arena) { locationmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, locationmessage, submessage_arena); } set_has_locationmessage(); - title_.locationmessage_ = locationmessage; + _impl_.title_.locationmessage_ = locationmessage; } // @@protoc_insertion_point(field_set_allocated:proto.FourRowTemplate.locationMessage) } FourRowTemplate::FourRowTemplate(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - buttons_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.FourRowTemplate) } FourRowTemplate::FourRowTemplate(const FourRowTemplate& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - buttons_(from.buttons_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + FourRowTemplate* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.buttons_){from._impl_.buttons_} + , decltype(_impl_.content_){nullptr} + , decltype(_impl_.footer_){nullptr} + , decltype(_impl_.title_){} + , /*decltype(_impl_._oneof_case_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_content()) { - content_ = new ::proto::HighlyStructuredMessage(*from.content_); - } else { - content_ = nullptr; + _this->_impl_.content_ = new ::proto::HighlyStructuredMessage(*from._impl_.content_); } if (from._internal_has_footer()) { - footer_ = new ::proto::HighlyStructuredMessage(*from.footer_); - } else { - footer_ = nullptr; + _this->_impl_.footer_ = new ::proto::HighlyStructuredMessage(*from._impl_.footer_); } clear_has_title(); switch (from.title_case()) { case kDocumentMessage: { - _internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom(from._internal_documentmessage()); + _this->_internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom( + from._internal_documentmessage()); break; } case kHighlyStructuredMessage: { - _internal_mutable_highlystructuredmessage()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_highlystructuredmessage()); + _this->_internal_mutable_highlystructuredmessage()->::proto::HighlyStructuredMessage::MergeFrom( + from._internal_highlystructuredmessage()); break; } case kImageMessage: { - _internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom(from._internal_imagemessage()); + _this->_internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom( + from._internal_imagemessage()); break; } case kVideoMessage: { - _internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom(from._internal_videomessage()); + _this->_internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom( + from._internal_videomessage()); break; } case kLocationMessage: { - _internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom(from._internal_locationmessage()); + _this->_internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom( + from._internal_locationmessage()); break; } case TITLE_NOT_SET: { @@ -25165,38 +26284,43 @@ FourRowTemplate::FourRowTemplate(const FourRowTemplate& from) // @@protoc_insertion_point(copy_constructor:proto.FourRowTemplate) } -void FourRowTemplate::SharedCtor() { -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&content_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&footer_) - - reinterpret_cast<char*>(&content_)) + sizeof(footer_)); -clear_has_title(); +inline void FourRowTemplate::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.buttons_){arena} + , decltype(_impl_.content_){nullptr} + , decltype(_impl_.footer_){nullptr} + , decltype(_impl_.title_){} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_title(); } FourRowTemplate::~FourRowTemplate() { // @@protoc_insertion_point(destructor:proto.FourRowTemplate) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void FourRowTemplate::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete content_; - if (this != internal_default_instance()) delete footer_; + _impl_.buttons_.~RepeatedPtrField(); + if (this != internal_default_instance()) delete _impl_.content_; + if (this != internal_default_instance()) delete _impl_.footer_; if (has_title()) { clear_title(); } } -void FourRowTemplate::ArenaDtor(void* object) { - FourRowTemplate* _this = reinterpret_cast< FourRowTemplate* >(object); - (void)_this; -} -void FourRowTemplate::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void FourRowTemplate::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void FourRowTemplate::clear_title() { @@ -25204,31 +26328,31 @@ void FourRowTemplate::clear_title() { switch (title_case()) { case kDocumentMessage: { if (GetArenaForAllocation() == nullptr) { - delete title_.documentmessage_; + delete _impl_.title_.documentmessage_; } break; } case kHighlyStructuredMessage: { if (GetArenaForAllocation() == nullptr) { - delete title_.highlystructuredmessage_; + delete _impl_.title_.highlystructuredmessage_; } break; } case kImageMessage: { if (GetArenaForAllocation() == nullptr) { - delete title_.imagemessage_; + delete _impl_.title_.imagemessage_; } break; } case kVideoMessage: { if (GetArenaForAllocation() == nullptr) { - delete title_.videomessage_; + delete _impl_.title_.videomessage_; } break; } case kLocationMessage: { if (GetArenaForAllocation() == nullptr) { - delete title_.locationmessage_; + delete _impl_.title_.locationmessage_; } break; } @@ -25236,43 +26360,43 @@ void FourRowTemplate::clear_title() { break; } } - _oneof_case_[0] = TITLE_NOT_SET; + _impl_._oneof_case_[0] = TITLE_NOT_SET; } void FourRowTemplate::Clear() { // @@protoc_insertion_point(message_clear_start:proto.FourRowTemplate) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - buttons_.Clear(); - cached_has_bits = _has_bits_[0]; + _impl_.buttons_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(content_ != nullptr); - content_->Clear(); + GOOGLE_DCHECK(_impl_.content_ != nullptr); + _impl_.content_->Clear(); } if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(footer_ != nullptr); - footer_->Clear(); + GOOGLE_DCHECK(_impl_.footer_ != nullptr); + _impl_.footer_->Clear(); } } clear_title(); - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* FourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* FourRowTemplate::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .proto.DocumentMessage documentMessage = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_documentmessage(), ptr); CHK_(ptr); } else @@ -25280,7 +26404,7 @@ const char* FourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // .proto.HighlyStructuredMessage highlyStructuredMessage = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_highlystructuredmessage(), ptr); CHK_(ptr); } else @@ -25288,7 +26412,7 @@ const char* FourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // .proto.ImageMessage imageMessage = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_imagemessage(), ptr); CHK_(ptr); } else @@ -25296,7 +26420,7 @@ const char* FourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // .proto.VideoMessage videoMessage = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_videomessage(), ptr); CHK_(ptr); } else @@ -25304,7 +26428,7 @@ const char* FourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // .proto.LocationMessage locationMessage = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { ptr = ctx->ParseMessage(_internal_mutable_locationmessage(), ptr); CHK_(ptr); } else @@ -25312,7 +26436,7 @@ const char* FourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // optional .proto.HighlyStructuredMessage content = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { ptr = ctx->ParseMessage(_internal_mutable_content(), ptr); CHK_(ptr); } else @@ -25320,7 +26444,7 @@ const char* FourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // optional .proto.HighlyStructuredMessage footer = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { ptr = ctx->ParseMessage(_internal_mutable_footer(), ptr); CHK_(ptr); } else @@ -25328,7 +26452,7 @@ const char* FourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // repeated .proto.TemplateButton buttons = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { ptr -= 1; do { ptr += 1; @@ -25355,7 +26479,7 @@ const char* FourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -25363,77 +26487,70 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* FourRowTemplate::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* FourRowTemplate::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.FourRowTemplate) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (title_case()) { case kDocumentMessage: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::documentmessage(this), target, stream); + InternalWriteMessage(1, _Internal::documentmessage(this), + _Internal::documentmessage(this).GetCachedSize(), target, stream); break; } case kHighlyStructuredMessage: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::highlystructuredmessage(this), target, stream); + InternalWriteMessage(2, _Internal::highlystructuredmessage(this), + _Internal::highlystructuredmessage(this).GetCachedSize(), target, stream); break; } case kImageMessage: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::imagemessage(this), target, stream); + InternalWriteMessage(3, _Internal::imagemessage(this), + _Internal::imagemessage(this).GetCachedSize(), target, stream); break; } case kVideoMessage: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::videomessage(this), target, stream); + InternalWriteMessage(4, _Internal::videomessage(this), + _Internal::videomessage(this).GetCachedSize(), target, stream); break; } case kLocationMessage: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::locationmessage(this), target, stream); + InternalWriteMessage(5, _Internal::locationmessage(this), + _Internal::locationmessage(this).GetCachedSize(), target, stream); break; } default: ; } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.HighlyStructuredMessage content = 6; if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::content(this), target, stream); + InternalWriteMessage(6, _Internal::content(this), + _Internal::content(this).GetCachedSize(), target, stream); } // optional .proto.HighlyStructuredMessage footer = 7; if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::footer(this), target, stream); + InternalWriteMessage(7, _Internal::footer(this), + _Internal::footer(this).GetCachedSize(), target, stream); } // repeated .proto.TemplateButton buttons = 8; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->_internal_buttons_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast<unsigned>(this->_internal_buttons_size()); i < n; i++) { + const auto& repfield = this->_internal_buttons(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(8, this->_internal_buttons(i), target, stream); + InternalWriteMessage(8, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.FourRowTemplate) @@ -25444,31 +26561,31 @@ size_t FourRowTemplate::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.FourRowTemplate) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .proto.TemplateButton buttons = 8; total_size += 1UL * this->_internal_buttons_size(); - for (const auto& msg : this->buttons_) { + for (const auto& msg : this->_impl_.buttons_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional .proto.HighlyStructuredMessage content = 6; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *content_); + *_impl_.content_); } // optional .proto.HighlyStructuredMessage footer = 7; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *footer_); + *_impl_.footer_); } } @@ -25477,99 +26594,102 @@ size_t FourRowTemplate::ByteSizeLong() const { case kDocumentMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *title_.documentmessage_); + *_impl_.title_.documentmessage_); break; } // .proto.HighlyStructuredMessage highlyStructuredMessage = 2; case kHighlyStructuredMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *title_.highlystructuredmessage_); + *_impl_.title_.highlystructuredmessage_); break; } // .proto.ImageMessage imageMessage = 3; case kImageMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *title_.imagemessage_); + *_impl_.title_.imagemessage_); break; } // .proto.VideoMessage videoMessage = 4; case kVideoMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *title_.videomessage_); + *_impl_.title_.videomessage_); break; } // .proto.LocationMessage locationMessage = 5; case kLocationMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *title_.locationmessage_); + *_impl_.title_.locationmessage_); break; } case TITLE_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FourRowTemplate::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, FourRowTemplate::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FourRowTemplate::GetClassData() const { return &_class_data_; } -void FourRowTemplate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<FourRowTemplate *>(to)->MergeFrom( - static_cast<const FourRowTemplate &>(from)); -} - -void FourRowTemplate::MergeFrom(const FourRowTemplate& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.FourRowTemplate) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void FourRowTemplate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<FourRowTemplate*>(&to_msg); + auto& from = static_cast<const FourRowTemplate&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.FourRowTemplate) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - buttons_.MergeFrom(from.buttons_); - cached_has_bits = from._has_bits_[0]; + _this->_impl_.buttons_.MergeFrom(from._impl_.buttons_); + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _internal_mutable_content()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_content()); + _this->_internal_mutable_content()->::proto::HighlyStructuredMessage::MergeFrom( + from._internal_content()); } if (cached_has_bits & 0x00000002u) { - _internal_mutable_footer()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_footer()); + _this->_internal_mutable_footer()->::proto::HighlyStructuredMessage::MergeFrom( + from._internal_footer()); } } switch (from.title_case()) { case kDocumentMessage: { - _internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom(from._internal_documentmessage()); + _this->_internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom( + from._internal_documentmessage()); break; } case kHighlyStructuredMessage: { - _internal_mutable_highlystructuredmessage()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_highlystructuredmessage()); + _this->_internal_mutable_highlystructuredmessage()->::proto::HighlyStructuredMessage::MergeFrom( + from._internal_highlystructuredmessage()); break; } case kImageMessage: { - _internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom(from._internal_imagemessage()); + _this->_internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom( + from._internal_imagemessage()); break; } case kVideoMessage: { - _internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom(from._internal_videomessage()); + _this->_internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom( + from._internal_videomessage()); break; } case kLocationMessage: { - _internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom(from._internal_locationmessage()); + _this->_internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom( + from._internal_locationmessage()); break; } case TITLE_NOT_SET: { break; } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FourRowTemplate::CopyFrom(const FourRowTemplate& from) { @@ -25586,20 +26706,20 @@ bool FourRowTemplate::IsInitialized() const { void FourRowTemplate::InternalSwap(FourRowTemplate* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - buttons_.InternalSwap(&other->buttons_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.buttons_.InternalSwap(&other->_impl_.buttons_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(FourRowTemplate, footer_) - + sizeof(FourRowTemplate::footer_) - - PROTOBUF_FIELD_OFFSET(FourRowTemplate, content_)>( - reinterpret_cast<char*>(&content_), - reinterpret_cast<char*>(&other->content_)); - swap(title_, other->title_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + PROTOBUF_FIELD_OFFSET(FourRowTemplate, _impl_.footer_) + + sizeof(FourRowTemplate::_impl_.footer_) + - PROTOBUF_FIELD_OFFSET(FourRowTemplate, _impl_.content_)>( + reinterpret_cast<char*>(&_impl_.content_), + reinterpret_cast<char*>(&other->_impl_.content_)); + swap(_impl_.title_, other->_impl_.title_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata FourRowTemplate::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[51]); } @@ -25608,7 +26728,7 @@ void FourRowTemplate::InternalSwap(FourRowTemplate* other) { class HydratedFourRowTemplate::_Internal { public: - using HasBits = decltype(std::declval<HydratedFourRowTemplate>()._has_bits_); + using HasBits = decltype(std::declval<HydratedFourRowTemplate>()._impl_._has_bits_); static void set_has_hydratedcontenttext(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -25626,32 +26746,32 @@ class HydratedFourRowTemplate::_Internal { const ::proto::DocumentMessage& HydratedFourRowTemplate::_Internal::documentmessage(const HydratedFourRowTemplate* msg) { - return *msg->title_.documentmessage_; + return *msg->_impl_.title_.documentmessage_; } const ::proto::ImageMessage& HydratedFourRowTemplate::_Internal::imagemessage(const HydratedFourRowTemplate* msg) { - return *msg->title_.imagemessage_; + return *msg->_impl_.title_.imagemessage_; } const ::proto::VideoMessage& HydratedFourRowTemplate::_Internal::videomessage(const HydratedFourRowTemplate* msg) { - return *msg->title_.videomessage_; + return *msg->_impl_.title_.videomessage_; } const ::proto::LocationMessage& HydratedFourRowTemplate::_Internal::locationmessage(const HydratedFourRowTemplate* msg) { - return *msg->title_.locationmessage_; + return *msg->_impl_.title_.locationmessage_; } void HydratedFourRowTemplate::set_allocated_documentmessage(::proto::DocumentMessage* documentmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_title(); if (documentmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::DocumentMessage>::GetOwningArena(documentmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(documentmessage); if (message_arena != submessage_arena) { documentmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, documentmessage, submessage_arena); } set_has_documentmessage(); - title_.documentmessage_ = documentmessage; + _impl_.title_.documentmessage_ = documentmessage; } // @@protoc_insertion_point(field_set_allocated:proto.HydratedFourRowTemplate.documentMessage) } @@ -25660,13 +26780,13 @@ void HydratedFourRowTemplate::set_allocated_imagemessage(::proto::ImageMessage* clear_title(); if (imagemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ImageMessage>::GetOwningArena(imagemessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(imagemessage); if (message_arena != submessage_arena) { imagemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, imagemessage, submessage_arena); } set_has_imagemessage(); - title_.imagemessage_ = imagemessage; + _impl_.title_.imagemessage_ = imagemessage; } // @@protoc_insertion_point(field_set_allocated:proto.HydratedFourRowTemplate.imageMessage) } @@ -25675,13 +26795,13 @@ void HydratedFourRowTemplate::set_allocated_videomessage(::proto::VideoMessage* clear_title(); if (videomessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::VideoMessage>::GetOwningArena(videomessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(videomessage); if (message_arena != submessage_arena) { videomessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, videomessage, submessage_arena); } set_has_videomessage(); - title_.videomessage_ = videomessage; + _impl_.title_.videomessage_ = videomessage; } // @@protoc_insertion_point(field_set_allocated:proto.HydratedFourRowTemplate.videoMessage) } @@ -25690,66 +26810,84 @@ void HydratedFourRowTemplate::set_allocated_locationmessage(::proto::LocationMes clear_title(); if (locationmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::LocationMessage>::GetOwningArena(locationmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(locationmessage); if (message_arena != submessage_arena) { locationmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, locationmessage, submessage_arena); } set_has_locationmessage(); - title_.locationmessage_ = locationmessage; + _impl_.title_.locationmessage_ = locationmessage; } // @@protoc_insertion_point(field_set_allocated:proto.HydratedFourRowTemplate.locationMessage) } HydratedFourRowTemplate::HydratedFourRowTemplate(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - hydratedbuttons_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.HydratedFourRowTemplate) } HydratedFourRowTemplate::HydratedFourRowTemplate(const HydratedFourRowTemplate& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - hydratedbuttons_(from.hydratedbuttons_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + HydratedFourRowTemplate* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.hydratedbuttons_){from._impl_.hydratedbuttons_} + , decltype(_impl_.hydratedcontenttext_){} + , decltype(_impl_.hydratedfootertext_){} + , decltype(_impl_.templateid_){} + , decltype(_impl_.title_){} + , /*decltype(_impl_._oneof_case_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - hydratedcontenttext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.hydratedcontenttext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.hydratedcontenttext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_hydratedcontenttext()) { - hydratedcontenttext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_hydratedcontenttext(), - GetArenaForAllocation()); + _this->_impl_.hydratedcontenttext_.Set(from._internal_hydratedcontenttext(), + _this->GetArenaForAllocation()); } - hydratedfootertext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.hydratedfootertext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.hydratedfootertext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_hydratedfootertext()) { - hydratedfootertext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_hydratedfootertext(), - GetArenaForAllocation()); + _this->_impl_.hydratedfootertext_.Set(from._internal_hydratedfootertext(), + _this->GetArenaForAllocation()); } - templateid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.templateid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.templateid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_templateid()) { - templateid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_templateid(), - GetArenaForAllocation()); + _this->_impl_.templateid_.Set(from._internal_templateid(), + _this->GetArenaForAllocation()); } clear_has_title(); switch (from.title_case()) { case kDocumentMessage: { - _internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom(from._internal_documentmessage()); + _this->_internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom( + from._internal_documentmessage()); break; } case kHydratedTitleText: { - _internal_set_hydratedtitletext(from._internal_hydratedtitletext()); + _this->_internal_set_hydratedtitletext(from._internal_hydratedtitletext()); break; } case kImageMessage: { - _internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom(from._internal_imagemessage()); + _this->_internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom( + from._internal_imagemessage()); break; } case kVideoMessage: { - _internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom(from._internal_videomessage()); + _this->_internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom( + from._internal_videomessage()); break; } case kLocationMessage: { - _internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom(from._internal_locationmessage()); + _this->_internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom( + from._internal_locationmessage()); break; } case TITLE_NOT_SET: { @@ -25759,38 +26897,57 @@ HydratedFourRowTemplate::HydratedFourRowTemplate(const HydratedFourRowTemplate& // @@protoc_insertion_point(copy_constructor:proto.HydratedFourRowTemplate) } -void HydratedFourRowTemplate::SharedCtor() { -hydratedcontenttext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -hydratedfootertext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -templateid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -clear_has_title(); +inline void HydratedFourRowTemplate::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.hydratedbuttons_){arena} + , decltype(_impl_.hydratedcontenttext_){} + , decltype(_impl_.hydratedfootertext_){} + , decltype(_impl_.templateid_){} + , decltype(_impl_.title_){} + , /*decltype(_impl_._oneof_case_)*/{} + }; + _impl_.hydratedcontenttext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.hydratedcontenttext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.hydratedfootertext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.hydratedfootertext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.templateid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.templateid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + clear_has_title(); } HydratedFourRowTemplate::~HydratedFourRowTemplate() { // @@protoc_insertion_point(destructor:proto.HydratedFourRowTemplate) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void HydratedFourRowTemplate::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - hydratedcontenttext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - hydratedfootertext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - templateid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.hydratedbuttons_.~RepeatedPtrField(); + _impl_.hydratedcontenttext_.Destroy(); + _impl_.hydratedfootertext_.Destroy(); + _impl_.templateid_.Destroy(); if (has_title()) { clear_title(); } } -void HydratedFourRowTemplate::ArenaDtor(void* object) { - HydratedFourRowTemplate* _this = reinterpret_cast< HydratedFourRowTemplate* >(object); - (void)_this; -} -void HydratedFourRowTemplate::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void HydratedFourRowTemplate::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void HydratedFourRowTemplate::clear_title() { @@ -25798,29 +26955,29 @@ void HydratedFourRowTemplate::clear_title() { switch (title_case()) { case kDocumentMessage: { if (GetArenaForAllocation() == nullptr) { - delete title_.documentmessage_; + delete _impl_.title_.documentmessage_; } break; } case kHydratedTitleText: { - title_.hydratedtitletext_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); + _impl_.title_.hydratedtitletext_.Destroy(); break; } case kImageMessage: { if (GetArenaForAllocation() == nullptr) { - delete title_.imagemessage_; + delete _impl_.title_.imagemessage_; } break; } case kVideoMessage: { if (GetArenaForAllocation() == nullptr) { - delete title_.videomessage_; + delete _impl_.title_.videomessage_; } break; } case kLocationMessage: { if (GetArenaForAllocation() == nullptr) { - delete title_.locationmessage_; + delete _impl_.title_.locationmessage_; } break; } @@ -25828,44 +26985,44 @@ void HydratedFourRowTemplate::clear_title() { break; } } - _oneof_case_[0] = TITLE_NOT_SET; + _impl_._oneof_case_[0] = TITLE_NOT_SET; } void HydratedFourRowTemplate::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HydratedFourRowTemplate) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - hydratedbuttons_.Clear(); - cached_has_bits = _has_bits_[0]; + _impl_.hydratedbuttons_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - hydratedcontenttext_.ClearNonDefaultToEmpty(); + _impl_.hydratedcontenttext_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - hydratedfootertext_.ClearNonDefaultToEmpty(); + _impl_.hydratedfootertext_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - templateid_.ClearNonDefaultToEmpty(); + _impl_.templateid_.ClearNonDefaultToEmpty(); } } clear_title(); - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* HydratedFourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* HydratedFourRowTemplate::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .proto.DocumentMessage documentMessage = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_documentmessage(), ptr); CHK_(ptr); } else @@ -25873,19 +27030,19 @@ const char* HydratedFourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_ continue; // string hydratedTitleText = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_hydratedtitletext(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedFourRowTemplate.hydratedTitleText"); + ::_pbi::VerifyUTF8(str, "proto.HydratedFourRowTemplate.hydratedTitleText"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // .proto.ImageMessage imageMessage = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_imagemessage(), ptr); CHK_(ptr); } else @@ -25893,7 +27050,7 @@ const char* HydratedFourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_ continue; // .proto.VideoMessage videoMessage = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_videomessage(), ptr); CHK_(ptr); } else @@ -25901,7 +27058,7 @@ const char* HydratedFourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_ continue; // .proto.LocationMessage locationMessage = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { ptr = ctx->ParseMessage(_internal_mutable_locationmessage(), ptr); CHK_(ptr); } else @@ -25909,31 +27066,31 @@ const char* HydratedFourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_ continue; // optional string hydratedContentText = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { auto str = _internal_mutable_hydratedcontenttext(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedFourRowTemplate.hydratedContentText"); + ::_pbi::VerifyUTF8(str, "proto.HydratedFourRowTemplate.hydratedContentText"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string hydratedFooterText = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { auto str = _internal_mutable_hydratedfootertext(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedFourRowTemplate.hydratedFooterText"); + ::_pbi::VerifyUTF8(str, "proto.HydratedFourRowTemplate.hydratedFooterText"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // repeated .proto.HydratedTemplateButton hydratedButtons = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { ptr -= 1; do { ptr += 1; @@ -25946,13 +27103,13 @@ const char* HydratedFourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_ continue; // optional string templateId = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) { auto str = _internal_mutable_templateid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedFourRowTemplate.templateId"); + ::_pbi::VerifyUTF8(str, "proto.HydratedFourRowTemplate.templateId"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -25972,7 +27129,7 @@ const char* HydratedFourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_ CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -25980,18 +27137,17 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* HydratedFourRowTemplate::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* HydratedFourRowTemplate::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.HydratedFourRowTemplate) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (title_case()) { case kDocumentMessage: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::documentmessage(this), target, stream); + InternalWriteMessage(1, _Internal::documentmessage(this), + _Internal::documentmessage(this).GetCachedSize(), target, stream); break; } case kHydratedTitleText: { @@ -26004,29 +27160,26 @@ failure: break; } case kImageMessage: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::imagemessage(this), target, stream); + InternalWriteMessage(3, _Internal::imagemessage(this), + _Internal::imagemessage(this).GetCachedSize(), target, stream); break; } case kVideoMessage: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::videomessage(this), target, stream); + InternalWriteMessage(4, _Internal::videomessage(this), + _Internal::videomessage(this).GetCachedSize(), target, stream); break; } case kLocationMessage: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::locationmessage(this), target, stream); + InternalWriteMessage(5, _Internal::locationmessage(this), + _Internal::locationmessage(this).GetCachedSize(), target, stream); break; } default: ; } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string hydratedContentText = 6; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -26048,11 +27201,11 @@ failure: } // repeated .proto.HydratedTemplateButton hydratedButtons = 8; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->_internal_hydratedbuttons_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast<unsigned>(this->_internal_hydratedbuttons_size()); i < n; i++) { + const auto& repfield = this->_internal_hydratedbuttons(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(8, this->_internal_hydratedbuttons(i), target, stream); + InternalWriteMessage(8, repfield, repfield.GetCachedSize(), target, stream); } // optional string templateId = 9; @@ -26066,7 +27219,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HydratedFourRowTemplate) @@ -26077,18 +27230,18 @@ size_t HydratedFourRowTemplate::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.HydratedFourRowTemplate) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .proto.HydratedTemplateButton hydratedButtons = 8; total_size += 1UL * this->_internal_hydratedbuttons_size(); - for (const auto& msg : this->hydratedbuttons_) { + for (const auto& msg : this->_impl_.hydratedbuttons_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string hydratedContentText = 6; if (cached_has_bits & 0x00000001u) { @@ -26117,7 +27270,7 @@ size_t HydratedFourRowTemplate::ByteSizeLong() const { case kDocumentMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *title_.documentmessage_); + *_impl_.title_.documentmessage_); break; } // string hydratedTitleText = 2; @@ -26131,88 +27284,88 @@ size_t HydratedFourRowTemplate::ByteSizeLong() const { case kImageMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *title_.imagemessage_); + *_impl_.title_.imagemessage_); break; } // .proto.VideoMessage videoMessage = 4; case kVideoMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *title_.videomessage_); + *_impl_.title_.videomessage_); break; } // .proto.LocationMessage locationMessage = 5; case kLocationMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *title_.locationmessage_); + *_impl_.title_.locationmessage_); break; } case TITLE_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HydratedFourRowTemplate::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, HydratedFourRowTemplate::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HydratedFourRowTemplate::GetClassData() const { return &_class_data_; } -void HydratedFourRowTemplate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<HydratedFourRowTemplate *>(to)->MergeFrom( - static_cast<const HydratedFourRowTemplate &>(from)); -} - -void HydratedFourRowTemplate::MergeFrom(const HydratedFourRowTemplate& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedFourRowTemplate) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void HydratedFourRowTemplate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<HydratedFourRowTemplate*>(&to_msg); + auto& from = static_cast<const HydratedFourRowTemplate&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedFourRowTemplate) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - hydratedbuttons_.MergeFrom(from.hydratedbuttons_); - cached_has_bits = from._has_bits_[0]; + _this->_impl_.hydratedbuttons_.MergeFrom(from._impl_.hydratedbuttons_); + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _internal_set_hydratedcontenttext(from._internal_hydratedcontenttext()); + _this->_internal_set_hydratedcontenttext(from._internal_hydratedcontenttext()); } if (cached_has_bits & 0x00000002u) { - _internal_set_hydratedfootertext(from._internal_hydratedfootertext()); + _this->_internal_set_hydratedfootertext(from._internal_hydratedfootertext()); } if (cached_has_bits & 0x00000004u) { - _internal_set_templateid(from._internal_templateid()); + _this->_internal_set_templateid(from._internal_templateid()); } } switch (from.title_case()) { case kDocumentMessage: { - _internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom(from._internal_documentmessage()); + _this->_internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom( + from._internal_documentmessage()); break; } case kHydratedTitleText: { - _internal_set_hydratedtitletext(from._internal_hydratedtitletext()); + _this->_internal_set_hydratedtitletext(from._internal_hydratedtitletext()); break; } case kImageMessage: { - _internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom(from._internal_imagemessage()); + _this->_internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom( + from._internal_imagemessage()); break; } case kVideoMessage: { - _internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom(from._internal_videomessage()); + _this->_internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom( + from._internal_videomessage()); break; } case kLocationMessage: { - _internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom(from._internal_locationmessage()); + _this->_internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom( + from._internal_locationmessage()); break; } case TITLE_NOT_SET: { break; } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HydratedFourRowTemplate::CopyFrom(const HydratedFourRowTemplate& from) { @@ -26231,29 +27384,26 @@ void HydratedFourRowTemplate::InternalSwap(HydratedFourRowTemplate* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - hydratedbuttons_.InternalSwap(&other->hydratedbuttons_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.hydratedbuttons_.InternalSwap(&other->_impl_.hydratedbuttons_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &hydratedcontenttext_, lhs_arena, - &other->hydratedcontenttext_, rhs_arena + &_impl_.hydratedcontenttext_, lhs_arena, + &other->_impl_.hydratedcontenttext_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &hydratedfootertext_, lhs_arena, - &other->hydratedfootertext_, rhs_arena + &_impl_.hydratedfootertext_, lhs_arena, + &other->_impl_.hydratedfootertext_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &templateid_, lhs_arena, - &other->templateid_, rhs_arena + &_impl_.templateid_, lhs_arena, + &other->_impl_.templateid_, rhs_arena ); - swap(title_, other->title_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(_impl_.title_, other->_impl_.title_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata HydratedFourRowTemplate::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[52]); } @@ -26262,7 +27412,7 @@ void HydratedFourRowTemplate::InternalSwap(HydratedFourRowTemplate* other) { class TemplateMessage::_Internal { public: - using HasBits = decltype(std::declval<TemplateMessage>()._has_bits_); + using HasBits = decltype(std::declval<TemplateMessage>()._impl_._has_bits_); static const ::proto::ContextInfo& contextinfo(const TemplateMessage* msg); static void set_has_contextinfo(HasBits* has_bits) { (*has_bits)[0] |= 1u; @@ -26277,32 +27427,32 @@ class TemplateMessage::_Internal { const ::proto::ContextInfo& TemplateMessage::_Internal::contextinfo(const TemplateMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } const ::proto::HydratedFourRowTemplate& TemplateMessage::_Internal::hydratedtemplate(const TemplateMessage* msg) { - return *msg->hydratedtemplate_; + return *msg->_impl_.hydratedtemplate_; } const ::proto::FourRowTemplate& TemplateMessage::_Internal::fourrowtemplate(const TemplateMessage* msg) { - return *msg->format_.fourrowtemplate_; + return *msg->_impl_.format_.fourrowtemplate_; } const ::proto::HydratedFourRowTemplate& TemplateMessage::_Internal::hydratedfourrowtemplate(const TemplateMessage* msg) { - return *msg->format_.hydratedfourrowtemplate_; + return *msg->_impl_.format_.hydratedfourrowtemplate_; } void TemplateMessage::set_allocated_fourrowtemplate(::proto::FourRowTemplate* fourrowtemplate) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_format(); if (fourrowtemplate) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::FourRowTemplate>::GetOwningArena(fourrowtemplate); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(fourrowtemplate); if (message_arena != submessage_arena) { fourrowtemplate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, fourrowtemplate, submessage_arena); } set_has_fourrowtemplate(); - format_.fourrowtemplate_ = fourrowtemplate; + _impl_.format_.fourrowtemplate_ = fourrowtemplate; } // @@protoc_insertion_point(field_set_allocated:proto.TemplateMessage.fourRowTemplate) } @@ -26311,47 +27461,50 @@ void TemplateMessage::set_allocated_hydratedfourrowtemplate(::proto::HydratedFou clear_format(); if (hydratedfourrowtemplate) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HydratedFourRowTemplate>::GetOwningArena(hydratedfourrowtemplate); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(hydratedfourrowtemplate); if (message_arena != submessage_arena) { hydratedfourrowtemplate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, hydratedfourrowtemplate, submessage_arena); } set_has_hydratedfourrowtemplate(); - format_.hydratedfourrowtemplate_ = hydratedfourrowtemplate; + _impl_.format_.hydratedfourrowtemplate_ = hydratedfourrowtemplate; } // @@protoc_insertion_point(field_set_allocated:proto.TemplateMessage.hydratedFourRowTemplate) } TemplateMessage::TemplateMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.TemplateMessage) } TemplateMessage::TemplateMessage(const TemplateMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + TemplateMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.hydratedtemplate_){nullptr} + , decltype(_impl_.format_){} + , /*decltype(_impl_._oneof_case_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } if (from._internal_has_hydratedtemplate()) { - hydratedtemplate_ = new ::proto::HydratedFourRowTemplate(*from.hydratedtemplate_); - } else { - hydratedtemplate_ = nullptr; + _this->_impl_.hydratedtemplate_ = new ::proto::HydratedFourRowTemplate(*from._impl_.hydratedtemplate_); } clear_has_format(); switch (from.format_case()) { case kFourRowTemplate: { - _internal_mutable_fourrowtemplate()->::proto::FourRowTemplate::MergeFrom(from._internal_fourrowtemplate()); + _this->_internal_mutable_fourrowtemplate()->::proto::FourRowTemplate::MergeFrom( + from._internal_fourrowtemplate()); break; } case kHydratedFourRowTemplate: { - _internal_mutable_hydratedfourrowtemplate()->::proto::HydratedFourRowTemplate::MergeFrom(from._internal_hydratedfourrowtemplate()); + _this->_internal_mutable_hydratedfourrowtemplate()->::proto::HydratedFourRowTemplate::MergeFrom( + from._internal_hydratedfourrowtemplate()); break; } case FORMAT_NOT_SET: { @@ -26361,38 +27514,41 @@ TemplateMessage::TemplateMessage(const TemplateMessage& from) // @@protoc_insertion_point(copy_constructor:proto.TemplateMessage) } -void TemplateMessage::SharedCtor() { -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&hydratedtemplate_) - - reinterpret_cast<char*>(&contextinfo_)) + sizeof(hydratedtemplate_)); -clear_has_format(); +inline void TemplateMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.hydratedtemplate_){nullptr} + , decltype(_impl_.format_){} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_format(); } TemplateMessage::~TemplateMessage() { // @@protoc_insertion_point(destructor:proto.TemplateMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void TemplateMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete contextinfo_; - if (this != internal_default_instance()) delete hydratedtemplate_; + if (this != internal_default_instance()) delete _impl_.contextinfo_; + if (this != internal_default_instance()) delete _impl_.hydratedtemplate_; if (has_format()) { clear_format(); } } -void TemplateMessage::ArenaDtor(void* object) { - TemplateMessage* _this = reinterpret_cast< TemplateMessage* >(object); - (void)_this; -} -void TemplateMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void TemplateMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void TemplateMessage::clear_format() { @@ -26400,13 +27556,13 @@ void TemplateMessage::clear_format() { switch (format_case()) { case kFourRowTemplate: { if (GetArenaForAllocation() == nullptr) { - delete format_.fourrowtemplate_; + delete _impl_.format_.fourrowtemplate_; } break; } case kHydratedFourRowTemplate: { if (GetArenaForAllocation() == nullptr) { - delete format_.hydratedfourrowtemplate_; + delete _impl_.format_.hydratedfourrowtemplate_; } break; } @@ -26414,42 +27570,42 @@ void TemplateMessage::clear_format() { break; } } - _oneof_case_[0] = FORMAT_NOT_SET; + _impl_._oneof_case_[0] = FORMAT_NOT_SET; } void TemplateMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.TemplateMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(hydratedtemplate_ != nullptr); - hydratedtemplate_->Clear(); + GOOGLE_DCHECK(_impl_.hydratedtemplate_ != nullptr); + _impl_.hydratedtemplate_->Clear(); } } clear_format(); - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* TemplateMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* TemplateMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .proto.FourRowTemplate fourRowTemplate = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_fourrowtemplate(), ptr); CHK_(ptr); } else @@ -26457,7 +27613,7 @@ const char* TemplateMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // .proto.HydratedFourRowTemplate hydratedFourRowTemplate = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_hydratedfourrowtemplate(), ptr); CHK_(ptr); } else @@ -26465,7 +27621,7 @@ const char* TemplateMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // optional .proto.ContextInfo contextInfo = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -26473,7 +27629,7 @@ const char* TemplateMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // optional .proto.HydratedFourRowTemplate hydratedTemplate = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_hydratedtemplate(), ptr); CHK_(ptr); } else @@ -26495,7 +27651,7 @@ const char* TemplateMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -26503,48 +27659,44 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* TemplateMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* TemplateMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.TemplateMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (format_case()) { case kFourRowTemplate: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::fourrowtemplate(this), target, stream); + InternalWriteMessage(1, _Internal::fourrowtemplate(this), + _Internal::fourrowtemplate(this).GetCachedSize(), target, stream); break; } case kHydratedFourRowTemplate: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::hydratedfourrowtemplate(this), target, stream); + InternalWriteMessage(2, _Internal::hydratedfourrowtemplate(this), + _Internal::hydratedfourrowtemplate(this).GetCachedSize(), target, stream); break; } default: ; } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.ContextInfo contextInfo = 3; if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(3, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } // optional .proto.HydratedFourRowTemplate hydratedTemplate = 4; if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::hydratedtemplate(this), target, stream); + InternalWriteMessage(4, _Internal::hydratedtemplate(this), + _Internal::hydratedtemplate(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.TemplateMessage) @@ -26555,24 +27707,24 @@ size_t TemplateMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.TemplateMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional .proto.ContextInfo contextInfo = 3; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } // optional .proto.HydratedFourRowTemplate hydratedTemplate = 4; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *hydratedtemplate_); + *_impl_.hydratedtemplate_); } } @@ -26581,65 +27733,65 @@ size_t TemplateMessage::ByteSizeLong() const { case kFourRowTemplate: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *format_.fourrowtemplate_); + *_impl_.format_.fourrowtemplate_); break; } // .proto.HydratedFourRowTemplate hydratedFourRowTemplate = 2; case kHydratedFourRowTemplate: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *format_.hydratedfourrowtemplate_); + *_impl_.format_.hydratedfourrowtemplate_); break; } case FORMAT_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TemplateMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, TemplateMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TemplateMessage::GetClassData() const { return &_class_data_; } -void TemplateMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<TemplateMessage *>(to)->MergeFrom( - static_cast<const TemplateMessage &>(from)); -} - -void TemplateMessage::MergeFrom(const TemplateMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.TemplateMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void TemplateMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<TemplateMessage*>(&to_msg); + auto& from = static_cast<const TemplateMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.TemplateMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } if (cached_has_bits & 0x00000002u) { - _internal_mutable_hydratedtemplate()->::proto::HydratedFourRowTemplate::MergeFrom(from._internal_hydratedtemplate()); + _this->_internal_mutable_hydratedtemplate()->::proto::HydratedFourRowTemplate::MergeFrom( + from._internal_hydratedtemplate()); } } switch (from.format_case()) { case kFourRowTemplate: { - _internal_mutable_fourrowtemplate()->::proto::FourRowTemplate::MergeFrom(from._internal_fourrowtemplate()); + _this->_internal_mutable_fourrowtemplate()->::proto::FourRowTemplate::MergeFrom( + from._internal_fourrowtemplate()); break; } case kHydratedFourRowTemplate: { - _internal_mutable_hydratedfourrowtemplate()->::proto::HydratedFourRowTemplate::MergeFrom(from._internal_hydratedfourrowtemplate()); + _this->_internal_mutable_hydratedfourrowtemplate()->::proto::HydratedFourRowTemplate::MergeFrom( + from._internal_hydratedfourrowtemplate()); break; } case FORMAT_NOT_SET: { break; } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TemplateMessage::CopyFrom(const TemplateMessage& from) { @@ -26656,19 +27808,19 @@ bool TemplateMessage::IsInitialized() const { void TemplateMessage::InternalSwap(TemplateMessage* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(TemplateMessage, hydratedtemplate_) - + sizeof(TemplateMessage::hydratedtemplate_) - - PROTOBUF_FIELD_OFFSET(TemplateMessage, contextinfo_)>( - reinterpret_cast<char*>(&contextinfo_), - reinterpret_cast<char*>(&other->contextinfo_)); - swap(format_, other->format_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + PROTOBUF_FIELD_OFFSET(TemplateMessage, _impl_.hydratedtemplate_) + + sizeof(TemplateMessage::_impl_.hydratedtemplate_) + - PROTOBUF_FIELD_OFFSET(TemplateMessage, _impl_.contextinfo_)>( + reinterpret_cast<char*>(&_impl_.contextinfo_), + reinterpret_cast<char*>(&other->_impl_.contextinfo_)); + swap(_impl_.format_, other->_impl_.format_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata TemplateMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[53]); } @@ -26677,7 +27829,7 @@ void TemplateMessage::InternalSwap(TemplateMessage* other) { class TemplateButtonReplyMessage::_Internal { public: - using HasBits = decltype(std::declval<TemplateButtonReplyMessage>()._has_bits_); + using HasBits = decltype(std::declval<TemplateButtonReplyMessage>()._impl_._has_bits_); static void set_has_selectedid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -26695,131 +27847,149 @@ class TemplateButtonReplyMessage::_Internal { const ::proto::ContextInfo& TemplateButtonReplyMessage::_Internal::contextinfo(const TemplateButtonReplyMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } TemplateButtonReplyMessage::TemplateButtonReplyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.TemplateButtonReplyMessage) } TemplateButtonReplyMessage::TemplateButtonReplyMessage(const TemplateButtonReplyMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + TemplateButtonReplyMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.selectedid_){} + , decltype(_impl_.selecteddisplaytext_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.selectedindex_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - selectedid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.selectedid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.selectedid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_selectedid()) { - selectedid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_selectedid(), - GetArenaForAllocation()); + _this->_impl_.selectedid_.Set(from._internal_selectedid(), + _this->GetArenaForAllocation()); } - selecteddisplaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.selecteddisplaytext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.selecteddisplaytext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_selecteddisplaytext()) { - selecteddisplaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_selecteddisplaytext(), - GetArenaForAllocation()); + _this->_impl_.selecteddisplaytext_.Set(from._internal_selecteddisplaytext(), + _this->GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } - selectedindex_ = from.selectedindex_; + _this->_impl_.selectedindex_ = from._impl_.selectedindex_; // @@protoc_insertion_point(copy_constructor:proto.TemplateButtonReplyMessage) } -void TemplateButtonReplyMessage::SharedCtor() { -selectedid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -selecteddisplaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&selectedindex_) - - reinterpret_cast<char*>(&contextinfo_)) + sizeof(selectedindex_)); +inline void TemplateButtonReplyMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.selectedid_){} + , decltype(_impl_.selecteddisplaytext_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.selectedindex_){0u} + }; + _impl_.selectedid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.selectedid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.selecteddisplaytext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.selecteddisplaytext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } TemplateButtonReplyMessage::~TemplateButtonReplyMessage() { // @@protoc_insertion_point(destructor:proto.TemplateButtonReplyMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void TemplateButtonReplyMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - selectedid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - selecteddisplaytext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete contextinfo_; + _impl_.selectedid_.Destroy(); + _impl_.selecteddisplaytext_.Destroy(); + if (this != internal_default_instance()) delete _impl_.contextinfo_; } -void TemplateButtonReplyMessage::ArenaDtor(void* object) { - TemplateButtonReplyMessage* _this = reinterpret_cast< TemplateButtonReplyMessage* >(object); - (void)_this; -} -void TemplateButtonReplyMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void TemplateButtonReplyMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void TemplateButtonReplyMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.TemplateButtonReplyMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - selectedid_.ClearNonDefaultToEmpty(); + _impl_.selectedid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - selecteddisplaytext_.ClearNonDefaultToEmpty(); + _impl_.selecteddisplaytext_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } } - selectedindex_ = 0u; - _has_bits_.Clear(); + _impl_.selectedindex_ = 0u; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* TemplateButtonReplyMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* TemplateButtonReplyMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string selectedId = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_selectedid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.TemplateButtonReplyMessage.selectedId"); + ::_pbi::VerifyUTF8(str, "proto.TemplateButtonReplyMessage.selectedId"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string selectedDisplayText = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_selecteddisplaytext(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.TemplateButtonReplyMessage.selectedDisplayText"); + ::_pbi::VerifyUTF8(str, "proto.TemplateButtonReplyMessage.selectedDisplayText"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ContextInfo contextInfo = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -26827,9 +27997,9 @@ const char* TemplateButtonReplyMessage::_InternalParse(const char* ptr, ::PROTOB continue; // optional uint32 selectedIndex = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { _Internal::set_has_selectedindex(&has_bits); - selectedindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.selectedindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -26850,7 +28020,7 @@ const char* TemplateButtonReplyMessage::_InternalParse(const char* ptr, ::PROTOB CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -26858,13 +28028,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* TemplateButtonReplyMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* TemplateButtonReplyMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.TemplateButtonReplyMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string selectedId = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -26887,20 +28057,19 @@ failure: // optional .proto.ContextInfo contextInfo = 3; if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(3, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } // optional uint32 selectedIndex = 4; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_selectedindex(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_selectedindex(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.TemplateButtonReplyMessage) @@ -26911,11 +28080,11 @@ size_t TemplateButtonReplyMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.TemplateButtonReplyMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional string selectedId = 1; if (cached_has_bits & 0x00000001u) { @@ -26935,54 +28104,51 @@ size_t TemplateButtonReplyMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } // optional uint32 selectedIndex = 4; if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_selectedindex()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_selectedindex()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TemplateButtonReplyMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, TemplateButtonReplyMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TemplateButtonReplyMessage::GetClassData() const { return &_class_data_; } -void TemplateButtonReplyMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<TemplateButtonReplyMessage *>(to)->MergeFrom( - static_cast<const TemplateButtonReplyMessage &>(from)); -} - -void TemplateButtonReplyMessage::MergeFrom(const TemplateButtonReplyMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.TemplateButtonReplyMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void TemplateButtonReplyMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<TemplateButtonReplyMessage*>(&to_msg); + auto& from = static_cast<const TemplateButtonReplyMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.TemplateButtonReplyMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - _internal_set_selectedid(from._internal_selectedid()); + _this->_internal_set_selectedid(from._internal_selectedid()); } if (cached_has_bits & 0x00000002u) { - _internal_set_selecteddisplaytext(from._internal_selecteddisplaytext()); + _this->_internal_set_selecteddisplaytext(from._internal_selecteddisplaytext()); } if (cached_has_bits & 0x00000004u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } if (cached_has_bits & 0x00000008u) { - selectedindex_ = from.selectedindex_; + _this->_impl_.selectedindex_ = from._impl_.selectedindex_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TemplateButtonReplyMessage::CopyFrom(const TemplateButtonReplyMessage& from) { @@ -27001,27 +28167,25 @@ void TemplateButtonReplyMessage::InternalSwap(TemplateButtonReplyMessage* other) auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &selectedid_, lhs_arena, - &other->selectedid_, rhs_arena + &_impl_.selectedid_, lhs_arena, + &other->_impl_.selectedid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &selecteddisplaytext_, lhs_arena, - &other->selecteddisplaytext_, rhs_arena + &_impl_.selecteddisplaytext_, lhs_arena, + &other->_impl_.selecteddisplaytext_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(TemplateButtonReplyMessage, selectedindex_) - + sizeof(TemplateButtonReplyMessage::selectedindex_) - - PROTOBUF_FIELD_OFFSET(TemplateButtonReplyMessage, contextinfo_)>( - reinterpret_cast<char*>(&contextinfo_), - reinterpret_cast<char*>(&other->contextinfo_)); + PROTOBUF_FIELD_OFFSET(TemplateButtonReplyMessage, _impl_.selectedindex_) + + sizeof(TemplateButtonReplyMessage::_impl_.selectedindex_) + - PROTOBUF_FIELD_OFFSET(TemplateButtonReplyMessage, _impl_.contextinfo_)>( + reinterpret_cast<char*>(&_impl_.contextinfo_), + reinterpret_cast<char*>(&other->_impl_.contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata TemplateButtonReplyMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[54]); } @@ -27030,7 +28194,7 @@ void TemplateButtonReplyMessage::InternalSwap(TemplateButtonReplyMessage* other) class CatalogSnapshot::_Internal { public: - using HasBits = decltype(std::declval<CatalogSnapshot>()._has_bits_); + using HasBits = decltype(std::declval<CatalogSnapshot>()._impl_._has_bits_); static const ::proto::ImageMessage& catalogimage(const CatalogSnapshot* msg); static void set_has_catalogimage(HasBits* has_bits) { (*has_bits)[0] |= 4u; @@ -27045,102 +28209,121 @@ class CatalogSnapshot::_Internal { const ::proto::ImageMessage& CatalogSnapshot::_Internal::catalogimage(const CatalogSnapshot* msg) { - return *msg->catalogimage_; + return *msg->_impl_.catalogimage_; } CatalogSnapshot::CatalogSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.CatalogSnapshot) } CatalogSnapshot::CatalogSnapshot(const CatalogSnapshot& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + CatalogSnapshot* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.title_){} + , decltype(_impl_.description_){} + , decltype(_impl_.catalogimage_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_title()) { - title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArenaForAllocation()); + _this->_impl_.title_.Set(from._internal_title(), + _this->GetArenaForAllocation()); } - description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_description()) { - description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), - GetArenaForAllocation()); + _this->_impl_.description_.Set(from._internal_description(), + _this->GetArenaForAllocation()); } if (from._internal_has_catalogimage()) { - catalogimage_ = new ::proto::ImageMessage(*from.catalogimage_); - } else { - catalogimage_ = nullptr; + _this->_impl_.catalogimage_ = new ::proto::ImageMessage(*from._impl_.catalogimage_); } // @@protoc_insertion_point(copy_constructor:proto.CatalogSnapshot) } -void CatalogSnapshot::SharedCtor() { -title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -catalogimage_ = nullptr; +inline void CatalogSnapshot::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.title_){} + , decltype(_impl_.description_){} + , decltype(_impl_.catalogimage_){nullptr} + }; + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } CatalogSnapshot::~CatalogSnapshot() { // @@protoc_insertion_point(destructor:proto.CatalogSnapshot) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void CatalogSnapshot::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete catalogimage_; + _impl_.title_.Destroy(); + _impl_.description_.Destroy(); + if (this != internal_default_instance()) delete _impl_.catalogimage_; } -void CatalogSnapshot::ArenaDtor(void* object) { - CatalogSnapshot* _this = reinterpret_cast< CatalogSnapshot* >(object); - (void)_this; -} -void CatalogSnapshot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void CatalogSnapshot::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void CatalogSnapshot::Clear() { // @@protoc_insertion_point(message_clear_start:proto.CatalogSnapshot) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - title_.ClearNonDefaultToEmpty(); + _impl_.title_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - description_.ClearNonDefaultToEmpty(); + _impl_.description_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(catalogimage_ != nullptr); - catalogimage_->Clear(); + GOOGLE_DCHECK(_impl_.catalogimage_ != nullptr); + _impl_.catalogimage_->Clear(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* CatalogSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* CatalogSnapshot::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional .proto.ImageMessage catalogImage = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_catalogimage(), ptr); CHK_(ptr); } else @@ -27148,25 +28331,25 @@ const char* CatalogSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // optional string title = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_title(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.CatalogSnapshot.title"); + ::_pbi::VerifyUTF8(str, "proto.CatalogSnapshot.title"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string description = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { auto str = _internal_mutable_description(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.CatalogSnapshot.description"); + ::_pbi::VerifyUTF8(str, "proto.CatalogSnapshot.description"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -27186,7 +28369,7 @@ const char* CatalogSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -27194,19 +28377,18 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* CatalogSnapshot::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* CatalogSnapshot::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.CatalogSnapshot) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.ImageMessage catalogImage = 1; if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::catalogimage(this), target, stream); + InternalWriteMessage(1, _Internal::catalogimage(this), + _Internal::catalogimage(this).GetCachedSize(), target, stream); } // optional string title = 2; @@ -27230,7 +28412,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.CatalogSnapshot) @@ -27241,11 +28423,11 @@ size_t CatalogSnapshot::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.CatalogSnapshot) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string title = 2; if (cached_has_bits & 0x00000001u) { @@ -27265,45 +28447,42 @@ size_t CatalogSnapshot::ByteSizeLong() const { if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *catalogimage_); + *_impl_.catalogimage_); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CatalogSnapshot::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, CatalogSnapshot::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CatalogSnapshot::GetClassData() const { return &_class_data_; } -void CatalogSnapshot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<CatalogSnapshot *>(to)->MergeFrom( - static_cast<const CatalogSnapshot &>(from)); -} - -void CatalogSnapshot::MergeFrom(const CatalogSnapshot& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.CatalogSnapshot) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void CatalogSnapshot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<CatalogSnapshot*>(&to_msg); + auto& from = static_cast<const CatalogSnapshot&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.CatalogSnapshot) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _internal_set_title(from._internal_title()); + _this->_internal_set_title(from._internal_title()); } if (cached_has_bits & 0x00000002u) { - _internal_set_description(from._internal_description()); + _this->_internal_set_description(from._internal_description()); } if (cached_has_bits & 0x00000004u) { - _internal_mutable_catalogimage()->::proto::ImageMessage::MergeFrom(from._internal_catalogimage()); + _this->_internal_mutable_catalogimage()->::proto::ImageMessage::MergeFrom( + from._internal_catalogimage()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CatalogSnapshot::CopyFrom(const CatalogSnapshot& from) { @@ -27322,22 +28501,20 @@ void CatalogSnapshot::InternalSwap(CatalogSnapshot* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &title_, lhs_arena, - &other->title_, rhs_arena + &_impl_.title_, lhs_arena, + &other->_impl_.title_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &description_, lhs_arena, - &other->description_, rhs_arena + &_impl_.description_, lhs_arena, + &other->_impl_.description_, rhs_arena ); - swap(catalogimage_, other->catalogimage_); + swap(_impl_.catalogimage_, other->_impl_.catalogimage_); } ::PROTOBUF_NAMESPACE_ID::Metadata CatalogSnapshot::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[55]); } @@ -27346,7 +28523,7 @@ void CatalogSnapshot::InternalSwap(CatalogSnapshot* other) { class ProductSnapshot::_Internal { public: - using HasBits = decltype(std::declval<ProductSnapshot>()._has_bits_); + using HasBits = decltype(std::declval<ProductSnapshot>()._impl_._has_bits_); static const ::proto::ImageMessage& productimage(const ProductSnapshot* msg); static void set_has_productimage(HasBits* has_bits) { (*has_bits)[0] |= 128u; @@ -27382,163 +28559,223 @@ class ProductSnapshot::_Internal { const ::proto::ImageMessage& ProductSnapshot::_Internal::productimage(const ProductSnapshot* msg) { - return *msg->productimage_; + return *msg->_impl_.productimage_; } ProductSnapshot::ProductSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.ProductSnapshot) } ProductSnapshot::ProductSnapshot(const ProductSnapshot& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + ProductSnapshot* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.productid_){} + , decltype(_impl_.title_){} + , decltype(_impl_.description_){} + , decltype(_impl_.currencycode_){} + , decltype(_impl_.retailerid_){} + , decltype(_impl_.url_){} + , decltype(_impl_.firstimageid_){} + , decltype(_impl_.productimage_){nullptr} + , decltype(_impl_.priceamount1000_){} + , decltype(_impl_.productimagecount_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - productid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.productid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.productid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_productid()) { - productid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_productid(), - GetArenaForAllocation()); + _this->_impl_.productid_.Set(from._internal_productid(), + _this->GetArenaForAllocation()); } - title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_title()) { - title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArenaForAllocation()); + _this->_impl_.title_.Set(from._internal_title(), + _this->GetArenaForAllocation()); } - description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_description()) { - description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), - GetArenaForAllocation()); + _this->_impl_.description_.Set(from._internal_description(), + _this->GetArenaForAllocation()); } - currencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.currencycode_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.currencycode_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_currencycode()) { - currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_currencycode(), - GetArenaForAllocation()); + _this->_impl_.currencycode_.Set(from._internal_currencycode(), + _this->GetArenaForAllocation()); } - retailerid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.retailerid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.retailerid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_retailerid()) { - retailerid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_retailerid(), - GetArenaForAllocation()); + _this->_impl_.retailerid_.Set(from._internal_retailerid(), + _this->GetArenaForAllocation()); } - url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_url()) { - url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), - GetArenaForAllocation()); + _this->_impl_.url_.Set(from._internal_url(), + _this->GetArenaForAllocation()); } - firstimageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.firstimageid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.firstimageid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_firstimageid()) { - firstimageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_firstimageid(), - GetArenaForAllocation()); + _this->_impl_.firstimageid_.Set(from._internal_firstimageid(), + _this->GetArenaForAllocation()); } if (from._internal_has_productimage()) { - productimage_ = new ::proto::ImageMessage(*from.productimage_); - } else { - productimage_ = nullptr; + _this->_impl_.productimage_ = new ::proto::ImageMessage(*from._impl_.productimage_); } - ::memcpy(&priceamount1000_, &from.priceamount1000_, - static_cast<size_t>(reinterpret_cast<char*>(&productimagecount_) - - reinterpret_cast<char*>(&priceamount1000_)) + sizeof(productimagecount_)); + ::memcpy(&_impl_.priceamount1000_, &from._impl_.priceamount1000_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.productimagecount_) - + reinterpret_cast<char*>(&_impl_.priceamount1000_)) + sizeof(_impl_.productimagecount_)); // @@protoc_insertion_point(copy_constructor:proto.ProductSnapshot) } -void ProductSnapshot::SharedCtor() { -productid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -currencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -retailerid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -firstimageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&productimage_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&productimagecount_) - - reinterpret_cast<char*>(&productimage_)) + sizeof(productimagecount_)); +inline void ProductSnapshot::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.productid_){} + , decltype(_impl_.title_){} + , decltype(_impl_.description_){} + , decltype(_impl_.currencycode_){} + , decltype(_impl_.retailerid_){} + , decltype(_impl_.url_){} + , decltype(_impl_.firstimageid_){} + , decltype(_impl_.productimage_){nullptr} + , decltype(_impl_.priceamount1000_){int64_t{0}} + , decltype(_impl_.productimagecount_){0u} + }; + _impl_.productid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.productid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.currencycode_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.currencycode_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.retailerid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.retailerid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.url_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.firstimageid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.firstimageid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ProductSnapshot::~ProductSnapshot() { // @@protoc_insertion_point(destructor:proto.ProductSnapshot) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void ProductSnapshot::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - productid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - currencycode_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - retailerid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - firstimageid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete productimage_; + _impl_.productid_.Destroy(); + _impl_.title_.Destroy(); + _impl_.description_.Destroy(); + _impl_.currencycode_.Destroy(); + _impl_.retailerid_.Destroy(); + _impl_.url_.Destroy(); + _impl_.firstimageid_.Destroy(); + if (this != internal_default_instance()) delete _impl_.productimage_; } -void ProductSnapshot::ArenaDtor(void* object) { - ProductSnapshot* _this = reinterpret_cast< ProductSnapshot* >(object); - (void)_this; -} -void ProductSnapshot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void ProductSnapshot::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ProductSnapshot::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ProductSnapshot) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - productid_.ClearNonDefaultToEmpty(); + _impl_.productid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - title_.ClearNonDefaultToEmpty(); + _impl_.title_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - description_.ClearNonDefaultToEmpty(); + _impl_.description_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - currencycode_.ClearNonDefaultToEmpty(); + _impl_.currencycode_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { - retailerid_.ClearNonDefaultToEmpty(); + _impl_.retailerid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { - url_.ClearNonDefaultToEmpty(); + _impl_.url_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { - firstimageid_.ClearNonDefaultToEmpty(); + _impl_.firstimageid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { - GOOGLE_DCHECK(productimage_ != nullptr); - productimage_->Clear(); + GOOGLE_DCHECK(_impl_.productimage_ != nullptr); + _impl_.productimage_->Clear(); } } if (cached_has_bits & 0x00000300u) { - ::memset(&priceamount1000_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&productimagecount_) - - reinterpret_cast<char*>(&priceamount1000_)) + sizeof(productimagecount_)); + ::memset(&_impl_.priceamount1000_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.productimagecount_) - + reinterpret_cast<char*>(&_impl_.priceamount1000_)) + sizeof(_impl_.productimagecount_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ProductSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ProductSnapshot::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional .proto.ImageMessage productImage = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_productimage(), ptr); CHK_(ptr); } else @@ -27546,103 +28783,103 @@ const char* ProductSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC continue; // optional string productId = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_productid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ProductSnapshot.productId"); + ::_pbi::VerifyUTF8(str, "proto.ProductSnapshot.productId"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string title = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { auto str = _internal_mutable_title(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ProductSnapshot.title"); + ::_pbi::VerifyUTF8(str, "proto.ProductSnapshot.title"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string description = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { auto str = _internal_mutable_description(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ProductSnapshot.description"); + ::_pbi::VerifyUTF8(str, "proto.ProductSnapshot.description"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string currencyCode = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { auto str = _internal_mutable_currencycode(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ProductSnapshot.currencyCode"); + ::_pbi::VerifyUTF8(str, "proto.ProductSnapshot.currencyCode"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional int64 priceAmount1000 = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) { _Internal::set_has_priceamount1000(&has_bits); - priceamount1000_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.priceamount1000_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string retailerId = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { auto str = _internal_mutable_retailerid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ProductSnapshot.retailerId"); + ::_pbi::VerifyUTF8(str, "proto.ProductSnapshot.retailerId"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string url = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { auto str = _internal_mutable_url(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ProductSnapshot.url"); + ::_pbi::VerifyUTF8(str, "proto.ProductSnapshot.url"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 productImageCount = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) { _Internal::set_has_productimagecount(&has_bits); - productimagecount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.productimagecount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string firstImageId = 11; case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) { auto str = _internal_mutable_firstimageid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ProductSnapshot.firstImageId"); + ::_pbi::VerifyUTF8(str, "proto.ProductSnapshot.firstImageId"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -27662,7 +28899,7 @@ const char* ProductSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -27670,19 +28907,18 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ProductSnapshot::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* ProductSnapshot::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.ProductSnapshot) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.ImageMessage productImage = 1; if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::productimage(this), target, stream); + InternalWriteMessage(1, _Internal::productimage(this), + _Internal::productimage(this).GetCachedSize(), target, stream); } // optional string productId = 2; @@ -27728,7 +28964,7 @@ failure: // optional int64 priceAmount1000 = 6; if (cached_has_bits & 0x00000100u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_priceamount1000(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(6, this->_internal_priceamount1000(), target); } // optional string retailerId = 7; @@ -27754,7 +28990,7 @@ failure: // optional uint32 productImageCount = 9; if (cached_has_bits & 0x00000200u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(9, this->_internal_productimagecount(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_productimagecount(), target); } // optional string firstImageId = 11; @@ -27768,7 +29004,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ProductSnapshot) @@ -27779,11 +29015,11 @@ size_t ProductSnapshot::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.ProductSnapshot) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string productId = 2; if (cached_has_bits & 0x00000001u) { @@ -27838,81 +29074,78 @@ size_t ProductSnapshot::ByteSizeLong() const { if (cached_has_bits & 0x00000080u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *productimage_); + *_impl_.productimage_); } } if (cached_has_bits & 0x00000300u) { // optional int64 priceAmount1000 = 6; if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_priceamount1000()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_priceamount1000()); } // optional uint32 productImageCount = 9; if (cached_has_bits & 0x00000200u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_productimagecount()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_productimagecount()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProductSnapshot::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ProductSnapshot::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProductSnapshot::GetClassData() const { return &_class_data_; } -void ProductSnapshot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<ProductSnapshot *>(to)->MergeFrom( - static_cast<const ProductSnapshot &>(from)); -} - -void ProductSnapshot::MergeFrom(const ProductSnapshot& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.ProductSnapshot) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void ProductSnapshot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<ProductSnapshot*>(&to_msg); + auto& from = static_cast<const ProductSnapshot&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.ProductSnapshot) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_set_productid(from._internal_productid()); + _this->_internal_set_productid(from._internal_productid()); } if (cached_has_bits & 0x00000002u) { - _internal_set_title(from._internal_title()); + _this->_internal_set_title(from._internal_title()); } if (cached_has_bits & 0x00000004u) { - _internal_set_description(from._internal_description()); + _this->_internal_set_description(from._internal_description()); } if (cached_has_bits & 0x00000008u) { - _internal_set_currencycode(from._internal_currencycode()); + _this->_internal_set_currencycode(from._internal_currencycode()); } if (cached_has_bits & 0x00000010u) { - _internal_set_retailerid(from._internal_retailerid()); + _this->_internal_set_retailerid(from._internal_retailerid()); } if (cached_has_bits & 0x00000020u) { - _internal_set_url(from._internal_url()); + _this->_internal_set_url(from._internal_url()); } if (cached_has_bits & 0x00000040u) { - _internal_set_firstimageid(from._internal_firstimageid()); + _this->_internal_set_firstimageid(from._internal_firstimageid()); } if (cached_has_bits & 0x00000080u) { - _internal_mutable_productimage()->::proto::ImageMessage::MergeFrom(from._internal_productimage()); + _this->_internal_mutable_productimage()->::proto::ImageMessage::MergeFrom( + from._internal_productimage()); } } if (cached_has_bits & 0x00000300u) { if (cached_has_bits & 0x00000100u) { - priceamount1000_ = from.priceamount1000_; + _this->_impl_.priceamount1000_ = from._impl_.priceamount1000_; } if (cached_has_bits & 0x00000200u) { - productimagecount_ = from.productimagecount_; + _this->_impl_.productimagecount_ = from._impl_.productimagecount_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ProductSnapshot::CopyFrom(const ProductSnapshot& from) { @@ -27931,52 +29164,45 @@ void ProductSnapshot::InternalSwap(ProductSnapshot* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &productid_, lhs_arena, - &other->productid_, rhs_arena + &_impl_.productid_, lhs_arena, + &other->_impl_.productid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &title_, lhs_arena, - &other->title_, rhs_arena + &_impl_.title_, lhs_arena, + &other->_impl_.title_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &description_, lhs_arena, - &other->description_, rhs_arena + &_impl_.description_, lhs_arena, + &other->_impl_.description_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ¤cycode_, lhs_arena, - &other->currencycode_, rhs_arena + &_impl_.currencycode_, lhs_arena, + &other->_impl_.currencycode_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &retailerid_, lhs_arena, - &other->retailerid_, rhs_arena + &_impl_.retailerid_, lhs_arena, + &other->_impl_.retailerid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &url_, lhs_arena, - &other->url_, rhs_arena + &_impl_.url_, lhs_arena, + &other->_impl_.url_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &firstimageid_, lhs_arena, - &other->firstimageid_, rhs_arena + &_impl_.firstimageid_, lhs_arena, + &other->_impl_.firstimageid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ProductSnapshot, productimagecount_) - + sizeof(ProductSnapshot::productimagecount_) - - PROTOBUF_FIELD_OFFSET(ProductSnapshot, productimage_)>( - reinterpret_cast<char*>(&productimage_), - reinterpret_cast<char*>(&other->productimage_)); + PROTOBUF_FIELD_OFFSET(ProductSnapshot, _impl_.productimagecount_) + + sizeof(ProductSnapshot::_impl_.productimagecount_) + - PROTOBUF_FIELD_OFFSET(ProductSnapshot, _impl_.productimage_)>( + reinterpret_cast<char*>(&_impl_.productimage_), + reinterpret_cast<char*>(&other->_impl_.productimage_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ProductSnapshot::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[56]); } @@ -27985,7 +29211,7 @@ void ProductSnapshot::InternalSwap(ProductSnapshot* other) { class ProductMessage::_Internal { public: - using HasBits = decltype(std::declval<ProductMessage>()._has_bits_); + using HasBits = decltype(std::declval<ProductMessage>()._impl_._has_bits_); static const ::proto::ProductSnapshot& product(const ProductMessage* msg); static void set_has_product(HasBits* has_bits) { (*has_bits)[0] |= 2u; @@ -28005,123 +29231,131 @@ class ProductMessage::_Internal { const ::proto::ProductSnapshot& ProductMessage::_Internal::product(const ProductMessage* msg) { - return *msg->product_; + return *msg->_impl_.product_; } const ::proto::CatalogSnapshot& ProductMessage::_Internal::catalog(const ProductMessage* msg) { - return *msg->catalog_; + return *msg->_impl_.catalog_; } const ::proto::ContextInfo& ProductMessage::_Internal::contextinfo(const ProductMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } ProductMessage::ProductMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.ProductMessage) } ProductMessage::ProductMessage(const ProductMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + ProductMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.businessownerjid_){} + , decltype(_impl_.product_){nullptr} + , decltype(_impl_.catalog_){nullptr} + , decltype(_impl_.contextinfo_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - businessownerjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.businessownerjid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.businessownerjid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_businessownerjid()) { - businessownerjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_businessownerjid(), - GetArenaForAllocation()); + _this->_impl_.businessownerjid_.Set(from._internal_businessownerjid(), + _this->GetArenaForAllocation()); } if (from._internal_has_product()) { - product_ = new ::proto::ProductSnapshot(*from.product_); - } else { - product_ = nullptr; + _this->_impl_.product_ = new ::proto::ProductSnapshot(*from._impl_.product_); } if (from._internal_has_catalog()) { - catalog_ = new ::proto::CatalogSnapshot(*from.catalog_); - } else { - catalog_ = nullptr; + _this->_impl_.catalog_ = new ::proto::CatalogSnapshot(*from._impl_.catalog_); } if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } // @@protoc_insertion_point(copy_constructor:proto.ProductMessage) } -void ProductMessage::SharedCtor() { -businessownerjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&product_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&contextinfo_) - - reinterpret_cast<char*>(&product_)) + sizeof(contextinfo_)); +inline void ProductMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.businessownerjid_){} + , decltype(_impl_.product_){nullptr} + , decltype(_impl_.catalog_){nullptr} + , decltype(_impl_.contextinfo_){nullptr} + }; + _impl_.businessownerjid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.businessownerjid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ProductMessage::~ProductMessage() { // @@protoc_insertion_point(destructor:proto.ProductMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void ProductMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - businessownerjid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete product_; - if (this != internal_default_instance()) delete catalog_; - if (this != internal_default_instance()) delete contextinfo_; + _impl_.businessownerjid_.Destroy(); + if (this != internal_default_instance()) delete _impl_.product_; + if (this != internal_default_instance()) delete _impl_.catalog_; + if (this != internal_default_instance()) delete _impl_.contextinfo_; } -void ProductMessage::ArenaDtor(void* object) { - ProductMessage* _this = reinterpret_cast< ProductMessage* >(object); - (void)_this; -} -void ProductMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void ProductMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ProductMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ProductMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - businessownerjid_.ClearNonDefaultToEmpty(); + _impl_.businessownerjid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(product_ != nullptr); - product_->Clear(); + GOOGLE_DCHECK(_impl_.product_ != nullptr); + _impl_.product_->Clear(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(catalog_ != nullptr); - catalog_->Clear(); + GOOGLE_DCHECK(_impl_.catalog_ != nullptr); + _impl_.catalog_->Clear(); } if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ProductMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ProductMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional .proto.ProductSnapshot product = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_product(), ptr); CHK_(ptr); } else @@ -28129,19 +29363,19 @@ const char* ProductMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // optional string businessOwnerJid = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_businessownerjid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ProductMessage.businessOwnerJid"); + ::_pbi::VerifyUTF8(str, "proto.ProductMessage.businessOwnerJid"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.CatalogSnapshot catalog = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_catalog(), ptr); CHK_(ptr); } else @@ -28149,7 +29383,7 @@ const char* ProductMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // optional .proto.ContextInfo contextInfo = 17; case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -28171,7 +29405,7 @@ const char* ProductMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -28179,19 +29413,18 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ProductMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* ProductMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.ProductMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.ProductSnapshot product = 1; if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::product(this), target, stream); + InternalWriteMessage(1, _Internal::product(this), + _Internal::product(this).GetCachedSize(), target, stream); } // optional string businessOwnerJid = 2; @@ -28206,22 +29439,20 @@ failure: // optional .proto.CatalogSnapshot catalog = 4; if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::catalog(this), target, stream); + InternalWriteMessage(4, _Internal::catalog(this), + _Internal::catalog(this).GetCachedSize(), target, stream); } // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 17, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(17, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ProductMessage) @@ -28232,11 +29463,11 @@ size_t ProductMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.ProductMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional string businessOwnerJid = 2; if (cached_has_bits & 0x00000001u) { @@ -28249,62 +29480,61 @@ size_t ProductMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *product_); + *_impl_.product_); } // optional .proto.CatalogSnapshot catalog = 4; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *catalog_); + *_impl_.catalog_); } // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000008u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProductMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ProductMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProductMessage::GetClassData() const { return &_class_data_; } -void ProductMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<ProductMessage *>(to)->MergeFrom( - static_cast<const ProductMessage &>(from)); -} - -void ProductMessage::MergeFrom(const ProductMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.ProductMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void ProductMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<ProductMessage*>(&to_msg); + auto& from = static_cast<const ProductMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.ProductMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - _internal_set_businessownerjid(from._internal_businessownerjid()); + _this->_internal_set_businessownerjid(from._internal_businessownerjid()); } if (cached_has_bits & 0x00000002u) { - _internal_mutable_product()->::proto::ProductSnapshot::MergeFrom(from._internal_product()); + _this->_internal_mutable_product()->::proto::ProductSnapshot::MergeFrom( + from._internal_product()); } if (cached_has_bits & 0x00000004u) { - _internal_mutable_catalog()->::proto::CatalogSnapshot::MergeFrom(from._internal_catalog()); + _this->_internal_mutable_catalog()->::proto::CatalogSnapshot::MergeFrom( + from._internal_catalog()); } if (cached_has_bits & 0x00000008u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ProductMessage::CopyFrom(const ProductMessage& from) { @@ -28323,22 +29553,21 @@ void ProductMessage::InternalSwap(ProductMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &businessownerjid_, lhs_arena, - &other->businessownerjid_, rhs_arena + &_impl_.businessownerjid_, lhs_arena, + &other->_impl_.businessownerjid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ProductMessage, contextinfo_) - + sizeof(ProductMessage::contextinfo_) - - PROTOBUF_FIELD_OFFSET(ProductMessage, product_)>( - reinterpret_cast<char*>(&product_), - reinterpret_cast<char*>(&other->product_)); + PROTOBUF_FIELD_OFFSET(ProductMessage, _impl_.contextinfo_) + + sizeof(ProductMessage::_impl_.contextinfo_) + - PROTOBUF_FIELD_OFFSET(ProductMessage, _impl_.product_)>( + reinterpret_cast<char*>(&_impl_.product_), + reinterpret_cast<char*>(&other->_impl_.product_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ProductMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[57]); } @@ -28347,7 +29576,7 @@ void ProductMessage::InternalSwap(ProductMessage* other) { class OrderMessage::_Internal { public: - using HasBits = decltype(std::declval<OrderMessage>()._has_bits_); + using HasBits = decltype(std::declval<OrderMessage>()._impl_._has_bits_); static void set_has_orderid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -28389,198 +29618,260 @@ class OrderMessage::_Internal { const ::proto::ContextInfo& OrderMessage::_Internal::contextinfo(const OrderMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } OrderMessage::OrderMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.OrderMessage) } OrderMessage::OrderMessage(const OrderMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + OrderMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.orderid_){} + , decltype(_impl_.thumbnail_){} + , decltype(_impl_.message_){} + , decltype(_impl_.ordertitle_){} + , decltype(_impl_.sellerjid_){} + , decltype(_impl_.token_){} + , decltype(_impl_.totalcurrencycode_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.totalamount1000_){} + , decltype(_impl_.itemcount_){} + , decltype(_impl_.status_){} + , decltype(_impl_.surface_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - orderid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.orderid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.orderid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_orderid()) { - orderid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_orderid(), - GetArenaForAllocation()); + _this->_impl_.orderid_.Set(from._internal_orderid(), + _this->GetArenaForAllocation()); } - thumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.thumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_thumbnail()) { - thumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnail(), - GetArenaForAllocation()); + _this->_impl_.thumbnail_.Set(from._internal_thumbnail(), + _this->GetArenaForAllocation()); } - message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_message()) { - message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message(), - GetArenaForAllocation()); + _this->_impl_.message_.Set(from._internal_message(), + _this->GetArenaForAllocation()); } - ordertitle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.ordertitle_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.ordertitle_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_ordertitle()) { - ordertitle_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ordertitle(), - GetArenaForAllocation()); + _this->_impl_.ordertitle_.Set(from._internal_ordertitle(), + _this->GetArenaForAllocation()); } - sellerjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.sellerjid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sellerjid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_sellerjid()) { - sellerjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sellerjid(), - GetArenaForAllocation()); + _this->_impl_.sellerjid_.Set(from._internal_sellerjid(), + _this->GetArenaForAllocation()); } - token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_token()) { - token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_token(), - GetArenaForAllocation()); + _this->_impl_.token_.Set(from._internal_token(), + _this->GetArenaForAllocation()); } - totalcurrencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.totalcurrencycode_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.totalcurrencycode_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_totalcurrencycode()) { - totalcurrencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_totalcurrencycode(), - GetArenaForAllocation()); + _this->_impl_.totalcurrencycode_.Set(from._internal_totalcurrencycode(), + _this->GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } - ::memcpy(&totalamount1000_, &from.totalamount1000_, - static_cast<size_t>(reinterpret_cast<char*>(&surface_) - - reinterpret_cast<char*>(&totalamount1000_)) + sizeof(surface_)); + ::memcpy(&_impl_.totalamount1000_, &from._impl_.totalamount1000_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.surface_) - + reinterpret_cast<char*>(&_impl_.totalamount1000_)) + sizeof(_impl_.surface_)); // @@protoc_insertion_point(copy_constructor:proto.OrderMessage) } -void OrderMessage::SharedCtor() { -orderid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -thumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -ordertitle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -sellerjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -totalcurrencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&itemcount_) - - reinterpret_cast<char*>(&contextinfo_)) + sizeof(itemcount_)); -status_ = 1; -surface_ = 1; +inline void OrderMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.orderid_){} + , decltype(_impl_.thumbnail_){} + , decltype(_impl_.message_){} + , decltype(_impl_.ordertitle_){} + , decltype(_impl_.sellerjid_){} + , decltype(_impl_.token_){} + , decltype(_impl_.totalcurrencycode_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.totalamount1000_){int64_t{0}} + , decltype(_impl_.itemcount_){0} + , decltype(_impl_.status_){1} + , decltype(_impl_.surface_){1} + }; + _impl_.orderid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.orderid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.thumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.message_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.ordertitle_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.ordertitle_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sellerjid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.sellerjid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.token_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.token_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.totalcurrencycode_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.totalcurrencycode_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } OrderMessage::~OrderMessage() { // @@protoc_insertion_point(destructor:proto.OrderMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void OrderMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - orderid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - thumbnail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ordertitle_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - sellerjid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - totalcurrencycode_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete contextinfo_; + _impl_.orderid_.Destroy(); + _impl_.thumbnail_.Destroy(); + _impl_.message_.Destroy(); + _impl_.ordertitle_.Destroy(); + _impl_.sellerjid_.Destroy(); + _impl_.token_.Destroy(); + _impl_.totalcurrencycode_.Destroy(); + if (this != internal_default_instance()) delete _impl_.contextinfo_; } -void OrderMessage::ArenaDtor(void* object) { - OrderMessage* _this = reinterpret_cast< OrderMessage* >(object); - (void)_this; -} -void OrderMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void OrderMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void OrderMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.OrderMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - orderid_.ClearNonDefaultToEmpty(); + _impl_.orderid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - thumbnail_.ClearNonDefaultToEmpty(); + _impl_.thumbnail_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - message_.ClearNonDefaultToEmpty(); + _impl_.message_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - ordertitle_.ClearNonDefaultToEmpty(); + _impl_.ordertitle_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { - sellerjid_.ClearNonDefaultToEmpty(); + _impl_.sellerjid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { - token_.ClearNonDefaultToEmpty(); + _impl_.token_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { - totalcurrencycode_.ClearNonDefaultToEmpty(); + _impl_.totalcurrencycode_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } } if (cached_has_bits & 0x00000f00u) { - ::memset(&totalamount1000_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&itemcount_) - - reinterpret_cast<char*>(&totalamount1000_)) + sizeof(itemcount_)); - status_ = 1; - surface_ = 1; + ::memset(&_impl_.totalamount1000_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.itemcount_) - + reinterpret_cast<char*>(&_impl_.totalamount1000_)) + sizeof(_impl_.itemcount_)); + _impl_.status_ = 1; + _impl_.surface_ = 1; } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* OrderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* OrderMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string orderId = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_orderid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.OrderMessage.orderId"); + ::_pbi::VerifyUTF8(str, "proto.OrderMessage.orderId"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes thumbnail = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_thumbnail(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional int32 itemCount = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { _Internal::set_has_itemcount(&has_bits); - itemcount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.itemcount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.OrderMessage.OrderMessageOrderStatus status = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::OrderMessage_OrderMessageOrderStatus_IsValid(val))) { _internal_set_status(static_cast<::proto::OrderMessage_OrderMessageOrderStatus>(val)); @@ -28592,8 +29883,8 @@ const char* OrderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I continue; // optional .proto.OrderMessage.OrderMessageOrderSurface surface = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::OrderMessage_OrderMessageOrderSurface_IsValid(val))) { _internal_set_surface(static_cast<::proto::OrderMessage_OrderMessageOrderSurface>(val)); @@ -28605,76 +29896,76 @@ const char* OrderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I continue; // optional string message = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { auto str = _internal_mutable_message(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.OrderMessage.message"); + ::_pbi::VerifyUTF8(str, "proto.OrderMessage.message"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string orderTitle = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { auto str = _internal_mutable_ordertitle(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.OrderMessage.orderTitle"); + ::_pbi::VerifyUTF8(str, "proto.OrderMessage.orderTitle"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string sellerJid = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { auto str = _internal_mutable_sellerjid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.OrderMessage.sellerJid"); + ::_pbi::VerifyUTF8(str, "proto.OrderMessage.sellerJid"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string token = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) { auto str = _internal_mutable_token(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.OrderMessage.token"); + ::_pbi::VerifyUTF8(str, "proto.OrderMessage.token"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional int64 totalAmount1000 = 10; case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) { _Internal::set_has_totalamount1000(&has_bits); - totalamount1000_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.totalamount1000_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string totalCurrencyCode = 11; case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) { auto str = _internal_mutable_totalcurrencycode(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.OrderMessage.totalCurrencyCode"); + ::_pbi::VerifyUTF8(str, "proto.OrderMessage.totalCurrencyCode"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ContextInfo contextInfo = 17; case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 138)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -28696,7 +29987,7 @@ const char* OrderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -28704,13 +29995,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* OrderMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* OrderMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.OrderMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string orderId = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -28730,20 +30021,20 @@ failure: // optional int32 itemCount = 3; if (cached_has_bits & 0x00000200u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_itemcount(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_itemcount(), target); } // optional .proto.OrderMessage.OrderMessageOrderStatus status = 4; if (cached_has_bits & 0x00000400u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 4, this->_internal_status(), target); } // optional .proto.OrderMessage.OrderMessageOrderSurface surface = 5; if (cached_has_bits & 0x00000800u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 5, this->_internal_surface(), target); } @@ -28790,7 +30081,7 @@ failure: // optional int64 totalAmount1000 = 10; if (cached_has_bits & 0x00000100u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(10, this->_internal_totalamount1000(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(10, this->_internal_totalamount1000(), target); } // optional string totalCurrencyCode = 11; @@ -28805,14 +30096,13 @@ failure: // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 17, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(17, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.OrderMessage) @@ -28823,11 +30113,11 @@ size_t OrderMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.OrderMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string orderId = 1; if (cached_has_bits & 0x00000001u) { @@ -28882,99 +30172,96 @@ size_t OrderMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000080u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } } if (cached_has_bits & 0x00000f00u) { // optional int64 totalAmount1000 = 10; if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_totalamount1000()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_totalamount1000()); } // optional int32 itemCount = 3; if (cached_has_bits & 0x00000200u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_itemcount()); + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_itemcount()); } // optional .proto.OrderMessage.OrderMessageOrderStatus status = 4; if (cached_has_bits & 0x00000400u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); } // optional .proto.OrderMessage.OrderMessageOrderSurface surface = 5; if (cached_has_bits & 0x00000800u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_surface()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_surface()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OrderMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, OrderMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OrderMessage::GetClassData() const { return &_class_data_; } -void OrderMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<OrderMessage *>(to)->MergeFrom( - static_cast<const OrderMessage &>(from)); -} - -void OrderMessage::MergeFrom(const OrderMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.OrderMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void OrderMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<OrderMessage*>(&to_msg); + auto& from = static_cast<const OrderMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.OrderMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_set_orderid(from._internal_orderid()); + _this->_internal_set_orderid(from._internal_orderid()); } if (cached_has_bits & 0x00000002u) { - _internal_set_thumbnail(from._internal_thumbnail()); + _this->_internal_set_thumbnail(from._internal_thumbnail()); } if (cached_has_bits & 0x00000004u) { - _internal_set_message(from._internal_message()); + _this->_internal_set_message(from._internal_message()); } if (cached_has_bits & 0x00000008u) { - _internal_set_ordertitle(from._internal_ordertitle()); + _this->_internal_set_ordertitle(from._internal_ordertitle()); } if (cached_has_bits & 0x00000010u) { - _internal_set_sellerjid(from._internal_sellerjid()); + _this->_internal_set_sellerjid(from._internal_sellerjid()); } if (cached_has_bits & 0x00000020u) { - _internal_set_token(from._internal_token()); + _this->_internal_set_token(from._internal_token()); } if (cached_has_bits & 0x00000040u) { - _internal_set_totalcurrencycode(from._internal_totalcurrencycode()); + _this->_internal_set_totalcurrencycode(from._internal_totalcurrencycode()); } if (cached_has_bits & 0x00000080u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } } if (cached_has_bits & 0x00000f00u) { if (cached_has_bits & 0x00000100u) { - totalamount1000_ = from.totalamount1000_; + _this->_impl_.totalamount1000_ = from._impl_.totalamount1000_; } if (cached_has_bits & 0x00000200u) { - itemcount_ = from.itemcount_; + _this->_impl_.itemcount_ = from._impl_.itemcount_; } if (cached_has_bits & 0x00000400u) { - status_ = from.status_; + _this->_impl_.status_ = from._impl_.status_; } if (cached_has_bits & 0x00000800u) { - surface_ = from.surface_; + _this->_impl_.surface_ = from._impl_.surface_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void OrderMessage::CopyFrom(const OrderMessage& from) { @@ -28993,54 +30280,47 @@ void OrderMessage::InternalSwap(OrderMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &orderid_, lhs_arena, - &other->orderid_, rhs_arena + &_impl_.orderid_, lhs_arena, + &other->_impl_.orderid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &thumbnail_, lhs_arena, - &other->thumbnail_, rhs_arena + &_impl_.thumbnail_, lhs_arena, + &other->_impl_.thumbnail_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &message_, lhs_arena, - &other->message_, rhs_arena + &_impl_.message_, lhs_arena, + &other->_impl_.message_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &ordertitle_, lhs_arena, - &other->ordertitle_, rhs_arena + &_impl_.ordertitle_, lhs_arena, + &other->_impl_.ordertitle_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &sellerjid_, lhs_arena, - &other->sellerjid_, rhs_arena + &_impl_.sellerjid_, lhs_arena, + &other->_impl_.sellerjid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &token_, lhs_arena, - &other->token_, rhs_arena + &_impl_.token_, lhs_arena, + &other->_impl_.token_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &totalcurrencycode_, lhs_arena, - &other->totalcurrencycode_, rhs_arena + &_impl_.totalcurrencycode_, lhs_arena, + &other->_impl_.totalcurrencycode_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(OrderMessage, itemcount_) - + sizeof(OrderMessage::itemcount_) - - PROTOBUF_FIELD_OFFSET(OrderMessage, contextinfo_)>( - reinterpret_cast<char*>(&contextinfo_), - reinterpret_cast<char*>(&other->contextinfo_)); - swap(status_, other->status_); - swap(surface_, other->surface_); + PROTOBUF_FIELD_OFFSET(OrderMessage, _impl_.itemcount_) + + sizeof(OrderMessage::_impl_.itemcount_) + - PROTOBUF_FIELD_OFFSET(OrderMessage, _impl_.contextinfo_)>( + reinterpret_cast<char*>(&_impl_.contextinfo_), + reinterpret_cast<char*>(&other->_impl_.contextinfo_)); + swap(_impl_.status_, other->_impl_.status_); + swap(_impl_.surface_, other->_impl_.surface_); } ::PROTOBUF_NAMESPACE_ID::Metadata OrderMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[58]); } @@ -29049,7 +30329,7 @@ void OrderMessage::InternalSwap(OrderMessage* other) { class Row::_Internal { public: - using HasBits = decltype(std::declval<Row>()._has_bits_); + using HasBits = decltype(std::declval<Row>()._impl_._has_bits_); static void set_has_title(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -29064,126 +30344,154 @@ class Row::_Internal { Row::Row(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.Row) } Row::Row(const Row& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + Row* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.title_){} + , decltype(_impl_.description_){} + , decltype(_impl_.rowid_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_title()) { - title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArenaForAllocation()); + _this->_impl_.title_.Set(from._internal_title(), + _this->GetArenaForAllocation()); } - description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_description()) { - description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), - GetArenaForAllocation()); + _this->_impl_.description_.Set(from._internal_description(), + _this->GetArenaForAllocation()); } - rowid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.rowid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.rowid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_rowid()) { - rowid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_rowid(), - GetArenaForAllocation()); + _this->_impl_.rowid_.Set(from._internal_rowid(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.Row) } -void Row::SharedCtor() { -title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -rowid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void Row::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.title_){} + , decltype(_impl_.description_){} + , decltype(_impl_.rowid_){} + }; + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.rowid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.rowid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Row::~Row() { // @@protoc_insertion_point(destructor:proto.Row) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void Row::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - rowid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.title_.Destroy(); + _impl_.description_.Destroy(); + _impl_.rowid_.Destroy(); } -void Row::ArenaDtor(void* object) { - Row* _this = reinterpret_cast< Row* >(object); - (void)_this; -} -void Row::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void Row::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void Row::Clear() { // @@protoc_insertion_point(message_clear_start:proto.Row) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - title_.ClearNonDefaultToEmpty(); + _impl_.title_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - description_.ClearNonDefaultToEmpty(); + _impl_.description_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - rowid_.ClearNonDefaultToEmpty(); + _impl_.rowid_.ClearNonDefaultToEmpty(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Row::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Row::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string title = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_title(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Row.title"); + ::_pbi::VerifyUTF8(str, "proto.Row.title"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string description = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_description(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Row.description"); + ::_pbi::VerifyUTF8(str, "proto.Row.description"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string rowId = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { auto str = _internal_mutable_rowid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Row.rowId"); + ::_pbi::VerifyUTF8(str, "proto.Row.rowId"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -29203,7 +30511,7 @@ const char* Row::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::intern CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -29211,13 +30519,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Row::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* Row::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.Row) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string title = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -29249,7 +30557,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.Row) @@ -29260,11 +30568,11 @@ size_t Row::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.Row) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string title = 1; if (cached_has_bits & 0x00000001u) { @@ -29288,41 +30596,37 @@ size_t Row::ByteSizeLong() const { } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Row::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, Row::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Row::GetClassData() const { return &_class_data_; } -void Row::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<Row *>(to)->MergeFrom( - static_cast<const Row &>(from)); -} - -void Row::MergeFrom(const Row& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.Row) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void Row::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<Row*>(&to_msg); + auto& from = static_cast<const Row&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.Row) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _internal_set_title(from._internal_title()); + _this->_internal_set_title(from._internal_title()); } if (cached_has_bits & 0x00000002u) { - _internal_set_description(from._internal_description()); + _this->_internal_set_description(from._internal_description()); } if (cached_has_bits & 0x00000004u) { - _internal_set_rowid(from._internal_rowid()); + _this->_internal_set_rowid(from._internal_rowid()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Row::CopyFrom(const Row& from) { @@ -29341,26 +30645,23 @@ void Row::InternalSwap(Row* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &title_, lhs_arena, - &other->title_, rhs_arena + &_impl_.title_, lhs_arena, + &other->_impl_.title_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &description_, lhs_arena, - &other->description_, rhs_arena + &_impl_.description_, lhs_arena, + &other->_impl_.description_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &rowid_, lhs_arena, - &other->rowid_, rhs_arena + &_impl_.rowid_, lhs_arena, + &other->_impl_.rowid_, rhs_arena ); } ::PROTOBUF_NAMESPACE_ID::Metadata Row::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[59]); } @@ -29369,7 +30670,7 @@ void Row::InternalSwap(Row* other) { class Section::_Internal { public: - using HasBits = decltype(std::declval<Section>()._has_bits_); + using HasBits = decltype(std::declval<Section>()._impl_._has_bits_); static void set_has_title(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -29377,90 +30678,103 @@ class Section::_Internal { Section::Section(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - rows_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.Section) } Section::Section(const Section& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - rows_(from.rows_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + Section* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.rows_){from._impl_.rows_} + , decltype(_impl_.title_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_title()) { - title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArenaForAllocation()); + _this->_impl_.title_.Set(from._internal_title(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.Section) } -void Section::SharedCtor() { -title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void Section::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.rows_){arena} + , decltype(_impl_.title_){} + }; + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Section::~Section() { // @@protoc_insertion_point(destructor:proto.Section) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void Section::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.rows_.~RepeatedPtrField(); + _impl_.title_.Destroy(); } -void Section::ArenaDtor(void* object) { - Section* _this = reinterpret_cast< Section* >(object); - (void)_this; -} -void Section::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void Section::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void Section::Clear() { // @@protoc_insertion_point(message_clear_start:proto.Section) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - rows_.Clear(); - cached_has_bits = _has_bits_[0]; + _impl_.rows_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - title_.ClearNonDefaultToEmpty(); + _impl_.title_.ClearNonDefaultToEmpty(); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Section::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Section::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string title = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_title(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Section.title"); + ::_pbi::VerifyUTF8(str, "proto.Section.title"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // repeated .proto.Row rows = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr -= 1; do { ptr += 1; @@ -29487,7 +30801,7 @@ const char* Section::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -29495,13 +30809,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Section::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* Section::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.Section) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string title = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -29513,15 +30827,15 @@ failure: } // repeated .proto.Row rows = 2; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->_internal_rows_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast<unsigned>(this->_internal_rows_size()); i < n; i++) { + const auto& repfield = this->_internal_rows(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, this->_internal_rows(i), target, stream); + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.Section) @@ -29532,52 +30846,48 @@ size_t Section::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.Section) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .proto.Row rows = 2; total_size += 1UL * this->_internal_rows_size(); - for (const auto& msg : this->rows_) { + for (const auto& msg : this->_impl_.rows_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // optional string title = 1; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_title()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Section::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, Section::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Section::GetClassData() const { return &_class_data_; } -void Section::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<Section *>(to)->MergeFrom( - static_cast<const Section &>(from)); -} - -void Section::MergeFrom(const Section& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.Section) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void Section::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<Section*>(&to_msg); + auto& from = static_cast<const Section&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.Section) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - rows_.MergeFrom(from.rows_); + _this->_impl_.rows_.MergeFrom(from._impl_.rows_); if (from._internal_has_title()) { - _internal_set_title(from._internal_title()); + _this->_internal_set_title(from._internal_title()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Section::CopyFrom(const Section& from) { @@ -29596,17 +30906,16 @@ void Section::InternalSwap(Section* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - rows_.InternalSwap(&other->rows_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.rows_.InternalSwap(&other->_impl_.rows_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &title_, lhs_arena, - &other->title_, rhs_arena + &_impl_.title_, lhs_arena, + &other->_impl_.title_, rhs_arena ); } ::PROTOBUF_NAMESPACE_ID::Metadata Section::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[60]); } @@ -29615,7 +30924,7 @@ void Section::InternalSwap(Section* other) { class ListMessage::_Internal { public: - using HasBits = decltype(std::declval<ListMessage>()._has_bits_); + using HasBits = decltype(std::declval<ListMessage>()._impl_._has_bits_); static void set_has_title(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -29632,140 +30941,170 @@ class ListMessage::_Internal { ListMessage::ListMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - sections_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.ListMessage) } ListMessage::ListMessage(const ListMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - sections_(from.sections_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + ListMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.sections_){from._impl_.sections_} + , decltype(_impl_.title_){} + , decltype(_impl_.description_){} + , decltype(_impl_.buttontext_){} + , decltype(_impl_.listtype_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_title()) { - title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArenaForAllocation()); + _this->_impl_.title_.Set(from._internal_title(), + _this->GetArenaForAllocation()); } - description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_description()) { - description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), - GetArenaForAllocation()); + _this->_impl_.description_.Set(from._internal_description(), + _this->GetArenaForAllocation()); } - buttontext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.buttontext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.buttontext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_buttontext()) { - buttontext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_buttontext(), - GetArenaForAllocation()); + _this->_impl_.buttontext_.Set(from._internal_buttontext(), + _this->GetArenaForAllocation()); } - listtype_ = from.listtype_; + _this->_impl_.listtype_ = from._impl_.listtype_; // @@protoc_insertion_point(copy_constructor:proto.ListMessage) } -void ListMessage::SharedCtor() { -title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -buttontext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -listtype_ = 0; +inline void ListMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.sections_){arena} + , decltype(_impl_.title_){} + , decltype(_impl_.description_){} + , decltype(_impl_.buttontext_){} + , decltype(_impl_.listtype_){0} + }; + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.buttontext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.buttontext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ListMessage::~ListMessage() { // @@protoc_insertion_point(destructor:proto.ListMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void ListMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - buttontext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.sections_.~RepeatedPtrField(); + _impl_.title_.Destroy(); + _impl_.description_.Destroy(); + _impl_.buttontext_.Destroy(); } -void ListMessage::ArenaDtor(void* object) { - ListMessage* _this = reinterpret_cast< ListMessage* >(object); - (void)_this; -} -void ListMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void ListMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ListMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ListMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - sections_.Clear(); - cached_has_bits = _has_bits_[0]; + _impl_.sections_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - title_.ClearNonDefaultToEmpty(); + _impl_.title_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - description_.ClearNonDefaultToEmpty(); + _impl_.description_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - buttontext_.ClearNonDefaultToEmpty(); + _impl_.buttontext_.ClearNonDefaultToEmpty(); } } - listtype_ = 0; - _has_bits_.Clear(); + _impl_.listtype_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ListMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ListMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string title = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_title(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ListMessage.title"); + ::_pbi::VerifyUTF8(str, "proto.ListMessage.title"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string description = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_description(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ListMessage.description"); + ::_pbi::VerifyUTF8(str, "proto.ListMessage.description"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string buttonText = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { auto str = _internal_mutable_buttontext(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ListMessage.buttonText"); + ::_pbi::VerifyUTF8(str, "proto.ListMessage.buttonText"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ListMessage.ListMessageListType listType = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::ListMessage_ListMessageListType_IsValid(val))) { _internal_set_listtype(static_cast<::proto::ListMessage_ListMessageListType>(val)); @@ -29777,7 +31116,7 @@ const char* ListMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // repeated .proto.Section sections = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { ptr -= 1; do { ptr += 1; @@ -29804,7 +31143,7 @@ const char* ListMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -29812,13 +31151,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ListMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* ListMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.ListMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string title = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -29852,20 +31191,20 @@ failure: // optional .proto.ListMessage.ListMessageListType listType = 4; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 4, this->_internal_listtype(), target); } // repeated .proto.Section sections = 5; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->_internal_sections_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast<unsigned>(this->_internal_sections_size()); i < n; i++) { + const auto& repfield = this->_internal_sections(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, this->_internal_sections(i), target, stream); + InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ListMessage) @@ -29876,18 +31215,18 @@ size_t ListMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.ListMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .proto.Section sections = 5; total_size += 1UL * this->_internal_sections_size(); - for (const auto& msg : this->sections_) { + for (const auto& msg : this->_impl_.sections_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional string title = 1; if (cached_has_bits & 0x00000001u) { @@ -29913,50 +31252,46 @@ size_t ListMessage::ByteSizeLong() const { // optional .proto.ListMessage.ListMessageListType listType = 4; if (cached_has_bits & 0x00000008u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_listtype()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_listtype()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ListMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListMessage::GetClassData() const { return &_class_data_; } -void ListMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<ListMessage *>(to)->MergeFrom( - static_cast<const ListMessage &>(from)); -} - -void ListMessage::MergeFrom(const ListMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.ListMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void ListMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<ListMessage*>(&to_msg); + auto& from = static_cast<const ListMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.ListMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - sections_.MergeFrom(from.sections_); - cached_has_bits = from._has_bits_[0]; + _this->_impl_.sections_.MergeFrom(from._impl_.sections_); + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - _internal_set_title(from._internal_title()); + _this->_internal_set_title(from._internal_title()); } if (cached_has_bits & 0x00000002u) { - _internal_set_description(from._internal_description()); + _this->_internal_set_description(from._internal_description()); } if (cached_has_bits & 0x00000004u) { - _internal_set_buttontext(from._internal_buttontext()); + _this->_internal_set_buttontext(from._internal_buttontext()); } if (cached_has_bits & 0x00000008u) { - listtype_ = from.listtype_; + _this->_impl_.listtype_ = from._impl_.listtype_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListMessage::CopyFrom(const ListMessage& from) { @@ -29975,28 +31310,25 @@ void ListMessage::InternalSwap(ListMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - sections_.InternalSwap(&other->sections_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.sections_.InternalSwap(&other->_impl_.sections_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &title_, lhs_arena, - &other->title_, rhs_arena + &_impl_.title_, lhs_arena, + &other->_impl_.title_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &description_, lhs_arena, - &other->description_, rhs_arena + &_impl_.description_, lhs_arena, + &other->_impl_.description_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &buttontext_, lhs_arena, - &other->buttontext_, rhs_arena + &_impl_.buttontext_, lhs_arena, + &other->_impl_.buttontext_, rhs_arena ); - swap(listtype_, other->listtype_); + swap(_impl_.listtype_, other->_impl_.listtype_); } ::PROTOBUF_NAMESPACE_ID::Metadata ListMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[61]); } @@ -30005,7 +31337,7 @@ void ListMessage::InternalSwap(ListMessage* other) { class SingleSelectReply::_Internal { public: - using HasBits = decltype(std::declval<SingleSelectReply>()._has_bits_); + using HasBits = decltype(std::declval<SingleSelectReply>()._impl_._has_bits_); static void set_has_selectedrowid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -30014,80 +31346,92 @@ class SingleSelectReply::_Internal { SingleSelectReply::SingleSelectReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.SingleSelectReply) } SingleSelectReply::SingleSelectReply(const SingleSelectReply& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + SingleSelectReply* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.selectedrowid_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - selectedrowid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.selectedrowid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.selectedrowid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_selectedrowid()) { - selectedrowid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_selectedrowid(), - GetArenaForAllocation()); + _this->_impl_.selectedrowid_.Set(from._internal_selectedrowid(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.SingleSelectReply) } -void SingleSelectReply::SharedCtor() { -selectedrowid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void SingleSelectReply::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.selectedrowid_){} + }; + _impl_.selectedrowid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.selectedrowid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } SingleSelectReply::~SingleSelectReply() { // @@protoc_insertion_point(destructor:proto.SingleSelectReply) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void SingleSelectReply::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - selectedrowid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.selectedrowid_.Destroy(); } -void SingleSelectReply::ArenaDtor(void* object) { - SingleSelectReply* _this = reinterpret_cast< SingleSelectReply* >(object); - (void)_this; -} -void SingleSelectReply::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void SingleSelectReply::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void SingleSelectReply::Clear() { // @@protoc_insertion_point(message_clear_start:proto.SingleSelectReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - selectedrowid_.ClearNonDefaultToEmpty(); + _impl_.selectedrowid_.ClearNonDefaultToEmpty(); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* SingleSelectReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* SingleSelectReply::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string selectedRowId = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_selectedrowid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.SingleSelectReply.selectedRowId"); + ::_pbi::VerifyUTF8(str, "proto.SingleSelectReply.selectedRowId"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -30107,7 +31451,7 @@ const char* SingleSelectReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -30115,13 +31459,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* SingleSelectReply::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* SingleSelectReply::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.SingleSelectReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string selectedRowId = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -30133,7 +31477,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.SingleSelectReply) @@ -30144,44 +31488,40 @@ size_t SingleSelectReply::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.SingleSelectReply) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional string selectedRowId = 1; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_selectedrowid()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SingleSelectReply::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, SingleSelectReply::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SingleSelectReply::GetClassData() const { return &_class_data_; } -void SingleSelectReply::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<SingleSelectReply *>(to)->MergeFrom( - static_cast<const SingleSelectReply &>(from)); -} - -void SingleSelectReply::MergeFrom(const SingleSelectReply& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.SingleSelectReply) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void SingleSelectReply::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<SingleSelectReply*>(&to_msg); + auto& from = static_cast<const SingleSelectReply&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.SingleSelectReply) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_selectedrowid()) { - _internal_set_selectedrowid(from._internal_selectedrowid()); + _this->_internal_set_selectedrowid(from._internal_selectedrowid()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SingleSelectReply::CopyFrom(const SingleSelectReply& from) { @@ -30200,16 +31540,15 @@ void SingleSelectReply::InternalSwap(SingleSelectReply* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &selectedrowid_, lhs_arena, - &other->selectedrowid_, rhs_arena + &_impl_.selectedrowid_, lhs_arena, + &other->_impl_.selectedrowid_, rhs_arena ); } ::PROTOBUF_NAMESPACE_ID::Metadata SingleSelectReply::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[62]); } @@ -30218,7 +31557,7 @@ void SingleSelectReply::InternalSwap(SingleSelectReply* other) { class ListResponseMessage::_Internal { public: - using HasBits = decltype(std::declval<ListResponseMessage>()._has_bits_); + using HasBits = decltype(std::declval<ListResponseMessage>()._impl_._has_bits_); static void set_has_title(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -30240,134 +31579,152 @@ class ListResponseMessage::_Internal { const ::proto::SingleSelectReply& ListResponseMessage::_Internal::singleselectreply(const ListResponseMessage* msg) { - return *msg->singleselectreply_; + return *msg->_impl_.singleselectreply_; } const ::proto::ContextInfo& ListResponseMessage::_Internal::contextinfo(const ListResponseMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } ListResponseMessage::ListResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.ListResponseMessage) } ListResponseMessage::ListResponseMessage(const ListResponseMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + ListResponseMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.title_){} + , decltype(_impl_.description_){} + , decltype(_impl_.singleselectreply_){nullptr} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.listtype_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_title()) { - title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArenaForAllocation()); + _this->_impl_.title_.Set(from._internal_title(), + _this->GetArenaForAllocation()); } - description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_description()) { - description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), - GetArenaForAllocation()); + _this->_impl_.description_.Set(from._internal_description(), + _this->GetArenaForAllocation()); } if (from._internal_has_singleselectreply()) { - singleselectreply_ = new ::proto::SingleSelectReply(*from.singleselectreply_); - } else { - singleselectreply_ = nullptr; + _this->_impl_.singleselectreply_ = new ::proto::SingleSelectReply(*from._impl_.singleselectreply_); } if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } - listtype_ = from.listtype_; + _this->_impl_.listtype_ = from._impl_.listtype_; // @@protoc_insertion_point(copy_constructor:proto.ListResponseMessage) } -void ListResponseMessage::SharedCtor() { -title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&singleselectreply_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&listtype_) - - reinterpret_cast<char*>(&singleselectreply_)) + sizeof(listtype_)); +inline void ListResponseMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.title_){} + , decltype(_impl_.description_){} + , decltype(_impl_.singleselectreply_){nullptr} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.listtype_){0} + }; + _impl_.title_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.title_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.description_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ListResponseMessage::~ListResponseMessage() { // @@protoc_insertion_point(destructor:proto.ListResponseMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void ListResponseMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete singleselectreply_; - if (this != internal_default_instance()) delete contextinfo_; + _impl_.title_.Destroy(); + _impl_.description_.Destroy(); + if (this != internal_default_instance()) delete _impl_.singleselectreply_; + if (this != internal_default_instance()) delete _impl_.contextinfo_; } -void ListResponseMessage::ArenaDtor(void* object) { - ListResponseMessage* _this = reinterpret_cast< ListResponseMessage* >(object); - (void)_this; -} -void ListResponseMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void ListResponseMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ListResponseMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ListResponseMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - title_.ClearNonDefaultToEmpty(); + _impl_.title_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - description_.ClearNonDefaultToEmpty(); + _impl_.description_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(singleselectreply_ != nullptr); - singleselectreply_->Clear(); + GOOGLE_DCHECK(_impl_.singleselectreply_ != nullptr); + _impl_.singleselectreply_->Clear(); } if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } } - listtype_ = 0; - _has_bits_.Clear(); + _impl_.listtype_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ListResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ListResponseMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string title = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_title(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ListResponseMessage.title"); + ::_pbi::VerifyUTF8(str, "proto.ListResponseMessage.title"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ListResponseMessage.ListResponseMessageListType listType = 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); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::ListResponseMessage_ListResponseMessageListType_IsValid(val))) { _internal_set_listtype(static_cast<::proto::ListResponseMessage_ListResponseMessageListType>(val)); @@ -30379,7 +31736,7 @@ const char* ListResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME continue; // optional .proto.SingleSelectReply singleSelectReply = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_singleselectreply(), ptr); CHK_(ptr); } else @@ -30387,7 +31744,7 @@ const char* ListResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME continue; // optional .proto.ContextInfo contextInfo = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -30395,13 +31752,13 @@ const char* ListResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME continue; // optional string description = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { auto str = _internal_mutable_description(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ListResponseMessage.description"); + ::_pbi::VerifyUTF8(str, "proto.ListResponseMessage.description"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -30421,7 +31778,7 @@ const char* ListResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -30429,13 +31786,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ListResponseMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* ListResponseMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.ListResponseMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string title = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -30449,24 +31806,22 @@ failure: // optional .proto.ListResponseMessage.ListResponseMessageListType listType = 2; if (cached_has_bits & 0x00000010u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 2, this->_internal_listtype(), target); } // optional .proto.SingleSelectReply singleSelectReply = 3; if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::singleselectreply(this), target, stream); + InternalWriteMessage(3, _Internal::singleselectreply(this), + _Internal::singleselectreply(this).GetCachedSize(), target, stream); } // optional .proto.ContextInfo contextInfo = 4; if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(4, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } // optional string description = 5; @@ -30480,7 +31835,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ListResponseMessage) @@ -30491,11 +31846,11 @@ size_t ListResponseMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.ListResponseMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000001fu) { // optional string title = 1; if (cached_has_bits & 0x00000001u) { @@ -30515,65 +31870,63 @@ size_t ListResponseMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *singleselectreply_); + *_impl_.singleselectreply_); } // optional .proto.ContextInfo contextInfo = 4; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } // optional .proto.ListResponseMessage.ListResponseMessageListType listType = 2; if (cached_has_bits & 0x00000010u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_listtype()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_listtype()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListResponseMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ListResponseMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListResponseMessage::GetClassData() const { return &_class_data_; } -void ListResponseMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<ListResponseMessage *>(to)->MergeFrom( - static_cast<const ListResponseMessage &>(from)); -} - -void ListResponseMessage::MergeFrom(const ListResponseMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.ListResponseMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void ListResponseMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<ListResponseMessage*>(&to_msg); + auto& from = static_cast<const ListResponseMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.ListResponseMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000001fu) { if (cached_has_bits & 0x00000001u) { - _internal_set_title(from._internal_title()); + _this->_internal_set_title(from._internal_title()); } if (cached_has_bits & 0x00000002u) { - _internal_set_description(from._internal_description()); + _this->_internal_set_description(from._internal_description()); } if (cached_has_bits & 0x00000004u) { - _internal_mutable_singleselectreply()->::proto::SingleSelectReply::MergeFrom(from._internal_singleselectreply()); + _this->_internal_mutable_singleselectreply()->::proto::SingleSelectReply::MergeFrom( + from._internal_singleselectreply()); } if (cached_has_bits & 0x00000008u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } if (cached_has_bits & 0x00000010u) { - listtype_ = from.listtype_; + _this->_impl_.listtype_ = from._impl_.listtype_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListResponseMessage::CopyFrom(const ListResponseMessage& from) { @@ -30592,27 +31945,25 @@ void ListResponseMessage::InternalSwap(ListResponseMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &title_, lhs_arena, - &other->title_, rhs_arena + &_impl_.title_, lhs_arena, + &other->_impl_.title_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &description_, lhs_arena, - &other->description_, rhs_arena + &_impl_.description_, lhs_arena, + &other->_impl_.description_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ListResponseMessage, listtype_) - + sizeof(ListResponseMessage::listtype_) - - PROTOBUF_FIELD_OFFSET(ListResponseMessage, singleselectreply_)>( - reinterpret_cast<char*>(&singleselectreply_), - reinterpret_cast<char*>(&other->singleselectreply_)); + PROTOBUF_FIELD_OFFSET(ListResponseMessage, _impl_.listtype_) + + sizeof(ListResponseMessage::_impl_.listtype_) + - PROTOBUF_FIELD_OFFSET(ListResponseMessage, _impl_.singleselectreply_)>( + reinterpret_cast<char*>(&_impl_.singleselectreply_), + reinterpret_cast<char*>(&other->_impl_.singleselectreply_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ListResponseMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[63]); } @@ -30621,7 +31972,7 @@ void ListResponseMessage::InternalSwap(ListResponseMessage* other) { class GroupInviteMessage::_Internal { public: - using HasBits = decltype(std::declval<GroupInviteMessage>()._has_bits_); + using HasBits = decltype(std::declval<GroupInviteMessage>()._impl_._has_bits_); static void set_has_groupjid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -30648,203 +31999,245 @@ class GroupInviteMessage::_Internal { const ::proto::ContextInfo& GroupInviteMessage::_Internal::contextinfo(const GroupInviteMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } GroupInviteMessage::GroupInviteMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.GroupInviteMessage) } GroupInviteMessage::GroupInviteMessage(const GroupInviteMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + GroupInviteMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.groupjid_){} + , decltype(_impl_.invitecode_){} + , decltype(_impl_.groupname_){} + , decltype(_impl_.jpegthumbnail_){} + , decltype(_impl_.caption_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.inviteexpiration_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - groupjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.groupjid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.groupjid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_groupjid()) { - groupjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_groupjid(), - GetArenaForAllocation()); + _this->_impl_.groupjid_.Set(from._internal_groupjid(), + _this->GetArenaForAllocation()); } - invitecode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.invitecode_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.invitecode_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_invitecode()) { - invitecode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_invitecode(), - GetArenaForAllocation()); + _this->_impl_.invitecode_.Set(from._internal_invitecode(), + _this->GetArenaForAllocation()); } - groupname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.groupname_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.groupname_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_groupname()) { - groupname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_groupname(), - GetArenaForAllocation()); + _this->_impl_.groupname_.Set(from._internal_groupname(), + _this->GetArenaForAllocation()); } - jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.jpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_jpegthumbnail()) { - jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), - GetArenaForAllocation()); + _this->_impl_.jpegthumbnail_.Set(from._internal_jpegthumbnail(), + _this->GetArenaForAllocation()); } - caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.caption_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.caption_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_caption()) { - caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_caption(), - GetArenaForAllocation()); + _this->_impl_.caption_.Set(from._internal_caption(), + _this->GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } - inviteexpiration_ = from.inviteexpiration_; + _this->_impl_.inviteexpiration_ = from._impl_.inviteexpiration_; // @@protoc_insertion_point(copy_constructor:proto.GroupInviteMessage) } -void GroupInviteMessage::SharedCtor() { -groupjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -invitecode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -groupname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&inviteexpiration_) - - reinterpret_cast<char*>(&contextinfo_)) + sizeof(inviteexpiration_)); +inline void GroupInviteMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.groupjid_){} + , decltype(_impl_.invitecode_){} + , decltype(_impl_.groupname_){} + , decltype(_impl_.jpegthumbnail_){} + , decltype(_impl_.caption_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.inviteexpiration_){int64_t{0}} + }; + _impl_.groupjid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.groupjid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.invitecode_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.invitecode_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.groupname_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.groupname_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.jpegthumbnail_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.caption_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.caption_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } GroupInviteMessage::~GroupInviteMessage() { // @@protoc_insertion_point(destructor:proto.GroupInviteMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void GroupInviteMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - groupjid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - invitecode_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - groupname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - jpegthumbnail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - caption_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete contextinfo_; + _impl_.groupjid_.Destroy(); + _impl_.invitecode_.Destroy(); + _impl_.groupname_.Destroy(); + _impl_.jpegthumbnail_.Destroy(); + _impl_.caption_.Destroy(); + if (this != internal_default_instance()) delete _impl_.contextinfo_; } -void GroupInviteMessage::ArenaDtor(void* object) { - GroupInviteMessage* _this = reinterpret_cast< GroupInviteMessage* >(object); - (void)_this; -} -void GroupInviteMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void GroupInviteMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void GroupInviteMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.GroupInviteMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000003fu) { if (cached_has_bits & 0x00000001u) { - groupjid_.ClearNonDefaultToEmpty(); + _impl_.groupjid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - invitecode_.ClearNonDefaultToEmpty(); + _impl_.invitecode_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - groupname_.ClearNonDefaultToEmpty(); + _impl_.groupname_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - jpegthumbnail_.ClearNonDefaultToEmpty(); + _impl_.jpegthumbnail_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { - caption_.ClearNonDefaultToEmpty(); + _impl_.caption_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } } - inviteexpiration_ = int64_t{0}; - _has_bits_.Clear(); + _impl_.inviteexpiration_ = int64_t{0}; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* GroupInviteMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* GroupInviteMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string groupJid = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_groupjid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.GroupInviteMessage.groupJid"); + ::_pbi::VerifyUTF8(str, "proto.GroupInviteMessage.groupJid"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string inviteCode = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_invitecode(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.GroupInviteMessage.inviteCode"); + ::_pbi::VerifyUTF8(str, "proto.GroupInviteMessage.inviteCode"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional int64 inviteExpiration = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { _Internal::set_has_inviteexpiration(&has_bits); - inviteexpiration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.inviteexpiration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string groupName = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { auto str = _internal_mutable_groupname(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.GroupInviteMessage.groupName"); + ::_pbi::VerifyUTF8(str, "proto.GroupInviteMessage.groupName"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes jpegThumbnail = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { auto str = _internal_mutable_jpegthumbnail(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional string caption = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { auto str = _internal_mutable_caption(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.GroupInviteMessage.caption"); + ::_pbi::VerifyUTF8(str, "proto.GroupInviteMessage.caption"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ContextInfo contextInfo = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -30866,7 +32259,7 @@ const char* GroupInviteMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMES CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -30874,13 +32267,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* GroupInviteMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* GroupInviteMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.GroupInviteMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string groupJid = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -30904,7 +32297,7 @@ failure: // optional int64 inviteExpiration = 3; if (cached_has_bits & 0x00000040u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_inviteexpiration(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_inviteexpiration(), target); } // optional string groupName = 4; @@ -30935,14 +32328,13 @@ failure: // optional .proto.ContextInfo contextInfo = 7; if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(7, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.GroupInviteMessage) @@ -30953,11 +32345,11 @@ size_t GroupInviteMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.GroupInviteMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000007fu) { // optional string groupJid = 1; if (cached_has_bits & 0x00000001u) { @@ -30998,63 +32390,60 @@ size_t GroupInviteMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } // optional int64 inviteExpiration = 3; if (cached_has_bits & 0x00000040u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_inviteexpiration()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_inviteexpiration()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GroupInviteMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, GroupInviteMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GroupInviteMessage::GetClassData() const { return &_class_data_; } -void GroupInviteMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<GroupInviteMessage *>(to)->MergeFrom( - static_cast<const GroupInviteMessage &>(from)); -} - -void GroupInviteMessage::MergeFrom(const GroupInviteMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.GroupInviteMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void GroupInviteMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<GroupInviteMessage*>(&to_msg); + auto& from = static_cast<const GroupInviteMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.GroupInviteMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000007fu) { if (cached_has_bits & 0x00000001u) { - _internal_set_groupjid(from._internal_groupjid()); + _this->_internal_set_groupjid(from._internal_groupjid()); } if (cached_has_bits & 0x00000002u) { - _internal_set_invitecode(from._internal_invitecode()); + _this->_internal_set_invitecode(from._internal_invitecode()); } if (cached_has_bits & 0x00000004u) { - _internal_set_groupname(from._internal_groupname()); + _this->_internal_set_groupname(from._internal_groupname()); } if (cached_has_bits & 0x00000008u) { - _internal_set_jpegthumbnail(from._internal_jpegthumbnail()); + _this->_internal_set_jpegthumbnail(from._internal_jpegthumbnail()); } if (cached_has_bits & 0x00000010u) { - _internal_set_caption(from._internal_caption()); + _this->_internal_set_caption(from._internal_caption()); } if (cached_has_bits & 0x00000020u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } if (cached_has_bits & 0x00000040u) { - inviteexpiration_ = from.inviteexpiration_; + _this->_impl_.inviteexpiration_ = from._impl_.inviteexpiration_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GroupInviteMessage::CopyFrom(const GroupInviteMessage& from) { @@ -31073,42 +32462,37 @@ void GroupInviteMessage::InternalSwap(GroupInviteMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &groupjid_, lhs_arena, - &other->groupjid_, rhs_arena + &_impl_.groupjid_, lhs_arena, + &other->_impl_.groupjid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &invitecode_, lhs_arena, - &other->invitecode_, rhs_arena + &_impl_.invitecode_, lhs_arena, + &other->_impl_.invitecode_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &groupname_, lhs_arena, - &other->groupname_, rhs_arena + &_impl_.groupname_, lhs_arena, + &other->_impl_.groupname_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &jpegthumbnail_, lhs_arena, - &other->jpegthumbnail_, rhs_arena + &_impl_.jpegthumbnail_, lhs_arena, + &other->_impl_.jpegthumbnail_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &caption_, lhs_arena, - &other->caption_, rhs_arena + &_impl_.caption_, lhs_arena, + &other->_impl_.caption_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(GroupInviteMessage, inviteexpiration_) - + sizeof(GroupInviteMessage::inviteexpiration_) - - PROTOBUF_FIELD_OFFSET(GroupInviteMessage, contextinfo_)>( - reinterpret_cast<char*>(&contextinfo_), - reinterpret_cast<char*>(&other->contextinfo_)); + PROTOBUF_FIELD_OFFSET(GroupInviteMessage, _impl_.inviteexpiration_) + + sizeof(GroupInviteMessage::_impl_.inviteexpiration_) + - PROTOBUF_FIELD_OFFSET(GroupInviteMessage, _impl_.contextinfo_)>( + reinterpret_cast<char*>(&_impl_.contextinfo_), + reinterpret_cast<char*>(&other->_impl_.contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata GroupInviteMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[64]); } @@ -31117,7 +32501,7 @@ void GroupInviteMessage::InternalSwap(GroupInviteMessage* other) { class EphemeralSetting::_Internal { public: - using HasBits = decltype(std::declval<EphemeralSetting>()._has_bits_); + using HasBits = decltype(std::declval<EphemeralSetting>()._impl_._has_bits_); static void set_has_chatjid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -31132,109 +32516,121 @@ class EphemeralSetting::_Internal { EphemeralSetting::EphemeralSetting(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.EphemeralSetting) } EphemeralSetting::EphemeralSetting(const EphemeralSetting& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + EphemeralSetting* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.chatjid_){} + , decltype(_impl_.ephemeralsettingtimestamp_){} + , decltype(_impl_.ephemeralexpiration_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - chatjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.chatjid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.chatjid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_chatjid()) { - chatjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_chatjid(), - GetArenaForAllocation()); + _this->_impl_.chatjid_.Set(from._internal_chatjid(), + _this->GetArenaForAllocation()); } - ::memcpy(&ephemeralsettingtimestamp_, &from.ephemeralsettingtimestamp_, - static_cast<size_t>(reinterpret_cast<char*>(&ephemeralexpiration_) - - reinterpret_cast<char*>(&ephemeralsettingtimestamp_)) + sizeof(ephemeralexpiration_)); + ::memcpy(&_impl_.ephemeralsettingtimestamp_, &from._impl_.ephemeralsettingtimestamp_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.ephemeralexpiration_) - + reinterpret_cast<char*>(&_impl_.ephemeralsettingtimestamp_)) + sizeof(_impl_.ephemeralexpiration_)); // @@protoc_insertion_point(copy_constructor:proto.EphemeralSetting) } -void EphemeralSetting::SharedCtor() { -chatjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&ephemeralsettingtimestamp_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&ephemeralexpiration_) - - reinterpret_cast<char*>(&ephemeralsettingtimestamp_)) + sizeof(ephemeralexpiration_)); +inline void EphemeralSetting::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.chatjid_){} + , decltype(_impl_.ephemeralsettingtimestamp_){int64_t{0}} + , decltype(_impl_.ephemeralexpiration_){0u} + }; + _impl_.chatjid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.chatjid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } EphemeralSetting::~EphemeralSetting() { // @@protoc_insertion_point(destructor:proto.EphemeralSetting) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void EphemeralSetting::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - chatjid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.chatjid_.Destroy(); } -void EphemeralSetting::ArenaDtor(void* object) { - EphemeralSetting* _this = reinterpret_cast< EphemeralSetting* >(object); - (void)_this; -} -void EphemeralSetting::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void EphemeralSetting::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void EphemeralSetting::Clear() { // @@protoc_insertion_point(message_clear_start:proto.EphemeralSetting) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - chatjid_.ClearNonDefaultToEmpty(); + _impl_.chatjid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000006u) { - ::memset(&ephemeralsettingtimestamp_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&ephemeralexpiration_) - - reinterpret_cast<char*>(&ephemeralsettingtimestamp_)) + sizeof(ephemeralexpiration_)); + ::memset(&_impl_.ephemeralsettingtimestamp_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.ephemeralexpiration_) - + reinterpret_cast<char*>(&_impl_.ephemeralsettingtimestamp_)) + sizeof(_impl_.ephemeralexpiration_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* EphemeralSetting::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* EphemeralSetting::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string chatJid = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_chatjid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.EphemeralSetting.chatJid"); + ::_pbi::VerifyUTF8(str, "proto.EphemeralSetting.chatJid"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 ephemeralExpiration = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { _Internal::set_has_ephemeralexpiration(&has_bits); - ephemeralexpiration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.ephemeralexpiration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional int64 ephemeralSettingTimestamp = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { _Internal::set_has_ephemeralsettingtimestamp(&has_bits); - ephemeralsettingtimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.ephemeralsettingtimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -31255,7 +32651,7 @@ const char* EphemeralSetting::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPA CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -31263,13 +32659,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* EphemeralSetting::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* EphemeralSetting::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.EphemeralSetting) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string chatJid = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -31283,17 +32679,17 @@ failure: // optional uint32 ephemeralExpiration = 2; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_ephemeralexpiration(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_ephemeralexpiration(), target); } // optional int64 ephemeralSettingTimestamp = 3; if (cached_has_bits & 0x00000002u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_ephemeralsettingtimestamp(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_ephemeralsettingtimestamp(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.EphemeralSetting) @@ -31304,11 +32700,11 @@ size_t EphemeralSetting::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.EphemeralSetting) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string chatJid = 1; if (cached_has_bits & 0x00000001u) { @@ -31319,51 +32715,47 @@ size_t EphemeralSetting::ByteSizeLong() const { // optional int64 ephemeralSettingTimestamp = 3; if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_ephemeralsettingtimestamp()); + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_ephemeralsettingtimestamp()); } // optional uint32 ephemeralExpiration = 2; if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_ephemeralexpiration()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_ephemeralexpiration()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EphemeralSetting::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, EphemeralSetting::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EphemeralSetting::GetClassData() const { return &_class_data_; } -void EphemeralSetting::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<EphemeralSetting *>(to)->MergeFrom( - static_cast<const EphemeralSetting &>(from)); -} - -void EphemeralSetting::MergeFrom(const EphemeralSetting& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.EphemeralSetting) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void EphemeralSetting::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<EphemeralSetting*>(&to_msg); + auto& from = static_cast<const EphemeralSetting&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.EphemeralSetting) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _internal_set_chatjid(from._internal_chatjid()); + _this->_internal_set_chatjid(from._internal_chatjid()); } if (cached_has_bits & 0x00000002u) { - ephemeralsettingtimestamp_ = from.ephemeralsettingtimestamp_; + _this->_impl_.ephemeralsettingtimestamp_ = from._impl_.ephemeralsettingtimestamp_; } if (cached_has_bits & 0x00000004u) { - ephemeralexpiration_ = from.ephemeralexpiration_; + _this->_impl_.ephemeralexpiration_ = from._impl_.ephemeralexpiration_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EphemeralSetting::CopyFrom(const EphemeralSetting& from) { @@ -31382,22 +32774,21 @@ void EphemeralSetting::InternalSwap(EphemeralSetting* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &chatjid_, lhs_arena, - &other->chatjid_, rhs_arena + &_impl_.chatjid_, lhs_arena, + &other->_impl_.chatjid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(EphemeralSetting, ephemeralexpiration_) - + sizeof(EphemeralSetting::ephemeralexpiration_) - - PROTOBUF_FIELD_OFFSET(EphemeralSetting, ephemeralsettingtimestamp_)>( - reinterpret_cast<char*>(&ephemeralsettingtimestamp_), - reinterpret_cast<char*>(&other->ephemeralsettingtimestamp_)); + PROTOBUF_FIELD_OFFSET(EphemeralSetting, _impl_.ephemeralexpiration_) + + sizeof(EphemeralSetting::_impl_.ephemeralexpiration_) + - PROTOBUF_FIELD_OFFSET(EphemeralSetting, _impl_.ephemeralsettingtimestamp_)>( + reinterpret_cast<char*>(&_impl_.ephemeralsettingtimestamp_), + reinterpret_cast<char*>(&other->_impl_.ephemeralsettingtimestamp_)); } ::PROTOBUF_NAMESPACE_ID::Metadata EphemeralSetting::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[65]); } @@ -31406,7 +32797,7 @@ void EphemeralSetting::InternalSwap(EphemeralSetting* other) { class DeviceSentMessage::_Internal { public: - using HasBits = decltype(std::declval<DeviceSentMessage>()._has_bits_); + using HasBits = decltype(std::declval<DeviceSentMessage>()._impl_._has_bits_); static void set_has_destinationjid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -31421,117 +32812,137 @@ class DeviceSentMessage::_Internal { const ::proto::Message& DeviceSentMessage::_Internal::message(const DeviceSentMessage* msg) { - return *msg->message_; + return *msg->_impl_.message_; } DeviceSentMessage::DeviceSentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - broadcastephemeralsettings_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.DeviceSentMessage) } DeviceSentMessage::DeviceSentMessage(const DeviceSentMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - broadcastephemeralsettings_(from.broadcastephemeralsettings_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + DeviceSentMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.broadcastephemeralsettings_){from._impl_.broadcastephemeralsettings_} + , decltype(_impl_.destinationjid_){} + , decltype(_impl_.phash_){} + , decltype(_impl_.message_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - destinationjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.destinationjid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.destinationjid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_destinationjid()) { - destinationjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_destinationjid(), - GetArenaForAllocation()); + _this->_impl_.destinationjid_.Set(from._internal_destinationjid(), + _this->GetArenaForAllocation()); } - phash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.phash_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.phash_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_phash()) { - phash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_phash(), - GetArenaForAllocation()); + _this->_impl_.phash_.Set(from._internal_phash(), + _this->GetArenaForAllocation()); } if (from._internal_has_message()) { - message_ = new ::proto::Message(*from.message_); - } else { - message_ = nullptr; + _this->_impl_.message_ = new ::proto::Message(*from._impl_.message_); } // @@protoc_insertion_point(copy_constructor:proto.DeviceSentMessage) } -void DeviceSentMessage::SharedCtor() { -destinationjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -phash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -message_ = nullptr; +inline void DeviceSentMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.broadcastephemeralsettings_){arena} + , decltype(_impl_.destinationjid_){} + , decltype(_impl_.phash_){} + , decltype(_impl_.message_){nullptr} + }; + _impl_.destinationjid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.destinationjid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.phash_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.phash_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } DeviceSentMessage::~DeviceSentMessage() { // @@protoc_insertion_point(destructor:proto.DeviceSentMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void DeviceSentMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - destinationjid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - phash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete message_; + _impl_.broadcastephemeralsettings_.~RepeatedPtrField(); + _impl_.destinationjid_.Destroy(); + _impl_.phash_.Destroy(); + if (this != internal_default_instance()) delete _impl_.message_; } -void DeviceSentMessage::ArenaDtor(void* object) { - DeviceSentMessage* _this = reinterpret_cast< DeviceSentMessage* >(object); - (void)_this; -} -void DeviceSentMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void DeviceSentMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void DeviceSentMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.DeviceSentMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - broadcastephemeralsettings_.Clear(); - cached_has_bits = _has_bits_[0]; + _impl_.broadcastephemeralsettings_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - destinationjid_.ClearNonDefaultToEmpty(); + _impl_.destinationjid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - phash_.ClearNonDefaultToEmpty(); + _impl_.phash_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(message_ != nullptr); - message_->Clear(); + GOOGLE_DCHECK(_impl_.message_ != nullptr); + _impl_.message_->Clear(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* DeviceSentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* DeviceSentMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string destinationJid = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_destinationjid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.DeviceSentMessage.destinationJid"); + ::_pbi::VerifyUTF8(str, "proto.DeviceSentMessage.destinationJid"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.Message message = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_message(), ptr); CHK_(ptr); } else @@ -31539,19 +32950,19 @@ const char* DeviceSentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP continue; // optional string phash = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { auto str = _internal_mutable_phash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.DeviceSentMessage.phash"); + ::_pbi::VerifyUTF8(str, "proto.DeviceSentMessage.phash"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // repeated .proto.EphemeralSetting broadcastEphemeralSettings = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { ptr -= 1; do { ptr += 1; @@ -31578,7 +32989,7 @@ const char* DeviceSentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -31586,13 +32997,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* DeviceSentMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* DeviceSentMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.DeviceSentMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string destinationJid = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -31605,10 +33016,9 @@ failure: // optional .proto.Message message = 2; if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::message(this), target, stream); + InternalWriteMessage(2, _Internal::message(this), + _Internal::message(this).GetCachedSize(), target, stream); } // optional string phash = 3; @@ -31622,15 +33032,15 @@ failure: } // repeated .proto.EphemeralSetting broadcastEphemeralSettings = 4; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->_internal_broadcastephemeralsettings_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast<unsigned>(this->_internal_broadcastephemeralsettings_size()); i < n; i++) { + const auto& repfield = this->_internal_broadcastephemeralsettings(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, this->_internal_broadcastephemeralsettings(i), target, stream); + InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.DeviceSentMessage) @@ -31641,18 +33051,18 @@ size_t DeviceSentMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.DeviceSentMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .proto.EphemeralSetting broadcastEphemeralSettings = 4; total_size += 1UL * this->_internal_broadcastephemeralsettings_size(); - for (const auto& msg : this->broadcastephemeralsettings_) { + for (const auto& msg : this->_impl_.broadcastephemeralsettings_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string destinationJid = 1; if (cached_has_bits & 0x00000001u) { @@ -31672,46 +33082,43 @@ size_t DeviceSentMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *message_); + *_impl_.message_); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeviceSentMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, DeviceSentMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeviceSentMessage::GetClassData() const { return &_class_data_; } -void DeviceSentMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<DeviceSentMessage *>(to)->MergeFrom( - static_cast<const DeviceSentMessage &>(from)); -} - -void DeviceSentMessage::MergeFrom(const DeviceSentMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.DeviceSentMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void DeviceSentMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<DeviceSentMessage*>(&to_msg); + auto& from = static_cast<const DeviceSentMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.DeviceSentMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - broadcastephemeralsettings_.MergeFrom(from.broadcastephemeralsettings_); - cached_has_bits = from._has_bits_[0]; + _this->_impl_.broadcastephemeralsettings_.MergeFrom(from._impl_.broadcastephemeralsettings_); + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _internal_set_destinationjid(from._internal_destinationjid()); + _this->_internal_set_destinationjid(from._internal_destinationjid()); } if (cached_has_bits & 0x00000002u) { - _internal_set_phash(from._internal_phash()); + _this->_internal_set_phash(from._internal_phash()); } if (cached_has_bits & 0x00000004u) { - _internal_mutable_message()->::proto::Message::MergeFrom(from._internal_message()); + _this->_internal_mutable_message()->::proto::Message::MergeFrom( + from._internal_message()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeviceSentMessage::CopyFrom(const DeviceSentMessage& from) { @@ -31730,23 +33137,21 @@ void DeviceSentMessage::InternalSwap(DeviceSentMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - broadcastephemeralsettings_.InternalSwap(&other->broadcastephemeralsettings_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.broadcastephemeralsettings_.InternalSwap(&other->_impl_.broadcastephemeralsettings_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &destinationjid_, lhs_arena, - &other->destinationjid_, rhs_arena + &_impl_.destinationjid_, lhs_arena, + &other->_impl_.destinationjid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &phash_, lhs_arena, - &other->phash_, rhs_arena + &_impl_.phash_, lhs_arena, + &other->_impl_.phash_, rhs_arena ); - swap(message_, other->message_); + swap(_impl_.message_, other->_impl_.message_); } ::PROTOBUF_NAMESPACE_ID::Metadata DeviceSentMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[66]); } @@ -31755,7 +33160,7 @@ void DeviceSentMessage::InternalSwap(DeviceSentMessage* other) { class FutureProofMessage::_Internal { public: - using HasBits = decltype(std::declval<FutureProofMessage>()._has_bits_); + using HasBits = decltype(std::declval<FutureProofMessage>()._impl_._has_bits_); static const ::proto::Message& message(const FutureProofMessage* msg); static void set_has_message(HasBits* has_bits) { (*has_bits)[0] |= 1u; @@ -31764,80 +33169,83 @@ class FutureProofMessage::_Internal { const ::proto::Message& FutureProofMessage::_Internal::message(const FutureProofMessage* msg) { - return *msg->message_; + return *msg->_impl_.message_; } FutureProofMessage::FutureProofMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.FutureProofMessage) } FutureProofMessage::FutureProofMessage(const FutureProofMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + FutureProofMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.message_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_message()) { - message_ = new ::proto::Message(*from.message_); - } else { - message_ = nullptr; + _this->_impl_.message_ = new ::proto::Message(*from._impl_.message_); } // @@protoc_insertion_point(copy_constructor:proto.FutureProofMessage) } -void FutureProofMessage::SharedCtor() { -message_ = nullptr; +inline void FutureProofMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.message_){nullptr} + }; } FutureProofMessage::~FutureProofMessage() { // @@protoc_insertion_point(destructor:proto.FutureProofMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void FutureProofMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete message_; + if (this != internal_default_instance()) delete _impl_.message_; } -void FutureProofMessage::ArenaDtor(void* object) { - FutureProofMessage* _this = reinterpret_cast< FutureProofMessage* >(object); - (void)_this; -} -void FutureProofMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void FutureProofMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void FutureProofMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.FutureProofMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(message_ != nullptr); - message_->Clear(); + GOOGLE_DCHECK(_impl_.message_ != nullptr); + _impl_.message_->Clear(); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* FutureProofMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* FutureProofMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional .proto.Message message = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_message(), ptr); CHK_(ptr); } else @@ -31859,7 +33267,7 @@ const char* FutureProofMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMES CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -31867,23 +33275,22 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* FutureProofMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* FutureProofMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.FutureProofMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.Message message = 1; if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::message(this), target, stream); + InternalWriteMessage(1, _Internal::message(this), + _Internal::message(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.FutureProofMessage) @@ -31894,44 +33301,41 @@ size_t FutureProofMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.FutureProofMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional .proto.Message message = 1; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *message_); + *_impl_.message_); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FutureProofMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, FutureProofMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FutureProofMessage::GetClassData() const { return &_class_data_; } -void FutureProofMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<FutureProofMessage *>(to)->MergeFrom( - static_cast<const FutureProofMessage &>(from)); -} - -void FutureProofMessage::MergeFrom(const FutureProofMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.FutureProofMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void FutureProofMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<FutureProofMessage*>(&to_msg); + auto& from = static_cast<const FutureProofMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.FutureProofMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_message()) { - _internal_mutable_message()->::proto::Message::MergeFrom(from._internal_message()); + _this->_internal_mutable_message()->::proto::Message::MergeFrom( + from._internal_message()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FutureProofMessage::CopyFrom(const FutureProofMessage& from) { @@ -31948,12 +33352,12 @@ bool FutureProofMessage::IsInitialized() const { void FutureProofMessage::InternalSwap(FutureProofMessage* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(message_, other->message_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.message_, other->_impl_.message_); } ::PROTOBUF_NAMESPACE_ID::Metadata FutureProofMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[67]); } @@ -31962,7 +33366,7 @@ void FutureProofMessage::InternalSwap(FutureProofMessage* other) { class ButtonText::_Internal { public: - using HasBits = decltype(std::declval<ButtonText>()._has_bits_); + using HasBits = decltype(std::declval<ButtonText>()._impl_._has_bits_); static void set_has_displaytext(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -31971,80 +33375,92 @@ class ButtonText::_Internal { ButtonText::ButtonText(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.ButtonText) } ButtonText::ButtonText(const ButtonText& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + ButtonText* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.displaytext_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.displaytext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.displaytext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_displaytext()) { - displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displaytext(), - GetArenaForAllocation()); + _this->_impl_.displaytext_.Set(from._internal_displaytext(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.ButtonText) } -void ButtonText::SharedCtor() { -displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void ButtonText::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.displaytext_){} + }; + _impl_.displaytext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.displaytext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ButtonText::~ButtonText() { // @@protoc_insertion_point(destructor:proto.ButtonText) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void ButtonText::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - displaytext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.displaytext_.Destroy(); } -void ButtonText::ArenaDtor(void* object) { - ButtonText* _this = reinterpret_cast< ButtonText* >(object); - (void)_this; -} -void ButtonText::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void ButtonText::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ButtonText::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ButtonText) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { - displaytext_.ClearNonDefaultToEmpty(); + _impl_.displaytext_.ClearNonDefaultToEmpty(); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ButtonText::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ButtonText::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string displayText = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_displaytext(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ButtonText.displayText"); + ::_pbi::VerifyUTF8(str, "proto.ButtonText.displayText"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -32064,7 +33480,7 @@ const char* ButtonText::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -32072,13 +33488,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ButtonText::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* ButtonText::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.ButtonText) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string displayText = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -32090,7 +33506,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ButtonText) @@ -32101,44 +33517,40 @@ size_t ButtonText::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.ButtonText) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional string displayText = 1; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_displaytext()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ButtonText::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ButtonText::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ButtonText::GetClassData() const { return &_class_data_; } -void ButtonText::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<ButtonText *>(to)->MergeFrom( - static_cast<const ButtonText &>(from)); -} - -void ButtonText::MergeFrom(const ButtonText& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.ButtonText) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void ButtonText::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<ButtonText*>(&to_msg); + auto& from = static_cast<const ButtonText&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.ButtonText) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_displaytext()) { - _internal_set_displaytext(from._internal_displaytext()); + _this->_internal_set_displaytext(from._internal_displaytext()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ButtonText::CopyFrom(const ButtonText& from) { @@ -32157,16 +33569,15 @@ void ButtonText::InternalSwap(ButtonText* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &displaytext_, lhs_arena, - &other->displaytext_, rhs_arena + &_impl_.displaytext_, lhs_arena, + &other->_impl_.displaytext_, rhs_arena ); } ::PROTOBUF_NAMESPACE_ID::Metadata ButtonText::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[68]); } @@ -32175,7 +33586,7 @@ void ButtonText::InternalSwap(ButtonText* other) { class Button::_Internal { public: - using HasBits = decltype(std::declval<Button>()._has_bits_); + using HasBits = decltype(std::declval<Button>()._impl_._has_bits_); static void set_has_buttonid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -32190,109 +33601,119 @@ class Button::_Internal { const ::proto::ButtonText& Button::_Internal::buttontext(const Button* msg) { - return *msg->buttontext_; + return *msg->_impl_.buttontext_; } Button::Button(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.Button) } Button::Button(const Button& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + Button* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.buttonid_){} + , decltype(_impl_.buttontext_){nullptr} + , decltype(_impl_.type_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - buttonid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.buttonid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.buttonid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_buttonid()) { - buttonid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_buttonid(), - GetArenaForAllocation()); + _this->_impl_.buttonid_.Set(from._internal_buttonid(), + _this->GetArenaForAllocation()); } if (from._internal_has_buttontext()) { - buttontext_ = new ::proto::ButtonText(*from.buttontext_); - } else { - buttontext_ = nullptr; + _this->_impl_.buttontext_ = new ::proto::ButtonText(*from._impl_.buttontext_); } - type_ = from.type_; + _this->_impl_.type_ = from._impl_.type_; // @@protoc_insertion_point(copy_constructor:proto.Button) } -void Button::SharedCtor() { -buttonid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&buttontext_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&type_) - - reinterpret_cast<char*>(&buttontext_)) + sizeof(type_)); +inline void Button::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.buttonid_){} + , decltype(_impl_.buttontext_){nullptr} + , decltype(_impl_.type_){0} + }; + _impl_.buttonid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.buttonid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Button::~Button() { // @@protoc_insertion_point(destructor:proto.Button) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void Button::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - buttonid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete buttontext_; + _impl_.buttonid_.Destroy(); + if (this != internal_default_instance()) delete _impl_.buttontext_; } -void Button::ArenaDtor(void* object) { - Button* _this = reinterpret_cast< Button* >(object); - (void)_this; -} -void Button::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void Button::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void Button::Clear() { // @@protoc_insertion_point(message_clear_start:proto.Button) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - buttonid_.ClearNonDefaultToEmpty(); + _impl_.buttonid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(buttontext_ != nullptr); - buttontext_->Clear(); + GOOGLE_DCHECK(_impl_.buttontext_ != nullptr); + _impl_.buttontext_->Clear(); } } - type_ = 0; - _has_bits_.Clear(); + _impl_.type_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Button::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Button::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string buttonId = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_buttonid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Button.buttonId"); + ::_pbi::VerifyUTF8(str, "proto.Button.buttonId"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ButtonText buttonText = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_buttontext(), ptr); CHK_(ptr); } else @@ -32300,8 +33721,8 @@ const char* Button::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int continue; // optional .proto.Button.ButtonType 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); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::Button_ButtonType_IsValid(val))) { _internal_set_type(static_cast<::proto::Button_ButtonType>(val)); @@ -32327,7 +33748,7 @@ const char* Button::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -32335,13 +33756,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Button::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* Button::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.Button) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string buttonId = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -32354,21 +33775,20 @@ failure: // optional .proto.ButtonText buttonText = 2; if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::buttontext(this), target, stream); + InternalWriteMessage(2, _Internal::buttontext(this), + _Internal::buttontext(this).GetCachedSize(), target, stream); } // optional .proto.Button.ButtonType type = 3; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 3, this->_internal_type(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.Button) @@ -32379,11 +33799,11 @@ size_t Button::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.Button) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string buttonId = 1; if (cached_has_bits & 0x00000001u) { @@ -32396,52 +33816,49 @@ size_t Button::ByteSizeLong() const { if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *buttontext_); + *_impl_.buttontext_); } // optional .proto.Button.ButtonType type = 3; if (cached_has_bits & 0x00000004u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Button::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, Button::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Button::GetClassData() const { return &_class_data_; } -void Button::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<Button *>(to)->MergeFrom( - static_cast<const Button &>(from)); -} - -void Button::MergeFrom(const Button& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.Button) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void Button::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<Button*>(&to_msg); + auto& from = static_cast<const Button&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.Button) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _internal_set_buttonid(from._internal_buttonid()); + _this->_internal_set_buttonid(from._internal_buttonid()); } if (cached_has_bits & 0x00000002u) { - _internal_mutable_buttontext()->::proto::ButtonText::MergeFrom(from._internal_buttontext()); + _this->_internal_mutable_buttontext()->::proto::ButtonText::MergeFrom( + from._internal_buttontext()); } if (cached_has_bits & 0x00000004u) { - type_ = from.type_; + _this->_impl_.type_ = from._impl_.type_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Button::CopyFrom(const Button& from) { @@ -32460,22 +33877,21 @@ void Button::InternalSwap(Button* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &buttonid_, lhs_arena, - &other->buttonid_, rhs_arena + &_impl_.buttonid_, lhs_arena, + &other->_impl_.buttonid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Button, type_) - + sizeof(Button::type_) - - PROTOBUF_FIELD_OFFSET(Button, buttontext_)>( - reinterpret_cast<char*>(&buttontext_), - reinterpret_cast<char*>(&other->buttontext_)); + PROTOBUF_FIELD_OFFSET(Button, _impl_.type_) + + sizeof(Button::_impl_.type_) + - PROTOBUF_FIELD_OFFSET(Button, _impl_.buttontext_)>( + reinterpret_cast<char*>(&_impl_.buttontext_), + reinterpret_cast<char*>(&other->_impl_.buttontext_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Button::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[69]); } @@ -32484,7 +33900,7 @@ void Button::InternalSwap(Button* other) { class ButtonsMessage::_Internal { public: - using HasBits = decltype(std::declval<ButtonsMessage>()._has_bits_); + using HasBits = decltype(std::declval<ButtonsMessage>()._impl_._has_bits_); static void set_has_contenttext(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -32506,36 +33922,36 @@ class ButtonsMessage::_Internal { const ::proto::ContextInfo& ButtonsMessage::_Internal::contextinfo(const ButtonsMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } const ::proto::DocumentMessage& ButtonsMessage::_Internal::documentmessage(const ButtonsMessage* msg) { - return *msg->header_.documentmessage_; + return *msg->_impl_.header_.documentmessage_; } const ::proto::ImageMessage& ButtonsMessage::_Internal::imagemessage(const ButtonsMessage* msg) { - return *msg->header_.imagemessage_; + return *msg->_impl_.header_.imagemessage_; } const ::proto::VideoMessage& ButtonsMessage::_Internal::videomessage(const ButtonsMessage* msg) { - return *msg->header_.videomessage_; + return *msg->_impl_.header_.videomessage_; } const ::proto::LocationMessage& ButtonsMessage::_Internal::locationmessage(const ButtonsMessage* msg) { - return *msg->header_.locationmessage_; + return *msg->_impl_.header_.locationmessage_; } void ButtonsMessage::set_allocated_documentmessage(::proto::DocumentMessage* documentmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_header(); if (documentmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::DocumentMessage>::GetOwningArena(documentmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(documentmessage); if (message_arena != submessage_arena) { documentmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, documentmessage, submessage_arena); } set_has_documentmessage(); - header_.documentmessage_ = documentmessage; + _impl_.header_.documentmessage_ = documentmessage; } // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.documentMessage) } @@ -32544,13 +33960,13 @@ void ButtonsMessage::set_allocated_imagemessage(::proto::ImageMessage* imagemess clear_header(); if (imagemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ImageMessage>::GetOwningArena(imagemessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(imagemessage); if (message_arena != submessage_arena) { imagemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, imagemessage, submessage_arena); } set_has_imagemessage(); - header_.imagemessage_ = imagemessage; + _impl_.header_.imagemessage_ = imagemessage; } // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.imageMessage) } @@ -32559,13 +33975,13 @@ void ButtonsMessage::set_allocated_videomessage(::proto::VideoMessage* videomess clear_header(); if (videomessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::VideoMessage>::GetOwningArena(videomessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(videomessage); if (message_arena != submessage_arena) { videomessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, videomessage, submessage_arena); } set_has_videomessage(); - header_.videomessage_ = videomessage; + _impl_.header_.videomessage_ = videomessage; } // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.videoMessage) } @@ -32574,67 +33990,81 @@ void ButtonsMessage::set_allocated_locationmessage(::proto::LocationMessage* loc clear_header(); if (locationmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::LocationMessage>::GetOwningArena(locationmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(locationmessage); if (message_arena != submessage_arena) { locationmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, locationmessage, submessage_arena); } set_has_locationmessage(); - header_.locationmessage_ = locationmessage; + _impl_.header_.locationmessage_ = locationmessage; } // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.locationMessage) } ButtonsMessage::ButtonsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - buttons_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.ButtonsMessage) } ButtonsMessage::ButtonsMessage(const ButtonsMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - buttons_(from.buttons_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + ButtonsMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.buttons_){from._impl_.buttons_} + , decltype(_impl_.contenttext_){} + , decltype(_impl_.footertext_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.headertype_){} + , decltype(_impl_.header_){} + , /*decltype(_impl_._oneof_case_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - contenttext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.contenttext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.contenttext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_contenttext()) { - contenttext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_contenttext(), - GetArenaForAllocation()); + _this->_impl_.contenttext_.Set(from._internal_contenttext(), + _this->GetArenaForAllocation()); } - footertext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.footertext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.footertext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_footertext()) { - footertext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_footertext(), - GetArenaForAllocation()); + _this->_impl_.footertext_.Set(from._internal_footertext(), + _this->GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } - headertype_ = from.headertype_; + _this->_impl_.headertype_ = from._impl_.headertype_; clear_has_header(); switch (from.header_case()) { case kText: { - _internal_set_text(from._internal_text()); + _this->_internal_set_text(from._internal_text()); break; } case kDocumentMessage: { - _internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom(from._internal_documentmessage()); + _this->_internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom( + from._internal_documentmessage()); break; } case kImageMessage: { - _internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom(from._internal_imagemessage()); + _this->_internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom( + from._internal_imagemessage()); break; } case kVideoMessage: { - _internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom(from._internal_videomessage()); + _this->_internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom( + from._internal_videomessage()); break; } case kLocationMessage: { - _internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom(from._internal_locationmessage()); + _this->_internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom( + from._internal_locationmessage()); break; } case HEADER_NOT_SET: { @@ -32644,71 +34074,84 @@ ButtonsMessage::ButtonsMessage(const ButtonsMessage& from) // @@protoc_insertion_point(copy_constructor:proto.ButtonsMessage) } -void ButtonsMessage::SharedCtor() { -contenttext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -footertext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&headertype_) - - reinterpret_cast<char*>(&contextinfo_)) + sizeof(headertype_)); -clear_has_header(); +inline void ButtonsMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.buttons_){arena} + , decltype(_impl_.contenttext_){} + , decltype(_impl_.footertext_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.headertype_){0} + , decltype(_impl_.header_){} + , /*decltype(_impl_._oneof_case_)*/{} + }; + _impl_.contenttext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.contenttext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.footertext_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.footertext_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + clear_has_header(); } ButtonsMessage::~ButtonsMessage() { // @@protoc_insertion_point(destructor:proto.ButtonsMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void ButtonsMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - contenttext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - footertext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete contextinfo_; + _impl_.buttons_.~RepeatedPtrField(); + _impl_.contenttext_.Destroy(); + _impl_.footertext_.Destroy(); + if (this != internal_default_instance()) delete _impl_.contextinfo_; if (has_header()) { clear_header(); } } -void ButtonsMessage::ArenaDtor(void* object) { - ButtonsMessage* _this = reinterpret_cast< ButtonsMessage* >(object); - (void)_this; -} -void ButtonsMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void ButtonsMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ButtonsMessage::clear_header() { // @@protoc_insertion_point(one_of_clear_start:proto.ButtonsMessage) switch (header_case()) { case kText: { - header_.text_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); + _impl_.header_.text_.Destroy(); break; } case kDocumentMessage: { if (GetArenaForAllocation() == nullptr) { - delete header_.documentmessage_; + delete _impl_.header_.documentmessage_; } break; } case kImageMessage: { if (GetArenaForAllocation() == nullptr) { - delete header_.imagemessage_; + delete _impl_.header_.imagemessage_; } break; } case kVideoMessage: { if (GetArenaForAllocation() == nullptr) { - delete header_.videomessage_; + delete _impl_.header_.videomessage_; } break; } case kLocationMessage: { if (GetArenaForAllocation() == nullptr) { - delete header_.locationmessage_; + delete _impl_.header_.locationmessage_; } break; } @@ -32716,58 +34159,58 @@ void ButtonsMessage::clear_header() { break; } } - _oneof_case_[0] = HEADER_NOT_SET; + _impl_._oneof_case_[0] = HEADER_NOT_SET; } void ButtonsMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ButtonsMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - buttons_.Clear(); - cached_has_bits = _has_bits_[0]; + _impl_.buttons_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - contenttext_.ClearNonDefaultToEmpty(); + _impl_.contenttext_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - footertext_.ClearNonDefaultToEmpty(); + _impl_.footertext_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } } - headertype_ = 0; + _impl_.headertype_ = 0; clear_header(); - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ButtonsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ButtonsMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string text = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_text(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ButtonsMessage.text"); + ::_pbi::VerifyUTF8(str, "proto.ButtonsMessage.text"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // .proto.DocumentMessage documentMessage = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_documentmessage(), ptr); CHK_(ptr); } else @@ -32775,7 +34218,7 @@ const char* ButtonsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // .proto.ImageMessage imageMessage = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_imagemessage(), ptr); CHK_(ptr); } else @@ -32783,7 +34226,7 @@ const char* ButtonsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // .proto.VideoMessage videoMessage = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_videomessage(), ptr); CHK_(ptr); } else @@ -32791,7 +34234,7 @@ const char* ButtonsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // .proto.LocationMessage locationMessage = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { ptr = ctx->ParseMessage(_internal_mutable_locationmessage(), ptr); CHK_(ptr); } else @@ -32799,31 +34242,31 @@ const char* ButtonsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // optional string contentText = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { auto str = _internal_mutable_contenttext(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ButtonsMessage.contentText"); + ::_pbi::VerifyUTF8(str, "proto.ButtonsMessage.contentText"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string footerText = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { auto str = _internal_mutable_footertext(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ButtonsMessage.footerText"); + ::_pbi::VerifyUTF8(str, "proto.ButtonsMessage.footerText"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ContextInfo contextInfo = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -32831,7 +34274,7 @@ const char* ButtonsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // repeated .proto.Button buttons = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) { ptr -= 1; do { ptr += 1; @@ -32844,8 +34287,8 @@ const char* ButtonsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // optional .proto.ButtonsMessage.ButtonsMessageHeaderType headerType = 10; case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::ButtonsMessage_ButtonsMessageHeaderType_IsValid(val))) { _internal_set_headertype(static_cast<::proto::ButtonsMessage_ButtonsMessageHeaderType>(val)); @@ -32871,7 +34314,7 @@ const char* ButtonsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -32879,10 +34322,10 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ButtonsMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* ButtonsMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.ButtonsMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; switch (header_case()) { @@ -32896,36 +34339,32 @@ failure: break; } case kDocumentMessage: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::documentmessage(this), target, stream); + InternalWriteMessage(2, _Internal::documentmessage(this), + _Internal::documentmessage(this).GetCachedSize(), target, stream); break; } case kImageMessage: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::imagemessage(this), target, stream); + InternalWriteMessage(3, _Internal::imagemessage(this), + _Internal::imagemessage(this).GetCachedSize(), target, stream); break; } case kVideoMessage: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::videomessage(this), target, stream); + InternalWriteMessage(4, _Internal::videomessage(this), + _Internal::videomessage(this).GetCachedSize(), target, stream); break; } case kLocationMessage: { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::locationmessage(this), target, stream); + InternalWriteMessage(5, _Internal::locationmessage(this), + _Internal::locationmessage(this).GetCachedSize(), target, stream); break; } default: ; } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string contentText = 6; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -32948,29 +34387,28 @@ failure: // optional .proto.ContextInfo contextInfo = 8; if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(8, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } // repeated .proto.Button buttons = 9; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->_internal_buttons_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast<unsigned>(this->_internal_buttons_size()); i < n; i++) { + const auto& repfield = this->_internal_buttons(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(9, this->_internal_buttons(i), target, stream); + InternalWriteMessage(9, repfield, repfield.GetCachedSize(), target, stream); } // optional .proto.ButtonsMessage.ButtonsMessageHeaderType headerType = 10; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 10, this->_internal_headertype(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ButtonsMessage) @@ -32981,18 +34419,18 @@ size_t ButtonsMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.ButtonsMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .proto.Button buttons = 9; total_size += 1UL * this->_internal_buttons_size(); - for (const auto& msg : this->buttons_) { + for (const auto& msg : this->_impl_.buttons_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional string contentText = 6; if (cached_has_bits & 0x00000001u) { @@ -33012,13 +34450,13 @@ size_t ButtonsMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } // optional .proto.ButtonsMessage.ButtonsMessageHeaderType headerType = 10; if (cached_has_bits & 0x00000008u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_headertype()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_headertype()); } } @@ -33034,99 +34472,100 @@ size_t ButtonsMessage::ByteSizeLong() const { case kDocumentMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *header_.documentmessage_); + *_impl_.header_.documentmessage_); break; } // .proto.ImageMessage imageMessage = 3; case kImageMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *header_.imagemessage_); + *_impl_.header_.imagemessage_); break; } // .proto.VideoMessage videoMessage = 4; case kVideoMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *header_.videomessage_); + *_impl_.header_.videomessage_); break; } // .proto.LocationMessage locationMessage = 5; case kLocationMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *header_.locationmessage_); + *_impl_.header_.locationmessage_); break; } case HEADER_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ButtonsMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ButtonsMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ButtonsMessage::GetClassData() const { return &_class_data_; } -void ButtonsMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<ButtonsMessage *>(to)->MergeFrom( - static_cast<const ButtonsMessage &>(from)); -} - -void ButtonsMessage::MergeFrom(const ButtonsMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.ButtonsMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void ButtonsMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<ButtonsMessage*>(&to_msg); + auto& from = static_cast<const ButtonsMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.ButtonsMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - buttons_.MergeFrom(from.buttons_); - cached_has_bits = from._has_bits_[0]; + _this->_impl_.buttons_.MergeFrom(from._impl_.buttons_); + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - _internal_set_contenttext(from._internal_contenttext()); + _this->_internal_set_contenttext(from._internal_contenttext()); } if (cached_has_bits & 0x00000002u) { - _internal_set_footertext(from._internal_footertext()); + _this->_internal_set_footertext(from._internal_footertext()); } if (cached_has_bits & 0x00000004u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } if (cached_has_bits & 0x00000008u) { - headertype_ = from.headertype_; + _this->_impl_.headertype_ = from._impl_.headertype_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } switch (from.header_case()) { case kText: { - _internal_set_text(from._internal_text()); + _this->_internal_set_text(from._internal_text()); break; } case kDocumentMessage: { - _internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom(from._internal_documentmessage()); + _this->_internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom( + from._internal_documentmessage()); break; } case kImageMessage: { - _internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom(from._internal_imagemessage()); + _this->_internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom( + from._internal_imagemessage()); break; } case kVideoMessage: { - _internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom(from._internal_videomessage()); + _this->_internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom( + from._internal_videomessage()); break; } case kLocationMessage: { - _internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom(from._internal_locationmessage()); + _this->_internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom( + from._internal_locationmessage()); break; } case HEADER_NOT_SET: { break; } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ButtonsMessage::CopyFrom(const ButtonsMessage& from) { @@ -33145,30 +34584,28 @@ void ButtonsMessage::InternalSwap(ButtonsMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - buttons_.InternalSwap(&other->buttons_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.buttons_.InternalSwap(&other->_impl_.buttons_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &contenttext_, lhs_arena, - &other->contenttext_, rhs_arena + &_impl_.contenttext_, lhs_arena, + &other->_impl_.contenttext_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &footertext_, lhs_arena, - &other->footertext_, rhs_arena + &_impl_.footertext_, lhs_arena, + &other->_impl_.footertext_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ButtonsMessage, headertype_) - + sizeof(ButtonsMessage::headertype_) - - PROTOBUF_FIELD_OFFSET(ButtonsMessage, contextinfo_)>( - reinterpret_cast<char*>(&contextinfo_), - reinterpret_cast<char*>(&other->contextinfo_)); - swap(header_, other->header_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + PROTOBUF_FIELD_OFFSET(ButtonsMessage, _impl_.headertype_) + + sizeof(ButtonsMessage::_impl_.headertype_) + - PROTOBUF_FIELD_OFFSET(ButtonsMessage, _impl_.contextinfo_)>( + reinterpret_cast<char*>(&_impl_.contextinfo_), + reinterpret_cast<char*>(&other->_impl_.contextinfo_)); + swap(_impl_.header_, other->_impl_.header_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata ButtonsMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[70]); } @@ -33177,7 +34614,7 @@ void ButtonsMessage::InternalSwap(ButtonsMessage* other) { class ButtonsResponseMessage::_Internal { public: - using HasBits = decltype(std::declval<ButtonsResponseMessage>()._has_bits_); + using HasBits = decltype(std::declval<ButtonsResponseMessage>()._impl_._has_bits_); static void set_has_selectedbuttonid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -33192,36 +34629,43 @@ class ButtonsResponseMessage::_Internal { const ::proto::ContextInfo& ButtonsResponseMessage::_Internal::contextinfo(const ButtonsResponseMessage* msg) { - return *msg->contextinfo_; + return *msg->_impl_.contextinfo_; } ButtonsResponseMessage::ButtonsResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.ButtonsResponseMessage) } ButtonsResponseMessage::ButtonsResponseMessage(const ButtonsResponseMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + ButtonsResponseMessage* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.selectedbuttonid_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.type_){} + , decltype(_impl_.response_){} + , /*decltype(_impl_._oneof_case_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - selectedbuttonid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.selectedbuttonid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.selectedbuttonid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_selectedbuttonid()) { - selectedbuttonid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_selectedbuttonid(), - GetArenaForAllocation()); + _this->_impl_.selectedbuttonid_.Set(from._internal_selectedbuttonid(), + _this->GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { - contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); - } else { - contextinfo_ = nullptr; + _this->_impl_.contextinfo_ = new ::proto::ContextInfo(*from._impl_.contextinfo_); } - type_ = from.type_; + _this->_impl_.type_ = from._impl_.type_; clear_has_response(); switch (from.response_case()) { case kSelectedDisplayText: { - _internal_set_selecteddisplaytext(from._internal_selecteddisplaytext()); + _this->_internal_set_selecteddisplaytext(from._internal_selecteddisplaytext()); break; } case RESPONSE_NOT_SET: { @@ -33231,112 +34675,119 @@ ButtonsResponseMessage::ButtonsResponseMessage(const ButtonsResponseMessage& fro // @@protoc_insertion_point(copy_constructor:proto.ButtonsResponseMessage) } -void ButtonsResponseMessage::SharedCtor() { -selectedbuttonid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&type_) - - reinterpret_cast<char*>(&contextinfo_)) + sizeof(type_)); -clear_has_response(); +inline void ButtonsResponseMessage::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.selectedbuttonid_){} + , decltype(_impl_.contextinfo_){nullptr} + , decltype(_impl_.type_){0} + , decltype(_impl_.response_){} + , /*decltype(_impl_._oneof_case_)*/{} + }; + _impl_.selectedbuttonid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.selectedbuttonid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + clear_has_response(); } ButtonsResponseMessage::~ButtonsResponseMessage() { // @@protoc_insertion_point(destructor:proto.ButtonsResponseMessage) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void ButtonsResponseMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - selectedbuttonid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete contextinfo_; + _impl_.selectedbuttonid_.Destroy(); + if (this != internal_default_instance()) delete _impl_.contextinfo_; if (has_response()) { clear_response(); } } -void ButtonsResponseMessage::ArenaDtor(void* object) { - ButtonsResponseMessage* _this = reinterpret_cast< ButtonsResponseMessage* >(object); - (void)_this; -} -void ButtonsResponseMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void ButtonsResponseMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void ButtonsResponseMessage::clear_response() { // @@protoc_insertion_point(one_of_clear_start:proto.ButtonsResponseMessage) switch (response_case()) { case kSelectedDisplayText: { - response_.selecteddisplaytext_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); + _impl_.response_.selecteddisplaytext_.Destroy(); break; } case RESPONSE_NOT_SET: { break; } } - _oneof_case_[0] = RESPONSE_NOT_SET; + _impl_._oneof_case_[0] = RESPONSE_NOT_SET; } void ButtonsResponseMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ButtonsResponseMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - selectedbuttonid_.ClearNonDefaultToEmpty(); + _impl_.selectedbuttonid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(contextinfo_ != nullptr); - contextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.contextinfo_ != nullptr); + _impl_.contextinfo_->Clear(); } } - type_ = 0; + _impl_.type_ = 0; clear_response(); - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ButtonsResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ButtonsResponseMessage::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string selectedButtonId = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_selectedbuttonid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ButtonsResponseMessage.selectedButtonId"); + ::_pbi::VerifyUTF8(str, "proto.ButtonsResponseMessage.selectedButtonId"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // string selectedDisplayText = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { auto str = _internal_mutable_selecteddisplaytext(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ButtonsResponseMessage.selectedDisplayText"); + ::_pbi::VerifyUTF8(str, "proto.ButtonsResponseMessage.selectedDisplayText"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ContextInfo contextInfo = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else @@ -33344,8 +34795,8 @@ const char* ButtonsResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_N continue; // optional .proto.ButtonsResponseMessage.ButtonsResponseMessageType type = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::ButtonsResponseMessage_ButtonsResponseMessageType_IsValid(val))) { _internal_set_type(static_cast<::proto::ButtonsResponseMessage_ButtonsResponseMessageType>(val)); @@ -33371,7 +34822,7 @@ const char* ButtonsResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_N CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -33379,13 +34830,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ButtonsResponseMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* ButtonsResponseMessage::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.ButtonsResponseMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string selectedButtonId = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -33408,21 +34859,20 @@ failure: // optional .proto.ContextInfo contextInfo = 3; if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::contextinfo(this), target, stream); + InternalWriteMessage(3, _Internal::contextinfo(this), + _Internal::contextinfo(this).GetCachedSize(), target, stream); } // optional .proto.ButtonsResponseMessage.ButtonsResponseMessageType type = 4; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 4, this->_internal_type(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ButtonsResponseMessage) @@ -33433,11 +34883,11 @@ size_t ButtonsResponseMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.ButtonsResponseMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string selectedButtonId = 1; if (cached_has_bits & 0x00000001u) { @@ -33450,13 +34900,13 @@ size_t ButtonsResponseMessage::ByteSizeLong() const { if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contextinfo_); + *_impl_.contextinfo_); } // optional .proto.ButtonsResponseMessage.ButtonsResponseMessageType type = 4; if (cached_has_bits & 0x00000004u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_type()); } } @@ -33472,51 +34922,48 @@ size_t ButtonsResponseMessage::ByteSizeLong() const { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ButtonsResponseMessage::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ButtonsResponseMessage::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ButtonsResponseMessage::GetClassData() const { return &_class_data_; } -void ButtonsResponseMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<ButtonsResponseMessage *>(to)->MergeFrom( - static_cast<const ButtonsResponseMessage &>(from)); -} - -void ButtonsResponseMessage::MergeFrom(const ButtonsResponseMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.ButtonsResponseMessage) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void ButtonsResponseMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<ButtonsResponseMessage*>(&to_msg); + auto& from = static_cast<const ButtonsResponseMessage&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.ButtonsResponseMessage) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _internal_set_selectedbuttonid(from._internal_selectedbuttonid()); + _this->_internal_set_selectedbuttonid(from._internal_selectedbuttonid()); } if (cached_has_bits & 0x00000002u) { - _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + _this->_internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom( + from._internal_contextinfo()); } if (cached_has_bits & 0x00000004u) { - type_ = from.type_; + _this->_impl_.type_ = from._impl_.type_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } switch (from.response_case()) { case kSelectedDisplayText: { - _internal_set_selecteddisplaytext(from._internal_selecteddisplaytext()); + _this->_internal_set_selecteddisplaytext(from._internal_selecteddisplaytext()); break; } case RESPONSE_NOT_SET: { break; } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ButtonsResponseMessage::CopyFrom(const ButtonsResponseMessage& from) { @@ -33535,24 +34982,23 @@ void ButtonsResponseMessage::InternalSwap(ButtonsResponseMessage* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &selectedbuttonid_, lhs_arena, - &other->selectedbuttonid_, rhs_arena + &_impl_.selectedbuttonid_, lhs_arena, + &other->_impl_.selectedbuttonid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ButtonsResponseMessage, type_) - + sizeof(ButtonsResponseMessage::type_) - - PROTOBUF_FIELD_OFFSET(ButtonsResponseMessage, contextinfo_)>( - reinterpret_cast<char*>(&contextinfo_), - reinterpret_cast<char*>(&other->contextinfo_)); - swap(response_, other->response_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + PROTOBUF_FIELD_OFFSET(ButtonsResponseMessage, _impl_.type_) + + sizeof(ButtonsResponseMessage::_impl_.type_) + - PROTOBUF_FIELD_OFFSET(ButtonsResponseMessage, _impl_.contextinfo_)>( + reinterpret_cast<char*>(&_impl_.contextinfo_), + reinterpret_cast<char*>(&other->_impl_.contextinfo_)); + swap(_impl_.response_, other->_impl_.response_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata ButtonsResponseMessage::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[71]); } @@ -33561,7 +35007,7 @@ void ButtonsResponseMessage::InternalSwap(ButtonsResponseMessage* other) { class Message::_Internal { public: - using HasBits = decltype(std::declval<Message>()._has_bits_); + using HasBits = decltype(std::declval<Message>()._impl_._has_bits_); static void set_has_conversation(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -33705,577 +35151,585 @@ class Message::_Internal { const ::proto::SenderKeyDistributionMessage& Message::_Internal::senderkeydistributionmessage(const Message* msg) { - return *msg->senderkeydistributionmessage_; + return *msg->_impl_.senderkeydistributionmessage_; } const ::proto::ImageMessage& Message::_Internal::imagemessage(const Message* msg) { - return *msg->imagemessage_; + return *msg->_impl_.imagemessage_; } const ::proto::ContactMessage& Message::_Internal::contactmessage(const Message* msg) { - return *msg->contactmessage_; + return *msg->_impl_.contactmessage_; } const ::proto::LocationMessage& Message::_Internal::locationmessage(const Message* msg) { - return *msg->locationmessage_; + return *msg->_impl_.locationmessage_; } const ::proto::ExtendedTextMessage& Message::_Internal::extendedtextmessage(const Message* msg) { - return *msg->extendedtextmessage_; + return *msg->_impl_.extendedtextmessage_; } const ::proto::DocumentMessage& Message::_Internal::documentmessage(const Message* msg) { - return *msg->documentmessage_; + return *msg->_impl_.documentmessage_; } const ::proto::AudioMessage& Message::_Internal::audiomessage(const Message* msg) { - return *msg->audiomessage_; + return *msg->_impl_.audiomessage_; } const ::proto::VideoMessage& Message::_Internal::videomessage(const Message* msg) { - return *msg->videomessage_; + return *msg->_impl_.videomessage_; } const ::proto::Call& Message::_Internal::call(const Message* msg) { - return *msg->call_; + return *msg->_impl_.call_; } const ::proto::Chat& Message::_Internal::chat(const Message* msg) { - return *msg->chat_; + return *msg->_impl_.chat_; } const ::proto::ProtocolMessage& Message::_Internal::protocolmessage(const Message* msg) { - return *msg->protocolmessage_; + return *msg->_impl_.protocolmessage_; } const ::proto::ContactsArrayMessage& Message::_Internal::contactsarraymessage(const Message* msg) { - return *msg->contactsarraymessage_; + return *msg->_impl_.contactsarraymessage_; } const ::proto::HighlyStructuredMessage& Message::_Internal::highlystructuredmessage(const Message* msg) { - return *msg->highlystructuredmessage_; + return *msg->_impl_.highlystructuredmessage_; } const ::proto::SenderKeyDistributionMessage& Message::_Internal::fastratchetkeysenderkeydistributionmessage(const Message* msg) { - return *msg->fastratchetkeysenderkeydistributionmessage_; + return *msg->_impl_.fastratchetkeysenderkeydistributionmessage_; } const ::proto::SendPaymentMessage& Message::_Internal::sendpaymentmessage(const Message* msg) { - return *msg->sendpaymentmessage_; + return *msg->_impl_.sendpaymentmessage_; } const ::proto::LiveLocationMessage& Message::_Internal::livelocationmessage(const Message* msg) { - return *msg->livelocationmessage_; + return *msg->_impl_.livelocationmessage_; } const ::proto::RequestPaymentMessage& Message::_Internal::requestpaymentmessage(const Message* msg) { - return *msg->requestpaymentmessage_; + return *msg->_impl_.requestpaymentmessage_; } const ::proto::DeclinePaymentRequestMessage& Message::_Internal::declinepaymentrequestmessage(const Message* msg) { - return *msg->declinepaymentrequestmessage_; + return *msg->_impl_.declinepaymentrequestmessage_; } const ::proto::CancelPaymentRequestMessage& Message::_Internal::cancelpaymentrequestmessage(const Message* msg) { - return *msg->cancelpaymentrequestmessage_; + return *msg->_impl_.cancelpaymentrequestmessage_; } const ::proto::TemplateMessage& Message::_Internal::templatemessage(const Message* msg) { - return *msg->templatemessage_; + return *msg->_impl_.templatemessage_; } const ::proto::StickerMessage& Message::_Internal::stickermessage(const Message* msg) { - return *msg->stickermessage_; + return *msg->_impl_.stickermessage_; } const ::proto::GroupInviteMessage& Message::_Internal::groupinvitemessage(const Message* msg) { - return *msg->groupinvitemessage_; + return *msg->_impl_.groupinvitemessage_; } const ::proto::TemplateButtonReplyMessage& Message::_Internal::templatebuttonreplymessage(const Message* msg) { - return *msg->templatebuttonreplymessage_; + return *msg->_impl_.templatebuttonreplymessage_; } const ::proto::ProductMessage& Message::_Internal::productmessage(const Message* msg) { - return *msg->productmessage_; + return *msg->_impl_.productmessage_; } const ::proto::DeviceSentMessage& Message::_Internal::devicesentmessage(const Message* msg) { - return *msg->devicesentmessage_; + return *msg->_impl_.devicesentmessage_; } const ::proto::MessageContextInfo& Message::_Internal::messagecontextinfo(const Message* msg) { - return *msg->messagecontextinfo_; + return *msg->_impl_.messagecontextinfo_; } const ::proto::ListMessage& Message::_Internal::listmessage(const Message* msg) { - return *msg->listmessage_; + return *msg->_impl_.listmessage_; } const ::proto::FutureProofMessage& Message::_Internal::viewoncemessage(const Message* msg) { - return *msg->viewoncemessage_; + return *msg->_impl_.viewoncemessage_; } const ::proto::OrderMessage& Message::_Internal::ordermessage(const Message* msg) { - return *msg->ordermessage_; + return *msg->_impl_.ordermessage_; } const ::proto::ListResponseMessage& Message::_Internal::listresponsemessage(const Message* msg) { - return *msg->listresponsemessage_; + return *msg->_impl_.listresponsemessage_; } const ::proto::FutureProofMessage& Message::_Internal::ephemeralmessage(const Message* msg) { - return *msg->ephemeralmessage_; + return *msg->_impl_.ephemeralmessage_; } const ::proto::InvoiceMessage& Message::_Internal::invoicemessage(const Message* msg) { - return *msg->invoicemessage_; + return *msg->_impl_.invoicemessage_; } const ::proto::ButtonsMessage& Message::_Internal::buttonsmessage(const Message* msg) { - return *msg->buttonsmessage_; + return *msg->_impl_.buttonsmessage_; } const ::proto::ButtonsResponseMessage& Message::_Internal::buttonsresponsemessage(const Message* msg) { - return *msg->buttonsresponsemessage_; + return *msg->_impl_.buttonsresponsemessage_; } Message::Message(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.Message) } Message::Message(const Message& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + Message* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.conversation_){} + , decltype(_impl_.senderkeydistributionmessage_){nullptr} + , decltype(_impl_.imagemessage_){nullptr} + , decltype(_impl_.contactmessage_){nullptr} + , decltype(_impl_.locationmessage_){nullptr} + , decltype(_impl_.extendedtextmessage_){nullptr} + , decltype(_impl_.documentmessage_){nullptr} + , decltype(_impl_.audiomessage_){nullptr} + , decltype(_impl_.videomessage_){nullptr} + , decltype(_impl_.call_){nullptr} + , decltype(_impl_.chat_){nullptr} + , decltype(_impl_.protocolmessage_){nullptr} + , decltype(_impl_.contactsarraymessage_){nullptr} + , decltype(_impl_.highlystructuredmessage_){nullptr} + , decltype(_impl_.fastratchetkeysenderkeydistributionmessage_){nullptr} + , decltype(_impl_.sendpaymentmessage_){nullptr} + , decltype(_impl_.livelocationmessage_){nullptr} + , decltype(_impl_.requestpaymentmessage_){nullptr} + , decltype(_impl_.declinepaymentrequestmessage_){nullptr} + , decltype(_impl_.cancelpaymentrequestmessage_){nullptr} + , decltype(_impl_.templatemessage_){nullptr} + , decltype(_impl_.stickermessage_){nullptr} + , decltype(_impl_.groupinvitemessage_){nullptr} + , decltype(_impl_.templatebuttonreplymessage_){nullptr} + , decltype(_impl_.productmessage_){nullptr} + , decltype(_impl_.devicesentmessage_){nullptr} + , decltype(_impl_.messagecontextinfo_){nullptr} + , decltype(_impl_.listmessage_){nullptr} + , decltype(_impl_.viewoncemessage_){nullptr} + , decltype(_impl_.ordermessage_){nullptr} + , decltype(_impl_.listresponsemessage_){nullptr} + , decltype(_impl_.ephemeralmessage_){nullptr} + , decltype(_impl_.invoicemessage_){nullptr} + , decltype(_impl_.buttonsmessage_){nullptr} + , decltype(_impl_.buttonsresponsemessage_){nullptr}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - conversation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.conversation_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.conversation_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_conversation()) { - conversation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_conversation(), - GetArenaForAllocation()); + _this->_impl_.conversation_.Set(from._internal_conversation(), + _this->GetArenaForAllocation()); } if (from._internal_has_senderkeydistributionmessage()) { - senderkeydistributionmessage_ = new ::proto::SenderKeyDistributionMessage(*from.senderkeydistributionmessage_); - } else { - senderkeydistributionmessage_ = nullptr; + _this->_impl_.senderkeydistributionmessage_ = new ::proto::SenderKeyDistributionMessage(*from._impl_.senderkeydistributionmessage_); } if (from._internal_has_imagemessage()) { - imagemessage_ = new ::proto::ImageMessage(*from.imagemessage_); - } else { - imagemessage_ = nullptr; + _this->_impl_.imagemessage_ = new ::proto::ImageMessage(*from._impl_.imagemessage_); } if (from._internal_has_contactmessage()) { - contactmessage_ = new ::proto::ContactMessage(*from.contactmessage_); - } else { - contactmessage_ = nullptr; + _this->_impl_.contactmessage_ = new ::proto::ContactMessage(*from._impl_.contactmessage_); } if (from._internal_has_locationmessage()) { - locationmessage_ = new ::proto::LocationMessage(*from.locationmessage_); - } else { - locationmessage_ = nullptr; + _this->_impl_.locationmessage_ = new ::proto::LocationMessage(*from._impl_.locationmessage_); } if (from._internal_has_extendedtextmessage()) { - extendedtextmessage_ = new ::proto::ExtendedTextMessage(*from.extendedtextmessage_); - } else { - extendedtextmessage_ = nullptr; + _this->_impl_.extendedtextmessage_ = new ::proto::ExtendedTextMessage(*from._impl_.extendedtextmessage_); } if (from._internal_has_documentmessage()) { - documentmessage_ = new ::proto::DocumentMessage(*from.documentmessage_); - } else { - documentmessage_ = nullptr; + _this->_impl_.documentmessage_ = new ::proto::DocumentMessage(*from._impl_.documentmessage_); } if (from._internal_has_audiomessage()) { - audiomessage_ = new ::proto::AudioMessage(*from.audiomessage_); - } else { - audiomessage_ = nullptr; + _this->_impl_.audiomessage_ = new ::proto::AudioMessage(*from._impl_.audiomessage_); } if (from._internal_has_videomessage()) { - videomessage_ = new ::proto::VideoMessage(*from.videomessage_); - } else { - videomessage_ = nullptr; + _this->_impl_.videomessage_ = new ::proto::VideoMessage(*from._impl_.videomessage_); } if (from._internal_has_call()) { - call_ = new ::proto::Call(*from.call_); - } else { - call_ = nullptr; + _this->_impl_.call_ = new ::proto::Call(*from._impl_.call_); } if (from._internal_has_chat()) { - chat_ = new ::proto::Chat(*from.chat_); - } else { - chat_ = nullptr; + _this->_impl_.chat_ = new ::proto::Chat(*from._impl_.chat_); } if (from._internal_has_protocolmessage()) { - protocolmessage_ = new ::proto::ProtocolMessage(*from.protocolmessage_); - } else { - protocolmessage_ = nullptr; + _this->_impl_.protocolmessage_ = new ::proto::ProtocolMessage(*from._impl_.protocolmessage_); } if (from._internal_has_contactsarraymessage()) { - contactsarraymessage_ = new ::proto::ContactsArrayMessage(*from.contactsarraymessage_); - } else { - contactsarraymessage_ = nullptr; + _this->_impl_.contactsarraymessage_ = new ::proto::ContactsArrayMessage(*from._impl_.contactsarraymessage_); } if (from._internal_has_highlystructuredmessage()) { - highlystructuredmessage_ = new ::proto::HighlyStructuredMessage(*from.highlystructuredmessage_); - } else { - highlystructuredmessage_ = nullptr; + _this->_impl_.highlystructuredmessage_ = new ::proto::HighlyStructuredMessage(*from._impl_.highlystructuredmessage_); } if (from._internal_has_fastratchetkeysenderkeydistributionmessage()) { - fastratchetkeysenderkeydistributionmessage_ = new ::proto::SenderKeyDistributionMessage(*from.fastratchetkeysenderkeydistributionmessage_); - } else { - fastratchetkeysenderkeydistributionmessage_ = nullptr; + _this->_impl_.fastratchetkeysenderkeydistributionmessage_ = new ::proto::SenderKeyDistributionMessage(*from._impl_.fastratchetkeysenderkeydistributionmessage_); } if (from._internal_has_sendpaymentmessage()) { - sendpaymentmessage_ = new ::proto::SendPaymentMessage(*from.sendpaymentmessage_); - } else { - sendpaymentmessage_ = nullptr; + _this->_impl_.sendpaymentmessage_ = new ::proto::SendPaymentMessage(*from._impl_.sendpaymentmessage_); } if (from._internal_has_livelocationmessage()) { - livelocationmessage_ = new ::proto::LiveLocationMessage(*from.livelocationmessage_); - } else { - livelocationmessage_ = nullptr; + _this->_impl_.livelocationmessage_ = new ::proto::LiveLocationMessage(*from._impl_.livelocationmessage_); } if (from._internal_has_requestpaymentmessage()) { - requestpaymentmessage_ = new ::proto::RequestPaymentMessage(*from.requestpaymentmessage_); - } else { - requestpaymentmessage_ = nullptr; + _this->_impl_.requestpaymentmessage_ = new ::proto::RequestPaymentMessage(*from._impl_.requestpaymentmessage_); } if (from._internal_has_declinepaymentrequestmessage()) { - declinepaymentrequestmessage_ = new ::proto::DeclinePaymentRequestMessage(*from.declinepaymentrequestmessage_); - } else { - declinepaymentrequestmessage_ = nullptr; + _this->_impl_.declinepaymentrequestmessage_ = new ::proto::DeclinePaymentRequestMessage(*from._impl_.declinepaymentrequestmessage_); } if (from._internal_has_cancelpaymentrequestmessage()) { - cancelpaymentrequestmessage_ = new ::proto::CancelPaymentRequestMessage(*from.cancelpaymentrequestmessage_); - } else { - cancelpaymentrequestmessage_ = nullptr; + _this->_impl_.cancelpaymentrequestmessage_ = new ::proto::CancelPaymentRequestMessage(*from._impl_.cancelpaymentrequestmessage_); } if (from._internal_has_templatemessage()) { - templatemessage_ = new ::proto::TemplateMessage(*from.templatemessage_); - } else { - templatemessage_ = nullptr; + _this->_impl_.templatemessage_ = new ::proto::TemplateMessage(*from._impl_.templatemessage_); } if (from._internal_has_stickermessage()) { - stickermessage_ = new ::proto::StickerMessage(*from.stickermessage_); - } else { - stickermessage_ = nullptr; + _this->_impl_.stickermessage_ = new ::proto::StickerMessage(*from._impl_.stickermessage_); } if (from._internal_has_groupinvitemessage()) { - groupinvitemessage_ = new ::proto::GroupInviteMessage(*from.groupinvitemessage_); - } else { - groupinvitemessage_ = nullptr; + _this->_impl_.groupinvitemessage_ = new ::proto::GroupInviteMessage(*from._impl_.groupinvitemessage_); } if (from._internal_has_templatebuttonreplymessage()) { - templatebuttonreplymessage_ = new ::proto::TemplateButtonReplyMessage(*from.templatebuttonreplymessage_); - } else { - templatebuttonreplymessage_ = nullptr; + _this->_impl_.templatebuttonreplymessage_ = new ::proto::TemplateButtonReplyMessage(*from._impl_.templatebuttonreplymessage_); } if (from._internal_has_productmessage()) { - productmessage_ = new ::proto::ProductMessage(*from.productmessage_); - } else { - productmessage_ = nullptr; + _this->_impl_.productmessage_ = new ::proto::ProductMessage(*from._impl_.productmessage_); } if (from._internal_has_devicesentmessage()) { - devicesentmessage_ = new ::proto::DeviceSentMessage(*from.devicesentmessage_); - } else { - devicesentmessage_ = nullptr; + _this->_impl_.devicesentmessage_ = new ::proto::DeviceSentMessage(*from._impl_.devicesentmessage_); } if (from._internal_has_messagecontextinfo()) { - messagecontextinfo_ = new ::proto::MessageContextInfo(*from.messagecontextinfo_); - } else { - messagecontextinfo_ = nullptr; + _this->_impl_.messagecontextinfo_ = new ::proto::MessageContextInfo(*from._impl_.messagecontextinfo_); } if (from._internal_has_listmessage()) { - listmessage_ = new ::proto::ListMessage(*from.listmessage_); - } else { - listmessage_ = nullptr; + _this->_impl_.listmessage_ = new ::proto::ListMessage(*from._impl_.listmessage_); } if (from._internal_has_viewoncemessage()) { - viewoncemessage_ = new ::proto::FutureProofMessage(*from.viewoncemessage_); - } else { - viewoncemessage_ = nullptr; + _this->_impl_.viewoncemessage_ = new ::proto::FutureProofMessage(*from._impl_.viewoncemessage_); } if (from._internal_has_ordermessage()) { - ordermessage_ = new ::proto::OrderMessage(*from.ordermessage_); - } else { - ordermessage_ = nullptr; + _this->_impl_.ordermessage_ = new ::proto::OrderMessage(*from._impl_.ordermessage_); } if (from._internal_has_listresponsemessage()) { - listresponsemessage_ = new ::proto::ListResponseMessage(*from.listresponsemessage_); - } else { - listresponsemessage_ = nullptr; + _this->_impl_.listresponsemessage_ = new ::proto::ListResponseMessage(*from._impl_.listresponsemessage_); } if (from._internal_has_ephemeralmessage()) { - ephemeralmessage_ = new ::proto::FutureProofMessage(*from.ephemeralmessage_); - } else { - ephemeralmessage_ = nullptr; + _this->_impl_.ephemeralmessage_ = new ::proto::FutureProofMessage(*from._impl_.ephemeralmessage_); } if (from._internal_has_invoicemessage()) { - invoicemessage_ = new ::proto::InvoiceMessage(*from.invoicemessage_); - } else { - invoicemessage_ = nullptr; + _this->_impl_.invoicemessage_ = new ::proto::InvoiceMessage(*from._impl_.invoicemessage_); } if (from._internal_has_buttonsmessage()) { - buttonsmessage_ = new ::proto::ButtonsMessage(*from.buttonsmessage_); - } else { - buttonsmessage_ = nullptr; + _this->_impl_.buttonsmessage_ = new ::proto::ButtonsMessage(*from._impl_.buttonsmessage_); } if (from._internal_has_buttonsresponsemessage()) { - buttonsresponsemessage_ = new ::proto::ButtonsResponseMessage(*from.buttonsresponsemessage_); - } else { - buttonsresponsemessage_ = nullptr; + _this->_impl_.buttonsresponsemessage_ = new ::proto::ButtonsResponseMessage(*from._impl_.buttonsresponsemessage_); } // @@protoc_insertion_point(copy_constructor:proto.Message) } -void Message::SharedCtor() { -conversation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&senderkeydistributionmessage_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&buttonsresponsemessage_) - - reinterpret_cast<char*>(&senderkeydistributionmessage_)) + sizeof(buttonsresponsemessage_)); +inline void Message::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.conversation_){} + , decltype(_impl_.senderkeydistributionmessage_){nullptr} + , decltype(_impl_.imagemessage_){nullptr} + , decltype(_impl_.contactmessage_){nullptr} + , decltype(_impl_.locationmessage_){nullptr} + , decltype(_impl_.extendedtextmessage_){nullptr} + , decltype(_impl_.documentmessage_){nullptr} + , decltype(_impl_.audiomessage_){nullptr} + , decltype(_impl_.videomessage_){nullptr} + , decltype(_impl_.call_){nullptr} + , decltype(_impl_.chat_){nullptr} + , decltype(_impl_.protocolmessage_){nullptr} + , decltype(_impl_.contactsarraymessage_){nullptr} + , decltype(_impl_.highlystructuredmessage_){nullptr} + , decltype(_impl_.fastratchetkeysenderkeydistributionmessage_){nullptr} + , decltype(_impl_.sendpaymentmessage_){nullptr} + , decltype(_impl_.livelocationmessage_){nullptr} + , decltype(_impl_.requestpaymentmessage_){nullptr} + , decltype(_impl_.declinepaymentrequestmessage_){nullptr} + , decltype(_impl_.cancelpaymentrequestmessage_){nullptr} + , decltype(_impl_.templatemessage_){nullptr} + , decltype(_impl_.stickermessage_){nullptr} + , decltype(_impl_.groupinvitemessage_){nullptr} + , decltype(_impl_.templatebuttonreplymessage_){nullptr} + , decltype(_impl_.productmessage_){nullptr} + , decltype(_impl_.devicesentmessage_){nullptr} + , decltype(_impl_.messagecontextinfo_){nullptr} + , decltype(_impl_.listmessage_){nullptr} + , decltype(_impl_.viewoncemessage_){nullptr} + , decltype(_impl_.ordermessage_){nullptr} + , decltype(_impl_.listresponsemessage_){nullptr} + , decltype(_impl_.ephemeralmessage_){nullptr} + , decltype(_impl_.invoicemessage_){nullptr} + , decltype(_impl_.buttonsmessage_){nullptr} + , decltype(_impl_.buttonsresponsemessage_){nullptr} + }; + _impl_.conversation_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.conversation_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Message::~Message() { // @@protoc_insertion_point(destructor:proto.Message) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void Message::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - conversation_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete senderkeydistributionmessage_; - if (this != internal_default_instance()) delete imagemessage_; - if (this != internal_default_instance()) delete contactmessage_; - if (this != internal_default_instance()) delete locationmessage_; - if (this != internal_default_instance()) delete extendedtextmessage_; - if (this != internal_default_instance()) delete documentmessage_; - if (this != internal_default_instance()) delete audiomessage_; - if (this != internal_default_instance()) delete videomessage_; - if (this != internal_default_instance()) delete call_; - if (this != internal_default_instance()) delete chat_; - if (this != internal_default_instance()) delete protocolmessage_; - if (this != internal_default_instance()) delete contactsarraymessage_; - if (this != internal_default_instance()) delete highlystructuredmessage_; - if (this != internal_default_instance()) delete fastratchetkeysenderkeydistributionmessage_; - if (this != internal_default_instance()) delete sendpaymentmessage_; - if (this != internal_default_instance()) delete livelocationmessage_; - if (this != internal_default_instance()) delete requestpaymentmessage_; - if (this != internal_default_instance()) delete declinepaymentrequestmessage_; - if (this != internal_default_instance()) delete cancelpaymentrequestmessage_; - if (this != internal_default_instance()) delete templatemessage_; - if (this != internal_default_instance()) delete stickermessage_; - if (this != internal_default_instance()) delete groupinvitemessage_; - if (this != internal_default_instance()) delete templatebuttonreplymessage_; - if (this != internal_default_instance()) delete productmessage_; - if (this != internal_default_instance()) delete devicesentmessage_; - if (this != internal_default_instance()) delete messagecontextinfo_; - if (this != internal_default_instance()) delete listmessage_; - if (this != internal_default_instance()) delete viewoncemessage_; - if (this != internal_default_instance()) delete ordermessage_; - if (this != internal_default_instance()) delete listresponsemessage_; - if (this != internal_default_instance()) delete ephemeralmessage_; - if (this != internal_default_instance()) delete invoicemessage_; - if (this != internal_default_instance()) delete buttonsmessage_; - if (this != internal_default_instance()) delete buttonsresponsemessage_; -} - -void Message::ArenaDtor(void* object) { - Message* _this = reinterpret_cast< Message* >(object); - (void)_this; -} -void Message::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { + _impl_.conversation_.Destroy(); + if (this != internal_default_instance()) delete _impl_.senderkeydistributionmessage_; + if (this != internal_default_instance()) delete _impl_.imagemessage_; + if (this != internal_default_instance()) delete _impl_.contactmessage_; + if (this != internal_default_instance()) delete _impl_.locationmessage_; + if (this != internal_default_instance()) delete _impl_.extendedtextmessage_; + if (this != internal_default_instance()) delete _impl_.documentmessage_; + if (this != internal_default_instance()) delete _impl_.audiomessage_; + if (this != internal_default_instance()) delete _impl_.videomessage_; + if (this != internal_default_instance()) delete _impl_.call_; + if (this != internal_default_instance()) delete _impl_.chat_; + if (this != internal_default_instance()) delete _impl_.protocolmessage_; + if (this != internal_default_instance()) delete _impl_.contactsarraymessage_; + if (this != internal_default_instance()) delete _impl_.highlystructuredmessage_; + if (this != internal_default_instance()) delete _impl_.fastratchetkeysenderkeydistributionmessage_; + if (this != internal_default_instance()) delete _impl_.sendpaymentmessage_; + if (this != internal_default_instance()) delete _impl_.livelocationmessage_; + if (this != internal_default_instance()) delete _impl_.requestpaymentmessage_; + if (this != internal_default_instance()) delete _impl_.declinepaymentrequestmessage_; + if (this != internal_default_instance()) delete _impl_.cancelpaymentrequestmessage_; + if (this != internal_default_instance()) delete _impl_.templatemessage_; + if (this != internal_default_instance()) delete _impl_.stickermessage_; + if (this != internal_default_instance()) delete _impl_.groupinvitemessage_; + if (this != internal_default_instance()) delete _impl_.templatebuttonreplymessage_; + if (this != internal_default_instance()) delete _impl_.productmessage_; + if (this != internal_default_instance()) delete _impl_.devicesentmessage_; + if (this != internal_default_instance()) delete _impl_.messagecontextinfo_; + if (this != internal_default_instance()) delete _impl_.listmessage_; + if (this != internal_default_instance()) delete _impl_.viewoncemessage_; + if (this != internal_default_instance()) delete _impl_.ordermessage_; + if (this != internal_default_instance()) delete _impl_.listresponsemessage_; + if (this != internal_default_instance()) delete _impl_.ephemeralmessage_; + if (this != internal_default_instance()) delete _impl_.invoicemessage_; + if (this != internal_default_instance()) delete _impl_.buttonsmessage_; + if (this != internal_default_instance()) delete _impl_.buttonsresponsemessage_; } + void Message::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void Message::Clear() { // @@protoc_insertion_point(message_clear_start:proto.Message) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - conversation_.ClearNonDefaultToEmpty(); + _impl_.conversation_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(senderkeydistributionmessage_ != nullptr); - senderkeydistributionmessage_->Clear(); + GOOGLE_DCHECK(_impl_.senderkeydistributionmessage_ != nullptr); + _impl_.senderkeydistributionmessage_->Clear(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(imagemessage_ != nullptr); - imagemessage_->Clear(); + GOOGLE_DCHECK(_impl_.imagemessage_ != nullptr); + _impl_.imagemessage_->Clear(); } if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(contactmessage_ != nullptr); - contactmessage_->Clear(); + GOOGLE_DCHECK(_impl_.contactmessage_ != nullptr); + _impl_.contactmessage_->Clear(); } if (cached_has_bits & 0x00000010u) { - GOOGLE_DCHECK(locationmessage_ != nullptr); - locationmessage_->Clear(); + GOOGLE_DCHECK(_impl_.locationmessage_ != nullptr); + _impl_.locationmessage_->Clear(); } if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(extendedtextmessage_ != nullptr); - extendedtextmessage_->Clear(); + GOOGLE_DCHECK(_impl_.extendedtextmessage_ != nullptr); + _impl_.extendedtextmessage_->Clear(); } if (cached_has_bits & 0x00000040u) { - GOOGLE_DCHECK(documentmessage_ != nullptr); - documentmessage_->Clear(); + GOOGLE_DCHECK(_impl_.documentmessage_ != nullptr); + _impl_.documentmessage_->Clear(); } if (cached_has_bits & 0x00000080u) { - GOOGLE_DCHECK(audiomessage_ != nullptr); - audiomessage_->Clear(); + GOOGLE_DCHECK(_impl_.audiomessage_ != nullptr); + _impl_.audiomessage_->Clear(); } } if (cached_has_bits & 0x0000ff00u) { if (cached_has_bits & 0x00000100u) { - GOOGLE_DCHECK(videomessage_ != nullptr); - videomessage_->Clear(); + GOOGLE_DCHECK(_impl_.videomessage_ != nullptr); + _impl_.videomessage_->Clear(); } if (cached_has_bits & 0x00000200u) { - GOOGLE_DCHECK(call_ != nullptr); - call_->Clear(); + GOOGLE_DCHECK(_impl_.call_ != nullptr); + _impl_.call_->Clear(); } if (cached_has_bits & 0x00000400u) { - GOOGLE_DCHECK(chat_ != nullptr); - chat_->Clear(); + GOOGLE_DCHECK(_impl_.chat_ != nullptr); + _impl_.chat_->Clear(); } if (cached_has_bits & 0x00000800u) { - GOOGLE_DCHECK(protocolmessage_ != nullptr); - protocolmessage_->Clear(); + GOOGLE_DCHECK(_impl_.protocolmessage_ != nullptr); + _impl_.protocolmessage_->Clear(); } if (cached_has_bits & 0x00001000u) { - GOOGLE_DCHECK(contactsarraymessage_ != nullptr); - contactsarraymessage_->Clear(); + GOOGLE_DCHECK(_impl_.contactsarraymessage_ != nullptr); + _impl_.contactsarraymessage_->Clear(); } if (cached_has_bits & 0x00002000u) { - GOOGLE_DCHECK(highlystructuredmessage_ != nullptr); - highlystructuredmessage_->Clear(); + GOOGLE_DCHECK(_impl_.highlystructuredmessage_ != nullptr); + _impl_.highlystructuredmessage_->Clear(); } if (cached_has_bits & 0x00004000u) { - GOOGLE_DCHECK(fastratchetkeysenderkeydistributionmessage_ != nullptr); - fastratchetkeysenderkeydistributionmessage_->Clear(); + GOOGLE_DCHECK(_impl_.fastratchetkeysenderkeydistributionmessage_ != nullptr); + _impl_.fastratchetkeysenderkeydistributionmessage_->Clear(); } if (cached_has_bits & 0x00008000u) { - GOOGLE_DCHECK(sendpaymentmessage_ != nullptr); - sendpaymentmessage_->Clear(); + GOOGLE_DCHECK(_impl_.sendpaymentmessage_ != nullptr); + _impl_.sendpaymentmessage_->Clear(); } } if (cached_has_bits & 0x00ff0000u) { if (cached_has_bits & 0x00010000u) { - GOOGLE_DCHECK(livelocationmessage_ != nullptr); - livelocationmessage_->Clear(); + GOOGLE_DCHECK(_impl_.livelocationmessage_ != nullptr); + _impl_.livelocationmessage_->Clear(); } if (cached_has_bits & 0x00020000u) { - GOOGLE_DCHECK(requestpaymentmessage_ != nullptr); - requestpaymentmessage_->Clear(); + GOOGLE_DCHECK(_impl_.requestpaymentmessage_ != nullptr); + _impl_.requestpaymentmessage_->Clear(); } if (cached_has_bits & 0x00040000u) { - GOOGLE_DCHECK(declinepaymentrequestmessage_ != nullptr); - declinepaymentrequestmessage_->Clear(); + GOOGLE_DCHECK(_impl_.declinepaymentrequestmessage_ != nullptr); + _impl_.declinepaymentrequestmessage_->Clear(); } if (cached_has_bits & 0x00080000u) { - GOOGLE_DCHECK(cancelpaymentrequestmessage_ != nullptr); - cancelpaymentrequestmessage_->Clear(); + GOOGLE_DCHECK(_impl_.cancelpaymentrequestmessage_ != nullptr); + _impl_.cancelpaymentrequestmessage_->Clear(); } if (cached_has_bits & 0x00100000u) { - GOOGLE_DCHECK(templatemessage_ != nullptr); - templatemessage_->Clear(); + GOOGLE_DCHECK(_impl_.templatemessage_ != nullptr); + _impl_.templatemessage_->Clear(); } if (cached_has_bits & 0x00200000u) { - GOOGLE_DCHECK(stickermessage_ != nullptr); - stickermessage_->Clear(); + GOOGLE_DCHECK(_impl_.stickermessage_ != nullptr); + _impl_.stickermessage_->Clear(); } if (cached_has_bits & 0x00400000u) { - GOOGLE_DCHECK(groupinvitemessage_ != nullptr); - groupinvitemessage_->Clear(); + GOOGLE_DCHECK(_impl_.groupinvitemessage_ != nullptr); + _impl_.groupinvitemessage_->Clear(); } if (cached_has_bits & 0x00800000u) { - GOOGLE_DCHECK(templatebuttonreplymessage_ != nullptr); - templatebuttonreplymessage_->Clear(); + GOOGLE_DCHECK(_impl_.templatebuttonreplymessage_ != nullptr); + _impl_.templatebuttonreplymessage_->Clear(); } } if (cached_has_bits & 0xff000000u) { if (cached_has_bits & 0x01000000u) { - GOOGLE_DCHECK(productmessage_ != nullptr); - productmessage_->Clear(); + GOOGLE_DCHECK(_impl_.productmessage_ != nullptr); + _impl_.productmessage_->Clear(); } if (cached_has_bits & 0x02000000u) { - GOOGLE_DCHECK(devicesentmessage_ != nullptr); - devicesentmessage_->Clear(); + GOOGLE_DCHECK(_impl_.devicesentmessage_ != nullptr); + _impl_.devicesentmessage_->Clear(); } if (cached_has_bits & 0x04000000u) { - GOOGLE_DCHECK(messagecontextinfo_ != nullptr); - messagecontextinfo_->Clear(); + GOOGLE_DCHECK(_impl_.messagecontextinfo_ != nullptr); + _impl_.messagecontextinfo_->Clear(); } if (cached_has_bits & 0x08000000u) { - GOOGLE_DCHECK(listmessage_ != nullptr); - listmessage_->Clear(); + GOOGLE_DCHECK(_impl_.listmessage_ != nullptr); + _impl_.listmessage_->Clear(); } if (cached_has_bits & 0x10000000u) { - GOOGLE_DCHECK(viewoncemessage_ != nullptr); - viewoncemessage_->Clear(); + GOOGLE_DCHECK(_impl_.viewoncemessage_ != nullptr); + _impl_.viewoncemessage_->Clear(); } if (cached_has_bits & 0x20000000u) { - GOOGLE_DCHECK(ordermessage_ != nullptr); - ordermessage_->Clear(); + GOOGLE_DCHECK(_impl_.ordermessage_ != nullptr); + _impl_.ordermessage_->Clear(); } if (cached_has_bits & 0x40000000u) { - GOOGLE_DCHECK(listresponsemessage_ != nullptr); - listresponsemessage_->Clear(); + GOOGLE_DCHECK(_impl_.listresponsemessage_ != nullptr); + _impl_.listresponsemessage_->Clear(); } if (cached_has_bits & 0x80000000u) { - GOOGLE_DCHECK(ephemeralmessage_ != nullptr); - ephemeralmessage_->Clear(); + GOOGLE_DCHECK(_impl_.ephemeralmessage_ != nullptr); + _impl_.ephemeralmessage_->Clear(); } } - cached_has_bits = _has_bits_[1]; + cached_has_bits = _impl_._has_bits_[1]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(invoicemessage_ != nullptr); - invoicemessage_->Clear(); + GOOGLE_DCHECK(_impl_.invoicemessage_ != nullptr); + _impl_.invoicemessage_->Clear(); } if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(buttonsmessage_ != nullptr); - buttonsmessage_->Clear(); + GOOGLE_DCHECK(_impl_.buttonsmessage_ != nullptr); + _impl_.buttonsmessage_->Clear(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(buttonsresponsemessage_ != nullptr); - buttonsresponsemessage_->Clear(); + GOOGLE_DCHECK(_impl_.buttonsresponsemessage_ != nullptr); + _impl_.buttonsresponsemessage_->Clear(); } } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Message::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string conversation = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_conversation(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Message.conversation"); + ::_pbi::VerifyUTF8(str, "proto.Message.conversation"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.SenderKeyDistributionMessage senderKeyDistributionMessage = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_senderkeydistributionmessage(), ptr); CHK_(ptr); } else @@ -34283,7 +35737,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.ImageMessage imageMessage = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_imagemessage(), ptr); CHK_(ptr); } else @@ -34291,7 +35745,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.ContactMessage contactMessage = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_contactmessage(), ptr); CHK_(ptr); } else @@ -34299,7 +35753,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.LocationMessage locationMessage = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { ptr = ctx->ParseMessage(_internal_mutable_locationmessage(), ptr); CHK_(ptr); } else @@ -34307,7 +35761,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.ExtendedTextMessage extendedTextMessage = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { ptr = ctx->ParseMessage(_internal_mutable_extendedtextmessage(), ptr); CHK_(ptr); } else @@ -34315,7 +35769,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.DocumentMessage documentMessage = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { ptr = ctx->ParseMessage(_internal_mutable_documentmessage(), ptr); CHK_(ptr); } else @@ -34323,7 +35777,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.AudioMessage audioMessage = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { ptr = ctx->ParseMessage(_internal_mutable_audiomessage(), ptr); CHK_(ptr); } else @@ -34331,7 +35785,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.VideoMessage videoMessage = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) { ptr = ctx->ParseMessage(_internal_mutable_videomessage(), ptr); CHK_(ptr); } else @@ -34339,7 +35793,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.Call call = 10; case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) { ptr = ctx->ParseMessage(_internal_mutable_call(), ptr); CHK_(ptr); } else @@ -34347,7 +35801,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.Chat chat = 11; case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) { ptr = ctx->ParseMessage(_internal_mutable_chat(), ptr); CHK_(ptr); } else @@ -34355,7 +35809,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.ProtocolMessage protocolMessage = 12; case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 98)) { ptr = ctx->ParseMessage(_internal_mutable_protocolmessage(), ptr); CHK_(ptr); } else @@ -34363,7 +35817,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.ContactsArrayMessage contactsArrayMessage = 13; case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 106)) { ptr = ctx->ParseMessage(_internal_mutable_contactsarraymessage(), ptr); CHK_(ptr); } else @@ -34371,7 +35825,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.HighlyStructuredMessage highlyStructuredMessage = 14; case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 114)) { ptr = ctx->ParseMessage(_internal_mutable_highlystructuredmessage(), ptr); CHK_(ptr); } else @@ -34379,7 +35833,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.SenderKeyDistributionMessage fastRatchetKeySenderKeyDistributionMessage = 15; case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 122)) { ptr = ctx->ParseMessage(_internal_mutable_fastratchetkeysenderkeydistributionmessage(), ptr); CHK_(ptr); } else @@ -34387,7 +35841,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.SendPaymentMessage sendPaymentMessage = 16; case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 130)) { ptr = ctx->ParseMessage(_internal_mutable_sendpaymentmessage(), ptr); CHK_(ptr); } else @@ -34395,7 +35849,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.LiveLocationMessage liveLocationMessage = 18; case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 146)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 146)) { ptr = ctx->ParseMessage(_internal_mutable_livelocationmessage(), ptr); CHK_(ptr); } else @@ -34403,7 +35857,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.RequestPaymentMessage requestPaymentMessage = 22; case 22: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 178)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 178)) { ptr = ctx->ParseMessage(_internal_mutable_requestpaymentmessage(), ptr); CHK_(ptr); } else @@ -34411,7 +35865,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.DeclinePaymentRequestMessage declinePaymentRequestMessage = 23; case 23: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 186)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 186)) { ptr = ctx->ParseMessage(_internal_mutable_declinepaymentrequestmessage(), ptr); CHK_(ptr); } else @@ -34419,7 +35873,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.CancelPaymentRequestMessage cancelPaymentRequestMessage = 24; case 24: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 194)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 194)) { ptr = ctx->ParseMessage(_internal_mutable_cancelpaymentrequestmessage(), ptr); CHK_(ptr); } else @@ -34427,7 +35881,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.TemplateMessage templateMessage = 25; case 25: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 202)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 202)) { ptr = ctx->ParseMessage(_internal_mutable_templatemessage(), ptr); CHK_(ptr); } else @@ -34435,7 +35889,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.StickerMessage stickerMessage = 26; case 26: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 210)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 210)) { ptr = ctx->ParseMessage(_internal_mutable_stickermessage(), ptr); CHK_(ptr); } else @@ -34443,7 +35897,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.GroupInviteMessage groupInviteMessage = 28; case 28: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 226)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 226)) { ptr = ctx->ParseMessage(_internal_mutable_groupinvitemessage(), ptr); CHK_(ptr); } else @@ -34451,7 +35905,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.TemplateButtonReplyMessage templateButtonReplyMessage = 29; case 29: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 234)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 234)) { ptr = ctx->ParseMessage(_internal_mutable_templatebuttonreplymessage(), ptr); CHK_(ptr); } else @@ -34459,7 +35913,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.ProductMessage productMessage = 30; case 30: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 242)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 242)) { ptr = ctx->ParseMessage(_internal_mutable_productmessage(), ptr); CHK_(ptr); } else @@ -34467,7 +35921,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.DeviceSentMessage deviceSentMessage = 31; case 31: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 250)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 250)) { ptr = ctx->ParseMessage(_internal_mutable_devicesentmessage(), ptr); CHK_(ptr); } else @@ -34475,7 +35929,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.MessageContextInfo messageContextInfo = 35; case 35: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_messagecontextinfo(), ptr); CHK_(ptr); } else @@ -34483,7 +35937,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.ListMessage listMessage = 36; case 36: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_listmessage(), ptr); CHK_(ptr); } else @@ -34491,7 +35945,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.FutureProofMessage viewOnceMessage = 37; case 37: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { ptr = ctx->ParseMessage(_internal_mutable_viewoncemessage(), ptr); CHK_(ptr); } else @@ -34499,7 +35953,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.OrderMessage orderMessage = 38; case 38: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { ptr = ctx->ParseMessage(_internal_mutable_ordermessage(), ptr); CHK_(ptr); } else @@ -34507,7 +35961,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.ListResponseMessage listResponseMessage = 39; case 39: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { ptr = ctx->ParseMessage(_internal_mutable_listresponsemessage(), ptr); CHK_(ptr); } else @@ -34515,7 +35969,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.FutureProofMessage ephemeralMessage = 40; case 40: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) { ptr = ctx->ParseMessage(_internal_mutable_ephemeralmessage(), ptr); CHK_(ptr); } else @@ -34523,7 +35977,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.InvoiceMessage invoiceMessage = 41; case 41: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) { ptr = ctx->ParseMessage(_internal_mutable_invoicemessage(), ptr); CHK_(ptr); } else @@ -34531,7 +35985,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.ButtonsMessage buttonsMessage = 42; case 42: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) { ptr = ctx->ParseMessage(_internal_mutable_buttonsmessage(), ptr); CHK_(ptr); } else @@ -34539,7 +35993,7 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in continue; // optional .proto.ButtonsResponseMessage buttonsResponseMessage = 43; case 43: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) { ptr = ctx->ParseMessage(_internal_mutable_buttonsresponsemessage(), ptr); CHK_(ptr); } else @@ -34568,13 +36022,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Message::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* Message::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.Message) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string conversation = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -34587,279 +36041,245 @@ failure: // optional .proto.SenderKeyDistributionMessage senderKeyDistributionMessage = 2; if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::senderkeydistributionmessage(this), target, stream); + InternalWriteMessage(2, _Internal::senderkeydistributionmessage(this), + _Internal::senderkeydistributionmessage(this).GetCachedSize(), target, stream); } // optional .proto.ImageMessage imageMessage = 3; if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::imagemessage(this), target, stream); + InternalWriteMessage(3, _Internal::imagemessage(this), + _Internal::imagemessage(this).GetCachedSize(), target, stream); } // optional .proto.ContactMessage contactMessage = 4; if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::contactmessage(this), target, stream); + InternalWriteMessage(4, _Internal::contactmessage(this), + _Internal::contactmessage(this).GetCachedSize(), target, stream); } // optional .proto.LocationMessage locationMessage = 5; if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::locationmessage(this), target, stream); + InternalWriteMessage(5, _Internal::locationmessage(this), + _Internal::locationmessage(this).GetCachedSize(), target, stream); } // optional .proto.ExtendedTextMessage extendedTextMessage = 6; if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::extendedtextmessage(this), target, stream); + InternalWriteMessage(6, _Internal::extendedtextmessage(this), + _Internal::extendedtextmessage(this).GetCachedSize(), target, stream); } // optional .proto.DocumentMessage documentMessage = 7; if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::documentmessage(this), target, stream); + InternalWriteMessage(7, _Internal::documentmessage(this), + _Internal::documentmessage(this).GetCachedSize(), target, stream); } // optional .proto.AudioMessage audioMessage = 8; if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::audiomessage(this), target, stream); + InternalWriteMessage(8, _Internal::audiomessage(this), + _Internal::audiomessage(this).GetCachedSize(), target, stream); } // optional .proto.VideoMessage videoMessage = 9; if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 9, _Internal::videomessage(this), target, stream); + InternalWriteMessage(9, _Internal::videomessage(this), + _Internal::videomessage(this).GetCachedSize(), target, stream); } // optional .proto.Call call = 10; if (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 10, _Internal::call(this), target, stream); + InternalWriteMessage(10, _Internal::call(this), + _Internal::call(this).GetCachedSize(), target, stream); } // optional .proto.Chat chat = 11; if (cached_has_bits & 0x00000400u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 11, _Internal::chat(this), target, stream); + InternalWriteMessage(11, _Internal::chat(this), + _Internal::chat(this).GetCachedSize(), target, stream); } // optional .proto.ProtocolMessage protocolMessage = 12; if (cached_has_bits & 0x00000800u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 12, _Internal::protocolmessage(this), target, stream); + InternalWriteMessage(12, _Internal::protocolmessage(this), + _Internal::protocolmessage(this).GetCachedSize(), target, stream); } // optional .proto.ContactsArrayMessage contactsArrayMessage = 13; if (cached_has_bits & 0x00001000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 13, _Internal::contactsarraymessage(this), target, stream); + InternalWriteMessage(13, _Internal::contactsarraymessage(this), + _Internal::contactsarraymessage(this).GetCachedSize(), target, stream); } // optional .proto.HighlyStructuredMessage highlyStructuredMessage = 14; if (cached_has_bits & 0x00002000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 14, _Internal::highlystructuredmessage(this), target, stream); + InternalWriteMessage(14, _Internal::highlystructuredmessage(this), + _Internal::highlystructuredmessage(this).GetCachedSize(), target, stream); } // optional .proto.SenderKeyDistributionMessage fastRatchetKeySenderKeyDistributionMessage = 15; if (cached_has_bits & 0x00004000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 15, _Internal::fastratchetkeysenderkeydistributionmessage(this), target, stream); + InternalWriteMessage(15, _Internal::fastratchetkeysenderkeydistributionmessage(this), + _Internal::fastratchetkeysenderkeydistributionmessage(this).GetCachedSize(), target, stream); } // optional .proto.SendPaymentMessage sendPaymentMessage = 16; if (cached_has_bits & 0x00008000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 16, _Internal::sendpaymentmessage(this), target, stream); + InternalWriteMessage(16, _Internal::sendpaymentmessage(this), + _Internal::sendpaymentmessage(this).GetCachedSize(), target, stream); } // optional .proto.LiveLocationMessage liveLocationMessage = 18; if (cached_has_bits & 0x00010000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 18, _Internal::livelocationmessage(this), target, stream); + InternalWriteMessage(18, _Internal::livelocationmessage(this), + _Internal::livelocationmessage(this).GetCachedSize(), target, stream); } // optional .proto.RequestPaymentMessage requestPaymentMessage = 22; if (cached_has_bits & 0x00020000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 22, _Internal::requestpaymentmessage(this), target, stream); + InternalWriteMessage(22, _Internal::requestpaymentmessage(this), + _Internal::requestpaymentmessage(this).GetCachedSize(), target, stream); } // optional .proto.DeclinePaymentRequestMessage declinePaymentRequestMessage = 23; if (cached_has_bits & 0x00040000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 23, _Internal::declinepaymentrequestmessage(this), target, stream); + InternalWriteMessage(23, _Internal::declinepaymentrequestmessage(this), + _Internal::declinepaymentrequestmessage(this).GetCachedSize(), target, stream); } // optional .proto.CancelPaymentRequestMessage cancelPaymentRequestMessage = 24; if (cached_has_bits & 0x00080000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 24, _Internal::cancelpaymentrequestmessage(this), target, stream); + InternalWriteMessage(24, _Internal::cancelpaymentrequestmessage(this), + _Internal::cancelpaymentrequestmessage(this).GetCachedSize(), target, stream); } // optional .proto.TemplateMessage templateMessage = 25; if (cached_has_bits & 0x00100000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 25, _Internal::templatemessage(this), target, stream); + InternalWriteMessage(25, _Internal::templatemessage(this), + _Internal::templatemessage(this).GetCachedSize(), target, stream); } // optional .proto.StickerMessage stickerMessage = 26; if (cached_has_bits & 0x00200000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 26, _Internal::stickermessage(this), target, stream); + InternalWriteMessage(26, _Internal::stickermessage(this), + _Internal::stickermessage(this).GetCachedSize(), target, stream); } // optional .proto.GroupInviteMessage groupInviteMessage = 28; if (cached_has_bits & 0x00400000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 28, _Internal::groupinvitemessage(this), target, stream); + InternalWriteMessage(28, _Internal::groupinvitemessage(this), + _Internal::groupinvitemessage(this).GetCachedSize(), target, stream); } // optional .proto.TemplateButtonReplyMessage templateButtonReplyMessage = 29; if (cached_has_bits & 0x00800000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 29, _Internal::templatebuttonreplymessage(this), target, stream); + InternalWriteMessage(29, _Internal::templatebuttonreplymessage(this), + _Internal::templatebuttonreplymessage(this).GetCachedSize(), target, stream); } // optional .proto.ProductMessage productMessage = 30; if (cached_has_bits & 0x01000000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 30, _Internal::productmessage(this), target, stream); + InternalWriteMessage(30, _Internal::productmessage(this), + _Internal::productmessage(this).GetCachedSize(), target, stream); } // optional .proto.DeviceSentMessage deviceSentMessage = 31; if (cached_has_bits & 0x02000000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 31, _Internal::devicesentmessage(this), target, stream); + InternalWriteMessage(31, _Internal::devicesentmessage(this), + _Internal::devicesentmessage(this).GetCachedSize(), target, stream); } // optional .proto.MessageContextInfo messageContextInfo = 35; if (cached_has_bits & 0x04000000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 35, _Internal::messagecontextinfo(this), target, stream); + InternalWriteMessage(35, _Internal::messagecontextinfo(this), + _Internal::messagecontextinfo(this).GetCachedSize(), target, stream); } // optional .proto.ListMessage listMessage = 36; if (cached_has_bits & 0x08000000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 36, _Internal::listmessage(this), target, stream); + InternalWriteMessage(36, _Internal::listmessage(this), + _Internal::listmessage(this).GetCachedSize(), target, stream); } // optional .proto.FutureProofMessage viewOnceMessage = 37; if (cached_has_bits & 0x10000000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 37, _Internal::viewoncemessage(this), target, stream); + InternalWriteMessage(37, _Internal::viewoncemessage(this), + _Internal::viewoncemessage(this).GetCachedSize(), target, stream); } // optional .proto.OrderMessage orderMessage = 38; if (cached_has_bits & 0x20000000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 38, _Internal::ordermessage(this), target, stream); + InternalWriteMessage(38, _Internal::ordermessage(this), + _Internal::ordermessage(this).GetCachedSize(), target, stream); } // optional .proto.ListResponseMessage listResponseMessage = 39; if (cached_has_bits & 0x40000000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 39, _Internal::listresponsemessage(this), target, stream); + InternalWriteMessage(39, _Internal::listresponsemessage(this), + _Internal::listresponsemessage(this).GetCachedSize(), target, stream); } // optional .proto.FutureProofMessage ephemeralMessage = 40; if (cached_has_bits & 0x80000000u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 40, _Internal::ephemeralmessage(this), target, stream); + InternalWriteMessage(40, _Internal::ephemeralmessage(this), + _Internal::ephemeralmessage(this).GetCachedSize(), target, stream); } - cached_has_bits = _has_bits_[1]; + cached_has_bits = _impl_._has_bits_[1]; // optional .proto.InvoiceMessage invoiceMessage = 41; if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 41, _Internal::invoicemessage(this), target, stream); + InternalWriteMessage(41, _Internal::invoicemessage(this), + _Internal::invoicemessage(this).GetCachedSize(), target, stream); } // optional .proto.ButtonsMessage buttonsMessage = 42; if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 42, _Internal::buttonsmessage(this), target, stream); + InternalWriteMessage(42, _Internal::buttonsmessage(this), + _Internal::buttonsmessage(this).GetCachedSize(), target, stream); } // optional .proto.ButtonsResponseMessage buttonsResponseMessage = 43; if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 43, _Internal::buttonsresponsemessage(this), target, stream); + InternalWriteMessage(43, _Internal::buttonsresponsemessage(this), + _Internal::buttonsresponsemessage(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.Message) @@ -34870,11 +36290,11 @@ size_t Message::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.Message) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string conversation = 1; if (cached_has_bits & 0x00000001u) { @@ -34887,49 +36307,49 @@ size_t Message::ByteSizeLong() const { if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *senderkeydistributionmessage_); + *_impl_.senderkeydistributionmessage_); } // optional .proto.ImageMessage imageMessage = 3; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *imagemessage_); + *_impl_.imagemessage_); } // optional .proto.ContactMessage contactMessage = 4; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contactmessage_); + *_impl_.contactmessage_); } // optional .proto.LocationMessage locationMessage = 5; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *locationmessage_); + *_impl_.locationmessage_); } // optional .proto.ExtendedTextMessage extendedTextMessage = 6; if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *extendedtextmessage_); + *_impl_.extendedtextmessage_); } // optional .proto.DocumentMessage documentMessage = 7; if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *documentmessage_); + *_impl_.documentmessage_); } // optional .proto.AudioMessage audioMessage = 8; if (cached_has_bits & 0x00000080u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *audiomessage_); + *_impl_.audiomessage_); } } @@ -34938,56 +36358,56 @@ size_t Message::ByteSizeLong() const { if (cached_has_bits & 0x00000100u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *videomessage_); + *_impl_.videomessage_); } // optional .proto.Call call = 10; if (cached_has_bits & 0x00000200u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *call_); + *_impl_.call_); } // optional .proto.Chat chat = 11; if (cached_has_bits & 0x00000400u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *chat_); + *_impl_.chat_); } // optional .proto.ProtocolMessage protocolMessage = 12; if (cached_has_bits & 0x00000800u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *protocolmessage_); + *_impl_.protocolmessage_); } // optional .proto.ContactsArrayMessage contactsArrayMessage = 13; if (cached_has_bits & 0x00001000u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *contactsarraymessage_); + *_impl_.contactsarraymessage_); } // optional .proto.HighlyStructuredMessage highlyStructuredMessage = 14; if (cached_has_bits & 0x00002000u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *highlystructuredmessage_); + *_impl_.highlystructuredmessage_); } // optional .proto.SenderKeyDistributionMessage fastRatchetKeySenderKeyDistributionMessage = 15; if (cached_has_bits & 0x00004000u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *fastratchetkeysenderkeydistributionmessage_); + *_impl_.fastratchetkeysenderkeydistributionmessage_); } // optional .proto.SendPaymentMessage sendPaymentMessage = 16; if (cached_has_bits & 0x00008000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *sendpaymentmessage_); + *_impl_.sendpaymentmessage_); } } @@ -34996,56 +36416,56 @@ size_t Message::ByteSizeLong() const { if (cached_has_bits & 0x00010000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *livelocationmessage_); + *_impl_.livelocationmessage_); } // optional .proto.RequestPaymentMessage requestPaymentMessage = 22; if (cached_has_bits & 0x00020000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *requestpaymentmessage_); + *_impl_.requestpaymentmessage_); } // optional .proto.DeclinePaymentRequestMessage declinePaymentRequestMessage = 23; if (cached_has_bits & 0x00040000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *declinepaymentrequestmessage_); + *_impl_.declinepaymentrequestmessage_); } // optional .proto.CancelPaymentRequestMessage cancelPaymentRequestMessage = 24; if (cached_has_bits & 0x00080000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *cancelpaymentrequestmessage_); + *_impl_.cancelpaymentrequestmessage_); } // optional .proto.TemplateMessage templateMessage = 25; if (cached_has_bits & 0x00100000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *templatemessage_); + *_impl_.templatemessage_); } // optional .proto.StickerMessage stickerMessage = 26; if (cached_has_bits & 0x00200000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *stickermessage_); + *_impl_.stickermessage_); } // optional .proto.GroupInviteMessage groupInviteMessage = 28; if (cached_has_bits & 0x00400000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *groupinvitemessage_); + *_impl_.groupinvitemessage_); } // optional .proto.TemplateButtonReplyMessage templateButtonReplyMessage = 29; if (cached_has_bits & 0x00800000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *templatebuttonreplymessage_); + *_impl_.templatebuttonreplymessage_); } } @@ -35054,223 +36474,253 @@ size_t Message::ByteSizeLong() const { if (cached_has_bits & 0x01000000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *productmessage_); + *_impl_.productmessage_); } // optional .proto.DeviceSentMessage deviceSentMessage = 31; if (cached_has_bits & 0x02000000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *devicesentmessage_); + *_impl_.devicesentmessage_); } // optional .proto.MessageContextInfo messageContextInfo = 35; if (cached_has_bits & 0x04000000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *messagecontextinfo_); + *_impl_.messagecontextinfo_); } // optional .proto.ListMessage listMessage = 36; if (cached_has_bits & 0x08000000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *listmessage_); + *_impl_.listmessage_); } // optional .proto.FutureProofMessage viewOnceMessage = 37; if (cached_has_bits & 0x10000000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *viewoncemessage_); + *_impl_.viewoncemessage_); } // optional .proto.OrderMessage orderMessage = 38; if (cached_has_bits & 0x20000000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *ordermessage_); + *_impl_.ordermessage_); } // optional .proto.ListResponseMessage listResponseMessage = 39; if (cached_has_bits & 0x40000000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *listresponsemessage_); + *_impl_.listresponsemessage_); } // optional .proto.FutureProofMessage ephemeralMessage = 40; if (cached_has_bits & 0x80000000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *ephemeralmessage_); + *_impl_.ephemeralmessage_); } } - cached_has_bits = _has_bits_[1]; + cached_has_bits = _impl_._has_bits_[1]; if (cached_has_bits & 0x00000007u) { // optional .proto.InvoiceMessage invoiceMessage = 41; if (cached_has_bits & 0x00000001u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *invoicemessage_); + *_impl_.invoicemessage_); } // optional .proto.ButtonsMessage buttonsMessage = 42; if (cached_has_bits & 0x00000002u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *buttonsmessage_); + *_impl_.buttonsmessage_); } // optional .proto.ButtonsResponseMessage buttonsResponseMessage = 43; if (cached_has_bits & 0x00000004u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *buttonsresponsemessage_); + *_impl_.buttonsresponsemessage_); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Message::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, Message::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Message::GetClassData() const { return &_class_data_; } -void Message::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<Message *>(to)->MergeFrom( - static_cast<const Message &>(from)); -} - -void Message::MergeFrom(const Message& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.Message) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void Message::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<Message*>(&to_msg); + auto& from = static_cast<const Message&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.Message) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_set_conversation(from._internal_conversation()); + _this->_internal_set_conversation(from._internal_conversation()); } if (cached_has_bits & 0x00000002u) { - _internal_mutable_senderkeydistributionmessage()->::proto::SenderKeyDistributionMessage::MergeFrom(from._internal_senderkeydistributionmessage()); + _this->_internal_mutable_senderkeydistributionmessage()->::proto::SenderKeyDistributionMessage::MergeFrom( + from._internal_senderkeydistributionmessage()); } if (cached_has_bits & 0x00000004u) { - _internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom(from._internal_imagemessage()); + _this->_internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom( + from._internal_imagemessage()); } if (cached_has_bits & 0x00000008u) { - _internal_mutable_contactmessage()->::proto::ContactMessage::MergeFrom(from._internal_contactmessage()); + _this->_internal_mutable_contactmessage()->::proto::ContactMessage::MergeFrom( + from._internal_contactmessage()); } if (cached_has_bits & 0x00000010u) { - _internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom(from._internal_locationmessage()); + _this->_internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom( + from._internal_locationmessage()); } if (cached_has_bits & 0x00000020u) { - _internal_mutable_extendedtextmessage()->::proto::ExtendedTextMessage::MergeFrom(from._internal_extendedtextmessage()); + _this->_internal_mutable_extendedtextmessage()->::proto::ExtendedTextMessage::MergeFrom( + from._internal_extendedtextmessage()); } if (cached_has_bits & 0x00000040u) { - _internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom(from._internal_documentmessage()); + _this->_internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom( + from._internal_documentmessage()); } if (cached_has_bits & 0x00000080u) { - _internal_mutable_audiomessage()->::proto::AudioMessage::MergeFrom(from._internal_audiomessage()); + _this->_internal_mutable_audiomessage()->::proto::AudioMessage::MergeFrom( + from._internal_audiomessage()); } } if (cached_has_bits & 0x0000ff00u) { if (cached_has_bits & 0x00000100u) { - _internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom(from._internal_videomessage()); + _this->_internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom( + from._internal_videomessage()); } if (cached_has_bits & 0x00000200u) { - _internal_mutable_call()->::proto::Call::MergeFrom(from._internal_call()); + _this->_internal_mutable_call()->::proto::Call::MergeFrom( + from._internal_call()); } if (cached_has_bits & 0x00000400u) { - _internal_mutable_chat()->::proto::Chat::MergeFrom(from._internal_chat()); + _this->_internal_mutable_chat()->::proto::Chat::MergeFrom( + from._internal_chat()); } if (cached_has_bits & 0x00000800u) { - _internal_mutable_protocolmessage()->::proto::ProtocolMessage::MergeFrom(from._internal_protocolmessage()); + _this->_internal_mutable_protocolmessage()->::proto::ProtocolMessage::MergeFrom( + from._internal_protocolmessage()); } if (cached_has_bits & 0x00001000u) { - _internal_mutable_contactsarraymessage()->::proto::ContactsArrayMessage::MergeFrom(from._internal_contactsarraymessage()); + _this->_internal_mutable_contactsarraymessage()->::proto::ContactsArrayMessage::MergeFrom( + from._internal_contactsarraymessage()); } if (cached_has_bits & 0x00002000u) { - _internal_mutable_highlystructuredmessage()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_highlystructuredmessage()); + _this->_internal_mutable_highlystructuredmessage()->::proto::HighlyStructuredMessage::MergeFrom( + from._internal_highlystructuredmessage()); } if (cached_has_bits & 0x00004000u) { - _internal_mutable_fastratchetkeysenderkeydistributionmessage()->::proto::SenderKeyDistributionMessage::MergeFrom(from._internal_fastratchetkeysenderkeydistributionmessage()); + _this->_internal_mutable_fastratchetkeysenderkeydistributionmessage()->::proto::SenderKeyDistributionMessage::MergeFrom( + from._internal_fastratchetkeysenderkeydistributionmessage()); } if (cached_has_bits & 0x00008000u) { - _internal_mutable_sendpaymentmessage()->::proto::SendPaymentMessage::MergeFrom(from._internal_sendpaymentmessage()); + _this->_internal_mutable_sendpaymentmessage()->::proto::SendPaymentMessage::MergeFrom( + from._internal_sendpaymentmessage()); } } if (cached_has_bits & 0x00ff0000u) { if (cached_has_bits & 0x00010000u) { - _internal_mutable_livelocationmessage()->::proto::LiveLocationMessage::MergeFrom(from._internal_livelocationmessage()); + _this->_internal_mutable_livelocationmessage()->::proto::LiveLocationMessage::MergeFrom( + from._internal_livelocationmessage()); } if (cached_has_bits & 0x00020000u) { - _internal_mutable_requestpaymentmessage()->::proto::RequestPaymentMessage::MergeFrom(from._internal_requestpaymentmessage()); + _this->_internal_mutable_requestpaymentmessage()->::proto::RequestPaymentMessage::MergeFrom( + from._internal_requestpaymentmessage()); } if (cached_has_bits & 0x00040000u) { - _internal_mutable_declinepaymentrequestmessage()->::proto::DeclinePaymentRequestMessage::MergeFrom(from._internal_declinepaymentrequestmessage()); + _this->_internal_mutable_declinepaymentrequestmessage()->::proto::DeclinePaymentRequestMessage::MergeFrom( + from._internal_declinepaymentrequestmessage()); } if (cached_has_bits & 0x00080000u) { - _internal_mutable_cancelpaymentrequestmessage()->::proto::CancelPaymentRequestMessage::MergeFrom(from._internal_cancelpaymentrequestmessage()); + _this->_internal_mutable_cancelpaymentrequestmessage()->::proto::CancelPaymentRequestMessage::MergeFrom( + from._internal_cancelpaymentrequestmessage()); } if (cached_has_bits & 0x00100000u) { - _internal_mutable_templatemessage()->::proto::TemplateMessage::MergeFrom(from._internal_templatemessage()); + _this->_internal_mutable_templatemessage()->::proto::TemplateMessage::MergeFrom( + from._internal_templatemessage()); } if (cached_has_bits & 0x00200000u) { - _internal_mutable_stickermessage()->::proto::StickerMessage::MergeFrom(from._internal_stickermessage()); + _this->_internal_mutable_stickermessage()->::proto::StickerMessage::MergeFrom( + from._internal_stickermessage()); } if (cached_has_bits & 0x00400000u) { - _internal_mutable_groupinvitemessage()->::proto::GroupInviteMessage::MergeFrom(from._internal_groupinvitemessage()); + _this->_internal_mutable_groupinvitemessage()->::proto::GroupInviteMessage::MergeFrom( + from._internal_groupinvitemessage()); } if (cached_has_bits & 0x00800000u) { - _internal_mutable_templatebuttonreplymessage()->::proto::TemplateButtonReplyMessage::MergeFrom(from._internal_templatebuttonreplymessage()); + _this->_internal_mutable_templatebuttonreplymessage()->::proto::TemplateButtonReplyMessage::MergeFrom( + from._internal_templatebuttonreplymessage()); } } if (cached_has_bits & 0xff000000u) { if (cached_has_bits & 0x01000000u) { - _internal_mutable_productmessage()->::proto::ProductMessage::MergeFrom(from._internal_productmessage()); + _this->_internal_mutable_productmessage()->::proto::ProductMessage::MergeFrom( + from._internal_productmessage()); } if (cached_has_bits & 0x02000000u) { - _internal_mutable_devicesentmessage()->::proto::DeviceSentMessage::MergeFrom(from._internal_devicesentmessage()); + _this->_internal_mutable_devicesentmessage()->::proto::DeviceSentMessage::MergeFrom( + from._internal_devicesentmessage()); } if (cached_has_bits & 0x04000000u) { - _internal_mutable_messagecontextinfo()->::proto::MessageContextInfo::MergeFrom(from._internal_messagecontextinfo()); + _this->_internal_mutable_messagecontextinfo()->::proto::MessageContextInfo::MergeFrom( + from._internal_messagecontextinfo()); } if (cached_has_bits & 0x08000000u) { - _internal_mutable_listmessage()->::proto::ListMessage::MergeFrom(from._internal_listmessage()); + _this->_internal_mutable_listmessage()->::proto::ListMessage::MergeFrom( + from._internal_listmessage()); } if (cached_has_bits & 0x10000000u) { - _internal_mutable_viewoncemessage()->::proto::FutureProofMessage::MergeFrom(from._internal_viewoncemessage()); + _this->_internal_mutable_viewoncemessage()->::proto::FutureProofMessage::MergeFrom( + from._internal_viewoncemessage()); } if (cached_has_bits & 0x20000000u) { - _internal_mutable_ordermessage()->::proto::OrderMessage::MergeFrom(from._internal_ordermessage()); + _this->_internal_mutable_ordermessage()->::proto::OrderMessage::MergeFrom( + from._internal_ordermessage()); } if (cached_has_bits & 0x40000000u) { - _internal_mutable_listresponsemessage()->::proto::ListResponseMessage::MergeFrom(from._internal_listresponsemessage()); + _this->_internal_mutable_listresponsemessage()->::proto::ListResponseMessage::MergeFrom( + from._internal_listresponsemessage()); } if (cached_has_bits & 0x80000000u) { - _internal_mutable_ephemeralmessage()->::proto::FutureProofMessage::MergeFrom(from._internal_ephemeralmessage()); + _this->_internal_mutable_ephemeralmessage()->::proto::FutureProofMessage::MergeFrom( + from._internal_ephemeralmessage()); } } - cached_has_bits = from._has_bits_[1]; + cached_has_bits = from._impl_._has_bits_[1]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - _internal_mutable_invoicemessage()->::proto::InvoiceMessage::MergeFrom(from._internal_invoicemessage()); + _this->_internal_mutable_invoicemessage()->::proto::InvoiceMessage::MergeFrom( + from._internal_invoicemessage()); } if (cached_has_bits & 0x00000002u) { - _internal_mutable_buttonsmessage()->::proto::ButtonsMessage::MergeFrom(from._internal_buttonsmessage()); + _this->_internal_mutable_buttonsmessage()->::proto::ButtonsMessage::MergeFrom( + from._internal_buttonsmessage()); } if (cached_has_bits & 0x00000004u) { - _internal_mutable_buttonsresponsemessage()->::proto::ButtonsResponseMessage::MergeFrom(from._internal_buttonsresponsemessage()); + _this->_internal_mutable_buttonsresponsemessage()->::proto::ButtonsResponseMessage::MergeFrom( + from._internal_buttonsresponsemessage()); } } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Message::CopyFrom(const Message& from) { @@ -35289,23 +36739,22 @@ void Message::InternalSwap(Message* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(_has_bits_[1], other->_has_bits_[1]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_._has_bits_[1], other->_impl_._has_bits_[1]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &conversation_, lhs_arena, - &other->conversation_, rhs_arena + &_impl_.conversation_, lhs_arena, + &other->_impl_.conversation_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Message, buttonsresponsemessage_) - + sizeof(Message::buttonsresponsemessage_) - - PROTOBUF_FIELD_OFFSET(Message, senderkeydistributionmessage_)>( - reinterpret_cast<char*>(&senderkeydistributionmessage_), - reinterpret_cast<char*>(&other->senderkeydistributionmessage_)); + PROTOBUF_FIELD_OFFSET(Message, _impl_.buttonsresponsemessage_) + + sizeof(Message::_impl_.buttonsresponsemessage_) + - PROTOBUF_FIELD_OFFSET(Message, _impl_.senderkeydistributionmessage_)>( + reinterpret_cast<char*>(&_impl_.senderkeydistributionmessage_), + reinterpret_cast<char*>(&other->_impl_.senderkeydistributionmessage_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Message::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[72]); } @@ -35314,7 +36763,7 @@ void Message::InternalSwap(Message* other) { class MessageKey::_Internal { public: - using HasBits = decltype(std::declval<MessageKey>()._has_bits_); + using HasBits = decltype(std::declval<MessageKey>()._impl_._has_bits_); static void set_has_remotejid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -35332,138 +36781,167 @@ class MessageKey::_Internal { MessageKey::MessageKey(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.MessageKey) } MessageKey::MessageKey(const MessageKey& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + MessageKey* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.remotejid_){} + , decltype(_impl_.id_){} + , decltype(_impl_.participant_){} + , decltype(_impl_.fromme_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - remotejid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.remotejid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.remotejid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_remotejid()) { - remotejid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_remotejid(), - GetArenaForAllocation()); + _this->_impl_.remotejid_.Set(from._internal_remotejid(), + _this->GetArenaForAllocation()); } - id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_id()) { - id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), - GetArenaForAllocation()); + _this->_impl_.id_.Set(from._internal_id(), + _this->GetArenaForAllocation()); } - participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.participant_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.participant_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_participant()) { - participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_participant(), - GetArenaForAllocation()); + _this->_impl_.participant_.Set(from._internal_participant(), + _this->GetArenaForAllocation()); } - fromme_ = from.fromme_; + _this->_impl_.fromme_ = from._impl_.fromme_; // @@protoc_insertion_point(copy_constructor:proto.MessageKey) } -void MessageKey::SharedCtor() { -remotejid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -fromme_ = false; +inline void MessageKey::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.remotejid_){} + , decltype(_impl_.id_){} + , decltype(_impl_.participant_){} + , decltype(_impl_.fromme_){false} + }; + _impl_.remotejid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.remotejid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.id_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.participant_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.participant_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } MessageKey::~MessageKey() { // @@protoc_insertion_point(destructor:proto.MessageKey) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void MessageKey::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - remotejid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - participant_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.remotejid_.Destroy(); + _impl_.id_.Destroy(); + _impl_.participant_.Destroy(); } -void MessageKey::ArenaDtor(void* object) { - MessageKey* _this = reinterpret_cast< MessageKey* >(object); - (void)_this; -} -void MessageKey::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void MessageKey::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void MessageKey::Clear() { // @@protoc_insertion_point(message_clear_start:proto.MessageKey) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - remotejid_.ClearNonDefaultToEmpty(); + _impl_.remotejid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - id_.ClearNonDefaultToEmpty(); + _impl_.id_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - participant_.ClearNonDefaultToEmpty(); + _impl_.participant_.ClearNonDefaultToEmpty(); } } - fromme_ = false; - _has_bits_.Clear(); + _impl_.fromme_ = false; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MessageKey::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* MessageKey::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional string remoteJid = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { auto str = _internal_mutable_remotejid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.MessageKey.remoteJid"); + ::_pbi::VerifyUTF8(str, "proto.MessageKey.remoteJid"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bool fromMe = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { _Internal::set_has_fromme(&has_bits); - fromme_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.fromme_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string id = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { auto str = _internal_mutable_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.MessageKey.id"); + ::_pbi::VerifyUTF8(str, "proto.MessageKey.id"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional string participant = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { auto str = _internal_mutable_participant(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.MessageKey.participant"); + ::_pbi::VerifyUTF8(str, "proto.MessageKey.participant"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -35483,7 +36961,7 @@ const char* MessageKey::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -35491,13 +36969,13 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* MessageKey::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* MessageKey::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.MessageKey) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional string remoteJid = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -35511,7 +36989,7 @@ failure: // optional bool fromMe = 2; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_fromme(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_fromme(), target); } // optional string id = 3; @@ -35535,7 +37013,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.MessageKey) @@ -35546,11 +37024,11 @@ size_t MessageKey::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.MessageKey) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional string remoteJid = 1; if (cached_has_bits & 0x00000001u) { @@ -35579,45 +37057,41 @@ size_t MessageKey::ByteSizeLong() const { } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageKey::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, MessageKey::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessageKey::GetClassData() const { return &_class_data_; } -void MessageKey::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<MessageKey *>(to)->MergeFrom( - static_cast<const MessageKey &>(from)); -} - -void MessageKey::MergeFrom(const MessageKey& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.MessageKey) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void MessageKey::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<MessageKey*>(&to_msg); + auto& from = static_cast<const MessageKey&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.MessageKey) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - _internal_set_remotejid(from._internal_remotejid()); + _this->_internal_set_remotejid(from._internal_remotejid()); } if (cached_has_bits & 0x00000002u) { - _internal_set_id(from._internal_id()); + _this->_internal_set_id(from._internal_id()); } if (cached_has_bits & 0x00000004u) { - _internal_set_participant(from._internal_participant()); + _this->_internal_set_participant(from._internal_participant()); } if (cached_has_bits & 0x00000008u) { - fromme_ = from.fromme_; + _this->_impl_.fromme_ = from._impl_.fromme_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageKey::CopyFrom(const MessageKey& from) { @@ -35636,27 +37110,24 @@ void MessageKey::InternalSwap(MessageKey* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &remotejid_, lhs_arena, - &other->remotejid_, rhs_arena + &_impl_.remotejid_, lhs_arena, + &other->_impl_.remotejid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &id_, lhs_arena, - &other->id_, rhs_arena + &_impl_.id_, lhs_arena, + &other->_impl_.id_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &participant_, lhs_arena, - &other->participant_, rhs_arena + &_impl_.participant_, lhs_arena, + &other->_impl_.participant_, rhs_arena ); - swap(fromme_, other->fromme_); + swap(_impl_.fromme_, other->_impl_.fromme_); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageKey::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[73]); } @@ -35665,7 +37136,7 @@ void MessageKey::InternalSwap(MessageKey* other) { class WebFeatures::_Internal { public: - using HasBits = decltype(std::declval<WebFeatures>()._has_bits_); + using HasBits = decltype(std::declval<WebFeatures>()._impl_._has_bits_); static void set_has_labelsdisplay(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -35791,97 +37262,177 @@ class WebFeatures::_Internal { WebFeatures::WebFeatures(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.WebFeatures) } WebFeatures::WebFeatures(const WebFeatures& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + WebFeatures* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.labelsdisplay_){} + , decltype(_impl_.voipindividualoutgoing_){} + , decltype(_impl_.groupsv3_){} + , decltype(_impl_.groupsv3create_){} + , decltype(_impl_.changenumberv2_){} + , decltype(_impl_.querystatusv3thumbnail_){} + , decltype(_impl_.livelocations_){} + , decltype(_impl_.queryvname_){} + , decltype(_impl_.voipindividualincoming_){} + , decltype(_impl_.quickrepliesquery_){} + , decltype(_impl_.payments_){} + , decltype(_impl_.stickerpackquery_){} + , decltype(_impl_.livelocationsfinal_){} + , decltype(_impl_.labelsedit_){} + , decltype(_impl_.mediaupload_){} + , decltype(_impl_.mediauploadrichquickreplies_){} + , decltype(_impl_.vnamev2_){} + , decltype(_impl_.videoplaybackurl_){} + , decltype(_impl_.statusranking_){} + , decltype(_impl_.voipindividualvideo_){} + , decltype(_impl_.thirdpartystickers_){} + , decltype(_impl_.frequentlyforwardedsetting_){} + , decltype(_impl_.groupsv4joinpermission_){} + , decltype(_impl_.recentstickers_){} + , decltype(_impl_.catalog_){} + , decltype(_impl_.starredstickers_){} + , decltype(_impl_.voipgroupcall_){} + , decltype(_impl_.templatemessage_){} + , decltype(_impl_.templatemessageinteractivity_){} + , decltype(_impl_.ephemeralmessages_){} + , decltype(_impl_.e2enotificationsync_){} + , decltype(_impl_.recentstickersv2_){} + , decltype(_impl_.syncdrelease1_){} + , decltype(_impl_.recentstickersv3_){} + , decltype(_impl_.usernotice_){} + , decltype(_impl_.syncdrelease11_){} + , decltype(_impl_.support_){} + , decltype(_impl_.groupuiicleanup_){} + , decltype(_impl_.groupdogfoodinginternalonly_){} + , decltype(_impl_.settingssync_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&labelsdisplay_, &from.labelsdisplay_, - static_cast<size_t>(reinterpret_cast<char*>(&settingssync_) - - reinterpret_cast<char*>(&labelsdisplay_)) + sizeof(settingssync_)); + ::memcpy(&_impl_.labelsdisplay_, &from._impl_.labelsdisplay_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.settingssync_) - + reinterpret_cast<char*>(&_impl_.labelsdisplay_)) + sizeof(_impl_.settingssync_)); // @@protoc_insertion_point(copy_constructor:proto.WebFeatures) } -void WebFeatures::SharedCtor() { -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&labelsdisplay_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&settingssync_) - - reinterpret_cast<char*>(&labelsdisplay_)) + sizeof(settingssync_)); +inline void WebFeatures::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.labelsdisplay_){0} + , decltype(_impl_.voipindividualoutgoing_){0} + , decltype(_impl_.groupsv3_){0} + , decltype(_impl_.groupsv3create_){0} + , decltype(_impl_.changenumberv2_){0} + , decltype(_impl_.querystatusv3thumbnail_){0} + , decltype(_impl_.livelocations_){0} + , decltype(_impl_.queryvname_){0} + , decltype(_impl_.voipindividualincoming_){0} + , decltype(_impl_.quickrepliesquery_){0} + , decltype(_impl_.payments_){0} + , decltype(_impl_.stickerpackquery_){0} + , decltype(_impl_.livelocationsfinal_){0} + , decltype(_impl_.labelsedit_){0} + , decltype(_impl_.mediaupload_){0} + , decltype(_impl_.mediauploadrichquickreplies_){0} + , decltype(_impl_.vnamev2_){0} + , decltype(_impl_.videoplaybackurl_){0} + , decltype(_impl_.statusranking_){0} + , decltype(_impl_.voipindividualvideo_){0} + , decltype(_impl_.thirdpartystickers_){0} + , decltype(_impl_.frequentlyforwardedsetting_){0} + , decltype(_impl_.groupsv4joinpermission_){0} + , decltype(_impl_.recentstickers_){0} + , decltype(_impl_.catalog_){0} + , decltype(_impl_.starredstickers_){0} + , decltype(_impl_.voipgroupcall_){0} + , decltype(_impl_.templatemessage_){0} + , decltype(_impl_.templatemessageinteractivity_){0} + , decltype(_impl_.ephemeralmessages_){0} + , decltype(_impl_.e2enotificationsync_){0} + , decltype(_impl_.recentstickersv2_){0} + , decltype(_impl_.syncdrelease1_){0} + , decltype(_impl_.recentstickersv3_){0} + , decltype(_impl_.usernotice_){0} + , decltype(_impl_.syncdrelease11_){0} + , decltype(_impl_.support_){0} + , decltype(_impl_.groupuiicleanup_){0} + , decltype(_impl_.groupdogfoodinginternalonly_){0} + , decltype(_impl_.settingssync_){0} + }; } WebFeatures::~WebFeatures() { // @@protoc_insertion_point(destructor:proto.WebFeatures) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void WebFeatures::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -void WebFeatures::ArenaDtor(void* object) { - WebFeatures* _this = reinterpret_cast< WebFeatures* >(object); - (void)_this; -} -void WebFeatures::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void WebFeatures::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void WebFeatures::Clear() { // @@protoc_insertion_point(message_clear_start:proto.WebFeatures) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { - ::memset(&labelsdisplay_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&queryvname_) - - reinterpret_cast<char*>(&labelsdisplay_)) + sizeof(queryvname_)); + ::memset(&_impl_.labelsdisplay_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.queryvname_) - + reinterpret_cast<char*>(&_impl_.labelsdisplay_)) + sizeof(_impl_.queryvname_)); } if (cached_has_bits & 0x0000ff00u) { - ::memset(&voipindividualincoming_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&mediauploadrichquickreplies_) - - reinterpret_cast<char*>(&voipindividualincoming_)) + sizeof(mediauploadrichquickreplies_)); + ::memset(&_impl_.voipindividualincoming_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.mediauploadrichquickreplies_) - + reinterpret_cast<char*>(&_impl_.voipindividualincoming_)) + sizeof(_impl_.mediauploadrichquickreplies_)); } if (cached_has_bits & 0x00ff0000u) { - ::memset(&vnamev2_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&recentstickers_) - - reinterpret_cast<char*>(&vnamev2_)) + sizeof(recentstickers_)); + ::memset(&_impl_.vnamev2_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.recentstickers_) - + reinterpret_cast<char*>(&_impl_.vnamev2_)) + sizeof(_impl_.recentstickers_)); } if (cached_has_bits & 0xff000000u) { - ::memset(&catalog_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&recentstickersv2_) - - reinterpret_cast<char*>(&catalog_)) + sizeof(recentstickersv2_)); + ::memset(&_impl_.catalog_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.recentstickersv2_) - + reinterpret_cast<char*>(&_impl_.catalog_)) + sizeof(_impl_.recentstickersv2_)); } - cached_has_bits = _has_bits_[1]; + cached_has_bits = _impl_._has_bits_[1]; if (cached_has_bits & 0x000000ffu) { - ::memset(&syncdrelease1_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&settingssync_) - - reinterpret_cast<char*>(&syncdrelease1_)) + sizeof(settingssync_)); + ::memset(&_impl_.syncdrelease1_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.settingssync_) - + reinterpret_cast<char*>(&_impl_.syncdrelease1_)) + sizeof(_impl_.settingssync_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* WebFeatures::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional .proto.WebFeatures.WebFeaturesFlag labelsDisplay = 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); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_labelsdisplay(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -35893,8 +37444,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualOutgoing = 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); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_voipindividualoutgoing(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -35906,8 +37457,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag groupsV3 = 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); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_groupsv3(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -35919,8 +37470,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag groupsV3Create = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_groupsv3create(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -35932,8 +37483,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag changeNumberV2 = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_changenumberv2(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -35945,8 +37496,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag queryStatusV3Thumbnail = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_querystatusv3thumbnail(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -35958,8 +37509,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag liveLocations = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_livelocations(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -35971,8 +37522,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag queryVname = 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); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_queryvname(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -35984,8 +37535,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualIncoming = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_voipindividualincoming(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -35997,8 +37548,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag quickRepliesQuery = 10; case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_quickrepliesquery(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36010,8 +37561,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag payments = 11; case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_payments(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36023,8 +37574,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag stickerPackQuery = 12; case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_stickerpackquery(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36036,8 +37587,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag liveLocationsFinal = 13; case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 104)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_livelocationsfinal(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36049,8 +37600,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag labelsEdit = 14; case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 112)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_labelsedit(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36062,8 +37613,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag mediaUpload = 15; case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 120)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 120)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_mediaupload(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36075,8 +37626,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag mediaUploadRichQuickReplies = 18; case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_mediauploadrichquickreplies(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36088,8 +37639,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag vnameV2 = 19; case 19: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 152)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 152)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_vnamev2(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36101,8 +37652,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag videoPlaybackUrl = 20; case 20: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 160)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 160)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_videoplaybackurl(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36114,8 +37665,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag statusRanking = 21; case 21: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 168)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 168)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_statusranking(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36127,8 +37678,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualVideo = 22; case 22: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 176)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 176)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_voipindividualvideo(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36140,8 +37691,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag thirdPartyStickers = 23; case 23: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 184)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 184)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_thirdpartystickers(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36153,8 +37704,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag frequentlyForwardedSetting = 24; case 24: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 192)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 192)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_frequentlyforwardedsetting(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36166,8 +37717,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag groupsV4JoinPermission = 25; case 25: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 200)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 200)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_groupsv4joinpermission(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36179,8 +37730,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag recentStickers = 26; case 26: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 208)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 208)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_recentstickers(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36192,8 +37743,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag catalog = 27; case 27: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 216)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 216)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_catalog(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36205,8 +37756,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag starredStickers = 28; case 28: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 224)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 224)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_starredstickers(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36218,8 +37769,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag voipGroupCall = 29; case 29: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 232)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 232)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_voipgroupcall(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36231,8 +37782,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag templateMessage = 30; case 30: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 240)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 240)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_templatemessage(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36244,8 +37795,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag templateMessageInteractivity = 31; case 31: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 248)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 248)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_templatemessageinteractivity(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36257,8 +37808,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag ephemeralMessages = 32; case 32: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 0)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 0)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_ephemeralmessages(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36270,8 +37821,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag e2ENotificationSync = 33; case 33: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_e2enotificationsync(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36283,8 +37834,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag recentStickersV2 = 34; case 34: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_recentstickersv2(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36296,8 +37847,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag syncdRelease1 = 35; case 35: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_syncdrelease1(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36309,8 +37860,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag recentStickersV3 = 36; case 36: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_recentstickersv3(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36322,8 +37873,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag userNotice = 37; case 37: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_usernotice(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36335,8 +37886,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag syncdRelease11 = 38; case 38: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_syncdrelease11(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36348,8 +37899,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag support = 39; case 39: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_support(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36361,8 +37912,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag groupUiiCleanup = 40; case 40: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_groupuiicleanup(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36374,8 +37925,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag groupDogfoodingInternalOnly = 41; case 41: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_groupdogfoodinginternalonly(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36387,8 +37938,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.WebFeatures.WebFeaturesFlag settingsSync = 42; case 42: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { _internal_set_settingssync(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); @@ -36421,296 +37972,296 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* WebFeatures::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* WebFeatures::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.WebFeatures) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.WebFeatures.WebFeaturesFlag labelsDisplay = 1; if (cached_has_bits & 0x00000001u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 1, this->_internal_labelsdisplay(), target); } // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualOutgoing = 2; if (cached_has_bits & 0x00000002u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 2, this->_internal_voipindividualoutgoing(), target); } // optional .proto.WebFeatures.WebFeaturesFlag groupsV3 = 3; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 3, this->_internal_groupsv3(), target); } // optional .proto.WebFeatures.WebFeaturesFlag groupsV3Create = 4; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 4, this->_internal_groupsv3create(), target); } // optional .proto.WebFeatures.WebFeaturesFlag changeNumberV2 = 5; if (cached_has_bits & 0x00000010u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 5, this->_internal_changenumberv2(), target); } // optional .proto.WebFeatures.WebFeaturesFlag queryStatusV3Thumbnail = 6; if (cached_has_bits & 0x00000020u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 6, this->_internal_querystatusv3thumbnail(), target); } // optional .proto.WebFeatures.WebFeaturesFlag liveLocations = 7; if (cached_has_bits & 0x00000040u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 7, this->_internal_livelocations(), target); } // optional .proto.WebFeatures.WebFeaturesFlag queryVname = 8; if (cached_has_bits & 0x00000080u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 8, this->_internal_queryvname(), target); } // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualIncoming = 9; if (cached_has_bits & 0x00000100u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 9, this->_internal_voipindividualincoming(), target); } // optional .proto.WebFeatures.WebFeaturesFlag quickRepliesQuery = 10; if (cached_has_bits & 0x00000200u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 10, this->_internal_quickrepliesquery(), target); } // optional .proto.WebFeatures.WebFeaturesFlag payments = 11; if (cached_has_bits & 0x00000400u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 11, this->_internal_payments(), target); } // optional .proto.WebFeatures.WebFeaturesFlag stickerPackQuery = 12; if (cached_has_bits & 0x00000800u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 12, this->_internal_stickerpackquery(), target); } // optional .proto.WebFeatures.WebFeaturesFlag liveLocationsFinal = 13; if (cached_has_bits & 0x00001000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 13, this->_internal_livelocationsfinal(), target); } // optional .proto.WebFeatures.WebFeaturesFlag labelsEdit = 14; if (cached_has_bits & 0x00002000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 14, this->_internal_labelsedit(), target); } // optional .proto.WebFeatures.WebFeaturesFlag mediaUpload = 15; if (cached_has_bits & 0x00004000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 15, this->_internal_mediaupload(), target); } // optional .proto.WebFeatures.WebFeaturesFlag mediaUploadRichQuickReplies = 18; if (cached_has_bits & 0x00008000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 18, this->_internal_mediauploadrichquickreplies(), target); } // optional .proto.WebFeatures.WebFeaturesFlag vnameV2 = 19; if (cached_has_bits & 0x00010000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 19, this->_internal_vnamev2(), target); } // optional .proto.WebFeatures.WebFeaturesFlag videoPlaybackUrl = 20; if (cached_has_bits & 0x00020000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 20, this->_internal_videoplaybackurl(), target); } // optional .proto.WebFeatures.WebFeaturesFlag statusRanking = 21; if (cached_has_bits & 0x00040000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 21, this->_internal_statusranking(), target); } // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualVideo = 22; if (cached_has_bits & 0x00080000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 22, this->_internal_voipindividualvideo(), target); } // optional .proto.WebFeatures.WebFeaturesFlag thirdPartyStickers = 23; if (cached_has_bits & 0x00100000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 23, this->_internal_thirdpartystickers(), target); } // optional .proto.WebFeatures.WebFeaturesFlag frequentlyForwardedSetting = 24; if (cached_has_bits & 0x00200000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 24, this->_internal_frequentlyforwardedsetting(), target); } // optional .proto.WebFeatures.WebFeaturesFlag groupsV4JoinPermission = 25; if (cached_has_bits & 0x00400000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 25, this->_internal_groupsv4joinpermission(), target); } // optional .proto.WebFeatures.WebFeaturesFlag recentStickers = 26; if (cached_has_bits & 0x00800000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 26, this->_internal_recentstickers(), target); } // optional .proto.WebFeatures.WebFeaturesFlag catalog = 27; if (cached_has_bits & 0x01000000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 27, this->_internal_catalog(), target); } // optional .proto.WebFeatures.WebFeaturesFlag starredStickers = 28; if (cached_has_bits & 0x02000000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 28, this->_internal_starredstickers(), target); } // optional .proto.WebFeatures.WebFeaturesFlag voipGroupCall = 29; if (cached_has_bits & 0x04000000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 29, this->_internal_voipgroupcall(), target); } // optional .proto.WebFeatures.WebFeaturesFlag templateMessage = 30; if (cached_has_bits & 0x08000000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 30, this->_internal_templatemessage(), target); } // optional .proto.WebFeatures.WebFeaturesFlag templateMessageInteractivity = 31; if (cached_has_bits & 0x10000000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 31, this->_internal_templatemessageinteractivity(), target); } // optional .proto.WebFeatures.WebFeaturesFlag ephemeralMessages = 32; if (cached_has_bits & 0x20000000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 32, this->_internal_ephemeralmessages(), target); } // optional .proto.WebFeatures.WebFeaturesFlag e2ENotificationSync = 33; if (cached_has_bits & 0x40000000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 33, this->_internal_e2enotificationsync(), target); } // optional .proto.WebFeatures.WebFeaturesFlag recentStickersV2 = 34; if (cached_has_bits & 0x80000000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 34, this->_internal_recentstickersv2(), target); } - cached_has_bits = _has_bits_[1]; + cached_has_bits = _impl_._has_bits_[1]; // optional .proto.WebFeatures.WebFeaturesFlag syncdRelease1 = 35; if (cached_has_bits & 0x00000001u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 35, this->_internal_syncdrelease1(), target); } // optional .proto.WebFeatures.WebFeaturesFlag recentStickersV3 = 36; if (cached_has_bits & 0x00000002u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 36, this->_internal_recentstickersv3(), target); } // optional .proto.WebFeatures.WebFeaturesFlag userNotice = 37; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 37, this->_internal_usernotice(), target); } // optional .proto.WebFeatures.WebFeaturesFlag syncdRelease11 = 38; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 38, this->_internal_syncdrelease11(), target); } // optional .proto.WebFeatures.WebFeaturesFlag support = 39; if (cached_has_bits & 0x00000010u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 39, this->_internal_support(), target); } // optional .proto.WebFeatures.WebFeaturesFlag groupUiiCleanup = 40; if (cached_has_bits & 0x00000020u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 40, this->_internal_groupuiicleanup(), target); } // optional .proto.WebFeatures.WebFeaturesFlag groupDogfoodingInternalOnly = 41; if (cached_has_bits & 0x00000040u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 41, this->_internal_groupdogfoodinginternalonly(), target); } // optional .proto.WebFeatures.WebFeaturesFlag settingsSync = 42; if (cached_has_bits & 0x00000080u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 42, this->_internal_settingssync(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.WebFeatures) @@ -36721,58 +38272,58 @@ size_t WebFeatures::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.WebFeatures) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional .proto.WebFeatures.WebFeaturesFlag labelsDisplay = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_labelsdisplay()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_labelsdisplay()); } // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualOutgoing = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_voipindividualoutgoing()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_voipindividualoutgoing()); } // optional .proto.WebFeatures.WebFeaturesFlag groupsV3 = 3; if (cached_has_bits & 0x00000004u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_groupsv3()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_groupsv3()); } // optional .proto.WebFeatures.WebFeaturesFlag groupsV3Create = 4; if (cached_has_bits & 0x00000008u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_groupsv3create()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_groupsv3create()); } // optional .proto.WebFeatures.WebFeaturesFlag changeNumberV2 = 5; if (cached_has_bits & 0x00000010u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_changenumberv2()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_changenumberv2()); } // optional .proto.WebFeatures.WebFeaturesFlag queryStatusV3Thumbnail = 6; if (cached_has_bits & 0x00000020u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_querystatusv3thumbnail()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_querystatusv3thumbnail()); } // optional .proto.WebFeatures.WebFeaturesFlag liveLocations = 7; if (cached_has_bits & 0x00000040u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_livelocations()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_livelocations()); } // optional .proto.WebFeatures.WebFeaturesFlag queryVname = 8; if (cached_has_bits & 0x00000080u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_queryvname()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_queryvname()); } } @@ -36780,49 +38331,49 @@ size_t WebFeatures::ByteSizeLong() const { // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualIncoming = 9; if (cached_has_bits & 0x00000100u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_voipindividualincoming()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_voipindividualincoming()); } // optional .proto.WebFeatures.WebFeaturesFlag quickRepliesQuery = 10; if (cached_has_bits & 0x00000200u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_quickrepliesquery()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_quickrepliesquery()); } // optional .proto.WebFeatures.WebFeaturesFlag payments = 11; if (cached_has_bits & 0x00000400u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_payments()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_payments()); } // optional .proto.WebFeatures.WebFeaturesFlag stickerPackQuery = 12; if (cached_has_bits & 0x00000800u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_stickerpackquery()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_stickerpackquery()); } // optional .proto.WebFeatures.WebFeaturesFlag liveLocationsFinal = 13; if (cached_has_bits & 0x00001000u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_livelocationsfinal()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_livelocationsfinal()); } // optional .proto.WebFeatures.WebFeaturesFlag labelsEdit = 14; if (cached_has_bits & 0x00002000u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_labelsedit()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_labelsedit()); } // optional .proto.WebFeatures.WebFeaturesFlag mediaUpload = 15; if (cached_has_bits & 0x00004000u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_mediaupload()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_mediaupload()); } // optional .proto.WebFeatures.WebFeaturesFlag mediaUploadRichQuickReplies = 18; if (cached_has_bits & 0x00008000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_mediauploadrichquickreplies()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_mediauploadrichquickreplies()); } } @@ -36830,49 +38381,49 @@ size_t WebFeatures::ByteSizeLong() const { // optional .proto.WebFeatures.WebFeaturesFlag vnameV2 = 19; if (cached_has_bits & 0x00010000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_vnamev2()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_vnamev2()); } // optional .proto.WebFeatures.WebFeaturesFlag videoPlaybackUrl = 20; if (cached_has_bits & 0x00020000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_videoplaybackurl()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_videoplaybackurl()); } // optional .proto.WebFeatures.WebFeaturesFlag statusRanking = 21; if (cached_has_bits & 0x00040000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_statusranking()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_statusranking()); } // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualVideo = 22; if (cached_has_bits & 0x00080000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_voipindividualvideo()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_voipindividualvideo()); } // optional .proto.WebFeatures.WebFeaturesFlag thirdPartyStickers = 23; if (cached_has_bits & 0x00100000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_thirdpartystickers()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_thirdpartystickers()); } // optional .proto.WebFeatures.WebFeaturesFlag frequentlyForwardedSetting = 24; if (cached_has_bits & 0x00200000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_frequentlyforwardedsetting()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_frequentlyforwardedsetting()); } // optional .proto.WebFeatures.WebFeaturesFlag groupsV4JoinPermission = 25; if (cached_has_bits & 0x00400000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_groupsv4joinpermission()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_groupsv4joinpermission()); } // optional .proto.WebFeatures.WebFeaturesFlag recentStickers = 26; if (cached_has_bits & 0x00800000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_recentstickers()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_recentstickers()); } } @@ -36880,263 +38431,259 @@ size_t WebFeatures::ByteSizeLong() const { // optional .proto.WebFeatures.WebFeaturesFlag catalog = 27; if (cached_has_bits & 0x01000000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_catalog()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_catalog()); } // optional .proto.WebFeatures.WebFeaturesFlag starredStickers = 28; if (cached_has_bits & 0x02000000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_starredstickers()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_starredstickers()); } // optional .proto.WebFeatures.WebFeaturesFlag voipGroupCall = 29; if (cached_has_bits & 0x04000000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_voipgroupcall()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_voipgroupcall()); } // optional .proto.WebFeatures.WebFeaturesFlag templateMessage = 30; if (cached_has_bits & 0x08000000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_templatemessage()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_templatemessage()); } // optional .proto.WebFeatures.WebFeaturesFlag templateMessageInteractivity = 31; if (cached_has_bits & 0x10000000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_templatemessageinteractivity()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_templatemessageinteractivity()); } // optional .proto.WebFeatures.WebFeaturesFlag ephemeralMessages = 32; if (cached_has_bits & 0x20000000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_ephemeralmessages()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_ephemeralmessages()); } // optional .proto.WebFeatures.WebFeaturesFlag e2ENotificationSync = 33; if (cached_has_bits & 0x40000000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_e2enotificationsync()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_e2enotificationsync()); } // optional .proto.WebFeatures.WebFeaturesFlag recentStickersV2 = 34; if (cached_has_bits & 0x80000000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_recentstickersv2()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_recentstickersv2()); } } - cached_has_bits = _has_bits_[1]; + cached_has_bits = _impl_._has_bits_[1]; if (cached_has_bits & 0x000000ffu) { // optional .proto.WebFeatures.WebFeaturesFlag syncdRelease1 = 35; if (cached_has_bits & 0x00000001u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_syncdrelease1()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_syncdrelease1()); } // optional .proto.WebFeatures.WebFeaturesFlag recentStickersV3 = 36; if (cached_has_bits & 0x00000002u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_recentstickersv3()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_recentstickersv3()); } // optional .proto.WebFeatures.WebFeaturesFlag userNotice = 37; if (cached_has_bits & 0x00000004u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_usernotice()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_usernotice()); } // optional .proto.WebFeatures.WebFeaturesFlag syncdRelease11 = 38; if (cached_has_bits & 0x00000008u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_syncdrelease11()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_syncdrelease11()); } // optional .proto.WebFeatures.WebFeaturesFlag support = 39; if (cached_has_bits & 0x00000010u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_support()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_support()); } // optional .proto.WebFeatures.WebFeaturesFlag groupUiiCleanup = 40; if (cached_has_bits & 0x00000020u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_groupuiicleanup()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_groupuiicleanup()); } // optional .proto.WebFeatures.WebFeaturesFlag groupDogfoodingInternalOnly = 41; if (cached_has_bits & 0x00000040u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_groupdogfoodinginternalonly()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_groupdogfoodinginternalonly()); } // optional .proto.WebFeatures.WebFeaturesFlag settingsSync = 42; if (cached_has_bits & 0x00000080u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_settingssync()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_settingssync()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WebFeatures::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, WebFeatures::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WebFeatures::GetClassData() const { return &_class_data_; } -void WebFeatures::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<WebFeatures *>(to)->MergeFrom( - static_cast<const WebFeatures &>(from)); -} - -void WebFeatures::MergeFrom(const WebFeatures& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.WebFeatures) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void WebFeatures::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<WebFeatures*>(&to_msg); + auto& from = static_cast<const WebFeatures&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.WebFeatures) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - labelsdisplay_ = from.labelsdisplay_; + _this->_impl_.labelsdisplay_ = from._impl_.labelsdisplay_; } if (cached_has_bits & 0x00000002u) { - voipindividualoutgoing_ = from.voipindividualoutgoing_; + _this->_impl_.voipindividualoutgoing_ = from._impl_.voipindividualoutgoing_; } if (cached_has_bits & 0x00000004u) { - groupsv3_ = from.groupsv3_; + _this->_impl_.groupsv3_ = from._impl_.groupsv3_; } if (cached_has_bits & 0x00000008u) { - groupsv3create_ = from.groupsv3create_; + _this->_impl_.groupsv3create_ = from._impl_.groupsv3create_; } if (cached_has_bits & 0x00000010u) { - changenumberv2_ = from.changenumberv2_; + _this->_impl_.changenumberv2_ = from._impl_.changenumberv2_; } if (cached_has_bits & 0x00000020u) { - querystatusv3thumbnail_ = from.querystatusv3thumbnail_; + _this->_impl_.querystatusv3thumbnail_ = from._impl_.querystatusv3thumbnail_; } if (cached_has_bits & 0x00000040u) { - livelocations_ = from.livelocations_; + _this->_impl_.livelocations_ = from._impl_.livelocations_; } if (cached_has_bits & 0x00000080u) { - queryvname_ = from.queryvname_; + _this->_impl_.queryvname_ = from._impl_.queryvname_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x0000ff00u) { if (cached_has_bits & 0x00000100u) { - voipindividualincoming_ = from.voipindividualincoming_; + _this->_impl_.voipindividualincoming_ = from._impl_.voipindividualincoming_; } if (cached_has_bits & 0x00000200u) { - quickrepliesquery_ = from.quickrepliesquery_; + _this->_impl_.quickrepliesquery_ = from._impl_.quickrepliesquery_; } if (cached_has_bits & 0x00000400u) { - payments_ = from.payments_; + _this->_impl_.payments_ = from._impl_.payments_; } if (cached_has_bits & 0x00000800u) { - stickerpackquery_ = from.stickerpackquery_; + _this->_impl_.stickerpackquery_ = from._impl_.stickerpackquery_; } if (cached_has_bits & 0x00001000u) { - livelocationsfinal_ = from.livelocationsfinal_; + _this->_impl_.livelocationsfinal_ = from._impl_.livelocationsfinal_; } if (cached_has_bits & 0x00002000u) { - labelsedit_ = from.labelsedit_; + _this->_impl_.labelsedit_ = from._impl_.labelsedit_; } if (cached_has_bits & 0x00004000u) { - mediaupload_ = from.mediaupload_; + _this->_impl_.mediaupload_ = from._impl_.mediaupload_; } if (cached_has_bits & 0x00008000u) { - mediauploadrichquickreplies_ = from.mediauploadrichquickreplies_; + _this->_impl_.mediauploadrichquickreplies_ = from._impl_.mediauploadrichquickreplies_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00ff0000u) { if (cached_has_bits & 0x00010000u) { - vnamev2_ = from.vnamev2_; + _this->_impl_.vnamev2_ = from._impl_.vnamev2_; } if (cached_has_bits & 0x00020000u) { - videoplaybackurl_ = from.videoplaybackurl_; + _this->_impl_.videoplaybackurl_ = from._impl_.videoplaybackurl_; } if (cached_has_bits & 0x00040000u) { - statusranking_ = from.statusranking_; + _this->_impl_.statusranking_ = from._impl_.statusranking_; } if (cached_has_bits & 0x00080000u) { - voipindividualvideo_ = from.voipindividualvideo_; + _this->_impl_.voipindividualvideo_ = from._impl_.voipindividualvideo_; } if (cached_has_bits & 0x00100000u) { - thirdpartystickers_ = from.thirdpartystickers_; + _this->_impl_.thirdpartystickers_ = from._impl_.thirdpartystickers_; } if (cached_has_bits & 0x00200000u) { - frequentlyforwardedsetting_ = from.frequentlyforwardedsetting_; + _this->_impl_.frequentlyforwardedsetting_ = from._impl_.frequentlyforwardedsetting_; } if (cached_has_bits & 0x00400000u) { - groupsv4joinpermission_ = from.groupsv4joinpermission_; + _this->_impl_.groupsv4joinpermission_ = from._impl_.groupsv4joinpermission_; } if (cached_has_bits & 0x00800000u) { - recentstickers_ = from.recentstickers_; + _this->_impl_.recentstickers_ = from._impl_.recentstickers_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0xff000000u) { if (cached_has_bits & 0x01000000u) { - catalog_ = from.catalog_; + _this->_impl_.catalog_ = from._impl_.catalog_; } if (cached_has_bits & 0x02000000u) { - starredstickers_ = from.starredstickers_; + _this->_impl_.starredstickers_ = from._impl_.starredstickers_; } if (cached_has_bits & 0x04000000u) { - voipgroupcall_ = from.voipgroupcall_; + _this->_impl_.voipgroupcall_ = from._impl_.voipgroupcall_; } if (cached_has_bits & 0x08000000u) { - templatemessage_ = from.templatemessage_; + _this->_impl_.templatemessage_ = from._impl_.templatemessage_; } if (cached_has_bits & 0x10000000u) { - templatemessageinteractivity_ = from.templatemessageinteractivity_; + _this->_impl_.templatemessageinteractivity_ = from._impl_.templatemessageinteractivity_; } if (cached_has_bits & 0x20000000u) { - ephemeralmessages_ = from.ephemeralmessages_; + _this->_impl_.ephemeralmessages_ = from._impl_.ephemeralmessages_; } if (cached_has_bits & 0x40000000u) { - e2enotificationsync_ = from.e2enotificationsync_; + _this->_impl_.e2enotificationsync_ = from._impl_.e2enotificationsync_; } if (cached_has_bits & 0x80000000u) { - recentstickersv2_ = from.recentstickersv2_; + _this->_impl_.recentstickersv2_ = from._impl_.recentstickersv2_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - cached_has_bits = from._has_bits_[1]; + cached_has_bits = from._impl_._has_bits_[1]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - syncdrelease1_ = from.syncdrelease1_; + _this->_impl_.syncdrelease1_ = from._impl_.syncdrelease1_; } if (cached_has_bits & 0x00000002u) { - recentstickersv3_ = from.recentstickersv3_; + _this->_impl_.recentstickersv3_ = from._impl_.recentstickersv3_; } if (cached_has_bits & 0x00000004u) { - usernotice_ = from.usernotice_; + _this->_impl_.usernotice_ = from._impl_.usernotice_; } if (cached_has_bits & 0x00000008u) { - syncdrelease11_ = from.syncdrelease11_; + _this->_impl_.syncdrelease11_ = from._impl_.syncdrelease11_; } if (cached_has_bits & 0x00000010u) { - support_ = from.support_; + _this->_impl_.support_ = from._impl_.support_; } if (cached_has_bits & 0x00000020u) { - groupuiicleanup_ = from.groupuiicleanup_; + _this->_impl_.groupuiicleanup_ = from._impl_.groupuiicleanup_; } if (cached_has_bits & 0x00000040u) { - groupdogfoodinginternalonly_ = from.groupdogfoodinginternalonly_; + _this->_impl_.groupdogfoodinginternalonly_ = from._impl_.groupdogfoodinginternalonly_; } if (cached_has_bits & 0x00000080u) { - settingssync_ = from.settingssync_; + _this->_impl_.settingssync_ = from._impl_.settingssync_; } - _has_bits_[1] |= cached_has_bits; + _this->_impl_._has_bits_[1] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void WebFeatures::CopyFrom(const WebFeatures& from) { @@ -37153,18 +38700,18 @@ bool WebFeatures::IsInitialized() const { void WebFeatures::InternalSwap(WebFeatures* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(_has_bits_[1], other->_has_bits_[1]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_._has_bits_[1], other->_impl_._has_bits_[1]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(WebFeatures, settingssync_) - + sizeof(WebFeatures::settingssync_) - - PROTOBUF_FIELD_OFFSET(WebFeatures, labelsdisplay_)>( - reinterpret_cast<char*>(&labelsdisplay_), - reinterpret_cast<char*>(&other->labelsdisplay_)); + PROTOBUF_FIELD_OFFSET(WebFeatures, _impl_.settingssync_) + + sizeof(WebFeatures::_impl_.settingssync_) + - PROTOBUF_FIELD_OFFSET(WebFeatures, _impl_.labelsdisplay_)>( + reinterpret_cast<char*>(&_impl_.labelsdisplay_), + reinterpret_cast<char*>(&other->_impl_.labelsdisplay_)); } ::PROTOBUF_NAMESPACE_ID::Metadata WebFeatures::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[74]); } @@ -37173,7 +38720,7 @@ void WebFeatures::InternalSwap(WebFeatures* other) { class NotificationMessageInfo::_Internal { public: - using HasBits = decltype(std::declval<NotificationMessageInfo>()._has_bits_); + using HasBits = decltype(std::declval<NotificationMessageInfo>()._impl_._has_bits_); static const ::proto::MessageKey& key(const NotificationMessageInfo* msg); static void set_has_key(HasBits* has_bits) { (*has_bits)[0] |= 2u; @@ -37192,111 +38739,121 @@ class NotificationMessageInfo::_Internal { const ::proto::MessageKey& NotificationMessageInfo::_Internal::key(const NotificationMessageInfo* msg) { - return *msg->key_; + return *msg->_impl_.key_; } const ::proto::Message& NotificationMessageInfo::_Internal::message(const NotificationMessageInfo* msg) { - return *msg->message_; + return *msg->_impl_.message_; } NotificationMessageInfo::NotificationMessageInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.NotificationMessageInfo) } NotificationMessageInfo::NotificationMessageInfo(const NotificationMessageInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + NotificationMessageInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.participant_){} + , decltype(_impl_.key_){nullptr} + , decltype(_impl_.message_){nullptr} + , decltype(_impl_.messagetimestamp_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.participant_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.participant_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_participant()) { - participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_participant(), - GetArenaForAllocation()); + _this->_impl_.participant_.Set(from._internal_participant(), + _this->GetArenaForAllocation()); } if (from._internal_has_key()) { - key_ = new ::proto::MessageKey(*from.key_); - } else { - key_ = nullptr; + _this->_impl_.key_ = new ::proto::MessageKey(*from._impl_.key_); } if (from._internal_has_message()) { - message_ = new ::proto::Message(*from.message_); - } else { - message_ = nullptr; + _this->_impl_.message_ = new ::proto::Message(*from._impl_.message_); } - messagetimestamp_ = from.messagetimestamp_; + _this->_impl_.messagetimestamp_ = from._impl_.messagetimestamp_; // @@protoc_insertion_point(copy_constructor:proto.NotificationMessageInfo) } -void NotificationMessageInfo::SharedCtor() { -participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&key_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&messagetimestamp_) - - reinterpret_cast<char*>(&key_)) + sizeof(messagetimestamp_)); +inline void NotificationMessageInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.participant_){} + , decltype(_impl_.key_){nullptr} + , decltype(_impl_.message_){nullptr} + , decltype(_impl_.messagetimestamp_){uint64_t{0u}} + }; + _impl_.participant_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.participant_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } NotificationMessageInfo::~NotificationMessageInfo() { // @@protoc_insertion_point(destructor:proto.NotificationMessageInfo) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void NotificationMessageInfo::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - participant_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete key_; - if (this != internal_default_instance()) delete message_; + _impl_.participant_.Destroy(); + if (this != internal_default_instance()) delete _impl_.key_; + if (this != internal_default_instance()) delete _impl_.message_; } -void NotificationMessageInfo::ArenaDtor(void* object) { - NotificationMessageInfo* _this = reinterpret_cast< NotificationMessageInfo* >(object); - (void)_this; -} -void NotificationMessageInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void NotificationMessageInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void NotificationMessageInfo::Clear() { // @@protoc_insertion_point(message_clear_start:proto.NotificationMessageInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - participant_.ClearNonDefaultToEmpty(); + _impl_.participant_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(key_ != nullptr); - key_->Clear(); + GOOGLE_DCHECK(_impl_.key_ != nullptr); + _impl_.key_->Clear(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(message_ != nullptr); - message_->Clear(); + GOOGLE_DCHECK(_impl_.message_ != nullptr); + _impl_.message_->Clear(); } } - messagetimestamp_ = uint64_t{0u}; - _has_bits_.Clear(); + _impl_.messagetimestamp_ = uint64_t{0u}; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* NotificationMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* NotificationMessageInfo::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional .proto.MessageKey key = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_key(), ptr); CHK_(ptr); } else @@ -37304,7 +38861,7 @@ const char* NotificationMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_ continue; // optional .proto.Message message = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_message(), ptr); CHK_(ptr); } else @@ -37312,22 +38869,22 @@ const char* NotificationMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_ continue; // optional uint64 messageTimestamp = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { _Internal::set_has_messagetimestamp(&has_bits); - messagetimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.messagetimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string participant = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { auto str = _internal_mutable_participant(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.NotificationMessageInfo.participant"); + ::_pbi::VerifyUTF8(str, "proto.NotificationMessageInfo.participant"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -37347,7 +38904,7 @@ const char* NotificationMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_ CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -37355,33 +38912,31 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* NotificationMessageInfo::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* NotificationMessageInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.NotificationMessageInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.MessageKey key = 1; if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::key(this), target, stream); + InternalWriteMessage(1, _Internal::key(this), + _Internal::key(this).GetCachedSize(), target, stream); } // optional .proto.Message message = 2; if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::message(this), target, stream); + InternalWriteMessage(2, _Internal::message(this), + _Internal::message(this).GetCachedSize(), target, stream); } // optional uint64 messageTimestamp = 3; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_messagetimestamp(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_messagetimestamp(), target); } // optional string participant = 4; @@ -37395,7 +38950,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.NotificationMessageInfo) @@ -37406,11 +38961,11 @@ size_t NotificationMessageInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.NotificationMessageInfo) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional string participant = 4; if (cached_has_bits & 0x00000001u) { @@ -37423,61 +38978,59 @@ size_t NotificationMessageInfo::ByteSizeLong() const { if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *key_); + *_impl_.key_); } // optional .proto.Message message = 2; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *message_); + *_impl_.message_); } // optional uint64 messageTimestamp = 3; if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_messagetimestamp()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_messagetimestamp()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NotificationMessageInfo::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, NotificationMessageInfo::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NotificationMessageInfo::GetClassData() const { return &_class_data_; } -void NotificationMessageInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<NotificationMessageInfo *>(to)->MergeFrom( - static_cast<const NotificationMessageInfo &>(from)); -} - -void NotificationMessageInfo::MergeFrom(const NotificationMessageInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.NotificationMessageInfo) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void NotificationMessageInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<NotificationMessageInfo*>(&to_msg); + auto& from = static_cast<const NotificationMessageInfo&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.NotificationMessageInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - _internal_set_participant(from._internal_participant()); + _this->_internal_set_participant(from._internal_participant()); } if (cached_has_bits & 0x00000002u) { - _internal_mutable_key()->::proto::MessageKey::MergeFrom(from._internal_key()); + _this->_internal_mutable_key()->::proto::MessageKey::MergeFrom( + from._internal_key()); } if (cached_has_bits & 0x00000004u) { - _internal_mutable_message()->::proto::Message::MergeFrom(from._internal_message()); + _this->_internal_mutable_message()->::proto::Message::MergeFrom( + from._internal_message()); } if (cached_has_bits & 0x00000008u) { - messagetimestamp_ = from.messagetimestamp_; + _this->_impl_.messagetimestamp_ = from._impl_.messagetimestamp_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void NotificationMessageInfo::CopyFrom(const NotificationMessageInfo& from) { @@ -37496,22 +39049,21 @@ void NotificationMessageInfo::InternalSwap(NotificationMessageInfo* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &participant_, lhs_arena, - &other->participant_, rhs_arena + &_impl_.participant_, lhs_arena, + &other->_impl_.participant_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(NotificationMessageInfo, messagetimestamp_) - + sizeof(NotificationMessageInfo::messagetimestamp_) - - PROTOBUF_FIELD_OFFSET(NotificationMessageInfo, key_)>( - reinterpret_cast<char*>(&key_), - reinterpret_cast<char*>(&other->key_)); + PROTOBUF_FIELD_OFFSET(NotificationMessageInfo, _impl_.messagetimestamp_) + + sizeof(NotificationMessageInfo::_impl_.messagetimestamp_) + - PROTOBUF_FIELD_OFFSET(NotificationMessageInfo, _impl_.key_)>( + reinterpret_cast<char*>(&_impl_.key_), + reinterpret_cast<char*>(&other->_impl_.key_)); } ::PROTOBUF_NAMESPACE_ID::Metadata NotificationMessageInfo::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[75]); } @@ -37520,7 +39072,7 @@ void NotificationMessageInfo::InternalSwap(NotificationMessageInfo* other) { class WebNotificationsInfo::_Internal { public: - using HasBits = decltype(std::declval<WebNotificationsInfo>()._has_bits_); + using HasBits = decltype(std::declval<WebNotificationsInfo>()._impl_._has_bits_); static void set_has_timestamp(HasBits* has_bits) { (*has_bits)[0] |= 1u; } @@ -37534,107 +39086,114 @@ class WebNotificationsInfo::_Internal { WebNotificationsInfo::WebNotificationsInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - notifymessages_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.WebNotificationsInfo) } WebNotificationsInfo::WebNotificationsInfo(const WebNotificationsInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - notifymessages_(from.notifymessages_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + WebNotificationsInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.notifymessages_){from._impl_.notifymessages_} + , decltype(_impl_.timestamp_){} + , decltype(_impl_.unreadchats_){} + , decltype(_impl_.notifymessagecount_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(×tamp_, &from.timestamp_, - static_cast<size_t>(reinterpret_cast<char*>(¬ifymessagecount_) - - reinterpret_cast<char*>(×tamp_)) + sizeof(notifymessagecount_)); + ::memcpy(&_impl_.timestamp_, &from._impl_.timestamp_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.notifymessagecount_) - + reinterpret_cast<char*>(&_impl_.timestamp_)) + sizeof(_impl_.notifymessagecount_)); // @@protoc_insertion_point(copy_constructor:proto.WebNotificationsInfo) } -void WebNotificationsInfo::SharedCtor() { -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(×tamp_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(¬ifymessagecount_) - - reinterpret_cast<char*>(×tamp_)) + sizeof(notifymessagecount_)); +inline void WebNotificationsInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.notifymessages_){arena} + , decltype(_impl_.timestamp_){uint64_t{0u}} + , decltype(_impl_.unreadchats_){0u} + , decltype(_impl_.notifymessagecount_){0u} + }; } WebNotificationsInfo::~WebNotificationsInfo() { // @@protoc_insertion_point(destructor:proto.WebNotificationsInfo) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void WebNotificationsInfo::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.notifymessages_.~RepeatedPtrField(); } -void WebNotificationsInfo::ArenaDtor(void* object) { - WebNotificationsInfo* _this = reinterpret_cast< WebNotificationsInfo* >(object); - (void)_this; -} -void WebNotificationsInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void WebNotificationsInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void WebNotificationsInfo::Clear() { // @@protoc_insertion_point(message_clear_start:proto.WebNotificationsInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - notifymessages_.Clear(); - cached_has_bits = _has_bits_[0]; + _impl_.notifymessages_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { - ::memset(×tamp_, 0, static_cast<size_t>( - reinterpret_cast<char*>(¬ifymessagecount_) - - reinterpret_cast<char*>(×tamp_)) + sizeof(notifymessagecount_)); + ::memset(&_impl_.timestamp_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.notifymessagecount_) - + reinterpret_cast<char*>(&_impl_.timestamp_)) + sizeof(_impl_.notifymessagecount_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* WebNotificationsInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* WebNotificationsInfo::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional uint64 timestamp = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { _Internal::set_has_timestamp(&has_bits); - timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 unreadChats = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { _Internal::set_has_unreadchats(&has_bits); - unreadchats_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.unreadchats_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 notifyMessageCount = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { _Internal::set_has_notifymessagecount(&has_bits); - notifymessagecount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.notifymessagecount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // repeated .proto.WebMessageInfo notifyMessages = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { ptr -= 1; do { ptr += 1; @@ -37661,7 +39220,7 @@ const char* WebNotificationsInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAM CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -37669,41 +39228,41 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* WebNotificationsInfo::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* WebNotificationsInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.WebNotificationsInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional uint64 timestamp = 2; if (cached_has_bits & 0x00000001u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_timestamp(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_timestamp(), target); } // optional uint32 unreadChats = 3; if (cached_has_bits & 0x00000002u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_unreadchats(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_unreadchats(), target); } // optional uint32 notifyMessageCount = 4; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_notifymessagecount(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_notifymessagecount(), target); } // repeated .proto.WebMessageInfo notifyMessages = 5; - for (unsigned int i = 0, - n = static_cast<unsigned int>(this->_internal_notifymessages_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast<unsigned>(this->_internal_notifymessages_size()); i < n; i++) { + const auto& repfield = this->_internal_notifymessages(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, this->_internal_notifymessages(i), target, stream); + InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.WebNotificationsInfo) @@ -37714,72 +39273,68 @@ size_t WebNotificationsInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.WebNotificationsInfo) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .proto.WebMessageInfo notifyMessages = 5; total_size += 1UL * this->_internal_notifymessages_size(); - for (const auto& msg : this->notifymessages_) { + for (const auto& msg : this->_impl_.notifymessages_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional uint64 timestamp = 2; if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_timestamp()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_timestamp()); } // optional uint32 unreadChats = 3; if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_unreadchats()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_unreadchats()); } // optional uint32 notifyMessageCount = 4; if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_notifymessagecount()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_notifymessagecount()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WebNotificationsInfo::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, WebNotificationsInfo::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WebNotificationsInfo::GetClassData() const { return &_class_data_; } -void WebNotificationsInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<WebNotificationsInfo *>(to)->MergeFrom( - static_cast<const WebNotificationsInfo &>(from)); -} - -void WebNotificationsInfo::MergeFrom(const WebNotificationsInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.WebNotificationsInfo) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void WebNotificationsInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<WebNotificationsInfo*>(&to_msg); + auto& from = static_cast<const WebNotificationsInfo&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.WebNotificationsInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - notifymessages_.MergeFrom(from.notifymessages_); - cached_has_bits = from._has_bits_[0]; + _this->_impl_.notifymessages_.MergeFrom(from._impl_.notifymessages_); + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { - timestamp_ = from.timestamp_; + _this->_impl_.timestamp_ = from._impl_.timestamp_; } if (cached_has_bits & 0x00000002u) { - unreadchats_ = from.unreadchats_; + _this->_impl_.unreadchats_ = from._impl_.unreadchats_; } if (cached_has_bits & 0x00000004u) { - notifymessagecount_ = from.notifymessagecount_; + _this->_impl_.notifymessagecount_ = from._impl_.notifymessagecount_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void WebNotificationsInfo::CopyFrom(const WebNotificationsInfo& from) { @@ -37790,25 +39345,26 @@ void WebNotificationsInfo::CopyFrom(const WebNotificationsInfo& from) { } bool WebNotificationsInfo::IsInitialized() const { - if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(notifymessages_)) return false; + if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.notifymessages_)) + return false; return true; } void WebNotificationsInfo::InternalSwap(WebNotificationsInfo* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - notifymessages_.InternalSwap(&other->notifymessages_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.notifymessages_.InternalSwap(&other->_impl_.notifymessages_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(WebNotificationsInfo, notifymessagecount_) - + sizeof(WebNotificationsInfo::notifymessagecount_) - - PROTOBUF_FIELD_OFFSET(WebNotificationsInfo, timestamp_)>( - reinterpret_cast<char*>(×tamp_), - reinterpret_cast<char*>(&other->timestamp_)); + PROTOBUF_FIELD_OFFSET(WebNotificationsInfo, _impl_.notifymessagecount_) + + sizeof(WebNotificationsInfo::_impl_.notifymessagecount_) + - PROTOBUF_FIELD_OFFSET(WebNotificationsInfo, _impl_.timestamp_)>( + reinterpret_cast<char*>(&_impl_.timestamp_), + reinterpret_cast<char*>(&other->_impl_.timestamp_)); } ::PROTOBUF_NAMESPACE_ID::Metadata WebNotificationsInfo::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[76]); } @@ -37817,7 +39373,7 @@ void WebNotificationsInfo::InternalSwap(WebNotificationsInfo* other) { class PaymentInfo::_Internal { public: - using HasBits = decltype(std::declval<PaymentInfo>()._has_bits_); + using HasBits = decltype(std::declval<PaymentInfo>()._impl_._has_bits_); static void set_has_currencydeprecated(HasBits* has_bits) { (*has_bits)[0] |= 64u; } @@ -37864,147 +39420,179 @@ class PaymentInfo::_Internal { const ::proto::MessageKey& PaymentInfo::_Internal::requestmessagekey(const PaymentInfo* msg) { - return *msg->requestmessagekey_; + return *msg->_impl_.requestmessagekey_; } const ::proto::PaymentMoney& PaymentInfo::_Internal::primaryamount(const PaymentInfo* msg) { - return *msg->primaryamount_; + return *msg->_impl_.primaryamount_; } const ::proto::PaymentMoney& PaymentInfo::_Internal::exchangeamount(const PaymentInfo* msg) { - return *msg->exchangeamount_; + return *msg->_impl_.exchangeamount_; } PaymentInfo::PaymentInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.PaymentInfo) } PaymentInfo::PaymentInfo(const PaymentInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + PaymentInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.receiverjid_){} + , decltype(_impl_.currency_){} + , decltype(_impl_.requestmessagekey_){nullptr} + , decltype(_impl_.primaryamount_){nullptr} + , decltype(_impl_.exchangeamount_){nullptr} + , decltype(_impl_.amount1000_){} + , decltype(_impl_.currencydeprecated_){} + , decltype(_impl_.status_){} + , decltype(_impl_.transactiontimestamp_){} + , decltype(_impl_.expirytimestamp_){} + , decltype(_impl_.futureproofed_){} + , decltype(_impl_.usenovifiatformat_){} + , decltype(_impl_.txnstatus_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - receiverjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.receiverjid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.receiverjid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_receiverjid()) { - receiverjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_receiverjid(), - GetArenaForAllocation()); + _this->_impl_.receiverjid_.Set(from._internal_receiverjid(), + _this->GetArenaForAllocation()); } - currency_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.currency_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.currency_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_currency()) { - currency_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_currency(), - GetArenaForAllocation()); + _this->_impl_.currency_.Set(from._internal_currency(), + _this->GetArenaForAllocation()); } if (from._internal_has_requestmessagekey()) { - requestmessagekey_ = new ::proto::MessageKey(*from.requestmessagekey_); - } else { - requestmessagekey_ = nullptr; + _this->_impl_.requestmessagekey_ = new ::proto::MessageKey(*from._impl_.requestmessagekey_); } if (from._internal_has_primaryamount()) { - primaryamount_ = new ::proto::PaymentMoney(*from.primaryamount_); - } else { - primaryamount_ = nullptr; + _this->_impl_.primaryamount_ = new ::proto::PaymentMoney(*from._impl_.primaryamount_); } if (from._internal_has_exchangeamount()) { - exchangeamount_ = new ::proto::PaymentMoney(*from.exchangeamount_); - } else { - exchangeamount_ = nullptr; + _this->_impl_.exchangeamount_ = new ::proto::PaymentMoney(*from._impl_.exchangeamount_); } - ::memcpy(&amount1000_, &from.amount1000_, - static_cast<size_t>(reinterpret_cast<char*>(&txnstatus_) - - reinterpret_cast<char*>(&amount1000_)) + sizeof(txnstatus_)); + ::memcpy(&_impl_.amount1000_, &from._impl_.amount1000_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.txnstatus_) - + reinterpret_cast<char*>(&_impl_.amount1000_)) + sizeof(_impl_.txnstatus_)); // @@protoc_insertion_point(copy_constructor:proto.PaymentInfo) } -void PaymentInfo::SharedCtor() { -receiverjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -currency_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&requestmessagekey_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&txnstatus_) - - reinterpret_cast<char*>(&requestmessagekey_)) + sizeof(txnstatus_)); +inline void PaymentInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.receiverjid_){} + , decltype(_impl_.currency_){} + , decltype(_impl_.requestmessagekey_){nullptr} + , decltype(_impl_.primaryamount_){nullptr} + , decltype(_impl_.exchangeamount_){nullptr} + , decltype(_impl_.amount1000_){uint64_t{0u}} + , decltype(_impl_.currencydeprecated_){0} + , decltype(_impl_.status_){0} + , decltype(_impl_.transactiontimestamp_){uint64_t{0u}} + , decltype(_impl_.expirytimestamp_){uint64_t{0u}} + , decltype(_impl_.futureproofed_){false} + , decltype(_impl_.usenovifiatformat_){false} + , decltype(_impl_.txnstatus_){0} + }; + _impl_.receiverjid_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.receiverjid_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.currency_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.currency_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } PaymentInfo::~PaymentInfo() { // @@protoc_insertion_point(destructor:proto.PaymentInfo) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void PaymentInfo::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - receiverjid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - currency_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete requestmessagekey_; - if (this != internal_default_instance()) delete primaryamount_; - if (this != internal_default_instance()) delete exchangeamount_; + _impl_.receiverjid_.Destroy(); + _impl_.currency_.Destroy(); + if (this != internal_default_instance()) delete _impl_.requestmessagekey_; + if (this != internal_default_instance()) delete _impl_.primaryamount_; + if (this != internal_default_instance()) delete _impl_.exchangeamount_; } -void PaymentInfo::ArenaDtor(void* object) { - PaymentInfo* _this = reinterpret_cast< PaymentInfo* >(object); - (void)_this; -} -void PaymentInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void PaymentInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void PaymentInfo::Clear() { // @@protoc_insertion_point(message_clear_start:proto.PaymentInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000001fu) { if (cached_has_bits & 0x00000001u) { - receiverjid_.ClearNonDefaultToEmpty(); + _impl_.receiverjid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - currency_.ClearNonDefaultToEmpty(); + _impl_.currency_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(requestmessagekey_ != nullptr); - requestmessagekey_->Clear(); + GOOGLE_DCHECK(_impl_.requestmessagekey_ != nullptr); + _impl_.requestmessagekey_->Clear(); } if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(primaryamount_ != nullptr); - primaryamount_->Clear(); + GOOGLE_DCHECK(_impl_.primaryamount_ != nullptr); + _impl_.primaryamount_->Clear(); } if (cached_has_bits & 0x00000010u) { - GOOGLE_DCHECK(exchangeamount_ != nullptr); - exchangeamount_->Clear(); + GOOGLE_DCHECK(_impl_.exchangeamount_ != nullptr); + _impl_.exchangeamount_->Clear(); } } if (cached_has_bits & 0x000000e0u) { - ::memset(&amount1000_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&status_) - - reinterpret_cast<char*>(&amount1000_)) + sizeof(status_)); + ::memset(&_impl_.amount1000_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.status_) - + reinterpret_cast<char*>(&_impl_.amount1000_)) + sizeof(_impl_.status_)); } if (cached_has_bits & 0x00001f00u) { - ::memset(&transactiontimestamp_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&txnstatus_) - - reinterpret_cast<char*>(&transactiontimestamp_)) + sizeof(txnstatus_)); + ::memset(&_impl_.transactiontimestamp_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.txnstatus_) - + reinterpret_cast<char*>(&_impl_.transactiontimestamp_)) + sizeof(_impl_.txnstatus_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* PaymentInfo::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // optional .proto.PaymentInfo.PaymentInfoCurrency currencyDeprecated = 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); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::PaymentInfo_PaymentInfoCurrency_IsValid(val))) { _internal_set_currencydeprecated(static_cast<::proto::PaymentInfo_PaymentInfoCurrency>(val)); @@ -38016,29 +39604,29 @@ const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional uint64 amount1000 = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { _Internal::set_has_amount1000(&has_bits); - amount1000_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.amount1000_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string receiverJid = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { auto str = _internal_mutable_receiverjid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.PaymentInfo.receiverJid"); + ::_pbi::VerifyUTF8(str, "proto.PaymentInfo.receiverJid"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.PaymentInfo.PaymentInfoStatus status = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::PaymentInfo_PaymentInfoStatus_IsValid(val))) { _internal_set_status(static_cast<::proto::PaymentInfo_PaymentInfoStatus>(val)); @@ -38050,16 +39638,16 @@ const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional uint64 transactionTimestamp = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) { _Internal::set_has_transactiontimestamp(&has_bits); - transactiontimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.transactiontimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.MessageKey requestMessageKey = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { ptr = ctx->ParseMessage(_internal_mutable_requestmessagekey(), ptr); CHK_(ptr); } else @@ -38067,38 +39655,38 @@ const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional uint64 expiryTimestamp = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) { _Internal::set_has_expirytimestamp(&has_bits); - expirytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.expirytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bool futureproofed = 8; case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) { _Internal::set_has_futureproofed(&has_bits); - futureproofed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.futureproofed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string currency = 9; case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) { auto str = _internal_mutable_currency(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.PaymentInfo.currency"); + ::_pbi::VerifyUTF8(str, "proto.PaymentInfo.currency"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.PaymentInfo.PaymentInfoTxnStatus txnStatus = 10; case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::PaymentInfo_PaymentInfoTxnStatus_IsValid(val))) { _internal_set_txnstatus(static_cast<::proto::PaymentInfo_PaymentInfoTxnStatus>(val)); @@ -38110,16 +39698,16 @@ const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional bool useNoviFiatFormat = 11; case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) { _Internal::set_has_usenovifiatformat(&has_bits); - usenovifiatformat_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.usenovifiatformat_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.PaymentMoney primaryAmount = 12; case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 98)) { ptr = ctx->ParseMessage(_internal_mutable_primaryamount(), ptr); CHK_(ptr); } else @@ -38127,7 +39715,7 @@ const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID continue; // optional .proto.PaymentMoney exchangeAmount = 13; case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 106)) { ptr = ctx->ParseMessage(_internal_mutable_exchangeamount(), ptr); CHK_(ptr); } else @@ -38149,7 +39737,7 @@ const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -38157,24 +39745,24 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* PaymentInfo::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* PaymentInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.PaymentInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // optional .proto.PaymentInfo.PaymentInfoCurrency currencyDeprecated = 1; if (cached_has_bits & 0x00000040u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 1, this->_internal_currencydeprecated(), target); } // optional uint64 amount1000 = 2; if (cached_has_bits & 0x00000020u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_amount1000(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_amount1000(), target); } // optional string receiverJid = 3; @@ -38190,34 +39778,33 @@ failure: // optional .proto.PaymentInfo.PaymentInfoStatus status = 4; if (cached_has_bits & 0x00000080u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 4, this->_internal_status(), target); } // optional uint64 transactionTimestamp = 5; if (cached_has_bits & 0x00000100u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_transactiontimestamp(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(5, this->_internal_transactiontimestamp(), target); } // optional .proto.MessageKey requestMessageKey = 6; if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::requestmessagekey(this), target, stream); + InternalWriteMessage(6, _Internal::requestmessagekey(this), + _Internal::requestmessagekey(this).GetCachedSize(), target, stream); } // optional uint64 expiryTimestamp = 7; if (cached_has_bits & 0x00000200u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(7, this->_internal_expirytimestamp(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(7, this->_internal_expirytimestamp(), target); } // optional bool futureproofed = 8; if (cached_has_bits & 0x00000400u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(8, this->_internal_futureproofed(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_futureproofed(), target); } // optional string currency = 9; @@ -38233,34 +39820,32 @@ failure: // optional .proto.PaymentInfo.PaymentInfoTxnStatus txnStatus = 10; if (cached_has_bits & 0x00001000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 10, this->_internal_txnstatus(), target); } // optional bool useNoviFiatFormat = 11; if (cached_has_bits & 0x00000800u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->_internal_usenovifiatformat(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(11, this->_internal_usenovifiatformat(), target); } // optional .proto.PaymentMoney primaryAmount = 12; if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 12, _Internal::primaryamount(this), target, stream); + InternalWriteMessage(12, _Internal::primaryamount(this), + _Internal::primaryamount(this).GetCachedSize(), target, stream); } // optional .proto.PaymentMoney exchangeAmount = 13; if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 13, _Internal::exchangeamount(this), target, stream); + InternalWriteMessage(13, _Internal::exchangeamount(this), + _Internal::exchangeamount(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.PaymentInfo) @@ -38271,11 +39856,11 @@ size_t PaymentInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:proto.PaymentInfo) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string receiverJid = 3; if (cached_has_bits & 0x00000001u) { @@ -38295,50 +39880,50 @@ size_t PaymentInfo::ByteSizeLong() const { if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *requestmessagekey_); + *_impl_.requestmessagekey_); } // optional .proto.PaymentMoney primaryAmount = 12; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *primaryamount_); + *_impl_.primaryamount_); } // optional .proto.PaymentMoney exchangeAmount = 13; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *exchangeamount_); + *_impl_.exchangeamount_); } // optional uint64 amount1000 = 2; if (cached_has_bits & 0x00000020u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_amount1000()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_amount1000()); } // optional .proto.PaymentInfo.PaymentInfoCurrency currencyDeprecated = 1; if (cached_has_bits & 0x00000040u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_currencydeprecated()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_currencydeprecated()); } // optional .proto.PaymentInfo.PaymentInfoStatus status = 4; if (cached_has_bits & 0x00000080u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); } } if (cached_has_bits & 0x00001f00u) { // optional uint64 transactionTimestamp = 5; if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_transactiontimestamp()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_transactiontimestamp()); } // optional uint64 expiryTimestamp = 7; if (cached_has_bits & 0x00000200u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_expirytimestamp()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_expirytimestamp()); } // optional bool futureproofed = 8; @@ -38354,79 +39939,78 @@ size_t PaymentInfo::ByteSizeLong() const { // optional .proto.PaymentInfo.PaymentInfoTxnStatus txnStatus = 10; if (cached_has_bits & 0x00001000u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_txnstatus()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_txnstatus()); } } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PaymentInfo::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, PaymentInfo::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PaymentInfo::GetClassData() const { return &_class_data_; } -void PaymentInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<PaymentInfo *>(to)->MergeFrom( - static_cast<const PaymentInfo &>(from)); -} - -void PaymentInfo::MergeFrom(const PaymentInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.PaymentInfo) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void PaymentInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<PaymentInfo*>(&to_msg); + auto& from = static_cast<const PaymentInfo&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.PaymentInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_set_receiverjid(from._internal_receiverjid()); + _this->_internal_set_receiverjid(from._internal_receiverjid()); } if (cached_has_bits & 0x00000002u) { - _internal_set_currency(from._internal_currency()); + _this->_internal_set_currency(from._internal_currency()); } if (cached_has_bits & 0x00000004u) { - _internal_mutable_requestmessagekey()->::proto::MessageKey::MergeFrom(from._internal_requestmessagekey()); + _this->_internal_mutable_requestmessagekey()->::proto::MessageKey::MergeFrom( + from._internal_requestmessagekey()); } if (cached_has_bits & 0x00000008u) { - _internal_mutable_primaryamount()->::proto::PaymentMoney::MergeFrom(from._internal_primaryamount()); + _this->_internal_mutable_primaryamount()->::proto::PaymentMoney::MergeFrom( + from._internal_primaryamount()); } if (cached_has_bits & 0x00000010u) { - _internal_mutable_exchangeamount()->::proto::PaymentMoney::MergeFrom(from._internal_exchangeamount()); + _this->_internal_mutable_exchangeamount()->::proto::PaymentMoney::MergeFrom( + from._internal_exchangeamount()); } if (cached_has_bits & 0x00000020u) { - amount1000_ = from.amount1000_; + _this->_impl_.amount1000_ = from._impl_.amount1000_; } if (cached_has_bits & 0x00000040u) { - currencydeprecated_ = from.currencydeprecated_; + _this->_impl_.currencydeprecated_ = from._impl_.currencydeprecated_; } if (cached_has_bits & 0x00000080u) { - status_ = from.status_; + _this->_impl_.status_ = from._impl_.status_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00001f00u) { if (cached_has_bits & 0x00000100u) { - transactiontimestamp_ = from.transactiontimestamp_; + _this->_impl_.transactiontimestamp_ = from._impl_.transactiontimestamp_; } if (cached_has_bits & 0x00000200u) { - expirytimestamp_ = from.expirytimestamp_; + _this->_impl_.expirytimestamp_ = from._impl_.expirytimestamp_; } if (cached_has_bits & 0x00000400u) { - futureproofed_ = from.futureproofed_; + _this->_impl_.futureproofed_ = from._impl_.futureproofed_; } if (cached_has_bits & 0x00000800u) { - usenovifiatformat_ = from.usenovifiatformat_; + _this->_impl_.usenovifiatformat_ = from._impl_.usenovifiatformat_; } if (cached_has_bits & 0x00001000u) { - txnstatus_ = from.txnstatus_; + _this->_impl_.txnstatus_ = from._impl_.txnstatus_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PaymentInfo::CopyFrom(const PaymentInfo& from) { @@ -38445,27 +40029,25 @@ void PaymentInfo::InternalSwap(PaymentInfo* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &receiverjid_, lhs_arena, - &other->receiverjid_, rhs_arena + &_impl_.receiverjid_, lhs_arena, + &other->_impl_.receiverjid_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ¤cy_, lhs_arena, - &other->currency_, rhs_arena + &_impl_.currency_, lhs_arena, + &other->_impl_.currency_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(PaymentInfo, txnstatus_) - + sizeof(PaymentInfo::txnstatus_) - - PROTOBUF_FIELD_OFFSET(PaymentInfo, requestmessagekey_)>( - reinterpret_cast<char*>(&requestmessagekey_), - reinterpret_cast<char*>(&other->requestmessagekey_)); + PROTOBUF_FIELD_OFFSET(PaymentInfo, _impl_.txnstatus_) + + sizeof(PaymentInfo::_impl_.txnstatus_) + - PROTOBUF_FIELD_OFFSET(PaymentInfo, _impl_.requestmessagekey_)>( + reinterpret_cast<char*>(&_impl_.requestmessagekey_), + reinterpret_cast<char*>(&other->_impl_.requestmessagekey_)); } ::PROTOBUF_NAMESPACE_ID::Metadata PaymentInfo::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[77]); } @@ -38474,7 +40056,7 @@ void PaymentInfo::InternalSwap(PaymentInfo* other) { class WebMessageInfo::_Internal { public: - using HasBits = decltype(std::declval<WebMessageInfo>()._has_bits_); + using HasBits = decltype(std::declval<WebMessageInfo>()._impl_._has_bits_); static const ::proto::MessageKey& key(const WebMessageInfo* msg); static void set_has_key(HasBits* has_bits) { (*has_bits)[0] |= 16u; @@ -38562,201 +40144,267 @@ class WebMessageInfo::_Internal { const ::proto::MessageKey& WebMessageInfo::_Internal::key(const WebMessageInfo* msg) { - return *msg->key_; + return *msg->_impl_.key_; } const ::proto::Message& WebMessageInfo::_Internal::message(const WebMessageInfo* msg) { - return *msg->message_; + return *msg->_impl_.message_; } const ::proto::PaymentInfo& WebMessageInfo::_Internal::paymentinfo(const WebMessageInfo* msg) { - return *msg->paymentinfo_; + return *msg->_impl_.paymentinfo_; } const ::proto::LiveLocationMessage& WebMessageInfo::_Internal::finallivelocation(const WebMessageInfo* msg) { - return *msg->finallivelocation_; + return *msg->_impl_.finallivelocation_; } const ::proto::PaymentInfo& WebMessageInfo::_Internal::quotedpaymentinfo(const WebMessageInfo* msg) { - return *msg->quotedpaymentinfo_; + return *msg->_impl_.quotedpaymentinfo_; } WebMessageInfo::WebMessageInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - messagestubparameters_(arena), - labels_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:proto.WebMessageInfo) } WebMessageInfo::WebMessageInfo(const WebMessageInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - messagestubparameters_(from.messagestubparameters_), - labels_(from.labels_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + WebMessageInfo* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){from._impl_._has_bits_} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.messagestubparameters_){from._impl_.messagestubparameters_} + , decltype(_impl_.labels_){from._impl_.labels_} + , decltype(_impl_.participant_){} + , decltype(_impl_.pushname_){} + , decltype(_impl_.mediaciphertextsha256_){} + , decltype(_impl_.verifiedbizname_){} + , decltype(_impl_.key_){nullptr} + , decltype(_impl_.message_){nullptr} + , decltype(_impl_.paymentinfo_){nullptr} + , decltype(_impl_.finallivelocation_){nullptr} + , decltype(_impl_.quotedpaymentinfo_){nullptr} + , decltype(_impl_.messagetimestamp_){} + , decltype(_impl_.status_){} + , decltype(_impl_.ignore_){} + , decltype(_impl_.starred_){} + , decltype(_impl_.broadcast_){} + , decltype(_impl_.multicast_){} + , decltype(_impl_.messagestubtype_){} + , decltype(_impl_.urltext_){} + , decltype(_impl_.urlnumber_){} + , decltype(_impl_.clearmedia_){} + , decltype(_impl_.ephemeralofftoon_){} + , decltype(_impl_.duration_){} + , decltype(_impl_.ephemeralduration_){} + , decltype(_impl_.ephemeralstarttimestamp_){} + , decltype(_impl_.ephemeraloutofsync_){} + , decltype(_impl_.bizprivacystatus_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.participant_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.participant_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_participant()) { - participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_participant(), - GetArenaForAllocation()); + _this->_impl_.participant_.Set(from._internal_participant(), + _this->GetArenaForAllocation()); } - pushname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.pushname_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pushname_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_pushname()) { - pushname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pushname(), - GetArenaForAllocation()); + _this->_impl_.pushname_.Set(from._internal_pushname(), + _this->GetArenaForAllocation()); } - mediaciphertextsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.mediaciphertextsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediaciphertextsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_mediaciphertextsha256()) { - mediaciphertextsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediaciphertextsha256(), - GetArenaForAllocation()); + _this->_impl_.mediaciphertextsha256_.Set(from._internal_mediaciphertextsha256(), + _this->GetArenaForAllocation()); } - verifiedbizname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.verifiedbizname_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.verifiedbizname_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_verifiedbizname()) { - verifiedbizname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_verifiedbizname(), - GetArenaForAllocation()); + _this->_impl_.verifiedbizname_.Set(from._internal_verifiedbizname(), + _this->GetArenaForAllocation()); } if (from._internal_has_key()) { - key_ = new ::proto::MessageKey(*from.key_); - } else { - key_ = nullptr; + _this->_impl_.key_ = new ::proto::MessageKey(*from._impl_.key_); } if (from._internal_has_message()) { - message_ = new ::proto::Message(*from.message_); - } else { - message_ = nullptr; + _this->_impl_.message_ = new ::proto::Message(*from._impl_.message_); } if (from._internal_has_paymentinfo()) { - paymentinfo_ = new ::proto::PaymentInfo(*from.paymentinfo_); - } else { - paymentinfo_ = nullptr; + _this->_impl_.paymentinfo_ = new ::proto::PaymentInfo(*from._impl_.paymentinfo_); } if (from._internal_has_finallivelocation()) { - finallivelocation_ = new ::proto::LiveLocationMessage(*from.finallivelocation_); - } else { - finallivelocation_ = nullptr; + _this->_impl_.finallivelocation_ = new ::proto::LiveLocationMessage(*from._impl_.finallivelocation_); } if (from._internal_has_quotedpaymentinfo()) { - quotedpaymentinfo_ = new ::proto::PaymentInfo(*from.quotedpaymentinfo_); - } else { - quotedpaymentinfo_ = nullptr; + _this->_impl_.quotedpaymentinfo_ = new ::proto::PaymentInfo(*from._impl_.quotedpaymentinfo_); } - ::memcpy(&messagetimestamp_, &from.messagetimestamp_, - static_cast<size_t>(reinterpret_cast<char*>(&bizprivacystatus_) - - reinterpret_cast<char*>(&messagetimestamp_)) + sizeof(bizprivacystatus_)); + ::memcpy(&_impl_.messagetimestamp_, &from._impl_.messagetimestamp_, + static_cast<size_t>(reinterpret_cast<char*>(&_impl_.bizprivacystatus_) - + reinterpret_cast<char*>(&_impl_.messagetimestamp_)) + sizeof(_impl_.bizprivacystatus_)); // @@protoc_insertion_point(copy_constructor:proto.WebMessageInfo) } -void WebMessageInfo::SharedCtor() { -participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -pushname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -mediaciphertextsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -verifiedbizname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( - reinterpret_cast<char*>(&key_) - reinterpret_cast<char*>(this)), - 0, static_cast<size_t>(reinterpret_cast<char*>(&bizprivacystatus_) - - reinterpret_cast<char*>(&key_)) + sizeof(bizprivacystatus_)); +inline void WebMessageInfo::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_._has_bits_){} + , /*decltype(_impl_._cached_size_)*/{} + , decltype(_impl_.messagestubparameters_){arena} + , decltype(_impl_.labels_){arena} + , decltype(_impl_.participant_){} + , decltype(_impl_.pushname_){} + , decltype(_impl_.mediaciphertextsha256_){} + , decltype(_impl_.verifiedbizname_){} + , decltype(_impl_.key_){nullptr} + , decltype(_impl_.message_){nullptr} + , decltype(_impl_.paymentinfo_){nullptr} + , decltype(_impl_.finallivelocation_){nullptr} + , decltype(_impl_.quotedpaymentinfo_){nullptr} + , decltype(_impl_.messagetimestamp_){uint64_t{0u}} + , decltype(_impl_.status_){0} + , decltype(_impl_.ignore_){false} + , decltype(_impl_.starred_){false} + , decltype(_impl_.broadcast_){false} + , decltype(_impl_.multicast_){false} + , decltype(_impl_.messagestubtype_){0} + , decltype(_impl_.urltext_){false} + , decltype(_impl_.urlnumber_){false} + , decltype(_impl_.clearmedia_){false} + , decltype(_impl_.ephemeralofftoon_){false} + , decltype(_impl_.duration_){0u} + , decltype(_impl_.ephemeralduration_){0u} + , decltype(_impl_.ephemeralstarttimestamp_){uint64_t{0u}} + , decltype(_impl_.ephemeraloutofsync_){false} + , decltype(_impl_.bizprivacystatus_){0} + }; + _impl_.participant_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.participant_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pushname_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.pushname_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediaciphertextsha256_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.mediaciphertextsha256_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.verifiedbizname_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.verifiedbizname_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } WebMessageInfo::~WebMessageInfo() { // @@protoc_insertion_point(destructor:proto.WebMessageInfo) - if (GetArenaForAllocation() != nullptr) return; + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } inline void WebMessageInfo::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - participant_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - pushname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - mediaciphertextsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - verifiedbizname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete key_; - if (this != internal_default_instance()) delete message_; - if (this != internal_default_instance()) delete paymentinfo_; - if (this != internal_default_instance()) delete finallivelocation_; - if (this != internal_default_instance()) delete quotedpaymentinfo_; + _impl_.messagestubparameters_.~RepeatedPtrField(); + _impl_.labels_.~RepeatedPtrField(); + _impl_.participant_.Destroy(); + _impl_.pushname_.Destroy(); + _impl_.mediaciphertextsha256_.Destroy(); + _impl_.verifiedbizname_.Destroy(); + if (this != internal_default_instance()) delete _impl_.key_; + if (this != internal_default_instance()) delete _impl_.message_; + if (this != internal_default_instance()) delete _impl_.paymentinfo_; + if (this != internal_default_instance()) delete _impl_.finallivelocation_; + if (this != internal_default_instance()) delete _impl_.quotedpaymentinfo_; } -void WebMessageInfo::ArenaDtor(void* object) { - WebMessageInfo* _this = reinterpret_cast< WebMessageInfo* >(object); - (void)_this; -} -void WebMessageInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void WebMessageInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } void WebMessageInfo::Clear() { // @@protoc_insertion_point(message_clear_start:proto.WebMessageInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - messagestubparameters_.Clear(); - labels_.Clear(); - cached_has_bits = _has_bits_[0]; + _impl_.messagestubparameters_.Clear(); + _impl_.labels_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - participant_.ClearNonDefaultToEmpty(); + _impl_.participant_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - pushname_.ClearNonDefaultToEmpty(); + _impl_.pushname_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { - mediaciphertextsha256_.ClearNonDefaultToEmpty(); + _impl_.mediaciphertextsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { - verifiedbizname_.ClearNonDefaultToEmpty(); + _impl_.verifiedbizname_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { - GOOGLE_DCHECK(key_ != nullptr); - key_->Clear(); + GOOGLE_DCHECK(_impl_.key_ != nullptr); + _impl_.key_->Clear(); } if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(message_ != nullptr); - message_->Clear(); + GOOGLE_DCHECK(_impl_.message_ != nullptr); + _impl_.message_->Clear(); } if (cached_has_bits & 0x00000040u) { - GOOGLE_DCHECK(paymentinfo_ != nullptr); - paymentinfo_->Clear(); + GOOGLE_DCHECK(_impl_.paymentinfo_ != nullptr); + _impl_.paymentinfo_->Clear(); } if (cached_has_bits & 0x00000080u) { - GOOGLE_DCHECK(finallivelocation_ != nullptr); - finallivelocation_->Clear(); + GOOGLE_DCHECK(_impl_.finallivelocation_ != nullptr); + _impl_.finallivelocation_->Clear(); } } if (cached_has_bits & 0x00000100u) { - GOOGLE_DCHECK(quotedpaymentinfo_ != nullptr); - quotedpaymentinfo_->Clear(); + GOOGLE_DCHECK(_impl_.quotedpaymentinfo_ != nullptr); + _impl_.quotedpaymentinfo_->Clear(); } if (cached_has_bits & 0x0000fe00u) { - ::memset(&messagetimestamp_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&messagestubtype_) - - reinterpret_cast<char*>(&messagetimestamp_)) + sizeof(messagestubtype_)); + ::memset(&_impl_.messagetimestamp_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.messagestubtype_) - + reinterpret_cast<char*>(&_impl_.messagetimestamp_)) + sizeof(_impl_.messagestubtype_)); } if (cached_has_bits & 0x00ff0000u) { - ::memset(&urltext_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&ephemeraloutofsync_) - - reinterpret_cast<char*>(&urltext_)) + sizeof(ephemeraloutofsync_)); + ::memset(&_impl_.urltext_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&_impl_.ephemeraloutofsync_) - + reinterpret_cast<char*>(&_impl_.urltext_)) + sizeof(_impl_.ephemeraloutofsync_)); } - bizprivacystatus_ = 0; - _has_bits_.Clear(); + _impl_.bizprivacystatus_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* WebMessageInfo::_InternalParse(const char* ptr, ::_pbi::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); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // required .proto.MessageKey key = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_key(), ptr); CHK_(ptr); } else @@ -38764,7 +40412,7 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // optional .proto.Message message = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_message(), ptr); CHK_(ptr); } else @@ -38772,17 +40420,17 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // optional uint64 messageTimestamp = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { _Internal::set_has_messagetimestamp(&has_bits); - messagetimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.messagetimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.WebMessageInfo.WebMessageInfoStatus status = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebMessageInfo_WebMessageInfoStatus_IsValid(val))) { _internal_set_status(static_cast<::proto::WebMessageInfo_WebMessageInfoStatus>(val)); @@ -38794,95 +40442,95 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // optional string participant = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { auto str = _internal_mutable_participant(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.WebMessageInfo.participant"); + ::_pbi::VerifyUTF8(str, "proto.WebMessageInfo.participant"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bool ignore = 16; case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 128)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 128)) { _Internal::set_has_ignore(&has_bits); - ignore_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.ignore_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bool starred = 17; case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 136)) { _Internal::set_has_starred(&has_bits); - starred_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.starred_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bool broadcast = 18; case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 144)) { _Internal::set_has_broadcast(&has_bits); - broadcast_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.broadcast_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string pushName = 19; case 19: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 154)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 154)) { auto str = _internal_mutable_pushname(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.WebMessageInfo.pushName"); + ::_pbi::VerifyUTF8(str, "proto.WebMessageInfo.pushName"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // optional bytes mediaCiphertextSha256 = 20; case 20: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 162)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 162)) { auto str = _internal_mutable_mediaciphertextsha256(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional bool multicast = 21; case 21: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 168)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 168)) { _Internal::set_has_multicast(&has_bits); - multicast_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.multicast_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bool urlText = 22; case 22: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 176)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 176)) { _Internal::set_has_urltext(&has_bits); - urltext_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.urltext_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bool urlNumber = 23; case 23: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 184)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 184)) { _Internal::set_has_urlnumber(&has_bits); - urlnumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.urlnumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.WebMessageInfo.WebMessageInfoStubType messageStubType = 24; case 24: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 192)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 192)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebMessageInfo_WebMessageInfoStubType_IsValid(val))) { _internal_set_messagestubtype(static_cast<::proto::WebMessageInfo_WebMessageInfoStubType>(val)); @@ -38894,25 +40542,25 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // optional bool clearMedia = 25; case 25: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 200)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 200)) { _Internal::set_has_clearmedia(&has_bits); - clearmedia_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.clearmedia_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // repeated string messageStubParameters = 26; case 26: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 210)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 210)) { ptr -= 2; do { ptr += 2; auto str = _internal_add_messagestubparameters(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.WebMessageInfo.messageStubParameters"); + ::_pbi::VerifyUTF8(str, "proto.WebMessageInfo.messageStubParameters"); #endif // !NDEBUG - CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<210>(ptr)); } else @@ -38920,25 +40568,25 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // optional uint32 duration = 27; case 27: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 216)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 216)) { _Internal::set_has_duration(&has_bits); - duration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.duration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // repeated string labels = 28; case 28: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 226)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 226)) { ptr -= 2; do { ptr += 2; auto str = _internal_add_labels(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.WebMessageInfo.labels"); + ::_pbi::VerifyUTF8(str, "proto.WebMessageInfo.labels"); #endif // !NDEBUG - CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<226>(ptr)); } else @@ -38946,7 +40594,7 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // optional .proto.PaymentInfo paymentInfo = 29; case 29: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 234)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 234)) { ptr = ctx->ParseMessage(_internal_mutable_paymentinfo(), ptr); CHK_(ptr); } else @@ -38954,7 +40602,7 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // optional .proto.LiveLocationMessage finalLiveLocation = 30; case 30: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 242)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 242)) { ptr = ctx->ParseMessage(_internal_mutable_finallivelocation(), ptr); CHK_(ptr); } else @@ -38962,7 +40610,7 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // optional .proto.PaymentInfo quotedPaymentInfo = 31; case 31: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 250)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 250)) { ptr = ctx->ParseMessage(_internal_mutable_quotedpaymentinfo(), ptr); CHK_(ptr); } else @@ -38970,44 +40618,44 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // optional uint64 ephemeralStartTimestamp = 32; case 32: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 0)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 0)) { _Internal::set_has_ephemeralstarttimestamp(&has_bits); - ephemeralstarttimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.ephemeralstarttimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 ephemeralDuration = 33; case 33: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { _Internal::set_has_ephemeralduration(&has_bits); - ephemeralduration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.ephemeralduration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bool ephemeralOffToOn = 34; case 34: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { _Internal::set_has_ephemeralofftoon(&has_bits); - ephemeralofftoon_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.ephemeralofftoon_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bool ephemeralOutOfSync = 35; case 35: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { _Internal::set_has_ephemeraloutofsync(&has_bits); - ephemeraloutofsync_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.ephemeraloutofsync_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.WebMessageInfo.WebMessageInfoBizPrivacyStatus bizPrivacyStatus = 36; case 36: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::WebMessageInfo_WebMessageInfoBizPrivacyStatus_IsValid(val))) { _internal_set_bizprivacystatus(static_cast<::proto::WebMessageInfo_WebMessageInfoBizPrivacyStatus>(val)); @@ -39019,13 +40667,13 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE continue; // optional string verifiedBizName = 37; case 37: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { auto str = _internal_mutable_verifiedbizname(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.WebMessageInfo.verifiedBizName"); + ::_pbi::VerifyUTF8(str, "proto.WebMessageInfo.verifiedBizName"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; @@ -39045,7 +40693,7 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE CHK_(ptr != nullptr); } // while message_done: - _has_bits_.Or(has_bits); + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -39053,39 +40701,37 @@ failure: #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* WebMessageInfo::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* WebMessageInfo::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:proto.WebMessageInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // required .proto.MessageKey key = 1; if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::key(this), target, stream); + InternalWriteMessage(1, _Internal::key(this), + _Internal::key(this).GetCachedSize(), target, stream); } // optional .proto.Message message = 2; if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::message(this), target, stream); + InternalWriteMessage(2, _Internal::message(this), + _Internal::message(this).GetCachedSize(), target, stream); } // optional uint64 messageTimestamp = 3; if (cached_has_bits & 0x00000200u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_messagetimestamp(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(3, this->_internal_messagetimestamp(), target); } // optional .proto.WebMessageInfo.WebMessageInfoStatus status = 4; if (cached_has_bits & 0x00000400u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 4, this->_internal_status(), target); } @@ -39102,19 +40748,19 @@ failure: // optional bool ignore = 16; if (cached_has_bits & 0x00000800u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->_internal_ignore(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(16, this->_internal_ignore(), target); } // optional bool starred = 17; if (cached_has_bits & 0x00001000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(17, this->_internal_starred(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(17, this->_internal_starred(), target); } // optional bool broadcast = 18; if (cached_has_bits & 0x00002000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(18, this->_internal_broadcast(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(18, this->_internal_broadcast(), target); } // optional string pushName = 19; @@ -39136,32 +40782,32 @@ failure: // optional bool multicast = 21; if (cached_has_bits & 0x00004000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(21, this->_internal_multicast(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(21, this->_internal_multicast(), target); } // optional bool urlText = 22; if (cached_has_bits & 0x00010000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(22, this->_internal_urltext(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(22, this->_internal_urltext(), target); } // optional bool urlNumber = 23; if (cached_has_bits & 0x00020000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(23, this->_internal_urlnumber(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(23, this->_internal_urlnumber(), target); } // optional .proto.WebMessageInfo.WebMessageInfoStubType messageStubType = 24; if (cached_has_bits & 0x00008000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 24, this->_internal_messagestubtype(), target); } // optional bool clearMedia = 25; if (cached_has_bits & 0x00040000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(25, this->_internal_clearmedia(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(25, this->_internal_clearmedia(), target); } // repeated string messageStubParameters = 26; @@ -39177,7 +40823,7 @@ failure: // optional uint32 duration = 27; if (cached_has_bits & 0x00100000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(27, this->_internal_duration(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(27, this->_internal_duration(), target); } // repeated string labels = 28; @@ -39192,56 +40838,53 @@ failure: // optional .proto.PaymentInfo paymentInfo = 29; if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 29, _Internal::paymentinfo(this), target, stream); + InternalWriteMessage(29, _Internal::paymentinfo(this), + _Internal::paymentinfo(this).GetCachedSize(), target, stream); } // optional .proto.LiveLocationMessage finalLiveLocation = 30; if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 30, _Internal::finallivelocation(this), target, stream); + InternalWriteMessage(30, _Internal::finallivelocation(this), + _Internal::finallivelocation(this).GetCachedSize(), target, stream); } // optional .proto.PaymentInfo quotedPaymentInfo = 31; if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 31, _Internal::quotedpaymentinfo(this), target, stream); + InternalWriteMessage(31, _Internal::quotedpaymentinfo(this), + _Internal::quotedpaymentinfo(this).GetCachedSize(), target, stream); } // optional uint64 ephemeralStartTimestamp = 32; if (cached_has_bits & 0x00400000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(32, this->_internal_ephemeralstarttimestamp(), target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(32, this->_internal_ephemeralstarttimestamp(), target); } // optional uint32 ephemeralDuration = 33; if (cached_has_bits & 0x00200000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(33, this->_internal_ephemeralduration(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(33, this->_internal_ephemeralduration(), target); } // optional bool ephemeralOffToOn = 34; if (cached_has_bits & 0x00080000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(34, this->_internal_ephemeralofftoon(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(34, this->_internal_ephemeralofftoon(), target); } // optional bool ephemeralOutOfSync = 35; if (cached_has_bits & 0x00800000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(35, this->_internal_ephemeraloutofsync(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(35, this->_internal_ephemeraloutofsync(), target); } // optional .proto.WebMessageInfo.WebMessageInfoBizPrivacyStatus bizPrivacyStatus = 36; if (cached_has_bits & 0x01000000u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 36, this->_internal_bizprivacystatus(), target); } @@ -39256,7 +40899,7 @@ failure: } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.WebMessageInfo) @@ -39271,29 +40914,29 @@ size_t WebMessageInfo::ByteSizeLong() const { if (_internal_has_key()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *key_); + *_impl_.key_); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string messageStubParameters = 26; total_size += 2 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(messagestubparameters_.size()); - for (int i = 0, n = messagestubparameters_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.messagestubparameters_.size()); + for (int i = 0, n = _impl_.messagestubparameters_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - messagestubparameters_.Get(i)); + _impl_.messagestubparameters_.Get(i)); } // repeated string labels = 28; total_size += 2 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(labels_.size()); - for (int i = 0, n = labels_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.labels_.size()); + for (int i = 0, n = _impl_.labels_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - labels_.Get(i)); + _impl_.labels_.Get(i)); } - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional string participant = 5; if (cached_has_bits & 0x00000001u) { @@ -39329,21 +40972,21 @@ size_t WebMessageInfo::ByteSizeLong() const { if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *message_); + *_impl_.message_); } // optional .proto.PaymentInfo paymentInfo = 29; if (cached_has_bits & 0x00000040u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *paymentinfo_); + *_impl_.paymentinfo_); } // optional .proto.LiveLocationMessage finalLiveLocation = 30; if (cached_has_bits & 0x00000080u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *finallivelocation_); + *_impl_.finallivelocation_); } } @@ -39352,18 +40995,18 @@ size_t WebMessageInfo::ByteSizeLong() const { if (cached_has_bits & 0x00000100u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *quotedpaymentinfo_); + *_impl_.quotedpaymentinfo_); } // optional uint64 messageTimestamp = 3; if (cached_has_bits & 0x00000200u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_messagetimestamp()); + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_messagetimestamp()); } // optional .proto.WebMessageInfo.WebMessageInfoStatus status = 4; if (cached_has_bits & 0x00000400u) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); } // optional bool ignore = 16; @@ -39389,7 +41032,7 @@ size_t WebMessageInfo::ByteSizeLong() const { // optional .proto.WebMessageInfo.WebMessageInfoStubType messageStubType = 24; if (cached_has_bits & 0x00008000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_messagestubtype()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_messagestubtype()); } } @@ -39417,21 +41060,21 @@ size_t WebMessageInfo::ByteSizeLong() const { // optional uint32 duration = 27; if (cached_has_bits & 0x00100000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + ::_pbi::WireFormatLite::UInt32Size( this->_internal_duration()); } // optional uint32 ephemeralDuration = 33; if (cached_has_bits & 0x00200000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + ::_pbi::WireFormatLite::UInt32Size( this->_internal_ephemeralduration()); } // optional uint64 ephemeralStartTimestamp = 32; if (cached_has_bits & 0x00400000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + ::_pbi::WireFormatLite::UInt64Size( this->_internal_ephemeralstarttimestamp()); } @@ -39444,118 +41087,119 @@ size_t WebMessageInfo::ByteSizeLong() const { // optional .proto.WebMessageInfo.WebMessageInfoBizPrivacyStatus bizPrivacyStatus = 36; if (cached_has_bits & 0x01000000u) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_bizprivacystatus()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_bizprivacystatus()); } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WebMessageInfo::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, WebMessageInfo::MergeImpl }; const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WebMessageInfo::GetClassData() const { return &_class_data_; } -void WebMessageInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast<WebMessageInfo *>(to)->MergeFrom( - static_cast<const WebMessageInfo &>(from)); -} - -void WebMessageInfo::MergeFrom(const WebMessageInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:proto.WebMessageInfo) - GOOGLE_DCHECK_NE(&from, this); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +void WebMessageInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast<WebMessageInfo*>(&to_msg); + auto& from = static_cast<const WebMessageInfo&>(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:proto.WebMessageInfo) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - messagestubparameters_.MergeFrom(from.messagestubparameters_); - labels_.MergeFrom(from.labels_); - cached_has_bits = from._has_bits_[0]; + _this->_impl_.messagestubparameters_.MergeFrom(from._impl_.messagestubparameters_); + _this->_impl_.labels_.MergeFrom(from._impl_.labels_); + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { - _internal_set_participant(from._internal_participant()); + _this->_internal_set_participant(from._internal_participant()); } if (cached_has_bits & 0x00000002u) { - _internal_set_pushname(from._internal_pushname()); + _this->_internal_set_pushname(from._internal_pushname()); } if (cached_has_bits & 0x00000004u) { - _internal_set_mediaciphertextsha256(from._internal_mediaciphertextsha256()); + _this->_internal_set_mediaciphertextsha256(from._internal_mediaciphertextsha256()); } if (cached_has_bits & 0x00000008u) { - _internal_set_verifiedbizname(from._internal_verifiedbizname()); + _this->_internal_set_verifiedbizname(from._internal_verifiedbizname()); } if (cached_has_bits & 0x00000010u) { - _internal_mutable_key()->::proto::MessageKey::MergeFrom(from._internal_key()); + _this->_internal_mutable_key()->::proto::MessageKey::MergeFrom( + from._internal_key()); } if (cached_has_bits & 0x00000020u) { - _internal_mutable_message()->::proto::Message::MergeFrom(from._internal_message()); + _this->_internal_mutable_message()->::proto::Message::MergeFrom( + from._internal_message()); } if (cached_has_bits & 0x00000040u) { - _internal_mutable_paymentinfo()->::proto::PaymentInfo::MergeFrom(from._internal_paymentinfo()); + _this->_internal_mutable_paymentinfo()->::proto::PaymentInfo::MergeFrom( + from._internal_paymentinfo()); } if (cached_has_bits & 0x00000080u) { - _internal_mutable_finallivelocation()->::proto::LiveLocationMessage::MergeFrom(from._internal_finallivelocation()); + _this->_internal_mutable_finallivelocation()->::proto::LiveLocationMessage::MergeFrom( + from._internal_finallivelocation()); } } if (cached_has_bits & 0x0000ff00u) { if (cached_has_bits & 0x00000100u) { - _internal_mutable_quotedpaymentinfo()->::proto::PaymentInfo::MergeFrom(from._internal_quotedpaymentinfo()); + _this->_internal_mutable_quotedpaymentinfo()->::proto::PaymentInfo::MergeFrom( + from._internal_quotedpaymentinfo()); } if (cached_has_bits & 0x00000200u) { - messagetimestamp_ = from.messagetimestamp_; + _this->_impl_.messagetimestamp_ = from._impl_.messagetimestamp_; } if (cached_has_bits & 0x00000400u) { - status_ = from.status_; + _this->_impl_.status_ = from._impl_.status_; } if (cached_has_bits & 0x00000800u) { - ignore_ = from.ignore_; + _this->_impl_.ignore_ = from._impl_.ignore_; } if (cached_has_bits & 0x00001000u) { - starred_ = from.starred_; + _this->_impl_.starred_ = from._impl_.starred_; } if (cached_has_bits & 0x00002000u) { - broadcast_ = from.broadcast_; + _this->_impl_.broadcast_ = from._impl_.broadcast_; } if (cached_has_bits & 0x00004000u) { - multicast_ = from.multicast_; + _this->_impl_.multicast_ = from._impl_.multicast_; } if (cached_has_bits & 0x00008000u) { - messagestubtype_ = from.messagestubtype_; + _this->_impl_.messagestubtype_ = from._impl_.messagestubtype_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00ff0000u) { if (cached_has_bits & 0x00010000u) { - urltext_ = from.urltext_; + _this->_impl_.urltext_ = from._impl_.urltext_; } if (cached_has_bits & 0x00020000u) { - urlnumber_ = from.urlnumber_; + _this->_impl_.urlnumber_ = from._impl_.urlnumber_; } if (cached_has_bits & 0x00040000u) { - clearmedia_ = from.clearmedia_; + _this->_impl_.clearmedia_ = from._impl_.clearmedia_; } if (cached_has_bits & 0x00080000u) { - ephemeralofftoon_ = from.ephemeralofftoon_; + _this->_impl_.ephemeralofftoon_ = from._impl_.ephemeralofftoon_; } if (cached_has_bits & 0x00100000u) { - duration_ = from.duration_; + _this->_impl_.duration_ = from._impl_.duration_; } if (cached_has_bits & 0x00200000u) { - ephemeralduration_ = from.ephemeralduration_; + _this->_impl_.ephemeralduration_ = from._impl_.ephemeralduration_; } if (cached_has_bits & 0x00400000u) { - ephemeralstarttimestamp_ = from.ephemeralstarttimestamp_; + _this->_impl_.ephemeralstarttimestamp_ = from._impl_.ephemeralstarttimestamp_; } if (cached_has_bits & 0x00800000u) { - ephemeraloutofsync_ = from.ephemeraloutofsync_; + _this->_impl_.ephemeraloutofsync_ = from._impl_.ephemeraloutofsync_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x01000000u) { - _internal_set_bizprivacystatus(from._internal_bizprivacystatus()); + _this->_internal_set_bizprivacystatus(from._internal_bizprivacystatus()); } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void WebMessageInfo::CopyFrom(const WebMessageInfo& from) { @@ -39566,7 +41210,7 @@ void WebMessageInfo::CopyFrom(const WebMessageInfo& from) { } bool WebMessageInfo::IsInitialized() const { - if (_Internal::MissingRequiredFields(_has_bits_)) return false; + if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; return true; } @@ -39575,39 +41219,35 @@ void WebMessageInfo::InternalSwap(WebMessageInfo* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - messagestubparameters_.InternalSwap(&other->messagestubparameters_); - labels_.InternalSwap(&other->labels_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.messagestubparameters_.InternalSwap(&other->_impl_.messagestubparameters_); + _impl_.labels_.InternalSwap(&other->_impl_.labels_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &participant_, lhs_arena, - &other->participant_, rhs_arena + &_impl_.participant_, lhs_arena, + &other->_impl_.participant_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &pushname_, lhs_arena, - &other->pushname_, rhs_arena + &_impl_.pushname_, lhs_arena, + &other->_impl_.pushname_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &mediaciphertextsha256_, lhs_arena, - &other->mediaciphertextsha256_, rhs_arena + &_impl_.mediaciphertextsha256_, lhs_arena, + &other->_impl_.mediaciphertextsha256_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &verifiedbizname_, lhs_arena, - &other->verifiedbizname_, rhs_arena + &_impl_.verifiedbizname_, lhs_arena, + &other->_impl_.verifiedbizname_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(WebMessageInfo, bizprivacystatus_) - + sizeof(WebMessageInfo::bizprivacystatus_) - - PROTOBUF_FIELD_OFFSET(WebMessageInfo, key_)>( - reinterpret_cast<char*>(&key_), - reinterpret_cast<char*>(&other->key_)); + PROTOBUF_FIELD_OFFSET(WebMessageInfo, _impl_.bizprivacystatus_) + + sizeof(WebMessageInfo::_impl_.bizprivacystatus_) + - PROTOBUF_FIELD_OFFSET(WebMessageInfo, _impl_.key_)>( + reinterpret_cast<char*>(&_impl_.key_), + reinterpret_cast<char*>(&other->_impl_.key_)); } ::PROTOBUF_NAMESPACE_ID::Metadata WebMessageInfo::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + return ::_pbi::AssignDescriptors( &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, file_level_metadata_pmsg_2eproto[78]); } @@ -39615,241 +41255,320 @@ void WebMessageInfo::InternalSwap(WebMessageInfo* other) { // @@protoc_insertion_point(namespace_scope) } // namespace proto PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::proto::PaymentMoney* Arena::CreateMaybeMessage< ::proto::PaymentMoney >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::PaymentMoney* +Arena::CreateMaybeMessage< ::proto::PaymentMoney >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::PaymentMoney >(arena); } -template<> PROTOBUF_NOINLINE ::proto::HydratedQuickReplyButton* Arena::CreateMaybeMessage< ::proto::HydratedQuickReplyButton >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::HydratedQuickReplyButton* +Arena::CreateMaybeMessage< ::proto::HydratedQuickReplyButton >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::HydratedQuickReplyButton >(arena); } -template<> PROTOBUF_NOINLINE ::proto::HydratedURLButton* Arena::CreateMaybeMessage< ::proto::HydratedURLButton >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::HydratedURLButton* +Arena::CreateMaybeMessage< ::proto::HydratedURLButton >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::HydratedURLButton >(arena); } -template<> PROTOBUF_NOINLINE ::proto::HydratedCallButton* Arena::CreateMaybeMessage< ::proto::HydratedCallButton >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::HydratedCallButton* +Arena::CreateMaybeMessage< ::proto::HydratedCallButton >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::HydratedCallButton >(arena); } -template<> PROTOBUF_NOINLINE ::proto::HydratedTemplateButton* Arena::CreateMaybeMessage< ::proto::HydratedTemplateButton >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::HydratedTemplateButton* +Arena::CreateMaybeMessage< ::proto::HydratedTemplateButton >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::HydratedTemplateButton >(arena); } -template<> PROTOBUF_NOINLINE ::proto::QuickReplyButton* Arena::CreateMaybeMessage< ::proto::QuickReplyButton >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::QuickReplyButton* +Arena::CreateMaybeMessage< ::proto::QuickReplyButton >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::QuickReplyButton >(arena); } -template<> PROTOBUF_NOINLINE ::proto::URLButton* Arena::CreateMaybeMessage< ::proto::URLButton >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::URLButton* +Arena::CreateMaybeMessage< ::proto::URLButton >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::URLButton >(arena); } -template<> PROTOBUF_NOINLINE ::proto::CallButton* Arena::CreateMaybeMessage< ::proto::CallButton >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::CallButton* +Arena::CreateMaybeMessage< ::proto::CallButton >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::CallButton >(arena); } -template<> PROTOBUF_NOINLINE ::proto::TemplateButton* Arena::CreateMaybeMessage< ::proto::TemplateButton >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::TemplateButton* +Arena::CreateMaybeMessage< ::proto::TemplateButton >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::TemplateButton >(arena); } -template<> PROTOBUF_NOINLINE ::proto::Location* Arena::CreateMaybeMessage< ::proto::Location >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::Location* +Arena::CreateMaybeMessage< ::proto::Location >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::Location >(arena); } -template<> PROTOBUF_NOINLINE ::proto::Point* Arena::CreateMaybeMessage< ::proto::Point >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::Point* +Arena::CreateMaybeMessage< ::proto::Point >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::Point >(arena); } -template<> PROTOBUF_NOINLINE ::proto::InteractiveAnnotation* Arena::CreateMaybeMessage< ::proto::InteractiveAnnotation >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::InteractiveAnnotation* +Arena::CreateMaybeMessage< ::proto::InteractiveAnnotation >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::InteractiveAnnotation >(arena); } -template<> PROTOBUF_NOINLINE ::proto::DeviceListMetadata* Arena::CreateMaybeMessage< ::proto::DeviceListMetadata >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::DeviceListMetadata* +Arena::CreateMaybeMessage< ::proto::DeviceListMetadata >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::DeviceListMetadata >(arena); } -template<> PROTOBUF_NOINLINE ::proto::MessageContextInfo* Arena::CreateMaybeMessage< ::proto::MessageContextInfo >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::MessageContextInfo* +Arena::CreateMaybeMessage< ::proto::MessageContextInfo >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::MessageContextInfo >(arena); } -template<> PROTOBUF_NOINLINE ::proto::AdReplyInfo* Arena::CreateMaybeMessage< ::proto::AdReplyInfo >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::AdReplyInfo* +Arena::CreateMaybeMessage< ::proto::AdReplyInfo >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::AdReplyInfo >(arena); } -template<> PROTOBUF_NOINLINE ::proto::ExternalAdReplyInfo* Arena::CreateMaybeMessage< ::proto::ExternalAdReplyInfo >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::ExternalAdReplyInfo* +Arena::CreateMaybeMessage< ::proto::ExternalAdReplyInfo >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::ExternalAdReplyInfo >(arena); } -template<> PROTOBUF_NOINLINE ::proto::ContextInfo* Arena::CreateMaybeMessage< ::proto::ContextInfo >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::ContextInfo* +Arena::CreateMaybeMessage< ::proto::ContextInfo >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::ContextInfo >(arena); } -template<> PROTOBUF_NOINLINE ::proto::SenderKeyDistributionMessage* Arena::CreateMaybeMessage< ::proto::SenderKeyDistributionMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::SenderKeyDistributionMessage* +Arena::CreateMaybeMessage< ::proto::SenderKeyDistributionMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::SenderKeyDistributionMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::ImageMessage* Arena::CreateMaybeMessage< ::proto::ImageMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::ImageMessage* +Arena::CreateMaybeMessage< ::proto::ImageMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::ImageMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::InvoiceMessage* Arena::CreateMaybeMessage< ::proto::InvoiceMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::InvoiceMessage* +Arena::CreateMaybeMessage< ::proto::InvoiceMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::InvoiceMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::ContactMessage* Arena::CreateMaybeMessage< ::proto::ContactMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::ContactMessage* +Arena::CreateMaybeMessage< ::proto::ContactMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::ContactMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::LocationMessage* Arena::CreateMaybeMessage< ::proto::LocationMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::LocationMessage* +Arena::CreateMaybeMessage< ::proto::LocationMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::LocationMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::ExtendedTextMessage* Arena::CreateMaybeMessage< ::proto::ExtendedTextMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::ExtendedTextMessage* +Arena::CreateMaybeMessage< ::proto::ExtendedTextMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::ExtendedTextMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::DocumentMessage* Arena::CreateMaybeMessage< ::proto::DocumentMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::DocumentMessage* +Arena::CreateMaybeMessage< ::proto::DocumentMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::DocumentMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::AudioMessage* Arena::CreateMaybeMessage< ::proto::AudioMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::AudioMessage* +Arena::CreateMaybeMessage< ::proto::AudioMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::AudioMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::VideoMessage* Arena::CreateMaybeMessage< ::proto::VideoMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::VideoMessage* +Arena::CreateMaybeMessage< ::proto::VideoMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::VideoMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::Call* Arena::CreateMaybeMessage< ::proto::Call >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::Call* +Arena::CreateMaybeMessage< ::proto::Call >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::Call >(arena); } -template<> PROTOBUF_NOINLINE ::proto::Chat* Arena::CreateMaybeMessage< ::proto::Chat >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::Chat* +Arena::CreateMaybeMessage< ::proto::Chat >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::Chat >(arena); } -template<> PROTOBUF_NOINLINE ::proto::ProtocolMessage* Arena::CreateMaybeMessage< ::proto::ProtocolMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::ProtocolMessage* +Arena::CreateMaybeMessage< ::proto::ProtocolMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::ProtocolMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::HistorySyncNotification* Arena::CreateMaybeMessage< ::proto::HistorySyncNotification >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::HistorySyncNotification* +Arena::CreateMaybeMessage< ::proto::HistorySyncNotification >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::HistorySyncNotification >(arena); } -template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKey* Arena::CreateMaybeMessage< ::proto::AppStateSyncKey >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKey* +Arena::CreateMaybeMessage< ::proto::AppStateSyncKey >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::AppStateSyncKey >(arena); } -template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKeyId* Arena::CreateMaybeMessage< ::proto::AppStateSyncKeyId >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKeyId* +Arena::CreateMaybeMessage< ::proto::AppStateSyncKeyId >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::AppStateSyncKeyId >(arena); } -template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKeyFingerprint* Arena::CreateMaybeMessage< ::proto::AppStateSyncKeyFingerprint >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKeyFingerprint* +Arena::CreateMaybeMessage< ::proto::AppStateSyncKeyFingerprint >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::AppStateSyncKeyFingerprint >(arena); } -template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKeyData* Arena::CreateMaybeMessage< ::proto::AppStateSyncKeyData >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKeyData* +Arena::CreateMaybeMessage< ::proto::AppStateSyncKeyData >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::AppStateSyncKeyData >(arena); } -template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKeyShare* Arena::CreateMaybeMessage< ::proto::AppStateSyncKeyShare >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKeyShare* +Arena::CreateMaybeMessage< ::proto::AppStateSyncKeyShare >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::AppStateSyncKeyShare >(arena); } -template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKeyRequest* Arena::CreateMaybeMessage< ::proto::AppStateSyncKeyRequest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKeyRequest* +Arena::CreateMaybeMessage< ::proto::AppStateSyncKeyRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::AppStateSyncKeyRequest >(arena); } -template<> PROTOBUF_NOINLINE ::proto::AppStateFatalExceptionNotification* Arena::CreateMaybeMessage< ::proto::AppStateFatalExceptionNotification >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::AppStateFatalExceptionNotification* +Arena::CreateMaybeMessage< ::proto::AppStateFatalExceptionNotification >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::AppStateFatalExceptionNotification >(arena); } -template<> PROTOBUF_NOINLINE ::proto::InitialSecurityNotificationSettingSync* Arena::CreateMaybeMessage< ::proto::InitialSecurityNotificationSettingSync >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::InitialSecurityNotificationSettingSync* +Arena::CreateMaybeMessage< ::proto::InitialSecurityNotificationSettingSync >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::InitialSecurityNotificationSettingSync >(arena); } -template<> PROTOBUF_NOINLINE ::proto::ContactsArrayMessage* Arena::CreateMaybeMessage< ::proto::ContactsArrayMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::ContactsArrayMessage* +Arena::CreateMaybeMessage< ::proto::ContactsArrayMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::ContactsArrayMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::HSMCurrency* Arena::CreateMaybeMessage< ::proto::HSMCurrency >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::HSMCurrency* +Arena::CreateMaybeMessage< ::proto::HSMCurrency >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::HSMCurrency >(arena); } -template<> PROTOBUF_NOINLINE ::proto::HSMDateTimeComponent* Arena::CreateMaybeMessage< ::proto::HSMDateTimeComponent >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::HSMDateTimeComponent* +Arena::CreateMaybeMessage< ::proto::HSMDateTimeComponent >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::HSMDateTimeComponent >(arena); } -template<> PROTOBUF_NOINLINE ::proto::HSMDateTimeUnixEpoch* Arena::CreateMaybeMessage< ::proto::HSMDateTimeUnixEpoch >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::HSMDateTimeUnixEpoch* +Arena::CreateMaybeMessage< ::proto::HSMDateTimeUnixEpoch >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::HSMDateTimeUnixEpoch >(arena); } -template<> PROTOBUF_NOINLINE ::proto::HSMDateTime* Arena::CreateMaybeMessage< ::proto::HSMDateTime >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::HSMDateTime* +Arena::CreateMaybeMessage< ::proto::HSMDateTime >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::HSMDateTime >(arena); } -template<> PROTOBUF_NOINLINE ::proto::HSMLocalizableParameter* Arena::CreateMaybeMessage< ::proto::HSMLocalizableParameter >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::HSMLocalizableParameter* +Arena::CreateMaybeMessage< ::proto::HSMLocalizableParameter >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::HSMLocalizableParameter >(arena); } -template<> PROTOBUF_NOINLINE ::proto::HighlyStructuredMessage* Arena::CreateMaybeMessage< ::proto::HighlyStructuredMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::HighlyStructuredMessage* +Arena::CreateMaybeMessage< ::proto::HighlyStructuredMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::HighlyStructuredMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::SendPaymentMessage* Arena::CreateMaybeMessage< ::proto::SendPaymentMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::SendPaymentMessage* +Arena::CreateMaybeMessage< ::proto::SendPaymentMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::SendPaymentMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::RequestPaymentMessage* Arena::CreateMaybeMessage< ::proto::RequestPaymentMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::RequestPaymentMessage* +Arena::CreateMaybeMessage< ::proto::RequestPaymentMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::RequestPaymentMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::DeclinePaymentRequestMessage* Arena::CreateMaybeMessage< ::proto::DeclinePaymentRequestMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::DeclinePaymentRequestMessage* +Arena::CreateMaybeMessage< ::proto::DeclinePaymentRequestMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::DeclinePaymentRequestMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::CancelPaymentRequestMessage* Arena::CreateMaybeMessage< ::proto::CancelPaymentRequestMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::CancelPaymentRequestMessage* +Arena::CreateMaybeMessage< ::proto::CancelPaymentRequestMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::CancelPaymentRequestMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::LiveLocationMessage* Arena::CreateMaybeMessage< ::proto::LiveLocationMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::LiveLocationMessage* +Arena::CreateMaybeMessage< ::proto::LiveLocationMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::LiveLocationMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::StickerMessage* Arena::CreateMaybeMessage< ::proto::StickerMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::StickerMessage* +Arena::CreateMaybeMessage< ::proto::StickerMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::StickerMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::FourRowTemplate* Arena::CreateMaybeMessage< ::proto::FourRowTemplate >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::FourRowTemplate* +Arena::CreateMaybeMessage< ::proto::FourRowTemplate >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::FourRowTemplate >(arena); } -template<> PROTOBUF_NOINLINE ::proto::HydratedFourRowTemplate* Arena::CreateMaybeMessage< ::proto::HydratedFourRowTemplate >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::HydratedFourRowTemplate* +Arena::CreateMaybeMessage< ::proto::HydratedFourRowTemplate >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::HydratedFourRowTemplate >(arena); } -template<> PROTOBUF_NOINLINE ::proto::TemplateMessage* Arena::CreateMaybeMessage< ::proto::TemplateMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::TemplateMessage* +Arena::CreateMaybeMessage< ::proto::TemplateMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::TemplateMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::TemplateButtonReplyMessage* Arena::CreateMaybeMessage< ::proto::TemplateButtonReplyMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::TemplateButtonReplyMessage* +Arena::CreateMaybeMessage< ::proto::TemplateButtonReplyMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::TemplateButtonReplyMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::CatalogSnapshot* Arena::CreateMaybeMessage< ::proto::CatalogSnapshot >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::CatalogSnapshot* +Arena::CreateMaybeMessage< ::proto::CatalogSnapshot >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::CatalogSnapshot >(arena); } -template<> PROTOBUF_NOINLINE ::proto::ProductSnapshot* Arena::CreateMaybeMessage< ::proto::ProductSnapshot >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::ProductSnapshot* +Arena::CreateMaybeMessage< ::proto::ProductSnapshot >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::ProductSnapshot >(arena); } -template<> PROTOBUF_NOINLINE ::proto::ProductMessage* Arena::CreateMaybeMessage< ::proto::ProductMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::ProductMessage* +Arena::CreateMaybeMessage< ::proto::ProductMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::ProductMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::OrderMessage* Arena::CreateMaybeMessage< ::proto::OrderMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::OrderMessage* +Arena::CreateMaybeMessage< ::proto::OrderMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::OrderMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::Row* Arena::CreateMaybeMessage< ::proto::Row >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::Row* +Arena::CreateMaybeMessage< ::proto::Row >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::Row >(arena); } -template<> PROTOBUF_NOINLINE ::proto::Section* Arena::CreateMaybeMessage< ::proto::Section >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::Section* +Arena::CreateMaybeMessage< ::proto::Section >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::Section >(arena); } -template<> PROTOBUF_NOINLINE ::proto::ListMessage* Arena::CreateMaybeMessage< ::proto::ListMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::ListMessage* +Arena::CreateMaybeMessage< ::proto::ListMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::ListMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::SingleSelectReply* Arena::CreateMaybeMessage< ::proto::SingleSelectReply >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::SingleSelectReply* +Arena::CreateMaybeMessage< ::proto::SingleSelectReply >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::SingleSelectReply >(arena); } -template<> PROTOBUF_NOINLINE ::proto::ListResponseMessage* Arena::CreateMaybeMessage< ::proto::ListResponseMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::ListResponseMessage* +Arena::CreateMaybeMessage< ::proto::ListResponseMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::ListResponseMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::GroupInviteMessage* Arena::CreateMaybeMessage< ::proto::GroupInviteMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::GroupInviteMessage* +Arena::CreateMaybeMessage< ::proto::GroupInviteMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::GroupInviteMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::EphemeralSetting* Arena::CreateMaybeMessage< ::proto::EphemeralSetting >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::EphemeralSetting* +Arena::CreateMaybeMessage< ::proto::EphemeralSetting >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::EphemeralSetting >(arena); } -template<> PROTOBUF_NOINLINE ::proto::DeviceSentMessage* Arena::CreateMaybeMessage< ::proto::DeviceSentMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::DeviceSentMessage* +Arena::CreateMaybeMessage< ::proto::DeviceSentMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::DeviceSentMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::FutureProofMessage* Arena::CreateMaybeMessage< ::proto::FutureProofMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::FutureProofMessage* +Arena::CreateMaybeMessage< ::proto::FutureProofMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::FutureProofMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::ButtonText* Arena::CreateMaybeMessage< ::proto::ButtonText >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::ButtonText* +Arena::CreateMaybeMessage< ::proto::ButtonText >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::ButtonText >(arena); } -template<> PROTOBUF_NOINLINE ::proto::Button* Arena::CreateMaybeMessage< ::proto::Button >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::Button* +Arena::CreateMaybeMessage< ::proto::Button >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::Button >(arena); } -template<> PROTOBUF_NOINLINE ::proto::ButtonsMessage* Arena::CreateMaybeMessage< ::proto::ButtonsMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::ButtonsMessage* +Arena::CreateMaybeMessage< ::proto::ButtonsMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::ButtonsMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::ButtonsResponseMessage* Arena::CreateMaybeMessage< ::proto::ButtonsResponseMessage >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::ButtonsResponseMessage* +Arena::CreateMaybeMessage< ::proto::ButtonsResponseMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::ButtonsResponseMessage >(arena); } -template<> PROTOBUF_NOINLINE ::proto::Message* Arena::CreateMaybeMessage< ::proto::Message >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::Message* +Arena::CreateMaybeMessage< ::proto::Message >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::Message >(arena); } -template<> PROTOBUF_NOINLINE ::proto::MessageKey* Arena::CreateMaybeMessage< ::proto::MessageKey >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::MessageKey* +Arena::CreateMaybeMessage< ::proto::MessageKey >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::MessageKey >(arena); } -template<> PROTOBUF_NOINLINE ::proto::WebFeatures* Arena::CreateMaybeMessage< ::proto::WebFeatures >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::WebFeatures* +Arena::CreateMaybeMessage< ::proto::WebFeatures >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::WebFeatures >(arena); } -template<> PROTOBUF_NOINLINE ::proto::NotificationMessageInfo* Arena::CreateMaybeMessage< ::proto::NotificationMessageInfo >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::NotificationMessageInfo* +Arena::CreateMaybeMessage< ::proto::NotificationMessageInfo >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::NotificationMessageInfo >(arena); } -template<> PROTOBUF_NOINLINE ::proto::WebNotificationsInfo* Arena::CreateMaybeMessage< ::proto::WebNotificationsInfo >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::WebNotificationsInfo* +Arena::CreateMaybeMessage< ::proto::WebNotificationsInfo >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::WebNotificationsInfo >(arena); } -template<> PROTOBUF_NOINLINE ::proto::PaymentInfo* Arena::CreateMaybeMessage< ::proto::PaymentInfo >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::PaymentInfo* +Arena::CreateMaybeMessage< ::proto::PaymentInfo >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::PaymentInfo >(arena); } -template<> PROTOBUF_NOINLINE ::proto::WebMessageInfo* Arena::CreateMaybeMessage< ::proto::WebMessageInfo >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::proto::WebMessageInfo* +Arena::CreateMaybeMessage< ::proto::WebMessageInfo >(Arena* arena) { return Arena::CreateMessageInternal< ::proto::WebMessageInfo >(arena); } PROTOBUF_NAMESPACE_CLOSE |