// Generated by the protocol buffer compiler. DO NOT EDIT! // source: pmsg.proto #include "pmsg.pb.h" #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) #include PROTOBUF_PRAGMA_INIT_SEG namespace proto { constexpr PaymentMoney::PaymentMoney( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : currencycode_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , value_(PROTOBUF_LONGLONG(0)) , offset_(0u){} struct PaymentMoneyDefaultTypeInternal { constexpr PaymentMoneyDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct HydratedQuickReplyButtonDefaultTypeInternal { constexpr HydratedQuickReplyButtonDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct HydratedURLButtonDefaultTypeInternal { constexpr HydratedURLButtonDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct HydratedCallButtonDefaultTypeInternal { constexpr HydratedCallButtonDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_{}{} struct HydratedTemplateButtonDefaultTypeInternal { constexpr HydratedTemplateButtonDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct QuickReplyButtonDefaultTypeInternal { constexpr QuickReplyButtonDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct URLButtonDefaultTypeInternal { constexpr URLButtonDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct CallButtonDefaultTypeInternal { constexpr CallButtonDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_{}{} struct TemplateButtonDefaultTypeInternal { constexpr TemplateButtonDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct LocationDefaultTypeInternal { constexpr LocationDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct PointDefaultTypeInternal { constexpr PointDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_{}{} struct InteractiveAnnotationDefaultTypeInternal { constexpr InteractiveAnnotationDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_ULONGLONG(0)) , recipienttimestamp_(PROTOBUF_ULONGLONG(0)){} struct DeviceListMetadataDefaultTypeInternal { constexpr DeviceListMetadataDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct MessageContextInfoDefaultTypeInternal { constexpr MessageContextInfoDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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) {} struct AdReplyInfoDefaultTypeInternal { constexpr AdReplyInfoDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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) {} struct ExternalAdReplyInfoDefaultTypeInternal { constexpr ExternalAdReplyInfoDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_LONGLONG(0)){} struct ContextInfoDefaultTypeInternal { constexpr ContextInfoDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct SenderKeyDistributionMessageDefaultTypeInternal { constexpr SenderKeyDistributionMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_ULONGLONG(0)) , height_(0u) , width_(0u) , mediakeytimestamp_(PROTOBUF_LONGLONG(0)) , firstscanlength_(0u) , experimentgroupid_(0u) , viewonce_(false){} struct ImageMessageDefaultTypeInternal { constexpr ImageMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_LONGLONG(0)) , attachmenttype_(0) {} struct InvoiceMessageDefaultTypeInternal { constexpr InvoiceMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct ContactMessageDefaultTypeInternal { constexpr ContactMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct LocationMessageDefaultTypeInternal { constexpr LocationMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct ExtendedTextMessageDefaultTypeInternal { constexpr ExtendedTextMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_ULONGLONG(0)) , pagecount_(0u) , contactvcard_(false) , mediakeytimestamp_(PROTOBUF_LONGLONG(0)) , thumbnailheight_(0u) , thumbnailwidth_(0u){} struct DocumentMessageDefaultTypeInternal { constexpr DocumentMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_ULONGLONG(0)) , seconds_(0u) , ptt_(false) , mediakeytimestamp_(PROTOBUF_LONGLONG(0)){} struct AudioMessageDefaultTypeInternal { constexpr AudioMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_ULONGLONG(0)) , seconds_(0u) , height_(0u) , width_(0u) , gifplayback_(false) , viewonce_(false) , mediakeytimestamp_(PROTOBUF_LONGLONG(0)) , gifattribution_(0) {} struct VideoMessageDefaultTypeInternal { constexpr VideoMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct CallDefaultTypeInternal { constexpr CallDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct ChatDefaultTypeInternal { constexpr ChatDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_LONGLONG(0)){} struct ProtocolMessageDefaultTypeInternal { constexpr ProtocolMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_ULONGLONG(0)) , synctype_(0) , chunkorder_(0u){} struct HistorySyncNotificationDefaultTypeInternal { constexpr HistorySyncNotificationDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct AppStateSyncKeyDefaultTypeInternal { constexpr AppStateSyncKeyDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct AppStateSyncKeyIdDefaultTypeInternal { constexpr AppStateSyncKeyIdDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_() , rawid_(0u) , currentindex_(0u){} struct AppStateSyncKeyFingerprintDefaultTypeInternal { constexpr AppStateSyncKeyFingerprintDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_LONGLONG(0)){} struct AppStateSyncKeyDataDefaultTypeInternal { constexpr AppStateSyncKeyDataDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~AppStateSyncKeyDataDefaultTypeInternal() {} union { AppStateSyncKeyData _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AppStateSyncKeyDataDefaultTypeInternal _AppStateSyncKeyData_default_instance_; constexpr AppStateSyncKeyShare::AppStateSyncKeyShare( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : keys_(){} struct AppStateSyncKeyShareDefaultTypeInternal { constexpr AppStateSyncKeyShareDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~AppStateSyncKeyShareDefaultTypeInternal() {} union { AppStateSyncKeyShare _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AppStateSyncKeyShareDefaultTypeInternal _AppStateSyncKeyShare_default_instance_; constexpr AppStateSyncKeyRequest::AppStateSyncKeyRequest( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : keyids_(){} struct AppStateSyncKeyRequestDefaultTypeInternal { constexpr AppStateSyncKeyRequestDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_LONGLONG(0)){} struct AppStateFatalExceptionNotificationDefaultTypeInternal { constexpr AppStateFatalExceptionNotificationDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct InitialSecurityNotificationSettingSyncDefaultTypeInternal { constexpr InitialSecurityNotificationSettingSyncDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct ContactsArrayMessageDefaultTypeInternal { constexpr ContactsArrayMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_LONGLONG(0)){} struct HSMCurrencyDefaultTypeInternal { constexpr HSMCurrencyDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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) {} struct HSMDateTimeComponentDefaultTypeInternal { constexpr HSMDateTimeComponentDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~HSMDateTimeComponentDefaultTypeInternal() {} union { HSMDateTimeComponent _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT HSMDateTimeComponentDefaultTypeInternal _HSMDateTimeComponent_default_instance_; constexpr HSMDateTimeUnixEpoch::HSMDateTimeUnixEpoch( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : timestamp_(PROTOBUF_LONGLONG(0)){} struct HSMDateTimeUnixEpochDefaultTypeInternal { constexpr HSMDateTimeUnixEpochDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_{}{} struct HSMDateTimeDefaultTypeInternal { constexpr HSMDateTimeDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_{}{} struct HSMLocalizableParameterDefaultTypeInternal { constexpr HSMLocalizableParameterDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct HighlyStructuredMessageDefaultTypeInternal { constexpr HighlyStructuredMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct SendPaymentMessageDefaultTypeInternal { constexpr SendPaymentMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_ULONGLONG(0)) , expirytimestamp_(PROTOBUF_LONGLONG(0)){} struct RequestPaymentMessageDefaultTypeInternal { constexpr RequestPaymentMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct DeclinePaymentRequestMessageDefaultTypeInternal { constexpr DeclinePaymentRequestMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct CancelPaymentRequestMessageDefaultTypeInternal { constexpr CancelPaymentRequestMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_LONGLONG(0)){} struct LiveLocationMessageDefaultTypeInternal { constexpr LiveLocationMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_ULONGLONG(0)) , mediakeytimestamp_(PROTOBUF_LONGLONG(0)) , firstframelength_(0u) , isanimated_(false){} struct StickerMessageDefaultTypeInternal { constexpr StickerMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_{}{} struct FourRowTemplateDefaultTypeInternal { constexpr FourRowTemplateDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_{}{} struct HydratedFourRowTemplateDefaultTypeInternal { constexpr HydratedFourRowTemplateDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_{}{} struct TemplateMessageDefaultTypeInternal { constexpr TemplateMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct TemplateButtonReplyMessageDefaultTypeInternal { constexpr TemplateButtonReplyMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct CatalogSnapshotDefaultTypeInternal { constexpr CatalogSnapshotDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_LONGLONG(0)) , productimagecount_(0u){} struct ProductSnapshotDefaultTypeInternal { constexpr ProductSnapshotDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct ProductMessageDefaultTypeInternal { constexpr ProductMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_LONGLONG(0)) , itemcount_(0) , status_(1) , surface_(1) {} struct OrderMessageDefaultTypeInternal { constexpr OrderMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct RowDefaultTypeInternal { constexpr RowDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct SectionDefaultTypeInternal { constexpr SectionDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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) {} struct ListMessageDefaultTypeInternal { constexpr ListMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct SingleSelectReplyDefaultTypeInternal { constexpr SingleSelectReplyDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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) {} struct ListResponseMessageDefaultTypeInternal { constexpr ListResponseMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_LONGLONG(0)){} struct GroupInviteMessageDefaultTypeInternal { constexpr GroupInviteMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_LONGLONG(0)) , ephemeralexpiration_(0u){} struct EphemeralSettingDefaultTypeInternal { constexpr EphemeralSettingDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct DeviceSentMessageDefaultTypeInternal { constexpr DeviceSentMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct FutureProofMessageDefaultTypeInternal { constexpr FutureProofMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct ButtonTextDefaultTypeInternal { constexpr ButtonTextDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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) {} struct ButtonDefaultTypeInternal { constexpr ButtonDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_{}{} struct ButtonsMessageDefaultTypeInternal { constexpr ButtonsMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_{}{} struct ButtonsResponseMessageDefaultTypeInternal { constexpr ButtonsResponseMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct MessageDefaultTypeInternal { constexpr MessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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){} struct MessageKeyDefaultTypeInternal { constexpr MessageKeyDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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) {} struct WebFeaturesDefaultTypeInternal { constexpr WebFeaturesDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_ULONGLONG(0)){} struct NotificationMessageInfoDefaultTypeInternal { constexpr NotificationMessageInfoDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_ULONGLONG(0)) , unreadchats_(0u) , notifymessagecount_(0u){} struct WebNotificationsInfoDefaultTypeInternal { constexpr WebNotificationsInfoDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_ULONGLONG(0)) , currencydeprecated_(0) , status_(0) , transactiontimestamp_(PROTOBUF_ULONGLONG(0)) , expirytimestamp_(PROTOBUF_ULONGLONG(0)) , futureproofed_(false) , usenovifiatformat_(false) , txnstatus_(0) {} struct PaymentInfoDefaultTypeInternal { constexpr PaymentInfoDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::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_(PROTOBUF_ULONGLONG(0)) , 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_(PROTOBUF_ULONGLONG(0)) , ephemeraloutofsync_(false) , bizprivacystatus_(0) {} struct WebMessageInfoDefaultTypeInternal { constexpr WebMessageInfoDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} ~WebMessageInfoDefaultTypeInternal() {} union { WebMessageInfo _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT 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; const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { PROTOBUF_FIELD_OFFSET(::proto::PaymentMoney, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::PaymentMoney, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::PaymentMoney, value_), PROTOBUF_FIELD_OFFSET(::proto::PaymentMoney, offset_), PROTOBUF_FIELD_OFFSET(::proto::PaymentMoney, currencycode_), 1, 2, 0, PROTOBUF_FIELD_OFFSET(::proto::HydratedQuickReplyButton, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HydratedQuickReplyButton, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::HydratedQuickReplyButton, displaytext_), PROTOBUF_FIELD_OFFSET(::proto::HydratedQuickReplyButton, id_), 0, 1, PROTOBUF_FIELD_OFFSET(::proto::HydratedURLButton, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HydratedURLButton, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::HydratedURLButton, displaytext_), PROTOBUF_FIELD_OFFSET(::proto::HydratedURLButton, url_), 0, 1, PROTOBUF_FIELD_OFFSET(::proto::HydratedCallButton, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HydratedCallButton, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::HydratedCallButton, displaytext_), PROTOBUF_FIELD_OFFSET(::proto::HydratedCallButton, phonenumber_), 0, 1, PROTOBUF_FIELD_OFFSET(::proto::HydratedTemplateButton, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HydratedTemplateButton, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::HydratedTemplateButton, _oneof_case_[0]), ~0u, // no _weak_field_map_ 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_), 0, ~0u, ~0u, ~0u, PROTOBUF_FIELD_OFFSET(::proto::QuickReplyButton, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::QuickReplyButton, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::QuickReplyButton, displaytext_), PROTOBUF_FIELD_OFFSET(::proto::QuickReplyButton, id_), 1, 0, PROTOBUF_FIELD_OFFSET(::proto::URLButton, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::URLButton, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::URLButton, displaytext_), PROTOBUF_FIELD_OFFSET(::proto::URLButton, url_), 0, 1, PROTOBUF_FIELD_OFFSET(::proto::CallButton, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::CallButton, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::CallButton, displaytext_), PROTOBUF_FIELD_OFFSET(::proto::CallButton, phonenumber_), 0, 1, PROTOBUF_FIELD_OFFSET(::proto::TemplateButton, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::TemplateButton, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::TemplateButton, _oneof_case_[0]), ~0u, // no _weak_field_map_ 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_), 0, ~0u, ~0u, ~0u, PROTOBUF_FIELD_OFFSET(::proto::Location, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::Location, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::Location, degreeslatitude_), PROTOBUF_FIELD_OFFSET(::proto::Location, degreeslongitude_), PROTOBUF_FIELD_OFFSET(::proto::Location, name_), 1, 2, 0, PROTOBUF_FIELD_OFFSET(::proto::Point, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::Point, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::Point, xdeprecated_), PROTOBUF_FIELD_OFFSET(::proto::Point, ydeprecated_), PROTOBUF_FIELD_OFFSET(::proto::Point, x_), PROTOBUF_FIELD_OFFSET(::proto::Point, y_), 0, 1, 2, 3, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::InteractiveAnnotation, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::InteractiveAnnotation, _oneof_case_[0]), ~0u, // no _weak_field_map_ 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::DeviceListMetadata, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, senderkeyhash_), PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, sendertimestamp_), PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, recipientkeyhash_), PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, recipienttimestamp_), 0, 2, 1, 3, PROTOBUF_FIELD_OFFSET(::proto::MessageContextInfo, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::MessageContextInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::MessageContextInfo, devicelistmetadata_), 0, PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, advertisername_), PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, mediatype_), PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, jpegthumbnail_), PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, caption_), 0, 3, 1, 2, PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 1, 8, 2, 3, 4, 5, 6, 7, PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 1, 6, 2, ~0u, 3, 4, 10, 11, 12, 7, 8, 13, 14, 5, 9, PROTOBUF_FIELD_OFFSET(::proto::SenderKeyDistributionMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::SenderKeyDistributionMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::SenderKeyDistributionMessage, groupid_), PROTOBUF_FIELD_OFFSET(::proto::SenderKeyDistributionMessage, axolotlsenderkeydistributionmessage_), 0, 1, PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 1, 2, 3, 16, 17, 18, 4, 5, ~0u, 6, 19, 7, 15, 8, 20, 21, 9, ~0u, 10, 11, 22, 12, 13, 14, PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 1, 9, 2, 3, 8, 4, 5, 6, 7, PROTOBUF_FIELD_OFFSET(::proto::ContactMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ContactMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::ContactMessage, displayname_), PROTOBUF_FIELD_OFFSET(::proto::ContactMessage, vcard_), PROTOBUF_FIELD_OFFSET(::proto::ContactMessage, contextinfo_), 0, 1, 2, PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 6, 7, 0, 1, 2, 8, 9, 10, 11, 3, 4, 5, PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 1, 2, 3, 4, 7, 8, 9, 10, 5, 6, 11, PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 1, 2, 3, 13, 14, 4, 5, 6, 7, 16, 15, 8, 9, 10, 11, 12, 17, 18, PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 1, 2, 8, 9, 10, 3, 4, 5, 11, 7, 6, PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 1, 2, 13, 14, 3, 4, 17, 15, 16, 5, ~0u, 6, 19, 7, 12, 8, 20, 18, 9, 10, 11, PROTOBUF_FIELD_OFFSET(::proto::Call, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::Call, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::Call, callkey_), 0, PROTOBUF_FIELD_OFFSET(::proto::Chat, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::Chat, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::Chat, displayname_), PROTOBUF_FIELD_OFFSET(::proto::Chat, id_), 0, 1, PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 6, 7, 8, 1, 2, 3, 4, 5, PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 5, 1, 2, 3, 6, 7, 4, PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKey, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKey, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKey, keyid_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKey, keydata_), 0, 1, PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyId, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyId, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyId, keyid_), 0, PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, rawid_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, currentindex_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, deviceindexes_), 0, 1, ~0u, PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyData, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyData, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyData, keydata_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyData, fingerprint_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyData, timestamp_), 0, 1, 2, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyShare, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyShare, keys_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyRequest, keyids_), PROTOBUF_FIELD_OFFSET(::proto::AppStateFatalExceptionNotification, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::AppStateFatalExceptionNotification, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::AppStateFatalExceptionNotification, collectionnames_), PROTOBUF_FIELD_OFFSET(::proto::AppStateFatalExceptionNotification, timestamp_), ~0u, 0, PROTOBUF_FIELD_OFFSET(::proto::InitialSecurityNotificationSettingSync, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::InitialSecurityNotificationSettingSync, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::InitialSecurityNotificationSettingSync, securitynotificationenabled_), 0, PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, displayname_), PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, contacts_), PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, contextinfo_), 0, ~0u, 1, PROTOBUF_FIELD_OFFSET(::proto::HSMCurrency, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HSMCurrency, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::HSMCurrency, currencycode_), PROTOBUF_FIELD_OFFSET(::proto::HSMCurrency, amount1000_), 0, 1, PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 5, 0, 1, 2, 3, 4, 6, PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeUnixEpoch, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeUnixEpoch, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeUnixEpoch, timestamp_), 0, ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::proto::HSMDateTime, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::HSMDateTime, _oneof_case_[0]), ~0u, // no _weak_field_map_ ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::proto::HSMDateTime, datetimeOneof_), PROTOBUF_FIELD_OFFSET(::proto::HSMLocalizableParameter, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HSMLocalizableParameter, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::HSMLocalizableParameter, _oneof_case_[0]), ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::HSMLocalizableParameter, default__), ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::proto::HSMLocalizableParameter, paramOneof_), 0, ~0u, ~0u, PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 1, ~0u, 2, 3, ~0u, 4, 5, 6, PROTOBUF_FIELD_OFFSET(::proto::SendPaymentMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::SendPaymentMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::SendPaymentMessage, notemessage_), PROTOBUF_FIELD_OFFSET(::proto::SendPaymentMessage, requestmessagekey_), 0, 1, PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 2, 0, 4, 1, 5, 3, PROTOBUF_FIELD_OFFSET(::proto::DeclinePaymentRequestMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::DeclinePaymentRequestMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::DeclinePaymentRequestMessage, key_), 0, PROTOBUF_FIELD_OFFSET(::proto::CancelPaymentRequestMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::CancelPaymentRequestMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::CancelPaymentRequestMessage, key_), 0, PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 3, 4, 5, 6, 7, 0, 9, 8, 1, 2, PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 1, 2, 3, 4, 9, 10, 5, 11, 12, 13, 6, 14, 7, 8, PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, _oneof_case_[0]), ~0u, // no _weak_field_map_ 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_), 0, 1, ~0u, ~0u, ~0u, ~0u, ~0u, ~0u, PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, _oneof_case_[0]), ~0u, // no _weak_field_map_ 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_), 0, 1, ~0u, 2, ~0u, ~0u, ~0u, ~0u, ~0u, PROTOBUF_FIELD_OFFSET(::proto::TemplateMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::TemplateMessage, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::TemplateMessage, _oneof_case_[0]), ~0u, // no _weak_field_map_ 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_), 0, 1, ~0u, ~0u, PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, selectedid_), PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, selecteddisplaytext_), PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, contextinfo_), PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, selectedindex_), 0, 1, 2, 3, PROTOBUF_FIELD_OFFSET(::proto::CatalogSnapshot, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::CatalogSnapshot, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::CatalogSnapshot, catalogimage_), PROTOBUF_FIELD_OFFSET(::proto::CatalogSnapshot, title_), PROTOBUF_FIELD_OFFSET(::proto::CatalogSnapshot, description_), 2, 0, 1, PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 7, 0, 1, 2, 3, 8, 4, 5, 9, 6, PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, product_), PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, businessownerjid_), PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, catalog_), PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, contextinfo_), 1, 0, 2, 3, PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 1, 9, 10, 11, 2, 3, 4, 5, 8, 6, 7, PROTOBUF_FIELD_OFFSET(::proto::Row, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::Row, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::Row, title_), PROTOBUF_FIELD_OFFSET(::proto::Row, description_), PROTOBUF_FIELD_OFFSET(::proto::Row, rowid_), 0, 1, 2, PROTOBUF_FIELD_OFFSET(::proto::Section, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::Section, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::Section, title_), PROTOBUF_FIELD_OFFSET(::proto::Section, rows_), 0, ~0u, PROTOBUF_FIELD_OFFSET(::proto::ListMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ListMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 1, 2, 3, ~0u, PROTOBUF_FIELD_OFFSET(::proto::SingleSelectReply, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::SingleSelectReply, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::SingleSelectReply, selectedrowid_), 0, PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 4, 2, 3, 1, PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 1, 6, 2, 3, 4, 5, PROTOBUF_FIELD_OFFSET(::proto::EphemeralSetting, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::EphemeralSetting, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::EphemeralSetting, chatjid_), PROTOBUF_FIELD_OFFSET(::proto::EphemeralSetting, ephemeralexpiration_), PROTOBUF_FIELD_OFFSET(::proto::EphemeralSetting, ephemeralsettingtimestamp_), 0, 2, 1, PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, destinationjid_), PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, message_), PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, phash_), PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, broadcastephemeralsettings_), 0, 2, 1, ~0u, PROTOBUF_FIELD_OFFSET(::proto::FutureProofMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::FutureProofMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::FutureProofMessage, message_), 0, PROTOBUF_FIELD_OFFSET(::proto::ButtonText, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ButtonText, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::ButtonText, displaytext_), 0, PROTOBUF_FIELD_OFFSET(::proto::Button, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::Button, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::Button, buttonid_), PROTOBUF_FIELD_OFFSET(::proto::Button, buttontext_), PROTOBUF_FIELD_OFFSET(::proto::Button, type_), 0, 1, 2, PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, _oneof_case_[0]), ~0u, // no _weak_field_map_ 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_), 0, 1, 2, ~0u, 3, ~0u, ~0u, ~0u, ~0u, ~0u, PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, _oneof_case_[0]), ~0u, // no _weak_field_map_ 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_), 0, 1, 2, ~0u, PROTOBUF_FIELD_OFFSET(::proto::Message, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::Message, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, PROTOBUF_FIELD_OFFSET(::proto::MessageKey, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::MessageKey, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::MessageKey, remotejid_), PROTOBUF_FIELD_OFFSET(::proto::MessageKey, fromme_), PROTOBUF_FIELD_OFFSET(::proto::MessageKey, id_), PROTOBUF_FIELD_OFFSET(::proto::MessageKey, participant_), 0, 3, 1, 2, PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, key_), PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, message_), PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, messagetimestamp_), PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, participant_), 1, 2, 3, 0, PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, timestamp_), PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, unreadchats_), PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, notifymessagecount_), PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, notifymessages_), 0, 1, 2, ~0u, PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 6, 5, 0, 7, 8, 2, 9, 10, 1, 12, 11, 3, 4, PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _has_bits_), PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ 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_), 4, 5, 9, 10, 0, 11, 12, 13, 1, 2, 14, 16, 17, 15, 18, ~0u, 20, ~0u, 6, 7, 8, 22, 21, 19, 23, 24, 3, }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, 8, sizeof(::proto::PaymentMoney)}, { 11, 18, sizeof(::proto::HydratedQuickReplyButton)}, { 20, 27, sizeof(::proto::HydratedURLButton)}, { 29, 36, sizeof(::proto::HydratedCallButton)}, { 38, 48, sizeof(::proto::HydratedTemplateButton)}, { 52, 59, sizeof(::proto::QuickReplyButton)}, { 61, 68, sizeof(::proto::URLButton)}, { 70, 77, sizeof(::proto::CallButton)}, { 79, 89, sizeof(::proto::TemplateButton)}, { 93, 101, sizeof(::proto::Location)}, { 104, 113, sizeof(::proto::Point)}, { 117, -1, sizeof(::proto::InteractiveAnnotation)}, { 125, 134, sizeof(::proto::DeviceListMetadata)}, { 138, 144, sizeof(::proto::MessageContextInfo)}, { 145, 154, sizeof(::proto::AdReplyInfo)}, { 158, 172, sizeof(::proto::ExternalAdReplyInfo)}, { 181, 202, sizeof(::proto::ContextInfo)}, { 218, 225, sizeof(::proto::SenderKeyDistributionMessage)}, { 227, 257, sizeof(::proto::ImageMessage)}, { 282, 297, sizeof(::proto::InvoiceMessage)}, { 307, 315, sizeof(::proto::ContactMessage)}, { 318, 335, sizeof(::proto::LocationMessage)}, { 347, 364, sizeof(::proto::ExtendedTextMessage)}, { 376, 400, sizeof(::proto::DocumentMessage)}, { 419, 436, sizeof(::proto::AudioMessage)}, { 448, 475, sizeof(::proto::VideoMessage)}, { 497, 503, sizeof(::proto::Call)}, { 504, 511, sizeof(::proto::Chat)}, { 513, 527, sizeof(::proto::ProtocolMessage)}, { 536, 549, sizeof(::proto::HistorySyncNotification)}, { 557, 564, sizeof(::proto::AppStateSyncKey)}, { 566, 572, sizeof(::proto::AppStateSyncKeyId)}, { 573, 581, sizeof(::proto::AppStateSyncKeyFingerprint)}, { 584, 592, sizeof(::proto::AppStateSyncKeyData)}, { 595, -1, sizeof(::proto::AppStateSyncKeyShare)}, { 601, -1, sizeof(::proto::AppStateSyncKeyRequest)}, { 607, 614, sizeof(::proto::AppStateFatalExceptionNotification)}, { 616, 622, sizeof(::proto::InitialSecurityNotificationSettingSync)}, { 623, 631, sizeof(::proto::ContactsArrayMessage)}, { 634, 641, sizeof(::proto::HSMCurrency)}, { 643, 655, sizeof(::proto::HSMDateTimeComponent)}, { 662, 668, sizeof(::proto::HSMDateTimeUnixEpoch)}, { 669, -1, sizeof(::proto::HSMDateTime)}, { 677, 686, sizeof(::proto::HSMLocalizableParameter)}, { 689, 703, sizeof(::proto::HighlyStructuredMessage)}, { 712, 719, sizeof(::proto::SendPaymentMessage)}, { 721, 732, sizeof(::proto::RequestPaymentMessage)}, { 738, 744, sizeof(::proto::DeclinePaymentRequestMessage)}, { 745, 751, sizeof(::proto::CancelPaymentRequestMessage)}, { 752, 767, sizeof(::proto::LiveLocationMessage)}, { 777, 797, sizeof(::proto::StickerMessage)}, { 812, 826, sizeof(::proto::FourRowTemplate)}, { 834, 849, sizeof(::proto::HydratedFourRowTemplate)}, { 858, 868, sizeof(::proto::TemplateMessage)}, { 872, 881, sizeof(::proto::TemplateButtonReplyMessage)}, { 885, 893, sizeof(::proto::CatalogSnapshot)}, { 896, 911, sizeof(::proto::ProductSnapshot)}, { 921, 930, sizeof(::proto::ProductMessage)}, { 934, 951, sizeof(::proto::OrderMessage)}, { 963, 971, sizeof(::proto::Row)}, { 974, 981, sizeof(::proto::Section)}, { 983, 993, sizeof(::proto::ListMessage)}, { 998, 1004, sizeof(::proto::SingleSelectReply)}, { 1005, 1015, sizeof(::proto::ListResponseMessage)}, { 1020, 1032, sizeof(::proto::GroupInviteMessage)}, { 1039, 1047, sizeof(::proto::EphemeralSetting)}, { 1050, 1059, sizeof(::proto::DeviceSentMessage)}, { 1063, 1069, sizeof(::proto::FutureProofMessage)}, { 1070, 1076, sizeof(::proto::ButtonText)}, { 1077, 1085, sizeof(::proto::Button)}, { 1088, 1104, sizeof(::proto::ButtonsMessage)}, { 1114, 1124, sizeof(::proto::ButtonsResponseMessage)}, { 1128, 1168, sizeof(::proto::Message)}, { 1203, 1212, sizeof(::proto::MessageKey)}, { 1216, 1261, sizeof(::proto::WebFeatures)}, { 1301, 1310, sizeof(::proto::NotificationMessageInfo)}, { 1314, 1323, sizeof(::proto::WebNotificationsInfo)}, { 1327, 1345, sizeof(::proto::PaymentInfo)}, { 1358, 1390, sizeof(::proto::WebMessageInfo)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { reinterpret_cast(&::proto::_PaymentMoney_default_instance_), reinterpret_cast(&::proto::_HydratedQuickReplyButton_default_instance_), reinterpret_cast(&::proto::_HydratedURLButton_default_instance_), reinterpret_cast(&::proto::_HydratedCallButton_default_instance_), reinterpret_cast(&::proto::_HydratedTemplateButton_default_instance_), reinterpret_cast(&::proto::_QuickReplyButton_default_instance_), reinterpret_cast(&::proto::_URLButton_default_instance_), reinterpret_cast(&::proto::_CallButton_default_instance_), reinterpret_cast(&::proto::_TemplateButton_default_instance_), reinterpret_cast(&::proto::_Location_default_instance_), reinterpret_cast(&::proto::_Point_default_instance_), reinterpret_cast(&::proto::_InteractiveAnnotation_default_instance_), reinterpret_cast(&::proto::_DeviceListMetadata_default_instance_), reinterpret_cast(&::proto::_MessageContextInfo_default_instance_), reinterpret_cast(&::proto::_AdReplyInfo_default_instance_), reinterpret_cast(&::proto::_ExternalAdReplyInfo_default_instance_), reinterpret_cast(&::proto::_ContextInfo_default_instance_), reinterpret_cast(&::proto::_SenderKeyDistributionMessage_default_instance_), reinterpret_cast(&::proto::_ImageMessage_default_instance_), reinterpret_cast(&::proto::_InvoiceMessage_default_instance_), reinterpret_cast(&::proto::_ContactMessage_default_instance_), reinterpret_cast(&::proto::_LocationMessage_default_instance_), reinterpret_cast(&::proto::_ExtendedTextMessage_default_instance_), reinterpret_cast(&::proto::_DocumentMessage_default_instance_), reinterpret_cast(&::proto::_AudioMessage_default_instance_), reinterpret_cast(&::proto::_VideoMessage_default_instance_), reinterpret_cast(&::proto::_Call_default_instance_), reinterpret_cast(&::proto::_Chat_default_instance_), reinterpret_cast(&::proto::_ProtocolMessage_default_instance_), reinterpret_cast(&::proto::_HistorySyncNotification_default_instance_), reinterpret_cast(&::proto::_AppStateSyncKey_default_instance_), reinterpret_cast(&::proto::_AppStateSyncKeyId_default_instance_), reinterpret_cast(&::proto::_AppStateSyncKeyFingerprint_default_instance_), reinterpret_cast(&::proto::_AppStateSyncKeyData_default_instance_), reinterpret_cast(&::proto::_AppStateSyncKeyShare_default_instance_), reinterpret_cast(&::proto::_AppStateSyncKeyRequest_default_instance_), reinterpret_cast(&::proto::_AppStateFatalExceptionNotification_default_instance_), reinterpret_cast(&::proto::_InitialSecurityNotificationSettingSync_default_instance_), reinterpret_cast(&::proto::_ContactsArrayMessage_default_instance_), reinterpret_cast(&::proto::_HSMCurrency_default_instance_), reinterpret_cast(&::proto::_HSMDateTimeComponent_default_instance_), reinterpret_cast(&::proto::_HSMDateTimeUnixEpoch_default_instance_), reinterpret_cast(&::proto::_HSMDateTime_default_instance_), reinterpret_cast(&::proto::_HSMLocalizableParameter_default_instance_), reinterpret_cast(&::proto::_HighlyStructuredMessage_default_instance_), reinterpret_cast(&::proto::_SendPaymentMessage_default_instance_), reinterpret_cast(&::proto::_RequestPaymentMessage_default_instance_), reinterpret_cast(&::proto::_DeclinePaymentRequestMessage_default_instance_), reinterpret_cast(&::proto::_CancelPaymentRequestMessage_default_instance_), reinterpret_cast(&::proto::_LiveLocationMessage_default_instance_), reinterpret_cast(&::proto::_StickerMessage_default_instance_), reinterpret_cast(&::proto::_FourRowTemplate_default_instance_), reinterpret_cast(&::proto::_HydratedFourRowTemplate_default_instance_), reinterpret_cast(&::proto::_TemplateMessage_default_instance_), reinterpret_cast(&::proto::_TemplateButtonReplyMessage_default_instance_), reinterpret_cast(&::proto::_CatalogSnapshot_default_instance_), reinterpret_cast(&::proto::_ProductSnapshot_default_instance_), reinterpret_cast(&::proto::_ProductMessage_default_instance_), reinterpret_cast(&::proto::_OrderMessage_default_instance_), reinterpret_cast(&::proto::_Row_default_instance_), reinterpret_cast(&::proto::_Section_default_instance_), reinterpret_cast(&::proto::_ListMessage_default_instance_), reinterpret_cast(&::proto::_SingleSelectReply_default_instance_), reinterpret_cast(&::proto::_ListResponseMessage_default_instance_), reinterpret_cast(&::proto::_GroupInviteMessage_default_instance_), reinterpret_cast(&::proto::_EphemeralSetting_default_instance_), reinterpret_cast(&::proto::_DeviceSentMessage_default_instance_), reinterpret_cast(&::proto::_FutureProofMessage_default_instance_), reinterpret_cast(&::proto::_ButtonText_default_instance_), reinterpret_cast(&::proto::_Button_default_instance_), reinterpret_cast(&::proto::_ButtonsMessage_default_instance_), reinterpret_cast(&::proto::_ButtonsResponseMessage_default_instance_), reinterpret_cast(&::proto::_Message_default_instance_), reinterpret_cast(&::proto::_MessageKey_default_instance_), reinterpret_cast(&::proto::_WebFeatures_default_instance_), reinterpret_cast(&::proto::_NotificationMessageInfo_default_instance_), reinterpret_cast(&::proto::_WebNotificationsInfo_default_instance_), reinterpret_cast(&::proto::_PaymentInfo_default_instance_), reinterpret_cast(&::proto::_WebMessageInfo_default_instance_), }; const char descriptor_table_protodef_pmsg_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\npmsg.proto\022\005proto\"C\n\014PaymentMoney\022\r\n\005v" "alue\030\001 \001(\003\022\016\n\006offset\030\002 \001(\r\022\024\n\014currencyCo" "de\030\003 \001(\t\";\n\030HydratedQuickReplyButton\022\023\n\013" "displayText\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\"5\n\021Hydrate" "dURLButton\022\023\n\013displayText\030\001 \001(\t\022\013\n\003url\030\002" " \001(\t\">\n\022HydratedCallButton\022\023\n\013displayTex" "t\030\001 \001(\t\022\023\n\013phoneNumber\030\002 \001(\t\"\326\001\n\026Hydrate" "dTemplateButton\022\r\n\005index\030\004 \001(\r\022;\n\020quickR" "eplyButton\030\001 \001(\0132\037.proto.HydratedQuickRe" "plyButtonH\000\022-\n\turlButton\030\002 \001(\0132\030.proto.H" "ydratedURLButtonH\000\022/\n\ncallButton\030\003 \001(\0132\031" ".proto.HydratedCallButtonH\000B\020\n\016hydratedB" "utton\"S\n\020QuickReplyButton\0223\n\013displayText" "\030\001 \001(\0132\036.proto.HighlyStructuredMessage\022\n" "\n\002id\030\002 \001(\t\"m\n\tURLButton\0223\n\013displayText\030\001" " \001(\0132\036.proto.HighlyStructuredMessage\022+\n\003" "url\030\002 \001(\0132\036.proto.HighlyStructuredMessag" "e\"v\n\nCallButton\0223\n\013displayText\030\001 \001(\0132\036.p" "roto.HighlyStructuredMessage\0223\n\013phoneNum" "ber\030\002 \001(\0132\036.proto.HighlyStructuredMessag" "e\"\256\001\n\016TemplateButton\022\r\n\005index\030\004 \001(\r\0223\n\020q" "uickReplyButton\030\001 \001(\0132\027.proto.QuickReply" "ButtonH\000\022%\n\turlButton\030\002 \001(\0132\020.proto.URLB" "uttonH\000\022\'\n\ncallButton\030\003 \001(\0132\021.proto.Call" "ButtonH\000B\010\n\006button\"K\n\010Location\022\027\n\017degree" "sLatitude\030\001 \001(\001\022\030\n\020degreesLongitude\030\002 \001(" "\001\022\014\n\004name\030\003 \001(\t\"G\n\005Point\022\023\n\013xDeprecated\030" "\001 \001(\005\022\023\n\013yDeprecated\030\002 \001(\005\022\t\n\001x\030\003 \001(\001\022\t\n" "\001y\030\004 \001(\001\"m\n\025InteractiveAnnotation\022%\n\017pol" "ygonVertices\030\001 \003(\0132\014.proto.Point\022#\n\010loca" "tion\030\002 \001(\0132\017.proto.LocationH\000B\010\n\006action\"" "z\n\022DeviceListMetadata\022\025\n\rsenderKeyHash\030\001" " \001(\014\022\027\n\017senderTimestamp\030\002 \001(\004\022\030\n\020recipie" "ntKeyHash\030\010 \001(\014\022\032\n\022recipientTimestamp\030\t " "\001(\004\"K\n\022MessageContextInfo\0225\n\022deviceListM" "etadata\030\001 \001(\0132\031.proto.DeviceListMetadata" "\"\301\001\n\013AdReplyInfo\022\026\n\016advertiserName\030\001 \001(\t" "\022:\n\tmediaType\030\002 \001(\0162\'.proto.AdReplyInfo." "AdReplyInfoMediaType\022\025\n\rjpegThumbnail\030\020 " "\001(\014\022\017\n\007caption\030\021 \001(\t\"6\n\024AdReplyInfoMedia" "Type\022\010\n\004NONE\020\000\022\t\n\005IMAGE\020\001\022\t\n\005VIDEO\020\002\"\262\002\n" "\023ExternalAdReplyInfo\022\r\n\005title\030\001 \001(\t\022\014\n\004b" "ody\030\002 \001(\t\022J\n\tmediaType\030\003 \001(\01627.proto.Ext" "ernalAdReplyInfo.ExternalAdReplyInfoMedi" "aType\022\024\n\014thumbnailUrl\030\004 \001(\t\022\020\n\010mediaUrl\030" "\005 \001(\t\022\021\n\tthumbnail\030\006 \001(\014\022\022\n\nsourceType\030\007" " \001(\t\022\020\n\010sourceId\030\010 \001(\t\022\021\n\tsourceUrl\030\t \001(" "\t\">\n\034ExternalAdReplyInfoMediaType\022\010\n\004NON" "E\020\000\022\t\n\005IMAGE\020\001\022\t\n\005VIDEO\020\002\"\340\003\n\013ContextInf" "o\022\020\n\010stanzaId\030\001 \001(\t\022\023\n\013participant\030\002 \001(\t" "\022%\n\rquotedMessage\030\003 \001(\0132\016.proto.Message\022" "\021\n\tremoteJid\030\004 \001(\t\022\024\n\014mentionedJid\030\017 \003(\t" "\022\030\n\020conversionSource\030\022 \001(\t\022\026\n\016conversion" "Data\030\023 \001(\014\022\036\n\026conversionDelaySeconds\030\024 \001" "(\r\022\027\n\017forwardingScore\030\025 \001(\r\022\023\n\013isForward" "ed\030\026 \001(\010\022$\n\010quotedAd\030\027 \001(\0132\022.proto.AdRep" "lyInfo\022)\n\016placeholderKey\030\030 \001(\0132\021.proto.M" "essageKey\022\022\n\nexpiration\030\031 \001(\r\022!\n\031ephemer" "alSettingTimestamp\030\032 \001(\003\022\035\n\025ephemeralSha" "redSecret\030\033 \001(\014\0223\n\017externalAdReply\030\034 \001(\013" "2\032.proto.ExternalAdReplyInfo\"\\\n\034SenderKe" "yDistributionMessage\022\017\n\007groupId\030\001 \001(\t\022+\n" "#axolotlSenderKeyDistributionMessage\030\002 \001" "(\014\"\367\004\n\014ImageMessage\022\013\n\003url\030\001 \001(\t\022\020\n\010mime" "type\030\002 \001(\t\022\017\n\007caption\030\003 \001(\t\022\022\n\nfileSha25" "6\030\004 \001(\014\022\022\n\nfileLength\030\005 \001(\004\022\016\n\006height\030\006 " "\001(\r\022\r\n\005width\030\007 \001(\r\022\020\n\010mediaKey\030\010 \001(\014\022\025\n\r" "fileEncSha256\030\t \001(\014\022<\n\026interactiveAnnota" "tions\030\n \003(\0132\034.proto.InteractiveAnnotatio" "n\022\022\n\ndirectPath\030\013 \001(\t\022\031\n\021mediaKeyTimesta" "mp\030\014 \001(\003\022\025\n\rjpegThumbnail\030\020 \001(\014\022\'\n\013conte" "xtInfo\030\021 \001(\0132\022.proto.ContextInfo\022\030\n\020firs" "tScanSidecar\030\022 \001(\014\022\027\n\017firstScanLength\030\023 " "\001(\r\022\031\n\021experimentGroupId\030\024 \001(\r\022\024\n\014scansS" "idecar\030\025 \001(\014\022\023\n\013scanLengths\030\026 \003(\r\022\034\n\024mid" "QualityFileSha256\030\027 \001(\014\022\037\n\027midQualityFil" "eEncSha256\030\030 \001(\014\022\020\n\010viewOnce\030\031 \001(\010\022\033\n\023th" "umbnailDirectPath\030\032 \001(\t\022\027\n\017thumbnailSha2" "56\030\033 \001(\014\022\032\n\022thumbnailEncSha256\030\034 \001(\014\"\210\003\n" "\016InvoiceMessage\022\014\n\004note\030\001 \001(\t\022\r\n\005token\030\002" " \001(\t\022J\n\016attachmentType\030\003 \001(\01622.proto.Inv" "oiceMessage.InvoiceMessageAttachmentType" "\022\032\n\022attachmentMimetype\030\004 \001(\t\022\032\n\022attachme" "ntMediaKey\030\005 \001(\014\022#\n\033attachmentMediaKeyTi" "mestamp\030\006 \001(\003\022\034\n\024attachmentFileSha256\030\007 " "\001(\014\022\037\n\027attachmentFileEncSha256\030\010 \001(\014\022\034\n\024" "attachmentDirectPath\030\t \001(\t\022\037\n\027attachment" "JpegThumbnail\030\n \001(\014\"2\n\034InvoiceMessageAtt" "achmentType\022\t\n\005IMAGE\020\000\022\007\n\003PDF\020\001\"]\n\016Conta" "ctMessage\022\023\n\013displayName\030\001 \001(\t\022\r\n\005vcard\030" "\020 \001(\t\022\'\n\013contextInfo\030\021 \001(\0132\022.proto.Conte" "xtInfo\"\252\002\n\017LocationMessage\022\027\n\017degreesLat" "itude\030\001 \001(\001\022\030\n\020degreesLongitude\030\002 \001(\001\022\014\n" "\004name\030\003 \001(\t\022\017\n\007address\030\004 \001(\t\022\013\n\003url\030\005 \001(" "\t\022\016\n\006isLive\030\006 \001(\010\022\030\n\020accuracyInMeters\030\007 " "\001(\r\022\022\n\nspeedInMps\030\010 \001(\002\022)\n!degreesClockw" "iseFromMagneticNorth\030\t \001(\r\022\017\n\007comment\030\013 " "\001(\t\022\025\n\rjpegThumbnail\030\020 \001(\014\022\'\n\013contextInf" "o\030\021 \001(\0132\022.proto.ContextInfo\"\316\004\n\023Extended" "TextMessage\022\014\n\004text\030\001 \001(\t\022\023\n\013matchedText" "\030\002 \001(\t\022\024\n\014canonicalUrl\030\004 \001(\t\022\023\n\013descript" "ion\030\005 \001(\t\022\r\n\005title\030\006 \001(\t\022\020\n\010textArgb\030\007 \001" "(\007\022\026\n\016backgroundArgb\030\010 \001(\007\022D\n\004font\030\t \001(\016" "26.proto.ExtendedTextMessage.ExtendedTex" "tMessageFontType\022N\n\013previewType\030\n \001(\01629." "proto.ExtendedTextMessage.ExtendedTextMe" "ssagePreviewType\022\025\n\rjpegThumbnail\030\020 \001(\014\022" "\'\n\013contextInfo\030\021 \001(\0132\022.proto.ContextInfo" "\022\027\n\017doNotPlayInline\030\022 \001(\010\"\211\001\n\033ExtendedTe" "xtMessageFontType\022\016\n\nSANS_SERIF\020\000\022\t\n\005SER" "IF\020\001\022\023\n\017NORICAN_REGULAR\020\002\022\021\n\rBRYNDAN_WRI" "TE\020\003\022\025\n\021BEBASNEUE_REGULAR\020\004\022\020\n\014OSWALD_HE" "AVY\020\005\"5\n\036ExtendedTextMessagePreviewType\022" "\010\n\004NONE\020\000\022\t\n\005VIDEO\020\001\"\275\003\n\017DocumentMessage" "\022\013\n\003url\030\001 \001(\t\022\020\n\010mimetype\030\002 \001(\t\022\r\n\005title" "\030\003 \001(\t\022\022\n\nfileSha256\030\004 \001(\014\022\022\n\nfileLength" "\030\005 \001(\004\022\021\n\tpageCount\030\006 \001(\r\022\020\n\010mediaKey\030\007 " "\001(\014\022\020\n\010fileName\030\010 \001(\t\022\025\n\rfileEncSha256\030\t" " \001(\014\022\022\n\ndirectPath\030\n \001(\t\022\031\n\021mediaKeyTime" "stamp\030\013 \001(\003\022\024\n\014contactVcard\030\014 \001(\010\022\033\n\023thu" "mbnailDirectPath\030\r \001(\t\022\027\n\017thumbnailSha25" "6\030\016 \001(\014\022\032\n\022thumbnailEncSha256\030\017 \001(\014\022\025\n\rj" "pegThumbnail\030\020 \001(\014\022\'\n\013contextInfo\030\021 \001(\0132" "\022.proto.ContextInfo\022\027\n\017thumbnailHeight\030\022" " \001(\r\022\026\n\016thumbnailWidth\030\023 \001(\r\"\216\002\n\014AudioMe" "ssage\022\013\n\003url\030\001 \001(\t\022\020\n\010mimetype\030\002 \001(\t\022\022\n\n" "fileSha256\030\003 \001(\014\022\022\n\nfileLength\030\004 \001(\004\022\017\n\007" "seconds\030\005 \001(\r\022\013\n\003ptt\030\006 \001(\010\022\020\n\010mediaKey\030\007" " \001(\014\022\025\n\rfileEncSha256\030\010 \001(\014\022\022\n\ndirectPat" "h\030\t \001(\t\022\031\n\021mediaKeyTimestamp\030\n \001(\003\022\'\n\013co" "ntextInfo\030\021 \001(\0132\022.proto.ContextInfo\022\030\n\020s" "treamingSidecar\030\022 \001(\014\"\377\004\n\014VideoMessage\022\013" "\n\003url\030\001 \001(\t\022\020\n\010mimetype\030\002 \001(\t\022\022\n\nfileSha" "256\030\003 \001(\014\022\022\n\nfileLength\030\004 \001(\004\022\017\n\007seconds" "\030\005 \001(\r\022\020\n\010mediaKey\030\006 \001(\014\022\017\n\007caption\030\007 \001(" "\t\022\023\n\013gifPlayback\030\010 \001(\010\022\016\n\006height\030\t \001(\r\022\r" "\n\005width\030\n \001(\r\022\025\n\rfileEncSha256\030\013 \001(\014\022<\n\026" "interactiveAnnotations\030\014 \003(\0132\034.proto.Int" "eractiveAnnotation\022\022\n\ndirectPath\030\r \001(\t\022\031" "\n\021mediaKeyTimestamp\030\016 \001(\003\022\025\n\rjpegThumbna" "il\030\020 \001(\014\022\'\n\013contextInfo\030\021 \001(\0132\022.proto.Co" "ntextInfo\022\030\n\020streamingSidecar\030\022 \001(\014\022C\n\016g" "ifAttribution\030\023 \001(\0162+.proto.VideoMessage" ".VideoMessageAttribution\022\020\n\010viewOnce\030\024 \001" "(\010\022\033\n\023thumbnailDirectPath\030\025 \001(\t\022\027\n\017thumb" "nailSha256\030\026 \001(\014\022\032\n\022thumbnailEncSha256\030\027" " \001(\014\"9\n\027VideoMessageAttribution\022\010\n\004NONE\020" "\000\022\t\n\005GIPHY\020\001\022\t\n\005TENOR\020\002\"\027\n\004Call\022\017\n\007callK" "ey\030\001 \001(\014\"\'\n\004Chat\022\023\n\013displayName\030\001 \001(\t\022\n\n" "\002id\030\002 \001(\t\"\316\006\n\017ProtocolMessage\022\036\n\003key\030\001 \001" "(\0132\021.proto.MessageKey\0228\n\004type\030\002 \001(\0162*.pr" "oto.ProtocolMessage.ProtocolMessageType\022" "\033\n\023ephemeralExpiration\030\004 \001(\r\022!\n\031ephemera" "lSettingTimestamp\030\005 \001(\003\022\?\n\027historySyncNo" "tification\030\006 \001(\0132\036.proto.HistorySyncNoti" "fication\0229\n\024appStateSyncKeyShare\030\007 \001(\0132\033" ".proto.AppStateSyncKeyShare\022=\n\026appStateS" "yncKeyRequest\030\010 \001(\0132\035.proto.AppStateSync" "KeyRequest\022]\n&initialSecurityNotificatio" "nSettingSync\030\t \001(\0132-.proto.InitialSecuri" "tyNotificationSettingSync\022U\n\"appStateFat" "alExceptionNotification\030\n \001(\0132).proto.Ap" "pStateFatalExceptionNotification\"\257\002\n\023Pro" "tocolMessageType\022\n\n\006REVOKE\020\000\022\025\n\021EPHEMERA" "L_SETTING\020\003\022\033\n\027EPHEMERAL_SYNC_RESPONSE\020\004" "\022\035\n\031HISTORY_SYNC_NOTIFICATION\020\005\022\034\n\030APP_S" "TATE_SYNC_KEY_SHARE\020\006\022\036\n\032APP_STATE_SYNC_" "KEY_REQUEST\020\007\022\037\n\033MSG_FANOUT_BACKFILL_REQ" "UEST\020\010\022.\n*INITIAL_SECURITY_NOTIFICATION_" "SETTING_SYNC\020\t\022*\n&APP_STATE_FATAL_EXCEPT" "ION_NOTIFICATION\020\n\"\203\003\n\027HistorySyncNotifi" "cation\022\022\n\nfileSha256\030\001 \001(\014\022\022\n\nfileLength" "\030\002 \001(\004\022\020\n\010mediaKey\030\003 \001(\014\022\025\n\rfileEncSha25" "6\030\004 \001(\014\022\022\n\ndirectPath\030\005 \001(\t\022W\n\010syncType\030" "\006 \001(\0162E.proto.HistorySyncNotification.Hi" "storySyncNotificationHistorySyncType\022\022\n\n" "chunkOrder\030\007 \001(\r\022\031\n\021originalMessageId\030\010 " "\001(\t\"{\n&HistorySyncNotificationHistorySyn" "cType\022\025\n\021INITIAL_BOOTSTRAP\020\000\022\025\n\021INITIAL_" "STATUS_V3\020\001\022\010\n\004FULL\020\002\022\n\n\006RECENT\020\003\022\r\n\tPUS" "H_NAME\020\004\"g\n\017AppStateSyncKey\022\'\n\005keyId\030\001 \001" "(\0132\030.proto.AppStateSyncKeyId\022+\n\007keyData\030" "\002 \001(\0132\032.proto.AppStateSyncKeyData\"\"\n\021App" "StateSyncKeyId\022\r\n\005keyId\030\001 \001(\014\"\\\n\032AppStat" "eSyncKeyFingerprint\022\r\n\005rawId\030\001 \001(\r\022\024\n\014cu" "rrentIndex\030\002 \001(\r\022\031\n\rdeviceIndexes\030\003 \003(\rB" "\002\020\001\"q\n\023AppStateSyncKeyData\022\017\n\007keyData\030\001 " "\001(\014\0226\n\013fingerprint\030\002 \001(\0132!.proto.AppStat" "eSyncKeyFingerprint\022\021\n\ttimestamp\030\003 \001(\003\"<" "\n\024AppStateSyncKeyShare\022$\n\004keys\030\001 \003(\0132\026.p" "roto.AppStateSyncKey\"B\n\026AppStateSyncKeyR" "equest\022(\n\006keyIds\030\001 \003(\0132\030.proto.AppStateS" "yncKeyId\"P\n\"AppStateFatalExceptionNotifi" "cation\022\027\n\017collectionNames\030\001 \003(\t\022\021\n\ttimes" "tamp\030\002 \001(\003\"M\n&InitialSecurityNotificatio" "nSettingSync\022#\n\033securityNotificationEnab" "led\030\001 \001(\010\"}\n\024ContactsArrayMessage\022\023\n\013dis" "playName\030\001 \001(\t\022\'\n\010contacts\030\002 \003(\0132\025.proto" ".ContactMessage\022\'\n\013contextInfo\030\021 \001(\0132\022.p" "roto.ContextInfo\"7\n\013HSMCurrency\022\024\n\014curre" "ncyCode\030\001 \001(\t\022\022\n\namount1000\030\002 \001(\003\"\314\003\n\024HS" "MDateTimeComponent\022P\n\tdayOfWeek\030\001 \001(\0162=." "proto.HSMDateTimeComponent.HSMDateTimeCo" "mponentDayOfWeekType\022\014\n\004year\030\002 \001(\r\022\r\n\005mo" "nth\030\003 \001(\r\022\022\n\ndayOfMonth\030\004 \001(\r\022\014\n\004hour\030\005 " "\001(\r\022\016\n\006minute\030\006 \001(\r\022N\n\010calendar\030\007 \001(\0162<." "proto.HSMDateTimeComponent.HSMDateTimeCo" "mponentCalendarType\"\177\n!HSMDateTimeCompon" "entDayOfWeekType\022\n\n\006MONDAY\020\001\022\013\n\007TUESDAY\020" "\002\022\r\n\tWEDNESDAY\020\003\022\014\n\010THURSDAY\020\004\022\n\n\006FRIDAY" "\020\005\022\014\n\010SATURDAY\020\006\022\n\n\006SUNDAY\020\007\"B\n HSMDateT" "imeComponentCalendarType\022\r\n\tGREGORIAN\020\001\022" "\017\n\013SOLAR_HIJRI\020\002\")\n\024HSMDateTimeUnixEpoch" "\022\021\n\ttimestamp\030\001 \001(\003\"\202\001\n\013HSMDateTime\0220\n\tc" "omponent\030\001 \001(\0132\033.proto.HSMDateTimeCompon" "entH\000\0220\n\tunixEpoch\030\002 \001(\0132\033.proto.HSMDate" "TimeUnixEpochH\000B\017\n\rdatetimeOneof\"\210\001\n\027HSM" "LocalizableParameter\022\017\n\007default\030\001 \001(\t\022&\n" "\010currency\030\002 \001(\0132\022.proto.HSMCurrencyH\000\022&\n" "\010dateTime\030\003 \001(\0132\022.proto.HSMDateTimeH\000B\014\n" "\nparamOneof\"\223\002\n\027HighlyStructuredMessage\022" "\021\n\tnamespace\030\001 \001(\t\022\023\n\013elementName\030\002 \001(\t\022" "\016\n\006params\030\003 \003(\t\022\022\n\nfallbackLg\030\004 \001(\t\022\022\n\nf" "allbackLc\030\005 \001(\t\0229\n\021localizableParams\030\006 \003" "(\0132\036.proto.HSMLocalizableParameter\022\027\n\017de" "terministicLg\030\007 \001(\t\022\027\n\017deterministicLc\030\010" " \001(\t\022+\n\013hydratedHsm\030\t \001(\0132\026.proto.Templa" "teMessage\"g\n\022SendPaymentMessage\022#\n\013noteM" "essage\030\002 \001(\0132\016.proto.Message\022,\n\021requestM" "essageKey\030\003 \001(\0132\021.proto.MessageKey\"\300\001\n\025R" "equestPaymentMessage\022#\n\013noteMessage\030\004 \001(" "\0132\016.proto.Message\022\033\n\023currencyCodeIso4217" "\030\001 \001(\t\022\022\n\namount1000\030\002 \001(\004\022\023\n\013requestFro" "m\030\003 \001(\t\022\027\n\017expiryTimestamp\030\005 \001(\003\022#\n\006amou" "nt\030\006 \001(\0132\023.proto.PaymentMoney\">\n\034Decline" "PaymentRequestMessage\022\036\n\003key\030\001 \001(\0132\021.pro" "to.MessageKey\"=\n\033CancelPaymentRequestMes" "sage\022\036\n\003key\030\001 \001(\0132\021.proto.MessageKey\"\236\002\n" "\023LiveLocationMessage\022\027\n\017degreesLatitude\030" "\001 \001(\001\022\030\n\020degreesLongitude\030\002 \001(\001\022\030\n\020accur" "acyInMeters\030\003 \001(\r\022\022\n\nspeedInMps\030\004 \001(\002\022)\n" "!degreesClockwiseFromMagneticNorth\030\005 \001(\r" "\022\017\n\007caption\030\006 \001(\t\022\026\n\016sequenceNumber\030\007 \001(" "\003\022\022\n\ntimeOffset\030\010 \001(\r\022\025\n\rjpegThumbnail\030\020" " \001(\014\022\'\n\013contextInfo\030\021 \001(\0132\022.proto.Contex" "tInfo\"\326\002\n\016StickerMessage\022\013\n\003url\030\001 \001(\t\022\022\n" "\nfileSha256\030\002 \001(\014\022\025\n\rfileEncSha256\030\003 \001(\014" "\022\020\n\010mediaKey\030\004 \001(\014\022\020\n\010mimetype\030\005 \001(\t\022\016\n\006" "height\030\006 \001(\r\022\r\n\005width\030\007 \001(\r\022\022\n\ndirectPat" "h\030\010 \001(\t\022\022\n\nfileLength\030\t \001(\004\022\031\n\021mediaKeyT" "imestamp\030\n \001(\003\022\030\n\020firstFrameLength\030\013 \001(\r" "\022\031\n\021firstFrameSidecar\030\014 \001(\014\022\022\n\nisAnimate" "d\030\r \001(\010\022\024\n\014pngThumbnail\030\020 \001(\014\022\'\n\013context" "Info\030\021 \001(\0132\022.proto.ContextInfo\"\246\003\n\017FourR" "owTemplate\022/\n\007content\030\006 \001(\0132\036.proto.High" "lyStructuredMessage\022.\n\006footer\030\007 \001(\0132\036.pr" "oto.HighlyStructuredMessage\022&\n\007buttons\030\010" " \003(\0132\025.proto.TemplateButton\0221\n\017documentM" "essage\030\001 \001(\0132\026.proto.DocumentMessageH\000\022A" "\n\027highlyStructuredMessage\030\002 \001(\0132\036.proto." "HighlyStructuredMessageH\000\022+\n\014imageMessag" "e\030\003 \001(\0132\023.proto.ImageMessageH\000\022+\n\014videoM" "essage\030\004 \001(\0132\023.proto.VideoMessageH\000\0221\n\017l" "ocationMessage\030\005 \001(\0132\026.proto.LocationMes" "sageH\000B\007\n\005title\"\204\003\n\027HydratedFourRowTempl" "ate\022\033\n\023hydratedContentText\030\006 \001(\t\022\032\n\022hydr" "atedFooterText\030\007 \001(\t\0226\n\017hydratedButtons\030" "\010 \003(\0132\035.proto.HydratedTemplateButton\022\022\n\n" "templateId\030\t \001(\t\0221\n\017documentMessage\030\001 \001(" "\0132\026.proto.DocumentMessageH\000\022\033\n\021hydratedT" "itleText\030\002 \001(\tH\000\022+\n\014imageMessage\030\003 \001(\0132\023" ".proto.ImageMessageH\000\022+\n\014videoMessage\030\004 " "\001(\0132\023.proto.VideoMessageH\000\0221\n\017locationMe" "ssage\030\005 \001(\0132\026.proto.LocationMessageH\000B\007\n" "\005title\"\364\001\n\017TemplateMessage\022\'\n\013contextInf" "o\030\003 \001(\0132\022.proto.ContextInfo\0228\n\020hydratedT" "emplate\030\004 \001(\0132\036.proto.HydratedFourRowTem" "plate\0221\n\017fourRowTemplate\030\001 \001(\0132\026.proto.F" "ourRowTemplateH\000\022A\n\027hydratedFourRowTempl" "ate\030\002 \001(\0132\036.proto.HydratedFourRowTemplat" "eH\000B\010\n\006format\"\215\001\n\032TemplateButtonReplyMes" "sage\022\022\n\nselectedId\030\001 \001(\t\022\033\n\023selectedDisp" "layText\030\002 \001(\t\022\'\n\013contextInfo\030\003 \001(\0132\022.pro" "to.ContextInfo\022\025\n\rselectedIndex\030\004 \001(\r\"`\n" "\017CatalogSnapshot\022)\n\014catalogImage\030\001 \001(\0132\023" ".proto.ImageMessage\022\r\n\005title\030\002 \001(\t\022\023\n\013de" "scription\030\003 \001(\t\"\364\001\n\017ProductSnapshot\022)\n\014p" "roductImage\030\001 \001(\0132\023.proto.ImageMessage\022\021" "\n\tproductId\030\002 \001(\t\022\r\n\005title\030\003 \001(\t\022\023\n\013desc" "ription\030\004 \001(\t\022\024\n\014currencyCode\030\005 \001(\t\022\027\n\017p" "riceAmount1000\030\006 \001(\003\022\022\n\nretailerId\030\007 \001(\t" "\022\013\n\003url\030\010 \001(\t\022\031\n\021productImageCount\030\t \001(\r" "\022\024\n\014firstImageId\030\013 \001(\t\"\245\001\n\016ProductMessag" "e\022\'\n\007product\030\001 \001(\0132\026.proto.ProductSnapsh" "ot\022\030\n\020businessOwnerJid\030\002 \001(\t\022\'\n\007catalog\030" "\004 \001(\0132\026.proto.CatalogSnapshot\022\'\n\013context" "Info\030\021 \001(\0132\022.proto.ContextInfo\"\266\003\n\014Order" "Message\022\017\n\007orderId\030\001 \001(\t\022\021\n\tthumbnail\030\002 " "\001(\014\022\021\n\titemCount\030\003 \001(\005\022;\n\006status\030\004 \001(\0162+" ".proto.OrderMessage.OrderMessageOrderSta" "tus\022=\n\007surface\030\005 \001(\0162,.proto.OrderMessag" "e.OrderMessageOrderSurface\022\017\n\007message\030\006 " "\001(\t\022\022\n\norderTitle\030\007 \001(\t\022\021\n\tsellerJid\030\010 \001" "(\t\022\r\n\005token\030\t \001(\t\022\027\n\017totalAmount1000\030\n \001" "(\003\022\031\n\021totalCurrencyCode\030\013 \001(\t\022\'\n\013context" "Info\030\021 \001(\0132\022.proto.ContextInfo\"&\n\027OrderM" "essageOrderStatus\022\013\n\007INQUIRY\020\001\"\'\n\030OrderM" "essageOrderSurface\022\013\n\007CATALOG\020\001\"8\n\003Row\022\r" "\n\005title\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\r\n\005ro" "wId\030\003 \001(\t\"2\n\007Section\022\r\n\005title\030\001 \001(\t\022\030\n\004r" "ows\030\002 \003(\0132\n.proto.Row\"\330\001\n\013ListMessage\022\r\n" "\005title\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\022\n\nbut" "tonText\030\003 \001(\t\0228\n\010listType\030\004 \001(\0162&.proto." "ListMessage.ListMessageListType\022 \n\010secti" "ons\030\005 \003(\0132\016.proto.Section\"5\n\023ListMessage" "ListType\022\013\n\007UNKNOWN\020\000\022\021\n\rSINGLE_SELECT\020\001" "\"*\n\021SingleSelectReply\022\025\n\rselectedRowId\030\001" " \001(\t\"\240\002\n\023ListResponseMessage\022\r\n\005title\030\001 " "\001(\t\022H\n\010listType\030\002 \001(\01626.proto.ListRespon" "seMessage.ListResponseMessageListType\0223\n" "\021singleSelectReply\030\003 \001(\0132\030.proto.SingleS" "electReply\022\'\n\013contextInfo\030\004 \001(\0132\022.proto." "ContextInfo\022\023\n\013description\030\005 \001(\t\"=\n\033List" "ResponseMessageListType\022\013\n\007UNKNOWN\020\000\022\021\n\r" "SINGLE_SELECT\020\001\"\270\001\n\022GroupInviteMessage\022\020" "\n\010groupJid\030\001 \001(\t\022\022\n\ninviteCode\030\002 \001(\t\022\030\n\020" "inviteExpiration\030\003 \001(\003\022\021\n\tgroupName\030\004 \001(" "\t\022\025\n\rjpegThumbnail\030\005 \001(\014\022\017\n\007caption\030\006 \001(" "\t\022\'\n\013contextInfo\030\007 \001(\0132\022.proto.ContextIn" "fo\"c\n\020EphemeralSetting\022\017\n\007chatJid\030\001 \001(\t\022" "\033\n\023ephemeralExpiration\030\002 \001(\r\022!\n\031ephemera" "lSettingTimestamp\030\003 \001(\003\"\230\001\n\021DeviceSentMe" "ssage\022\026\n\016destinationJid\030\001 \001(\t\022\037\n\007message" "\030\002 \001(\0132\016.proto.Message\022\r\n\005phash\030\003 \001(\t\022;\n" "\032broadcastEphemeralSettings\030\004 \003(\0132\027.prot" "o.EphemeralSetting\"5\n\022FutureProofMessage" "\022\037\n\007message\030\001 \001(\0132\016.proto.Message\"!\n\nBut" "tonText\022\023\n\013displayText\030\001 \001(\t\"\222\001\n\006Button\022" "\020\n\010buttonId\030\001 \001(\t\022%\n\nbuttonText\030\002 \001(\0132\021." "proto.ButtonText\022&\n\004type\030\003 \001(\0162\030.proto.B" "utton.ButtonType\"\'\n\nButtonType\022\013\n\007UNKNOW" "N\020\000\022\014\n\010RESPONSE\020\001\"\220\004\n\016ButtonsMessage\022\023\n\013" "contentText\030\006 \001(\t\022\022\n\nfooterText\030\007 \001(\t\022\'\n" "\013contextInfo\030\010 \001(\0132\022.proto.ContextInfo\022\036" "\n\007buttons\030\t \003(\0132\r.proto.Button\022B\n\nheader" "Type\030\n \001(\0162..proto.ButtonsMessage.Button" "sMessageHeaderType\022\016\n\004text\030\001 \001(\tH\000\0221\n\017do" "cumentMessage\030\002 \001(\0132\026.proto.DocumentMess" "ageH\000\022+\n\014imageMessage\030\003 \001(\0132\023.proto.Imag" "eMessageH\000\022+\n\014videoMessage\030\004 \001(\0132\023.proto" ".VideoMessageH\000\0221\n\017locationMessage\030\005 \001(\013" "2\026.proto.LocationMessageH\000\"n\n\030ButtonsMes" "sageHeaderType\022\013\n\007UNKNOWN\020\000\022\t\n\005EMPTY\020\001\022\010" "\n\004TEXT\020\002\022\014\n\010DOCUMENT\020\003\022\t\n\005IMAGE\020\004\022\t\n\005VID" "EO\020\005\022\014\n\010LOCATION\020\006B\010\n\006header\"\213\002\n\026Buttons" "ResponseMessage\022\030\n\020selectedButtonId\030\001 \001(" "\t\022\'\n\013contextInfo\030\003 \001(\0132\022.proto.ContextIn" "fo\022F\n\004type\030\004 \001(\01628.proto.ButtonsResponse" "Message.ButtonsResponseMessageType\022\035\n\023se" "lectedDisplayText\030\002 \001(\tH\000\";\n\032ButtonsResp" "onseMessageType\022\013\n\007UNKNOWN\020\000\022\020\n\014DISPLAY_" "TEXT\020\001B\n\n\010response\"\276\016\n\007Message\022\024\n\014conver" "sation\030\001 \001(\t\022I\n\034senderKeyDistributionMes" "sage\030\002 \001(\0132#.proto.SenderKeyDistribution" "Message\022)\n\014imageMessage\030\003 \001(\0132\023.proto.Im" "ageMessage\022-\n\016contactMessage\030\004 \001(\0132\025.pro" "to.ContactMessage\022/\n\017locationMessage\030\005 \001" "(\0132\026.proto.LocationMessage\0227\n\023extendedTe" "xtMessage\030\006 \001(\0132\032.proto.ExtendedTextMess" "age\022/\n\017documentMessage\030\007 \001(\0132\026.proto.Doc" "umentMessage\022)\n\014audioMessage\030\010 \001(\0132\023.pro" "to.AudioMessage\022)\n\014videoMessage\030\t \001(\0132\023." "proto.VideoMessage\022\031\n\004call\030\n \001(\0132\013.proto" ".Call\022\031\n\004chat\030\013 \001(\0132\013.proto.Chat\022/\n\017prot" "ocolMessage\030\014 \001(\0132\026.proto.ProtocolMessag" "e\0229\n\024contactsArrayMessage\030\r \001(\0132\033.proto." "ContactsArrayMessage\022\?\n\027highlyStructured" "Message\030\016 \001(\0132\036.proto.HighlyStructuredMe" "ssage\022W\n*fastRatchetKeySenderKeyDistribu" "tionMessage\030\017 \001(\0132#.proto.SenderKeyDistr" "ibutionMessage\0225\n\022sendPaymentMessage\030\020 \001" "(\0132\031.proto.SendPaymentMessage\0227\n\023liveLoc" "ationMessage\030\022 \001(\0132\032.proto.LiveLocationM" "essage\022;\n\025requestPaymentMessage\030\026 \001(\0132\034." "proto.RequestPaymentMessage\022I\n\034declinePa" "ymentRequestMessage\030\027 \001(\0132#.proto.Declin" "ePaymentRequestMessage\022G\n\033cancelPaymentR" "equestMessage\030\030 \001(\0132\".proto.CancelPaymen" "tRequestMessage\022/\n\017templateMessage\030\031 \001(\013" "2\026.proto.TemplateMessage\022-\n\016stickerMessa" "ge\030\032 \001(\0132\025.proto.StickerMessage\0225\n\022group" "InviteMessage\030\034 \001(\0132\031.proto.GroupInviteM" "essage\022E\n\032templateButtonReplyMessage\030\035 \001" "(\0132!.proto.TemplateButtonReplyMessage\022-\n" "\016productMessage\030\036 \001(\0132\025.proto.ProductMes" "sage\0223\n\021deviceSentMessage\030\037 \001(\0132\030.proto." "DeviceSentMessage\0225\n\022messageContextInfo\030" "# \001(\0132\031.proto.MessageContextInfo\022\'\n\013list" "Message\030$ \001(\0132\022.proto.ListMessage\0222\n\017vie" "wOnceMessage\030% \001(\0132\031.proto.FutureProofMe" "ssage\022)\n\014orderMessage\030& \001(\0132\023.proto.Orde" "rMessage\0227\n\023listResponseMessage\030\' \001(\0132\032." "proto.ListResponseMessage\0223\n\020ephemeralMe" "ssage\030( \001(\0132\031.proto.FutureProofMessage\022-" "\n\016invoiceMessage\030) \001(\0132\025.proto.InvoiceMe" "ssage\022-\n\016buttonsMessage\030* \001(\0132\025.proto.Bu" "ttonsMessage\022=\n\026buttonsResponseMessage\030+" " \001(\0132\035.proto.ButtonsResponseMessage\"P\n\nM" "essageKey\022\021\n\tremoteJid\030\001 \001(\t\022\016\n\006fromMe\030\002" " \001(\010\022\n\n\002id\030\003 \001(\t\022\023\n\013participant\030\004 \001(\t\"\205\024" "\n\013WebFeatures\0229\n\rlabelsDisplay\030\001 \001(\0162\".p" "roto.WebFeatures.WebFeaturesFlag\022B\n\026voip" "IndividualOutgoing\030\002 \001(\0162\".proto.WebFeat" "ures.WebFeaturesFlag\0224\n\010groupsV3\030\003 \001(\0162\"" ".proto.WebFeatures.WebFeaturesFlag\022:\n\016gr" "oupsV3Create\030\004 \001(\0162\".proto.WebFeatures.W" "ebFeaturesFlag\022:\n\016changeNumberV2\030\005 \001(\0162\"" ".proto.WebFeatures.WebFeaturesFlag\022B\n\026qu" "eryStatusV3Thumbnail\030\006 \001(\0162\".proto.WebFe" "atures.WebFeaturesFlag\0229\n\rliveLocations\030" "\007 \001(\0162\".proto.WebFeatures.WebFeaturesFla" "g\0226\n\nqueryVname\030\010 \001(\0162\".proto.WebFeature" "s.WebFeaturesFlag\022B\n\026voipIndividualIncom" "ing\030\t \001(\0162\".proto.WebFeatures.WebFeature" "sFlag\022=\n\021quickRepliesQuery\030\n \001(\0162\".proto" ".WebFeatures.WebFeaturesFlag\0224\n\010payments" "\030\013 \001(\0162\".proto.WebFeatures.WebFeaturesFl" "ag\022<\n\020stickerPackQuery\030\014 \001(\0162\".proto.Web" "Features.WebFeaturesFlag\022>\n\022liveLocation" "sFinal\030\r \001(\0162\".proto.WebFeatures.WebFeat" "uresFlag\0226\n\nlabelsEdit\030\016 \001(\0162\".proto.Web" "Features.WebFeaturesFlag\0227\n\013mediaUpload\030" "\017 \001(\0162\".proto.WebFeatures.WebFeaturesFla" "g\022G\n\033mediaUploadRichQuickReplies\030\022 \001(\0162\"" ".proto.WebFeatures.WebFeaturesFlag\0223\n\007vn" "ameV2\030\023 \001(\0162\".proto.WebFeatures.WebFeatu" "resFlag\022<\n\020videoPlaybackUrl\030\024 \001(\0162\".prot" "o.WebFeatures.WebFeaturesFlag\0229\n\rstatusR" "anking\030\025 \001(\0162\".proto.WebFeatures.WebFeat" "uresFlag\022\?\n\023voipIndividualVideo\030\026 \001(\0162\"." "proto.WebFeatures.WebFeaturesFlag\022>\n\022thi" "rdPartyStickers\030\027 \001(\0162\".proto.WebFeature" "s.WebFeaturesFlag\022F\n\032frequentlyForwarded" "Setting\030\030 \001(\0162\".proto.WebFeatures.WebFea" "turesFlag\022B\n\026groupsV4JoinPermission\030\031 \001(" "\0162\".proto.WebFeatures.WebFeaturesFlag\022:\n" "\016recentStickers\030\032 \001(\0162\".proto.WebFeature" "s.WebFeaturesFlag\0223\n\007catalog\030\033 \001(\0162\".pro" "to.WebFeatures.WebFeaturesFlag\022;\n\017starre" "dStickers\030\034 \001(\0162\".proto.WebFeatures.WebF" "eaturesFlag\0229\n\rvoipGroupCall\030\035 \001(\0162\".pro" "to.WebFeatures.WebFeaturesFlag\022;\n\017templa" "teMessage\030\036 \001(\0162\".proto.WebFeatures.WebF" "eaturesFlag\022H\n\034templateMessageInteractiv" "ity\030\037 \001(\0162\".proto.WebFeatures.WebFeature" "sFlag\022=\n\021ephemeralMessages\030 \001(\0162\".proto" ".WebFeatures.WebFeaturesFlag\022\?\n\023e2ENotif" "icationSync\030! \001(\0162\".proto.WebFeatures.We" "bFeaturesFlag\022<\n\020recentStickersV2\030\" \001(\0162" "\".proto.WebFeatures.WebFeaturesFlag\0229\n\rs" "yncdRelease1\030# \001(\0162\".proto.WebFeatures.W" "ebFeaturesFlag\022<\n\020recentStickersV3\030$ \001(\016" "2\".proto.WebFeatures.WebFeaturesFlag\0226\n\n" "userNotice\030% \001(\0162\".proto.WebFeatures.Web" "FeaturesFlag\022:\n\016syncdRelease11\030& \001(\0162\".p" "roto.WebFeatures.WebFeaturesFlag\0223\n\007supp" "ort\030\' \001(\0162\".proto.WebFeatures.WebFeature" "sFlag\022;\n\017groupUiiCleanup\030( \001(\0162\".proto.W" "ebFeatures.WebFeaturesFlag\022G\n\033groupDogfo" "odingInternalOnly\030) \001(\0162\".proto.WebFeatu" "res.WebFeaturesFlag\0228\n\014settingsSync\030* \001(" "\0162\".proto.WebFeatures.WebFeaturesFlag\"V\n" "\017WebFeaturesFlag\022\017\n\013NOT_STARTED\020\000\022\021\n\rFOR" "CE_UPGRADE\020\001\022\017\n\013DEVELOPMENT\020\002\022\016\n\nPRODUCT" "ION\020\003\"\211\001\n\027NotificationMessageInfo\022\036\n\003key" "\030\001 \001(\0132\021.proto.MessageKey\022\037\n\007message\030\002 \001" "(\0132\016.proto.Message\022\030\n\020messageTimestamp\030\003" " \001(\004\022\023\n\013participant\030\004 \001(\t\"\211\001\n\024WebNotific" "ationsInfo\022\021\n\ttimestamp\030\002 \001(\004\022\023\n\013unreadC" "hats\030\003 \001(\r\022\032\n\022notifyMessageCount\030\004 \001(\r\022-" "\n\016notifyMessages\030\005 \003(\0132\025.proto.WebMessag" "eInfo\"\326\n\n\013PaymentInfo\022B\n\022currencyDepreca" "ted\030\001 \001(\0162&.proto.PaymentInfo.PaymentInf" "oCurrency\022\022\n\namount1000\030\002 \001(\004\022\023\n\013receive" "rJid\030\003 \001(\t\0224\n\006status\030\004 \001(\0162$.proto.Payme" "ntInfo.PaymentInfoStatus\022\034\n\024transactionT" "imestamp\030\005 \001(\004\022,\n\021requestMessageKey\030\006 \001(" "\0132\021.proto.MessageKey\022\027\n\017expiryTimestamp\030" "\007 \001(\004\022\025\n\rfutureproofed\030\010 \001(\010\022\020\n\010currency" "\030\t \001(\t\022:\n\ttxnStatus\030\n \001(\0162\'.proto.Paymen" "tInfo.PaymentInfoTxnStatus\022\031\n\021useNoviFia" "tFormat\030\013 \001(\010\022*\n\rprimaryAmount\030\014 \001(\0132\023.p" "roto.PaymentMoney\022+\n\016exchangeAmount\030\r \001(" "\0132\023.proto.PaymentMoney\"4\n\023PaymentInfoCur" "rency\022\024\n\020UNKNOWN_CURRENCY\020\000\022\007\n\003INR\020\001\"\327\001\n" "\021PaymentInfoStatus\022\022\n\016UNKNOWN_STATUS\020\000\022\016" "\n\nPROCESSING\020\001\022\010\n\004SENT\020\002\022\022\n\016NEED_TO_ACCE" "PT\020\003\022\014\n\010COMPLETE\020\004\022\026\n\022COULD_NOT_COMPLETE" "\020\005\022\014\n\010REFUNDED\020\006\022\013\n\007EXPIRED\020\007\022\014\n\010REJECTE" "D\020\010\022\r\n\tCANCELLED\020\t\022\025\n\021WAITING_FOR_PAYER\020" "\n\022\013\n\007WAITING\020\013\"\325\004\n\024PaymentInfoTxnStatus\022" "\013\n\007UNKNOWN\020\000\022\021\n\rPENDING_SETUP\020\001\022\032\n\026PENDI" "NG_RECEIVER_SETUP\020\002\022\010\n\004INIT\020\003\022\013\n\007SUCCESS" "\020\004\022\r\n\tCOMPLETED\020\005\022\n\n\006FAILED\020\006\022\017\n\013FAILED_" "RISK\020\007\022\025\n\021FAILED_PROCESSING\020\010\022\036\n\032FAILED_" "RECEIVER_PROCESSING\020\t\022\r\n\tFAILED_DA\020\n\022\023\n\017" "FAILED_DA_FINAL\020\013\022\020\n\014REFUNDED_TXN\020\014\022\021\n\rR" "EFUND_FAILED\020\r\022\034\n\030REFUND_FAILED_PROCESSI" "NG\020\016\022\024\n\020REFUND_FAILED_DA\020\017\022\017\n\013EXPIRED_TX" "N\020\020\022\021\n\rAUTH_CANCELED\020\021\022!\n\035AUTH_CANCEL_FA" "ILED_PROCESSING\020\022\022\026\n\022AUTH_CANCEL_FAILED\020" "\023\022\020\n\014COLLECT_INIT\020\024\022\023\n\017COLLECT_SUCCESS\020\025" "\022\022\n\016COLLECT_FAILED\020\026\022\027\n\023COLLECT_FAILED_R" "ISK\020\027\022\024\n\020COLLECT_REJECTED\020\030\022\023\n\017COLLECT_E" "XPIRED\020\031\022\024\n\020COLLECT_CANCELED\020\032\022\026\n\022COLLEC" "T_CANCELLING\020\033\"\202)\n\016WebMessageInfo\022\036\n\003key" "\030\001 \002(\0132\021.proto.MessageKey\022\037\n\007message\030\002 \001" "(\0132\016.proto.Message\022\030\n\020messageTimestamp\030\003" " \001(\004\022:\n\006status\030\004 \001(\0162*.proto.WebMessageI" "nfo.WebMessageInfoStatus\022\023\n\013participant\030" "\005 \001(\t\022\016\n\006ignore\030\020 \001(\010\022\017\n\007starred\030\021 \001(\010\022\021" "\n\tbroadcast\030\022 \001(\010\022\020\n\010pushName\030\023 \001(\t\022\035\n\025m" "ediaCiphertextSha256\030\024 \001(\014\022\021\n\tmulticast\030" "\025 \001(\010\022\017\n\007urlText\030\026 \001(\010\022\021\n\turlNumber\030\027 \001(" "\010\022E\n\017messageStubType\030\030 \001(\0162,.proto.WebMe" "ssageInfo.WebMessageInfoStubType\022\022\n\nclea" "rMedia\030\031 \001(\010\022\035\n\025messageStubParameters\030\032 " "\003(\t\022\020\n\010duration\030\033 \001(\r\022\016\n\006labels\030\034 \003(\t\022\'\n" "\013paymentInfo\030\035 \001(\0132\022.proto.PaymentInfo\0225" "\n\021finalLiveLocation\030\036 \001(\0132\032.proto.LiveLo" "cationMessage\022-\n\021quotedPaymentInfo\030\037 \001(\013" "2\022.proto.PaymentInfo\022\037\n\027ephemeralStartTi" "mestamp\030 \001(\004\022\031\n\021ephemeralDuration\030! \001(\r" "\022\030\n\020ephemeralOffToOn\030\" \001(\010\022\032\n\022ephemeralO" "utOfSync\030# \001(\010\022N\n\020bizPrivacyStatus\030$ \001(\016" "24.proto.WebMessageInfo.WebMessageInfoBi" "zPrivacyStatus\022\027\n\017verifiedBizName\030% \001(\t\"" "f\n\024WebMessageInfoStatus\022\t\n\005ERROR\020\000\022\013\n\007PE" "NDING\020\001\022\016\n\nSERVER_ACK\020\002\022\020\n\014DELIVERY_ACK\020" "\003\022\010\n\004READ\020\004\022\n\n\006PLAYED\020\005\"\354 \n\026WebMessageIn" "foStubType\022\013\n\007UNKNOWN\020\000\022\n\n\006REVOKE\020\001\022\016\n\nC" "IPHERTEXT\020\002\022\017\n\013FUTUREPROOF\020\003\022\033\n\027NON_VERI" "FIED_TRANSITION\020\004\022\031\n\025UNVERIFIED_TRANSITI" "ON\020\005\022\027\n\023VERIFIED_TRANSITION\020\006\022\030\n\024VERIFIE" "D_LOW_UNKNOWN\020\007\022\021\n\rVERIFIED_HIGH\020\010\022\034\n\030VE" "RIFIED_INITIAL_UNKNOWN\020\t\022\030\n\024VERIFIED_INI" "TIAL_LOW\020\n\022\031\n\025VERIFIED_INITIAL_HIGH\020\013\022#\n" "\037VERIFIED_TRANSITION_ANY_TO_NONE\020\014\022#\n\037VE" "RIFIED_TRANSITION_ANY_TO_HIGH\020\r\022#\n\037VERIF" "IED_TRANSITION_HIGH_TO_LOW\020\016\022\'\n#VERIFIED" "_TRANSITION_HIGH_TO_UNKNOWN\020\017\022&\n\"VERIFIE" "D_TRANSITION_UNKNOWN_TO_LOW\020\020\022&\n\"VERIFIE" "D_TRANSITION_LOW_TO_UNKNOWN\020\021\022#\n\037VERIFIE" "D_TRANSITION_NONE_TO_LOW\020\022\022\'\n#VERIFIED_T" "RANSITION_NONE_TO_UNKNOWN\020\023\022\020\n\014GROUP_CRE" "ATE\020\024\022\030\n\024GROUP_CHANGE_SUBJECT\020\025\022\025\n\021GROUP" "_CHANGE_ICON\020\026\022\034\n\030GROUP_CHANGE_INVITE_LI" "NK\020\027\022\034\n\030GROUP_CHANGE_DESCRIPTION\020\030\022\031\n\025GR" "OUP_CHANGE_RESTRICT\020\031\022\031\n\025GROUP_CHANGE_AN" "NOUNCE\020\032\022\031\n\025GROUP_PARTICIPANT_ADD\020\033\022\034\n\030G" "ROUP_PARTICIPANT_REMOVE\020\034\022\035\n\031GROUP_PARTI" "CIPANT_PROMOTE\020\035\022\034\n\030GROUP_PARTICIPANT_DE" "MOTE\020\036\022\034\n\030GROUP_PARTICIPANT_INVITE\020\037\022\033\n\027" "GROUP_PARTICIPANT_LEAVE\020 \022#\n\037GROUP_PARTI" "CIPANT_CHANGE_NUMBER\020!\022\024\n\020BROADCAST_CREA" "TE\020\"\022\021\n\rBROADCAST_ADD\020#\022\024\n\020BROADCAST_REM" "OVE\020$\022\030\n\024GENERIC_NOTIFICATION\020%\022\030\n\024E2E_I" "DENTITY_CHANGED\020&\022\021\n\rE2E_ENCRYPTED\020\'\022\025\n\021" "CALL_MISSED_VOICE\020(\022\025\n\021CALL_MISSED_VIDEO" "\020)\022\034\n\030INDIVIDUAL_CHANGE_NUMBER\020*\022\020\n\014GROU" "P_DELETE\020+\022&\n\"GROUP_ANNOUNCE_MODE_MESSAG" "E_BOUNCE\020,\022\033\n\027CALL_MISSED_GROUP_VOICE\020-\022" "\033\n\027CALL_MISSED_GROUP_VIDEO\020.\022\026\n\022PAYMENT_" "CIPHERTEXT\020/\022\027\n\023PAYMENT_FUTUREPROOF\0200\022,\n" "(PAYMENT_TRANSACTION_STATUS_UPDATE_FAILE" "D\0201\022.\n*PAYMENT_TRANSACTION_STATUS_UPDATE" "_REFUNDED\0202\0223\n/PAYMENT_TRANSACTION_STATU" "S_UPDATE_REFUND_FAILED\0203\0225\n1PAYMENT_TRAN" "SACTION_STATUS_RECEIVER_PENDING_SETUP\0204\022" "<\n8PAYMENT_TRANSACTION_STATUS_RECEIVER_S" "UCCESS_AFTER_HICCUP\0205\022)\n%PAYMENT_ACTION_" "ACCOUNT_SETUP_REMINDER\0206\022(\n$PAYMENT_ACTI" "ON_SEND_PAYMENT_REMINDER\0207\022*\n&PAYMENT_AC" "TION_SEND_PAYMENT_INVITATION\0208\022#\n\037PAYMEN" "T_ACTION_REQUEST_DECLINED\0209\022\"\n\036PAYMENT_A" "CTION_REQUEST_EXPIRED\020:\022$\n PAYMENT_ACTIO" "N_REQUEST_CANCELLED\020;\022)\n%BIZ_VERIFIED_TR" "ANSITION_TOP_TO_BOTTOM\020<\022)\n%BIZ_VERIFIED" "_TRANSITION_BOTTOM_TO_TOP\020=\022\021\n\rBIZ_INTRO" "_TOP\020>\022\024\n\020BIZ_INTRO_BOTTOM\020\?\022\023\n\017BIZ_NAME" "_CHANGE\020@\022\034\n\030BIZ_MOVE_TO_CONSUMER_APP\020A\022" "\036\n\032BIZ_TWO_TIER_MIGRATION_TOP\020B\022!\n\035BIZ_T" "WO_TIER_MIGRATION_BOTTOM\020C\022\r\n\tOVERSIZED\020" "D\022(\n$GROUP_CHANGE_NO_FREQUENTLY_FORWARDE" "D\020E\022\034\n\030GROUP_V4_ADD_INVITE_SENT\020F\022&\n\"GRO" "UP_PARTICIPANT_ADD_REQUEST_JOIN\020G\022\034\n\030CHA" "NGE_EPHEMERAL_SETTING\020H\022\026\n\022E2E_DEVICE_CH" "ANGED\020I\022\017\n\013VIEWED_ONCE\020J\022\025\n\021E2E_ENCRYPTE" "D_NOW\020K\022\"\n\036BLUE_MSG_BSP_FB_TO_BSP_PREMIS" "E\020L\022\036\n\032BLUE_MSG_BSP_FB_TO_SELF_FB\020M\022#\n\037B" "LUE_MSG_BSP_FB_TO_SELF_PREMISE\020N\022\036\n\032BLUE" "_MSG_BSP_FB_UNVERIFIED\020O\0227\n3BLUE_MSG_BSP" "_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED\020" "P\022\034\n\030BLUE_MSG_BSP_FB_VERIFIED\020Q\0227\n3BLUE_" "MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVE" "RIFIED\020R\022(\n$BLUE_MSG_BSP_PREMISE_TO_SELF" "_PREMISE\020S\022#\n\037BLUE_MSG_BSP_PREMISE_UNVER" "IFIED\020T\022<\n8BLUE_MSG_BSP_PREMISE_UNVERIFI" "ED_TO_SELF_PREMISE_VERIFIED\020U\022!\n\035BLUE_MS" "G_BSP_PREMISE_VERIFIED\020V\022<\n8BLUE_MSG_BSP" "_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERI" "FIED\020W\022*\n&BLUE_MSG_CONSUMER_TO_BSP_FB_UN" "VERIFIED\020X\022/\n+BLUE_MSG_CONSUMER_TO_BSP_P" "REMISE_UNVERIFIED\020Y\022+\n\'BLUE_MSG_CONSUMER" "_TO_SELF_FB_UNVERIFIED\020Z\0220\n,BLUE_MSG_CON" "SUMER_TO_SELF_PREMISE_UNVERIFIED\020[\022#\n\037BL" "UE_MSG_SELF_FB_TO_BSP_PREMISE\020\\\022$\n BLUE_" "MSG_SELF_FB_TO_SELF_PREMISE\020]\022\037\n\033BLUE_MS" "G_SELF_FB_UNVERIFIED\020^\0228\n4BLUE_MSG_SELF_" "FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED\020_" "\022\035\n\031BLUE_MSG_SELF_FB_VERIFIED\020`\0228\n4BLUE_" "MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNV" "ERIFIED\020a\022(\n$BLUE_MSG_SELF_PREMISE_TO_BS" "P_PREMISE\020b\022$\n BLUE_MSG_SELF_PREMISE_UNV" "ERIFIED\020c\022\"\n\036BLUE_MSG_SELF_PREMISE_VERIF" "IED\020d\022\026\n\022BLUE_MSG_TO_BSP_FB\020e\022\030\n\024BLUE_MS" "G_TO_CONSUMER\020f\022\027\n\023BLUE_MSG_TO_SELF_FB\020g" "\022*\n&BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFI" "ED\020h\022/\n+BLUE_MSG_UNVERIFIED_TO_BSP_PREMI" "SE_VERIFIED\020i\022+\n\'BLUE_MSG_UNVERIFIED_TO_" "SELF_FB_VERIFIED\020j\022#\n\037BLUE_MSG_UNVERIFIE" "D_TO_VERIFIED\020k\022*\n&BLUE_MSG_VERIFIED_TO_" "BSP_FB_UNVERIFIED\020l\022/\n+BLUE_MSG_VERIFIED" "_TO_BSP_PREMISE_UNVERIFIED\020m\022+\n\'BLUE_MSG" "_VERIFIED_TO_SELF_FB_UNVERIFIED\020n\022#\n\037BLU" "E_MSG_VERIFIED_TO_UNVERIFIED\020o\0226\n2BLUE_M" "SG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERI" "FIED\020p\0222\n.BLUE_MSG_BSP_FB_UNVERIFIED_TO_" "SELF_FB_VERIFIED\020q\0226\n2BLUE_MSG_BSP_FB_VE" "RIFIED_TO_BSP_PREMISE_UNVERIFIED\020r\0222\n.BL" "UE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERI" "FIED\020s\0227\n3BLUE_MSG_SELF_FB_UNVERIFIED_TO" "_BSP_PREMISE_VERIFIED\020t\0227\n3BLUE_MSG_SELF" "_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED\020u" "\022\034\n\030E2E_IDENTITY_UNAVAILABLE\020v\"K\n\036WebMes" "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, }; PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata descriptor_table_pmsg_2eproto_metadata_getter(int index) { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return descriptor_table_pmsg_2eproto.file_level_metadata[index]; } // 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); namespace proto { const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AdReplyInfo_AdReplyInfoMediaType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_pmsg_2eproto); return file_level_enum_descriptors_pmsg_2eproto[0]; } bool AdReplyInfo_AdReplyInfoMediaType_IsValid(int value) { switch (value) { case 0: case 1: case 2: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) 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) 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]; } bool ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_IsValid(int value) { switch (value) { case 0: case 1: case 2: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) 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) 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]; } bool InvoiceMessage_InvoiceMessageAttachmentType_IsValid(int value) { switch (value) { case 0: case 1: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) 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) 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]; } bool ExtendedTextMessage_ExtendedTextMessageFontType_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: case 4: case 5: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) constexpr ExtendedTextMessage_ExtendedTextMessageFontType ExtendedTextMessage::SANS_SERIF; constexpr ExtendedTextMessage_ExtendedTextMessageFontType ExtendedTextMessage::SERIF; constexpr ExtendedTextMessage_ExtendedTextMessageFontType ExtendedTextMessage::NORICAN_REGULAR; constexpr ExtendedTextMessage_ExtendedTextMessageFontType ExtendedTextMessage::BRYNDAN_WRITE; constexpr ExtendedTextMessage_ExtendedTextMessageFontType ExtendedTextMessage::BEBASNEUE_REGULAR; constexpr ExtendedTextMessage_ExtendedTextMessageFontType ExtendedTextMessage::OSWALD_HEAVY; 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) 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]; } bool ExtendedTextMessage_ExtendedTextMessagePreviewType_IsValid(int value) { switch (value) { case 0: case 1: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) 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) 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]; } bool VideoMessage_VideoMessageAttribution_IsValid(int value) { switch (value) { case 0: case 1: case 2: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) 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) 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]; } bool ProtocolMessage_ProtocolMessageType_IsValid(int value) { switch (value) { case 0: case 3: case 4: case 5: case 6: case 7: case 8: case 9: case 10: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) constexpr ProtocolMessage_ProtocolMessageType ProtocolMessage::REVOKE; constexpr ProtocolMessage_ProtocolMessageType ProtocolMessage::EPHEMERAL_SETTING; constexpr ProtocolMessage_ProtocolMessageType ProtocolMessage::EPHEMERAL_SYNC_RESPONSE; constexpr ProtocolMessage_ProtocolMessageType ProtocolMessage::HISTORY_SYNC_NOTIFICATION; constexpr ProtocolMessage_ProtocolMessageType ProtocolMessage::APP_STATE_SYNC_KEY_SHARE; constexpr ProtocolMessage_ProtocolMessageType ProtocolMessage::APP_STATE_SYNC_KEY_REQUEST; constexpr ProtocolMessage_ProtocolMessageType ProtocolMessage::MSG_FANOUT_BACKFILL_REQUEST; constexpr ProtocolMessage_ProtocolMessageType ProtocolMessage::INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC; constexpr ProtocolMessage_ProtocolMessageType ProtocolMessage::APP_STATE_FATAL_EXCEPTION_NOTIFICATION; 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) 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]; } bool HistorySyncNotification_HistorySyncNotificationHistorySyncType_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: case 4: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) constexpr HistorySyncNotification_HistorySyncNotificationHistorySyncType HistorySyncNotification::INITIAL_BOOTSTRAP; constexpr HistorySyncNotification_HistorySyncNotificationHistorySyncType HistorySyncNotification::INITIAL_STATUS_V3; constexpr HistorySyncNotification_HistorySyncNotificationHistorySyncType HistorySyncNotification::FULL; constexpr HistorySyncNotification_HistorySyncNotificationHistorySyncType HistorySyncNotification::RECENT; constexpr HistorySyncNotification_HistorySyncNotificationHistorySyncType HistorySyncNotification::PUSH_NAME; 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) 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]; } bool HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_IsValid(int value) { switch (value) { case 1: case 2: case 3: case 4: case 5: case 6: case 7: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) constexpr HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComponent::MONDAY; constexpr HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComponent::TUESDAY; constexpr HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComponent::WEDNESDAY; constexpr HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComponent::THURSDAY; constexpr HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComponent::FRIDAY; constexpr HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComponent::SATURDAY; constexpr HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComponent::SUNDAY; 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) 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]; } bool HSMDateTimeComponent_HSMDateTimeComponentCalendarType_IsValid(int value) { switch (value) { case 1: case 2: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) 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) 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]; } bool OrderMessage_OrderMessageOrderStatus_IsValid(int value) { switch (value) { case 1: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) 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) 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]; } bool OrderMessage_OrderMessageOrderSurface_IsValid(int value) { switch (value) { case 1: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) 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) 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]; } bool ListMessage_ListMessageListType_IsValid(int value) { switch (value) { case 0: case 1: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) 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) 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]; } bool ListResponseMessage_ListResponseMessageListType_IsValid(int value) { switch (value) { case 0: case 1: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) 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) 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]; } bool Button_ButtonType_IsValid(int value) { switch (value) { case 0: case 1: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) 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) 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]; } bool ButtonsMessage_ButtonsMessageHeaderType_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) constexpr ButtonsMessage_ButtonsMessageHeaderType ButtonsMessage::UNKNOWN; constexpr ButtonsMessage_ButtonsMessageHeaderType ButtonsMessage::EMPTY; constexpr ButtonsMessage_ButtonsMessageHeaderType ButtonsMessage::TEXT; constexpr ButtonsMessage_ButtonsMessageHeaderType ButtonsMessage::DOCUMENT; constexpr ButtonsMessage_ButtonsMessageHeaderType ButtonsMessage::IMAGE; constexpr ButtonsMessage_ButtonsMessageHeaderType ButtonsMessage::VIDEO; 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) 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]; } bool ButtonsResponseMessage_ButtonsResponseMessageType_IsValid(int value) { switch (value) { case 0: case 1: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) 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) 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]; } bool WebFeatures_WebFeaturesFlag_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) constexpr WebFeatures_WebFeaturesFlag WebFeatures::NOT_STARTED; constexpr WebFeatures_WebFeaturesFlag WebFeatures::FORCE_UPGRADE; constexpr WebFeatures_WebFeaturesFlag WebFeatures::DEVELOPMENT; 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) 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]; } bool PaymentInfo_PaymentInfoCurrency_IsValid(int value) { switch (value) { case 0: case 1: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) 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) 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]; } bool PaymentInfo_PaymentInfoStatus_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: case 9: case 10: case 11: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) constexpr PaymentInfo_PaymentInfoStatus PaymentInfo::UNKNOWN_STATUS; constexpr PaymentInfo_PaymentInfoStatus PaymentInfo::PROCESSING; constexpr PaymentInfo_PaymentInfoStatus PaymentInfo::SENT; constexpr PaymentInfo_PaymentInfoStatus PaymentInfo::NEED_TO_ACCEPT; constexpr PaymentInfo_PaymentInfoStatus PaymentInfo::COMPLETE; constexpr PaymentInfo_PaymentInfoStatus PaymentInfo::COULD_NOT_COMPLETE; constexpr PaymentInfo_PaymentInfoStatus PaymentInfo::REFUNDED; constexpr PaymentInfo_PaymentInfoStatus PaymentInfo::EXPIRED; constexpr PaymentInfo_PaymentInfoStatus PaymentInfo::REJECTED; constexpr PaymentInfo_PaymentInfoStatus PaymentInfo::CANCELLED; constexpr PaymentInfo_PaymentInfoStatus PaymentInfo::WAITING_FOR_PAYER; 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) 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]; } bool PaymentInfo_PaymentInfoTxnStatus_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: case 9: case 10: case 11: case 12: case 13: case 14: case 15: case 16: case 17: case 18: case 19: case 20: case 21: case 22: case 23: case 24: case 25: case 26: case 27: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::UNKNOWN; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::PENDING_SETUP; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::PENDING_RECEIVER_SETUP; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::INIT; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::SUCCESS; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::COMPLETED; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::FAILED; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::FAILED_RISK; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::FAILED_PROCESSING; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::FAILED_RECEIVER_PROCESSING; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::FAILED_DA; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::FAILED_DA_FINAL; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::REFUNDED_TXN; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::REFUND_FAILED; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::REFUND_FAILED_PROCESSING; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::REFUND_FAILED_DA; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::EXPIRED_TXN; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::AUTH_CANCELED; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::AUTH_CANCEL_FAILED_PROCESSING; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::AUTH_CANCEL_FAILED; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::COLLECT_INIT; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::COLLECT_SUCCESS; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::COLLECT_FAILED; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::COLLECT_FAILED_RISK; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::COLLECT_REJECTED; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::COLLECT_EXPIRED; constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo::COLLECT_CANCELED; 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) 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]; } bool WebMessageInfo_WebMessageInfoStatus_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: case 4: case 5: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) constexpr WebMessageInfo_WebMessageInfoStatus WebMessageInfo::ERROR; constexpr WebMessageInfo_WebMessageInfoStatus WebMessageInfo::PENDING; constexpr WebMessageInfo_WebMessageInfoStatus WebMessageInfo::SERVER_ACK; constexpr WebMessageInfo_WebMessageInfoStatus WebMessageInfo::DELIVERY_ACK; constexpr WebMessageInfo_WebMessageInfoStatus WebMessageInfo::READ; 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) 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]; } bool WebMessageInfo_WebMessageInfoStubType_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: case 9: case 10: case 11: case 12: case 13: case 14: case 15: case 16: case 17: case 18: case 19: case 20: case 21: case 22: case 23: case 24: case 25: case 26: case 27: case 28: case 29: case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57: case 58: case 59: case 60: case 61: case 62: case 63: case 64: case 65: case 66: case 67: case 68: case 69: case 70: case 71: case 72: case 73: case 74: case 75: case 76: case 77: case 78: case 79: case 80: case 81: case 82: case 83: case 84: case 85: case 86: case 87: case 88: case 89: case 90: case 91: case 92: case 93: case 94: case 95: case 96: case 97: case 98: case 99: case 100: case 101: case 102: case 103: case 104: case 105: case 106: case 107: case 108: case 109: case 110: case 111: case 112: case 113: case 114: case 115: case 116: case 117: case 118: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::UNKNOWN; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::REVOKE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::CIPHERTEXT; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::FUTUREPROOF; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::NON_VERIFIED_TRANSITION; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::UNVERIFIED_TRANSITION; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::VERIFIED_TRANSITION; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::VERIFIED_LOW_UNKNOWN; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::VERIFIED_HIGH; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::VERIFIED_INITIAL_UNKNOWN; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::VERIFIED_INITIAL_LOW; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::VERIFIED_INITIAL_HIGH; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::VERIFIED_TRANSITION_ANY_TO_NONE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::VERIFIED_TRANSITION_ANY_TO_HIGH; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::VERIFIED_TRANSITION_HIGH_TO_LOW; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::VERIFIED_TRANSITION_HIGH_TO_UNKNOWN; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::VERIFIED_TRANSITION_UNKNOWN_TO_LOW; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::VERIFIED_TRANSITION_LOW_TO_UNKNOWN; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::VERIFIED_TRANSITION_NONE_TO_LOW; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::VERIFIED_TRANSITION_NONE_TO_UNKNOWN; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_CREATE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_CHANGE_SUBJECT; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_CHANGE_ICON; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_CHANGE_INVITE_LINK; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_CHANGE_DESCRIPTION; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_CHANGE_RESTRICT; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_CHANGE_ANNOUNCE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_PARTICIPANT_ADD; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_PARTICIPANT_REMOVE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_PARTICIPANT_PROMOTE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_PARTICIPANT_DEMOTE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_PARTICIPANT_INVITE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_PARTICIPANT_LEAVE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_PARTICIPANT_CHANGE_NUMBER; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BROADCAST_CREATE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BROADCAST_ADD; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BROADCAST_REMOVE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GENERIC_NOTIFICATION; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::E2E_IDENTITY_CHANGED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::E2E_ENCRYPTED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::CALL_MISSED_VOICE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::CALL_MISSED_VIDEO; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::INDIVIDUAL_CHANGE_NUMBER; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_DELETE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::CALL_MISSED_GROUP_VOICE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::CALL_MISSED_GROUP_VIDEO; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::PAYMENT_CIPHERTEXT; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::PAYMENT_FUTUREPROOF; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::PAYMENT_ACTION_SEND_PAYMENT_REMINDER; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::PAYMENT_ACTION_SEND_PAYMENT_INVITATION; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::PAYMENT_ACTION_REQUEST_DECLINED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::PAYMENT_ACTION_REQUEST_EXPIRED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::PAYMENT_ACTION_REQUEST_CANCELLED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BIZ_INTRO_TOP; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BIZ_INTRO_BOTTOM; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BIZ_NAME_CHANGE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BIZ_MOVE_TO_CONSUMER_APP; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BIZ_TWO_TIER_MIGRATION_TOP; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BIZ_TWO_TIER_MIGRATION_BOTTOM; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::OVERSIZED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_CHANGE_NO_FREQUENTLY_FORWARDED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_V4_ADD_INVITE_SENT; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::GROUP_PARTICIPANT_ADD_REQUEST_JOIN; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::CHANGE_EPHEMERAL_SETTING; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::E2E_DEVICE_CHANGED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::VIEWED_ONCE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::E2E_ENCRYPTED_NOW; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_BSP_FB_TO_BSP_PREMISE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_BSP_FB_TO_SELF_FB; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_BSP_FB_TO_SELF_PREMISE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_BSP_FB_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_BSP_FB_VERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_BSP_PREMISE_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_BSP_PREMISE_VERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_SELF_FB_TO_BSP_PREMISE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_SELF_FB_TO_SELF_PREMISE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_SELF_FB_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_SELF_FB_VERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_SELF_PREMISE_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_SELF_PREMISE_VERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_TO_BSP_FB; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_TO_CONSUMER; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_TO_SELF_FB; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_UNVERIFIED_TO_VERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_VERIFIED_TO_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED; constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo::E2E_IDENTITY_UNAVAILABLE; 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) 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]; } bool WebMessageInfo_WebMessageInfoBizPrivacyStatus_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: return true; default: return false; } } #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) constexpr WebMessageInfo_WebMessageInfoBizPrivacyStatus WebMessageInfo::E2EE; constexpr WebMessageInfo_WebMessageInfoBizPrivacyStatus WebMessageInfo::FB; constexpr WebMessageInfo_WebMessageInfoBizPrivacyStatus WebMessageInfo::BSP; constexpr WebMessageInfo_WebMessageInfoBizPrivacyStatus WebMessageInfo::BSP_AND_FB; 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) // =================================================================== class PaymentMoney::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_value(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_offset(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_currencycode(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; PaymentMoney::PaymentMoney(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.PaymentMoney) } PaymentMoney::PaymentMoney(const PaymentMoney& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); currencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_currencycode()) { currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_currencycode(), GetArena()); } ::memcpy(&value_, &from.value_, static_cast(reinterpret_cast(&offset_) - reinterpret_cast(&value_)) + sizeof(offset_)); // @@protoc_insertion_point(copy_constructor:proto.PaymentMoney) } void PaymentMoney::SharedCtor() { currencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&value_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&offset_) - reinterpret_cast(&value_)) + sizeof(offset_)); } PaymentMoney::~PaymentMoney() { // @@protoc_insertion_point(destructor:proto.PaymentMoney) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void PaymentMoney::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); currencycode_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void PaymentMoney::Clear() { // @@protoc_insertion_point(message_clear_start:proto.PaymentMoney) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { currencycode_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000006u) { ::memset(&value_, 0, static_cast( reinterpret_cast(&offset_) - reinterpret_cast(&value_)) + sizeof(offset_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* PaymentMoney::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional int64 value = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { _Internal::set_has_value(&has_bits); 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)) { _Internal::set_has_offset(&has_bits); 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)) { auto str = _internal_mutable_currencycode(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.PaymentMoney.currencyCode"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* PaymentMoney::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } // 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); } // optional string currencyCode = 3; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_currencycode().data(), static_cast(this->_internal_currencycode().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.PaymentMoney.currencyCode"); target = stream->WriteStringMaybeAliased( 3, this->_internal_currencycode(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.PaymentMoney) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string currencyCode = 3; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_currencycode()); } // optional int64 value = 1; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_value()); } // optional uint32 offset = 2; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_offset()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void PaymentMoney::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.PaymentMoney) GOOGLE_DCHECK_NE(&from, this); const PaymentMoney* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.PaymentMoney) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.PaymentMoney) MergeFrom(*source); } } void PaymentMoney::MergeFrom(const PaymentMoney& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.PaymentMoney) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { _internal_set_currencycode(from._internal_currencycode()); } if (cached_has_bits & 0x00000002u) { value_ = from.value_; } if (cached_has_bits & 0x00000004u) { offset_ = from.offset_; } _has_bits_[0] |= cached_has_bits; } } void PaymentMoney::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.PaymentMoney) if (&from == this) return; Clear(); MergeFrom(from); } void PaymentMoney::CopyFrom(const PaymentMoney& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.PaymentMoney) if (&from == this) return; Clear(); MergeFrom(from); } bool PaymentMoney::IsInitialized() const { return true; } void PaymentMoney::InternalSwap(PaymentMoney* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); currencycode_.Swap(&other->currencycode_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(PaymentMoney, offset_) + sizeof(PaymentMoney::offset_) - PROTOBUF_FIELD_OFFSET(PaymentMoney, value_)>( reinterpret_cast(&value_), reinterpret_cast(&other->value_)); } ::PROTOBUF_NAMESPACE_ID::Metadata PaymentMoney::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class HydratedQuickReplyButton::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_displaytext(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_id(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; HydratedQuickReplyButton::HydratedQuickReplyButton(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.HydratedQuickReplyButton) } HydratedQuickReplyButton::HydratedQuickReplyButton(const HydratedQuickReplyButton& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_displaytext()) { displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displaytext(), GetArena()); } id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_id()) { id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), GetArena()); } // @@protoc_insertion_point(copy_constructor:proto.HydratedQuickReplyButton) } void HydratedQuickReplyButton::SharedCtor() { displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } HydratedQuickReplyButton::~HydratedQuickReplyButton() { // @@protoc_insertion_point(destructor:proto.HydratedQuickReplyButton) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void HydratedQuickReplyButton::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); displaytext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void HydratedQuickReplyButton::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HydratedQuickReplyButton) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { displaytext_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { id_.ClearNonDefaultToEmpty(); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* HydratedQuickReplyButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string displayText = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_displaytext(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_id(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedQuickReplyButton.id"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* HydratedQuickReplyButton::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string displayText = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_displaytext().data(), static_cast(this->_internal_displaytext().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HydratedQuickReplyButton.displayText"); target = stream->WriteStringMaybeAliased( 1, this->_internal_displaytext(), target); } // optional string id = 2; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_id().data(), static_cast(this->_internal_id().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HydratedQuickReplyButton.id"); target = stream->WriteStringMaybeAliased( 2, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HydratedQuickReplyButton) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string displayText = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_displaytext()); } // optional string id = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_id()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void HydratedQuickReplyButton::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.HydratedQuickReplyButton) GOOGLE_DCHECK_NE(&from, this); const HydratedQuickReplyButton* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.HydratedQuickReplyButton) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.HydratedQuickReplyButton) MergeFrom(*source); } } void HydratedQuickReplyButton::MergeFrom(const HydratedQuickReplyButton& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedQuickReplyButton) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _internal_set_displaytext(from._internal_displaytext()); } if (cached_has_bits & 0x00000002u) { _internal_set_id(from._internal_id()); } } } void HydratedQuickReplyButton::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.HydratedQuickReplyButton) if (&from == this) return; Clear(); MergeFrom(from); } void HydratedQuickReplyButton::CopyFrom(const HydratedQuickReplyButton& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.HydratedQuickReplyButton) if (&from == this) return; Clear(); MergeFrom(from); } bool HydratedQuickReplyButton::IsInitialized() const { return true; } void HydratedQuickReplyButton::InternalSwap(HydratedQuickReplyButton* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); displaytext_.Swap(&other->displaytext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata HydratedQuickReplyButton::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class HydratedURLButton::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_displaytext(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_url(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; HydratedURLButton::HydratedURLButton(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.HydratedURLButton) } HydratedURLButton::HydratedURLButton(const HydratedURLButton& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_displaytext()) { displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displaytext(), GetArena()); } url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_url()) { url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), GetArena()); } // @@protoc_insertion_point(copy_constructor:proto.HydratedURLButton) } void HydratedURLButton::SharedCtor() { displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } HydratedURLButton::~HydratedURLButton() { // @@protoc_insertion_point(destructor:proto.HydratedURLButton) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void HydratedURLButton::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); displaytext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void HydratedURLButton::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HydratedURLButton) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { displaytext_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { url_.ClearNonDefaultToEmpty(); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* HydratedURLButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string displayText = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_displaytext(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_url(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedURLButton.url"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* HydratedURLButton::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string displayText = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_displaytext().data(), static_cast(this->_internal_displaytext().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HydratedURLButton.displayText"); target = stream->WriteStringMaybeAliased( 1, this->_internal_displaytext(), target); } // optional string url = 2; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_url().data(), static_cast(this->_internal_url().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HydratedURLButton.url"); target = stream->WriteStringMaybeAliased( 2, this->_internal_url(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HydratedURLButton) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string displayText = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_displaytext()); } // optional string url = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_url()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void HydratedURLButton::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.HydratedURLButton) GOOGLE_DCHECK_NE(&from, this); const HydratedURLButton* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.HydratedURLButton) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.HydratedURLButton) MergeFrom(*source); } } void HydratedURLButton::MergeFrom(const HydratedURLButton& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedURLButton) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _internal_set_displaytext(from._internal_displaytext()); } if (cached_has_bits & 0x00000002u) { _internal_set_url(from._internal_url()); } } } void HydratedURLButton::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.HydratedURLButton) if (&from == this) return; Clear(); MergeFrom(from); } void HydratedURLButton::CopyFrom(const HydratedURLButton& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.HydratedURLButton) if (&from == this) return; Clear(); MergeFrom(from); } bool HydratedURLButton::IsInitialized() const { return true; } void HydratedURLButton::InternalSwap(HydratedURLButton* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); displaytext_.Swap(&other->displaytext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); url_.Swap(&other->url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata HydratedURLButton::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class HydratedCallButton::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_displaytext(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_phonenumber(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; HydratedCallButton::HydratedCallButton(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.HydratedCallButton) } HydratedCallButton::HydratedCallButton(const HydratedCallButton& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_displaytext()) { displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displaytext(), GetArena()); } phonenumber_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_phonenumber()) { phonenumber_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_phonenumber(), GetArena()); } // @@protoc_insertion_point(copy_constructor:proto.HydratedCallButton) } void HydratedCallButton::SharedCtor() { displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); phonenumber_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } HydratedCallButton::~HydratedCallButton() { // @@protoc_insertion_point(destructor:proto.HydratedCallButton) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void HydratedCallButton::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); displaytext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); phonenumber_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void HydratedCallButton::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HydratedCallButton) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { displaytext_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { phonenumber_.ClearNonDefaultToEmpty(); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* HydratedCallButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string displayText = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_displaytext(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_phonenumber(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedCallButton.phoneNumber"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* HydratedCallButton::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string displayText = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_displaytext().data(), static_cast(this->_internal_displaytext().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HydratedCallButton.displayText"); target = stream->WriteStringMaybeAliased( 1, this->_internal_displaytext(), target); } // optional string phoneNumber = 2; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_phonenumber().data(), static_cast(this->_internal_phonenumber().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HydratedCallButton.phoneNumber"); target = stream->WriteStringMaybeAliased( 2, this->_internal_phonenumber(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HydratedCallButton) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string displayText = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_displaytext()); } // optional string phoneNumber = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_phonenumber()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void HydratedCallButton::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.HydratedCallButton) GOOGLE_DCHECK_NE(&from, this); const HydratedCallButton* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.HydratedCallButton) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.HydratedCallButton) MergeFrom(*source); } } void HydratedCallButton::MergeFrom(const HydratedCallButton& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedCallButton) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _internal_set_displaytext(from._internal_displaytext()); } if (cached_has_bits & 0x00000002u) { _internal_set_phonenumber(from._internal_phonenumber()); } } } void HydratedCallButton::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.HydratedCallButton) if (&from == this) return; Clear(); MergeFrom(from); } void HydratedCallButton::CopyFrom(const HydratedCallButton& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.HydratedCallButton) if (&from == this) return; Clear(); MergeFrom(from); } bool HydratedCallButton::IsInitialized() const { return true; } void HydratedCallButton::InternalSwap(HydratedCallButton* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); displaytext_.Swap(&other->displaytext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); phonenumber_.Swap(&other->phonenumber_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata HydratedCallButton::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class HydratedTemplateButton::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_index(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::proto::HydratedQuickReplyButton& quickreplybutton(const HydratedTemplateButton* msg); static const ::proto::HydratedURLButton& urlbutton(const HydratedTemplateButton* msg); static const ::proto::HydratedCallButton& callbutton(const HydratedTemplateButton* msg); }; const ::proto::HydratedQuickReplyButton& HydratedTemplateButton::_Internal::quickreplybutton(const HydratedTemplateButton* msg) { return *msg->hydratedButton_.quickreplybutton_; } const ::proto::HydratedURLButton& HydratedTemplateButton::_Internal::urlbutton(const HydratedTemplateButton* msg) { return *msg->hydratedButton_.urlbutton_; } const ::proto::HydratedCallButton& HydratedTemplateButton::_Internal::callbutton(const HydratedTemplateButton* msg) { return *msg->hydratedButton_.callbutton_; } void HydratedTemplateButton::set_allocated_quickreplybutton(::proto::HydratedQuickReplyButton* quickreplybutton) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_hydratedButton(); if (quickreplybutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(quickreplybutton); if (message_arena != submessage_arena) { quickreplybutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, quickreplybutton, submessage_arena); } set_has_quickreplybutton(); hydratedButton_.quickreplybutton_ = quickreplybutton; } // @@protoc_insertion_point(field_set_allocated:proto.HydratedTemplateButton.quickReplyButton) } void HydratedTemplateButton::set_allocated_urlbutton(::proto::HydratedURLButton* urlbutton) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_hydratedButton(); if (urlbutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(urlbutton); if (message_arena != submessage_arena) { urlbutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, urlbutton, submessage_arena); } set_has_urlbutton(); hydratedButton_.urlbutton_ = urlbutton; } // @@protoc_insertion_point(field_set_allocated:proto.HydratedTemplateButton.urlButton) } void HydratedTemplateButton::set_allocated_callbutton(::proto::HydratedCallButton* callbutton) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_hydratedButton(); if (callbutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(callbutton); if (message_arena != submessage_arena) { callbutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, callbutton, submessage_arena); } set_has_callbutton(); hydratedButton_.callbutton_ = callbutton; } // @@protoc_insertion_point(field_set_allocated:proto.HydratedTemplateButton.callButton) } HydratedTemplateButton::HydratedTemplateButton(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.HydratedTemplateButton) } HydratedTemplateButton::HydratedTemplateButton(const HydratedTemplateButton& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); index_ = from.index_; clear_has_hydratedButton(); switch (from.hydratedButton_case()) { case kQuickReplyButton: { _internal_mutable_quickreplybutton()->::proto::HydratedQuickReplyButton::MergeFrom(from._internal_quickreplybutton()); break; } case kUrlButton: { _internal_mutable_urlbutton()->::proto::HydratedURLButton::MergeFrom(from._internal_urlbutton()); break; } case kCallButton: { _internal_mutable_callbutton()->::proto::HydratedCallButton::MergeFrom(from._internal_callbutton()); break; } case HYDRATEDBUTTON_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:proto.HydratedTemplateButton) } void HydratedTemplateButton::SharedCtor() { index_ = 0u; clear_has_hydratedButton(); } HydratedTemplateButton::~HydratedTemplateButton() { // @@protoc_insertion_point(destructor:proto.HydratedTemplateButton) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void HydratedTemplateButton::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); if (has_hydratedButton()) { clear_hydratedButton(); } } 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); } void HydratedTemplateButton::clear_hydratedButton() { // @@protoc_insertion_point(one_of_clear_start:proto.HydratedTemplateButton) switch (hydratedButton_case()) { case kQuickReplyButton: { if (GetArena() == nullptr) { delete hydratedButton_.quickreplybutton_; } break; } case kUrlButton: { if (GetArena() == nullptr) { delete hydratedButton_.urlbutton_; } break; } case kCallButton: { if (GetArena() == nullptr) { delete hydratedButton_.callbutton_; } break; } case HYDRATEDBUTTON_NOT_SET: { break; } } _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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; index_ = 0u; clear_hydratedButton(); _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* HydratedTemplateButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // .proto.HydratedQuickReplyButton quickReplyButton = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_quickreplybutton(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.HydratedURLButton urlButton = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_urlbutton(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.HydratedCallButton callButton = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_callbutton(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 index = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { _Internal::set_has_index(&has_bits); index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* HydratedTemplateButton::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (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); break; } case kUrlButton: { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 2, _Internal::urlbutton(this), target, stream); break; } case kCallButton: { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 3, _Internal::callbutton(this), target, stream); break; } default: ; } cached_has_bits = _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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HydratedTemplateButton) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional uint32 index = 4; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_index()); } switch (hydratedButton_case()) { // .proto.HydratedQuickReplyButton quickReplyButton = 1; case kQuickReplyButton: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *hydratedButton_.quickreplybutton_); break; } // .proto.HydratedURLButton urlButton = 2; case kUrlButton: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *hydratedButton_.urlbutton_); break; } // .proto.HydratedCallButton callButton = 3; case kCallButton: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *hydratedButton_.callbutton_); break; } case HYDRATEDBUTTON_NOT_SET: { break; } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void HydratedTemplateButton::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.HydratedTemplateButton) GOOGLE_DCHECK_NE(&from, this); const HydratedTemplateButton* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.HydratedTemplateButton) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.HydratedTemplateButton) MergeFrom(*source); } } void HydratedTemplateButton::MergeFrom(const HydratedTemplateButton& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedTemplateButton) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_index()) { _internal_set_index(from._internal_index()); } switch (from.hydratedButton_case()) { case kQuickReplyButton: { _internal_mutable_quickreplybutton()->::proto::HydratedQuickReplyButton::MergeFrom(from._internal_quickreplybutton()); break; } case kUrlButton: { _internal_mutable_urlbutton()->::proto::HydratedURLButton::MergeFrom(from._internal_urlbutton()); break; } case kCallButton: { _internal_mutable_callbutton()->::proto::HydratedCallButton::MergeFrom(from._internal_callbutton()); break; } case HYDRATEDBUTTON_NOT_SET: { break; } } } void HydratedTemplateButton::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.HydratedTemplateButton) if (&from == this) return; Clear(); MergeFrom(from); } void HydratedTemplateButton::CopyFrom(const HydratedTemplateButton& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.HydratedTemplateButton) if (&from == this) return; Clear(); MergeFrom(from); } bool HydratedTemplateButton::IsInitialized() const { return true; } void HydratedTemplateButton::InternalSwap(HydratedTemplateButton* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&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]); } ::PROTOBUF_NAMESPACE_ID::Metadata HydratedTemplateButton::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class QuickReplyButton::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::proto::HighlyStructuredMessage& displaytext(const QuickReplyButton* msg); static void set_has_displaytext(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_id(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; const ::proto::HighlyStructuredMessage& QuickReplyButton::_Internal::displaytext(const QuickReplyButton* msg) { return *msg->displaytext_; } QuickReplyButton::QuickReplyButton(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.QuickReplyButton) } QuickReplyButton::QuickReplyButton(const QuickReplyButton& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_id()) { id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), GetArena()); } if (from._internal_has_displaytext()) { displaytext_ = new ::proto::HighlyStructuredMessage(*from.displaytext_); } else { displaytext_ = nullptr; } // @@protoc_insertion_point(copy_constructor:proto.QuickReplyButton) } void QuickReplyButton::SharedCtor() { id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); displaytext_ = nullptr; } QuickReplyButton::~QuickReplyButton() { // @@protoc_insertion_point(destructor:proto.QuickReplyButton) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void QuickReplyButton::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete 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); } void QuickReplyButton::Clear() { // @@protoc_insertion_point(message_clear_start:proto.QuickReplyButton) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { id_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(displaytext_ != nullptr); displaytext_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* QuickReplyButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional .proto.HighlyStructuredMessage displayText = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_displaytext(), ptr); 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)) { auto str = _internal_mutable_id(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.QuickReplyButton.id"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* QuickReplyButton::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } // optional string id = 2; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_id().data(), static_cast(this->_internal_id().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.QuickReplyButton.id"); target = stream->WriteStringMaybeAliased( 2, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.QuickReplyButton) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string id = 2; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_id()); } // optional .proto.HighlyStructuredMessage displayText = 1; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *displaytext_); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void QuickReplyButton::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.QuickReplyButton) GOOGLE_DCHECK_NE(&from, this); const QuickReplyButton* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.QuickReplyButton) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.QuickReplyButton) MergeFrom(*source); } } void QuickReplyButton::MergeFrom(const QuickReplyButton& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.QuickReplyButton) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _internal_set_id(from._internal_id()); } if (cached_has_bits & 0x00000002u) { _internal_mutable_displaytext()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_displaytext()); } } } void QuickReplyButton::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.QuickReplyButton) if (&from == this) return; Clear(); MergeFrom(from); } void QuickReplyButton::CopyFrom(const QuickReplyButton& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.QuickReplyButton) if (&from == this) return; Clear(); MergeFrom(from); } bool QuickReplyButton::IsInitialized() const { return true; } void QuickReplyButton::InternalSwap(QuickReplyButton* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(displaytext_, other->displaytext_); } ::PROTOBUF_NAMESPACE_ID::Metadata QuickReplyButton::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class URLButton::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::proto::HighlyStructuredMessage& displaytext(const URLButton* msg); static void set_has_displaytext(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::proto::HighlyStructuredMessage& url(const URLButton* msg); static void set_has_url(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; const ::proto::HighlyStructuredMessage& URLButton::_Internal::displaytext(const URLButton* msg) { return *msg->displaytext_; } const ::proto::HighlyStructuredMessage& URLButton::_Internal::url(const URLButton* msg) { return *msg->url_; } URLButton::URLButton(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.URLButton) } URLButton::URLButton(const URLButton& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_displaytext()) { displaytext_ = new ::proto::HighlyStructuredMessage(*from.displaytext_); } else { displaytext_ = nullptr; } if (from._internal_has_url()) { url_ = new ::proto::HighlyStructuredMessage(*from.url_); } else { url_ = nullptr; } // @@protoc_insertion_point(copy_constructor:proto.URLButton) } void URLButton::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&displaytext_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&url_) - reinterpret_cast(&displaytext_)) + sizeof(url_)); } URLButton::~URLButton() { // @@protoc_insertion_point(destructor:proto.URLButton) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void URLButton::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); if (this != internal_default_instance()) delete displaytext_; if (this != internal_default_instance()) delete 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); } void URLButton::Clear() { // @@protoc_insertion_point(message_clear_start:proto.URLButton) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(displaytext_ != nullptr); displaytext_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(url_ != nullptr); url_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* URLButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional .proto.HighlyStructuredMessage displayText = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_displaytext(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.HighlyStructuredMessage url = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_url(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* URLButton::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.URLButton) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional .proto.HighlyStructuredMessage displayText = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *displaytext_); } // optional .proto.HighlyStructuredMessage url = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *url_); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void URLButton::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.URLButton) GOOGLE_DCHECK_NE(&from, this); const URLButton* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.URLButton) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.URLButton) MergeFrom(*source); } } void URLButton::MergeFrom(const URLButton& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.URLButton) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _internal_mutable_displaytext()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_displaytext()); } if (cached_has_bits & 0x00000002u) { _internal_mutable_url()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_url()); } } } void URLButton::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.URLButton) if (&from == this) return; Clear(); MergeFrom(from); } void URLButton::CopyFrom(const URLButton& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.URLButton) if (&from == this) return; Clear(); MergeFrom(from); } bool URLButton::IsInitialized() const { return true; } void URLButton::InternalSwap(URLButton* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(URLButton, url_) + sizeof(URLButton::url_) - PROTOBUF_FIELD_OFFSET(URLButton, displaytext_)>( reinterpret_cast(&displaytext_), reinterpret_cast(&other->displaytext_)); } ::PROTOBUF_NAMESPACE_ID::Metadata URLButton::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class CallButton::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::proto::HighlyStructuredMessage& displaytext(const CallButton* msg); static void set_has_displaytext(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::proto::HighlyStructuredMessage& phonenumber(const CallButton* msg); static void set_has_phonenumber(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; const ::proto::HighlyStructuredMessage& CallButton::_Internal::displaytext(const CallButton* msg) { return *msg->displaytext_; } const ::proto::HighlyStructuredMessage& CallButton::_Internal::phonenumber(const CallButton* msg) { return *msg->phonenumber_; } CallButton::CallButton(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.CallButton) } CallButton::CallButton(const CallButton& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_displaytext()) { displaytext_ = new ::proto::HighlyStructuredMessage(*from.displaytext_); } else { displaytext_ = nullptr; } if (from._internal_has_phonenumber()) { phonenumber_ = new ::proto::HighlyStructuredMessage(*from.phonenumber_); } else { phonenumber_ = nullptr; } // @@protoc_insertion_point(copy_constructor:proto.CallButton) } void CallButton::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&displaytext_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&phonenumber_) - reinterpret_cast(&displaytext_)) + sizeof(phonenumber_)); } CallButton::~CallButton() { // @@protoc_insertion_point(destructor:proto.CallButton) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void CallButton::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); if (this != internal_default_instance()) delete displaytext_; if (this != internal_default_instance()) delete 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); } void CallButton::Clear() { // @@protoc_insertion_point(message_clear_start:proto.CallButton) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(displaytext_ != nullptr); displaytext_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(phonenumber_ != nullptr); phonenumber_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CallButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional .proto.HighlyStructuredMessage displayText = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_displaytext(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.HighlyStructuredMessage phoneNumber = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_phonenumber(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* CallButton::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.CallButton) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional .proto.HighlyStructuredMessage displayText = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *displaytext_); } // optional .proto.HighlyStructuredMessage phoneNumber = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *phonenumber_); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void CallButton::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.CallButton) GOOGLE_DCHECK_NE(&from, this); const CallButton* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.CallButton) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.CallButton) MergeFrom(*source); } } void CallButton::MergeFrom(const CallButton& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.CallButton) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _internal_mutable_displaytext()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_displaytext()); } if (cached_has_bits & 0x00000002u) { _internal_mutable_phonenumber()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_phonenumber()); } } } void CallButton::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.CallButton) if (&from == this) return; Clear(); MergeFrom(from); } void CallButton::CopyFrom(const CallButton& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.CallButton) if (&from == this) return; Clear(); MergeFrom(from); } bool CallButton::IsInitialized() const { return true; } void CallButton::InternalSwap(CallButton* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(CallButton, phonenumber_) + sizeof(CallButton::phonenumber_) - PROTOBUF_FIELD_OFFSET(CallButton, displaytext_)>( reinterpret_cast(&displaytext_), reinterpret_cast(&other->displaytext_)); } ::PROTOBUF_NAMESPACE_ID::Metadata CallButton::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class TemplateButton::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_index(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::proto::QuickReplyButton& quickreplybutton(const TemplateButton* msg); static const ::proto::URLButton& urlbutton(const TemplateButton* msg); static const ::proto::CallButton& callbutton(const TemplateButton* msg); }; const ::proto::QuickReplyButton& TemplateButton::_Internal::quickreplybutton(const TemplateButton* msg) { return *msg->button_.quickreplybutton_; } const ::proto::URLButton& TemplateButton::_Internal::urlbutton(const TemplateButton* msg) { return *msg->button_.urlbutton_; } const ::proto::CallButton& TemplateButton::_Internal::callbutton(const TemplateButton* msg) { return *msg->button_.callbutton_; } void TemplateButton::set_allocated_quickreplybutton(::proto::QuickReplyButton* quickreplybutton) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_button(); if (quickreplybutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(quickreplybutton); if (message_arena != submessage_arena) { quickreplybutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, quickreplybutton, submessage_arena); } set_has_quickreplybutton(); button_.quickreplybutton_ = quickreplybutton; } // @@protoc_insertion_point(field_set_allocated:proto.TemplateButton.quickReplyButton) } void TemplateButton::set_allocated_urlbutton(::proto::URLButton* urlbutton) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_button(); if (urlbutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(urlbutton); if (message_arena != submessage_arena) { urlbutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, urlbutton, submessage_arena); } set_has_urlbutton(); button_.urlbutton_ = urlbutton; } // @@protoc_insertion_point(field_set_allocated:proto.TemplateButton.urlButton) } void TemplateButton::set_allocated_callbutton(::proto::CallButton* callbutton) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_button(); if (callbutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(callbutton); if (message_arena != submessage_arena) { callbutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, callbutton, submessage_arena); } set_has_callbutton(); button_.callbutton_ = callbutton; } // @@protoc_insertion_point(field_set_allocated:proto.TemplateButton.callButton) } TemplateButton::TemplateButton(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.TemplateButton) } TemplateButton::TemplateButton(const TemplateButton& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); index_ = from.index_; clear_has_button(); switch (from.button_case()) { case kQuickReplyButton: { _internal_mutable_quickreplybutton()->::proto::QuickReplyButton::MergeFrom(from._internal_quickreplybutton()); break; } case kUrlButton: { _internal_mutable_urlbutton()->::proto::URLButton::MergeFrom(from._internal_urlbutton()); break; } case kCallButton: { _internal_mutable_callbutton()->::proto::CallButton::MergeFrom(from._internal_callbutton()); break; } case BUTTON_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:proto.TemplateButton) } void TemplateButton::SharedCtor() { index_ = 0u; clear_has_button(); } TemplateButton::~TemplateButton() { // @@protoc_insertion_point(destructor:proto.TemplateButton) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void TemplateButton::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); if (has_button()) { clear_button(); } } 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); } void TemplateButton::clear_button() { // @@protoc_insertion_point(one_of_clear_start:proto.TemplateButton) switch (button_case()) { case kQuickReplyButton: { if (GetArena() == nullptr) { delete button_.quickreplybutton_; } break; } case kUrlButton: { if (GetArena() == nullptr) { delete button_.urlbutton_; } break; } case kCallButton: { if (GetArena() == nullptr) { delete button_.callbutton_; } break; } case BUTTON_NOT_SET: { break; } } _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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; index_ = 0u; clear_button(); _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* TemplateButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // .proto.QuickReplyButton quickReplyButton = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_quickreplybutton(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.URLButton urlButton = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_urlbutton(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.CallButton callButton = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_callbutton(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 index = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { _Internal::set_has_index(&has_bits); index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* TemplateButton::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (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); break; } case kUrlButton: { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 2, _Internal::urlbutton(this), target, stream); break; } case kCallButton: { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 3, _Internal::callbutton(this), target, stream); break; } default: ; } cached_has_bits = _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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.TemplateButton) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional uint32 index = 4; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_index()); } switch (button_case()) { // .proto.QuickReplyButton quickReplyButton = 1; case kQuickReplyButton: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *button_.quickreplybutton_); break; } // .proto.URLButton urlButton = 2; case kUrlButton: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *button_.urlbutton_); break; } // .proto.CallButton callButton = 3; case kCallButton: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *button_.callbutton_); break; } case BUTTON_NOT_SET: { break; } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void TemplateButton::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.TemplateButton) GOOGLE_DCHECK_NE(&from, this); const TemplateButton* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.TemplateButton) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.TemplateButton) MergeFrom(*source); } } void TemplateButton::MergeFrom(const TemplateButton& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.TemplateButton) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_index()) { _internal_set_index(from._internal_index()); } switch (from.button_case()) { case kQuickReplyButton: { _internal_mutable_quickreplybutton()->::proto::QuickReplyButton::MergeFrom(from._internal_quickreplybutton()); break; } case kUrlButton: { _internal_mutable_urlbutton()->::proto::URLButton::MergeFrom(from._internal_urlbutton()); break; } case kCallButton: { _internal_mutable_callbutton()->::proto::CallButton::MergeFrom(from._internal_callbutton()); break; } case BUTTON_NOT_SET: { break; } } } void TemplateButton::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.TemplateButton) if (&from == this) return; Clear(); MergeFrom(from); } void TemplateButton::CopyFrom(const TemplateButton& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.TemplateButton) if (&from == this) return; Clear(); MergeFrom(from); } bool TemplateButton::IsInitialized() const { return true; } void TemplateButton::InternalSwap(TemplateButton* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&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]); } ::PROTOBUF_NAMESPACE_ID::Metadata TemplateButton::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class Location::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_degreeslatitude(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_degreeslongitude(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_name(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; Location::Location(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.Location) } Location::Location(const Location& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_name()) { name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), GetArena()); } ::memcpy(°reeslatitude_, &from.degreeslatitude_, static_cast(reinterpret_cast(°reeslongitude_) - reinterpret_cast(°reeslatitude_)) + sizeof(degreeslongitude_)); // @@protoc_insertion_point(copy_constructor:proto.Location) } void Location::SharedCtor() { name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(°reeslatitude_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(°reeslongitude_) - reinterpret_cast(°reeslatitude_)) + sizeof(degreeslongitude_)); } Location::~Location() { // @@protoc_insertion_point(destructor:proto.Location) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Location::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void Location::Clear() { // @@protoc_insertion_point(message_clear_start:proto.Location) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000006u) { ::memset(°reeslatitude_, 0, static_cast( reinterpret_cast(°reeslongitude_) - reinterpret_cast(°reeslatitude_)) + sizeof(degreeslongitude_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Location::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional double degreesLatitude = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { _Internal::set_has_degreeslatitude(&has_bits); degreeslatitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(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)) { _Internal::set_has_degreeslongitude(&has_bits); degreeslongitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(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)) { auto str = _internal_mutable_name(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Location.name"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* Location::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } // 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); } // optional string name = 3; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_name().data(), static_cast(this->_internal_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.Location.name"); target = stream->WriteStringMaybeAliased( 3, this->_internal_name(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.Location) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string name = 3; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_name()); } // optional double degreesLatitude = 1; if (cached_has_bits & 0x00000002u) { total_size += 1 + 8; } // optional double degreesLongitude = 2; if (cached_has_bits & 0x00000004u) { total_size += 1 + 8; } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Location::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.Location) GOOGLE_DCHECK_NE(&from, this); const Location* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.Location) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.Location) MergeFrom(*source); } } void Location::MergeFrom(const Location& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.Location) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { _internal_set_name(from._internal_name()); } if (cached_has_bits & 0x00000002u) { degreeslatitude_ = from.degreeslatitude_; } if (cached_has_bits & 0x00000004u) { degreeslongitude_ = from.degreeslongitude_; } _has_bits_[0] |= cached_has_bits; } } void Location::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.Location) if (&from == this) return; Clear(); MergeFrom(from); } void Location::CopyFrom(const Location& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.Location) if (&from == this) return; Clear(); MergeFrom(from); } bool Location::IsInitialized() const { return true; } void Location::InternalSwap(Location* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Location, degreeslongitude_) + sizeof(Location::degreeslongitude_) - PROTOBUF_FIELD_OFFSET(Location, degreeslatitude_)>( reinterpret_cast(°reeslatitude_), reinterpret_cast(&other->degreeslatitude_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Location::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class Point::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_xdeprecated(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_ydeprecated(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_x(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_y(HasBits* has_bits) { (*has_bits)[0] |= 8u; } }; Point::Point(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.Point) } Point::Point(const Point& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&xdeprecated_, &from.xdeprecated_, static_cast(reinterpret_cast(&y_) - reinterpret_cast(&xdeprecated_)) + sizeof(y_)); // @@protoc_insertion_point(copy_constructor:proto.Point) } void Point::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&xdeprecated_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&y_) - reinterpret_cast(&xdeprecated_)) + sizeof(y_)); } Point::~Point() { // @@protoc_insertion_point(destructor:proto.Point) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Point::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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); } void Point::Clear() { // @@protoc_insertion_point(message_clear_start:proto.Point) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { ::memset(&xdeprecated_, 0, static_cast( reinterpret_cast(&y_) - reinterpret_cast(&xdeprecated_)) + sizeof(y_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Point::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional int32 xDeprecated = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { _Internal::set_has_xdeprecated(&has_bits); xdeprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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)) { _Internal::set_has_ydeprecated(&has_bits); ydeprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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)) { _Internal::set_has_x(&has_bits); x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(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)) { _Internal::set_has_y(&has_bits); y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); ptr += sizeof(double); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* Point::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } // 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); } // 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); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.Point) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional int32 xDeprecated = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_xdeprecated()); } // optional int32 yDeprecated = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->_internal_ydeprecated()); } // optional double x = 3; if (cached_has_bits & 0x00000004u) { total_size += 1 + 8; } // optional double y = 4; if (cached_has_bits & 0x00000008u) { total_size += 1 + 8; } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Point::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.Point) GOOGLE_DCHECK_NE(&from, this); const Point* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.Point) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.Point) MergeFrom(*source); } } void Point::MergeFrom(const Point& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.Point) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { xdeprecated_ = from.xdeprecated_; } if (cached_has_bits & 0x00000002u) { ydeprecated_ = from.ydeprecated_; } if (cached_has_bits & 0x00000004u) { x_ = from.x_; } if (cached_has_bits & 0x00000008u) { y_ = from.y_; } _has_bits_[0] |= cached_has_bits; } } void Point::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.Point) if (&from == this) return; Clear(); MergeFrom(from); } void Point::CopyFrom(const Point& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.Point) if (&from == this) return; Clear(); MergeFrom(from); } bool Point::IsInitialized() const { return true; } void Point::InternalSwap(Point* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Point, y_) + sizeof(Point::y_) - PROTOBUF_FIELD_OFFSET(Point, xdeprecated_)>( reinterpret_cast(&xdeprecated_), reinterpret_cast(&other->xdeprecated_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Point::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class InteractiveAnnotation::_Internal { public: static const ::proto::Location& location(const InteractiveAnnotation* msg); }; const ::proto::Location& InteractiveAnnotation::_Internal::location(const InteractiveAnnotation* msg) { return *msg->action_.location_; } void InteractiveAnnotation::set_allocated_location(::proto::Location* location) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_action(); if (location) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(location); if (message_arena != submessage_arena) { location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, location, submessage_arena); } set_has_location(); action_.location_ = location; } // @@protoc_insertion_point(field_set_allocated:proto.InteractiveAnnotation.location) } InteractiveAnnotation::InteractiveAnnotation(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), polygonvertices_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.InteractiveAnnotation) } InteractiveAnnotation::InteractiveAnnotation(const InteractiveAnnotation& from) : ::PROTOBUF_NAMESPACE_ID::Message(), polygonvertices_(from.polygonvertices_) { _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()); break; } case ACTION_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:proto.InteractiveAnnotation) } void InteractiveAnnotation::SharedCtor() { clear_has_action(); } InteractiveAnnotation::~InteractiveAnnotation() { // @@protoc_insertion_point(destructor:proto.InteractiveAnnotation) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void InteractiveAnnotation::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); 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); } void InteractiveAnnotation::clear_action() { // @@protoc_insertion_point(one_of_clear_start:proto.InteractiveAnnotation) switch (action_case()) { case kLocation: { if (GetArena() == nullptr) { delete action_.location_; } break; } case ACTION_NOT_SET: { break; } } _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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; polygonvertices_.Clear(); clear_action(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* InteractiveAnnotation::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // repeated .proto.Point polygonVertices = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_polygonvertices(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); } else goto handle_unusual; continue; // .proto.Location location = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_location(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* InteractiveAnnotation::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; // repeated .proto.Point polygonVertices = 1; for (unsigned int i = 0, n = static_cast(this->_internal_polygonvertices_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, this->_internal_polygonvertices(i), 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.InteractiveAnnotation) return target; } 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; // 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_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } switch (action_case()) { // .proto.Location location = 2; case kLocation: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *action_.location_); break; } case ACTION_NOT_SET: { break; } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void InteractiveAnnotation::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.InteractiveAnnotation) GOOGLE_DCHECK_NE(&from, this); const InteractiveAnnotation* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.InteractiveAnnotation) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.InteractiveAnnotation) MergeFrom(*source); } } void InteractiveAnnotation::MergeFrom(const InteractiveAnnotation& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.InteractiveAnnotation) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; polygonvertices_.MergeFrom(from.polygonvertices_); switch (from.action_case()) { case kLocation: { _internal_mutable_location()->::proto::Location::MergeFrom(from._internal_location()); break; } case ACTION_NOT_SET: { break; } } } void InteractiveAnnotation::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.InteractiveAnnotation) if (&from == this) return; Clear(); MergeFrom(from); } void InteractiveAnnotation::CopyFrom(const InteractiveAnnotation& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.InteractiveAnnotation) if (&from == this) return; Clear(); MergeFrom(from); } bool InteractiveAnnotation::IsInitialized() const { return true; } void InteractiveAnnotation::InternalSwap(InteractiveAnnotation* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); polygonvertices_.InternalSwap(&other->polygonvertices_); swap(action_, other->action_); swap(_oneof_case_[0], other->_oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata InteractiveAnnotation::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class DeviceListMetadata::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_senderkeyhash(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_sendertimestamp(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_recipientkeyhash(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_recipienttimestamp(HasBits* has_bits) { (*has_bits)[0] |= 8u; } }; DeviceListMetadata::DeviceListMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.DeviceListMetadata) } DeviceListMetadata::DeviceListMetadata(const DeviceListMetadata& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); senderkeyhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_senderkeyhash()) { senderkeyhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_senderkeyhash(), GetArena()); } recipientkeyhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_recipientkeyhash()) { recipientkeyhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_recipientkeyhash(), GetArena()); } ::memcpy(&sendertimestamp_, &from.sendertimestamp_, static_cast(reinterpret_cast(&recipienttimestamp_) - reinterpret_cast(&sendertimestamp_)) + sizeof(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(this) + static_cast( reinterpret_cast(&sendertimestamp_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&recipienttimestamp_) - reinterpret_cast(&sendertimestamp_)) + sizeof(recipienttimestamp_)); } DeviceListMetadata::~DeviceListMetadata() { // @@protoc_insertion_point(destructor:proto.DeviceListMetadata) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void DeviceListMetadata::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); senderkeyhash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); recipientkeyhash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void DeviceListMetadata::Clear() { // @@protoc_insertion_point(message_clear_start:proto.DeviceListMetadata) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { senderkeyhash_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { recipientkeyhash_.ClearNonDefaultToEmpty(); } } if (cached_has_bits & 0x0000000cu) { ::memset(&sendertimestamp_, 0, static_cast( reinterpret_cast(&recipienttimestamp_) - reinterpret_cast(&sendertimestamp_)) + sizeof(recipienttimestamp_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* DeviceListMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional bytes senderKeyHash = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_senderkeyhash(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_sendertimestamp(&has_bits); 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)) { auto str = _internal_mutable_recipientkeyhash(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_recipienttimestamp(&has_bits); recipienttimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* DeviceListMetadata::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional bytes senderKeyHash = 1; if (cached_has_bits & 0x00000001u) { target = stream->WriteBytesMaybeAliased( 1, this->_internal_senderkeyhash(), target); } // 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); } // optional bytes recipientKeyHash = 8; if (cached_has_bits & 0x00000002u) { target = stream->WriteBytesMaybeAliased( 8, this->_internal_recipientkeyhash(), target); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.DeviceListMetadata) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional bytes senderKeyHash = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_senderkeyhash()); } // optional bytes recipientKeyHash = 8; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_recipientkeyhash()); } // optional uint64 senderTimestamp = 2; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( this->_internal_sendertimestamp()); } // optional uint64 recipientTimestamp = 9; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( this->_internal_recipienttimestamp()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void DeviceListMetadata::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.DeviceListMetadata) GOOGLE_DCHECK_NE(&from, this); const DeviceListMetadata* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.DeviceListMetadata) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.DeviceListMetadata) MergeFrom(*source); } } void DeviceListMetadata::MergeFrom(const DeviceListMetadata& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.DeviceListMetadata) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { _internal_set_senderkeyhash(from._internal_senderkeyhash()); } if (cached_has_bits & 0x00000002u) { _internal_set_recipientkeyhash(from._internal_recipientkeyhash()); } if (cached_has_bits & 0x00000004u) { sendertimestamp_ = from.sendertimestamp_; } if (cached_has_bits & 0x00000008u) { recipienttimestamp_ = from.recipienttimestamp_; } _has_bits_[0] |= cached_has_bits; } } void DeviceListMetadata::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.DeviceListMetadata) if (&from == this) return; Clear(); MergeFrom(from); } void DeviceListMetadata::CopyFrom(const DeviceListMetadata& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.DeviceListMetadata) if (&from == this) return; Clear(); MergeFrom(from); } bool DeviceListMetadata::IsInitialized() const { return true; } void DeviceListMetadata::InternalSwap(DeviceListMetadata* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); senderkeyhash_.Swap(&other->senderkeyhash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); recipientkeyhash_.Swap(&other->recipientkeyhash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(DeviceListMetadata, recipienttimestamp_) + sizeof(DeviceListMetadata::recipienttimestamp_) - PROTOBUF_FIELD_OFFSET(DeviceListMetadata, sendertimestamp_)>( reinterpret_cast(&sendertimestamp_), reinterpret_cast(&other->sendertimestamp_)); } ::PROTOBUF_NAMESPACE_ID::Metadata DeviceListMetadata::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class MessageContextInfo::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::proto::DeviceListMetadata& devicelistmetadata(const MessageContextInfo* msg); static void set_has_devicelistmetadata(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; const ::proto::DeviceListMetadata& MessageContextInfo::_Internal::devicelistmetadata(const MessageContextInfo* msg) { return *msg->devicelistmetadata_; } MessageContextInfo::MessageContextInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.MessageContextInfo) } MessageContextInfo::MessageContextInfo(const MessageContextInfo& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_devicelistmetadata()) { devicelistmetadata_ = new ::proto::DeviceListMetadata(*from.devicelistmetadata_); } else { devicelistmetadata_ = nullptr; } // @@protoc_insertion_point(copy_constructor:proto.MessageContextInfo) } void MessageContextInfo::SharedCtor() { devicelistmetadata_ = nullptr; } MessageContextInfo::~MessageContextInfo() { // @@protoc_insertion_point(destructor:proto.MessageContextInfo) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void MessageContextInfo::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); if (this != internal_default_instance()) delete 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); } void MessageContextInfo::Clear() { // @@protoc_insertion_point(message_clear_start:proto.MessageContextInfo) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(devicelistmetadata_ != nullptr); devicelistmetadata_->Clear(); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* MessageContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional .proto.DeviceListMetadata deviceListMetadata = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_devicelistmetadata(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* MessageContextInfo::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.MessageContextInfo) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional .proto.DeviceListMetadata deviceListMetadata = 1; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *devicelistmetadata_); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void MessageContextInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.MessageContextInfo) GOOGLE_DCHECK_NE(&from, this); const MessageContextInfo* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.MessageContextInfo) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.MessageContextInfo) MergeFrom(*source); } } void MessageContextInfo::MergeFrom(const MessageContextInfo& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.MessageContextInfo) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_devicelistmetadata()) { _internal_mutable_devicelistmetadata()->::proto::DeviceListMetadata::MergeFrom(from._internal_devicelistmetadata()); } } void MessageContextInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.MessageContextInfo) if (&from == this) return; Clear(); MergeFrom(from); } void MessageContextInfo::CopyFrom(const MessageContextInfo& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.MessageContextInfo) if (&from == this) return; Clear(); MergeFrom(from); } bool MessageContextInfo::IsInitialized() const { return true; } void MessageContextInfo::InternalSwap(MessageContextInfo* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(devicelistmetadata_, other->devicelistmetadata_); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageContextInfo::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class AdReplyInfo::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_advertisername(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_mediatype(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_jpegthumbnail(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_caption(HasBits* has_bits) { (*has_bits)[0] |= 4u; } }; AdReplyInfo::AdReplyInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.AdReplyInfo) } AdReplyInfo::AdReplyInfo(const AdReplyInfo& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); advertisername_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_advertisername()) { advertisername_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_advertisername(), GetArena()); } jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_jpegthumbnail()) { jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), GetArena()); } caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_caption()) { caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_caption(), GetArena()); } mediatype_ = from.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; } AdReplyInfo::~AdReplyInfo() { // @@protoc_insertion_point(destructor:proto.AdReplyInfo) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void AdReplyInfo::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); advertisername_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); jpegthumbnail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); caption_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void AdReplyInfo::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AdReplyInfo) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { advertisername_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { jpegthumbnail_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { caption_.ClearNonDefaultToEmpty(); } } mediatype_ = 0; _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* AdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string advertiserName = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_advertisername(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::AdReplyInfo_AdReplyInfoMediaType_IsValid(val))) { _internal_set_mediatype(static_cast<::proto::AdReplyInfo_AdReplyInfoMediaType>(val)); } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); } } else goto handle_unusual; continue; // optional bytes jpegThumbnail = 16; case 16: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { auto str = _internal_mutable_jpegthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_caption(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.AdReplyInfo.caption"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* AdReplyInfo::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string advertiserName = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_advertisername().data(), static_cast(this->_internal_advertisername().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.AdReplyInfo.advertiserName"); target = stream->WriteStringMaybeAliased( 1, this->_internal_advertisername(), target); } // optional .proto.AdReplyInfo.AdReplyInfoMediaType mediaType = 2; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 2, this->_internal_mediatype(), target); } // optional bytes jpegThumbnail = 16; if (cached_has_bits & 0x00000002u) { target = stream->WriteBytesMaybeAliased( 16, this->_internal_jpegthumbnail(), target); } // optional string caption = 17; if (cached_has_bits & 0x00000004u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_caption().data(), static_cast(this->_internal_caption().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.AdReplyInfo.caption"); target = stream->WriteStringMaybeAliased( 17, this->_internal_caption(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AdReplyInfo) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional string advertiserName = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_advertisername()); } // optional bytes jpegThumbnail = 16; if (cached_has_bits & 0x00000002u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_jpegthumbnail()); } // optional string caption = 17; if (cached_has_bits & 0x00000004u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_caption()); } // optional .proto.AdReplyInfo.AdReplyInfoMediaType mediaType = 2; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_mediatype()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void AdReplyInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.AdReplyInfo) GOOGLE_DCHECK_NE(&from, this); const AdReplyInfo* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.AdReplyInfo) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.AdReplyInfo) MergeFrom(*source); } } void AdReplyInfo::MergeFrom(const AdReplyInfo& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AdReplyInfo) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { _internal_set_advertisername(from._internal_advertisername()); } if (cached_has_bits & 0x00000002u) { _internal_set_jpegthumbnail(from._internal_jpegthumbnail()); } if (cached_has_bits & 0x00000004u) { _internal_set_caption(from._internal_caption()); } if (cached_has_bits & 0x00000008u) { mediatype_ = from.mediatype_; } _has_bits_[0] |= cached_has_bits; } } void AdReplyInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.AdReplyInfo) if (&from == this) return; Clear(); MergeFrom(from); } void AdReplyInfo::CopyFrom(const AdReplyInfo& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.AdReplyInfo) if (&from == this) return; Clear(); MergeFrom(from); } bool AdReplyInfo::IsInitialized() const { return true; } void AdReplyInfo::InternalSwap(AdReplyInfo* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); advertisername_.Swap(&other->advertisername_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); jpegthumbnail_.Swap(&other->jpegthumbnail_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); caption_.Swap(&other->caption_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(mediatype_, other->mediatype_); } ::PROTOBUF_NAMESPACE_ID::Metadata AdReplyInfo::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class ExternalAdReplyInfo::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_title(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_body(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_mediatype(HasBits* has_bits) { (*has_bits)[0] |= 256u; } static void set_has_thumbnailurl(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_mediaurl(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_thumbnail(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_sourcetype(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static void set_has_sourceid(HasBits* has_bits) { (*has_bits)[0] |= 64u; } static void set_has_sourceurl(HasBits* has_bits) { (*has_bits)[0] |= 128u; } }; ExternalAdReplyInfo::ExternalAdReplyInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.ExternalAdReplyInfo) } ExternalAdReplyInfo::ExternalAdReplyInfo(const ExternalAdReplyInfo& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), GetArena()); } body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_body()) { body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_body(), GetArena()); } thumbnailurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnailurl()) { thumbnailurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailurl(), GetArena()); } mediaurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mediaurl()) { mediaurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediaurl(), GetArena()); } thumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnail()) { thumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnail(), GetArena()); } sourcetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_sourcetype()) { sourcetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sourcetype(), GetArena()); } sourceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_sourceid()) { sourceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sourceid(), GetArena()); } sourceurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_sourceurl()) { sourceurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sourceurl(), GetArena()); } mediatype_ = from.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; } ExternalAdReplyInfo::~ExternalAdReplyInfo() { // @@protoc_insertion_point(destructor:proto.ExternalAdReplyInfo) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void ExternalAdReplyInfo::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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()); } 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); } void ExternalAdReplyInfo::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ExternalAdReplyInfo) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { title_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { body_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { thumbnailurl_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { mediaurl_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { thumbnail_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { sourcetype_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { sourceid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { sourceurl_.ClearNonDefaultToEmpty(); } } mediatype_ = 0; _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ExternalAdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string title = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_title(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_body(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_IsValid(val))) { _internal_set_mediatype(static_cast<::proto::ExternalAdReplyInfo_ExternalAdReplyInfoMediaType>(val)); } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); } } else goto handle_unusual; continue; // optional string thumbnailUrl = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { auto str = _internal_mutable_thumbnailurl(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_mediaurl(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_thumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_sourcetype(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_sourceid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_sourceurl(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExternalAdReplyInfo.sourceUrl"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* ExternalAdReplyInfo::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string title = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_title().data(), static_cast(this->_internal_title().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ExternalAdReplyInfo.title"); target = stream->WriteStringMaybeAliased( 1, this->_internal_title(), target); } // optional string body = 2; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_body().data(), static_cast(this->_internal_body().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ExternalAdReplyInfo.body"); target = stream->WriteStringMaybeAliased( 2, this->_internal_body(), target); } // optional .proto.ExternalAdReplyInfo.ExternalAdReplyInfoMediaType mediaType = 3; if (cached_has_bits & 0x00000100u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 3, this->_internal_mediatype(), target); } // optional string thumbnailUrl = 4; if (cached_has_bits & 0x00000004u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_thumbnailurl().data(), static_cast(this->_internal_thumbnailurl().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ExternalAdReplyInfo.thumbnailUrl"); target = stream->WriteStringMaybeAliased( 4, this->_internal_thumbnailurl(), target); } // optional string mediaUrl = 5; if (cached_has_bits & 0x00000008u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_mediaurl().data(), static_cast(this->_internal_mediaurl().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ExternalAdReplyInfo.mediaUrl"); target = stream->WriteStringMaybeAliased( 5, this->_internal_mediaurl(), target); } // optional bytes thumbnail = 6; if (cached_has_bits & 0x00000010u) { target = stream->WriteBytesMaybeAliased( 6, this->_internal_thumbnail(), target); } // optional string sourceType = 7; if (cached_has_bits & 0x00000020u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_sourcetype().data(), static_cast(this->_internal_sourcetype().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ExternalAdReplyInfo.sourceType"); target = stream->WriteStringMaybeAliased( 7, this->_internal_sourcetype(), target); } // optional string sourceId = 8; if (cached_has_bits & 0x00000040u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_sourceid().data(), static_cast(this->_internal_sourceid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ExternalAdReplyInfo.sourceId"); target = stream->WriteStringMaybeAliased( 8, this->_internal_sourceid(), target); } // optional string sourceUrl = 9; if (cached_has_bits & 0x00000080u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_sourceurl().data(), static_cast(this->_internal_sourceurl().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ExternalAdReplyInfo.sourceUrl"); target = stream->WriteStringMaybeAliased( 9, this->_internal_sourceurl(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ExternalAdReplyInfo) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string title = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_title()); } // optional string body = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_body()); } // optional string thumbnailUrl = 4; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_thumbnailurl()); } // optional string mediaUrl = 5; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_mediaurl()); } // optional bytes thumbnail = 6; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_thumbnail()); } // optional string sourceType = 7; if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_sourcetype()); } // optional string sourceId = 8; if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_sourceid()); } // optional string sourceUrl = 9; if (cached_has_bits & 0x00000080u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_sourceurl()); } } // optional .proto.ExternalAdReplyInfo.ExternalAdReplyInfoMediaType mediaType = 3; if (cached_has_bits & 0x00000100u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_mediatype()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ExternalAdReplyInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.ExternalAdReplyInfo) GOOGLE_DCHECK_NE(&from, this); const ExternalAdReplyInfo* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.ExternalAdReplyInfo) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.ExternalAdReplyInfo) MergeFrom(*source); } } void ExternalAdReplyInfo::MergeFrom(const ExternalAdReplyInfo& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ExternalAdReplyInfo) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { _internal_set_title(from._internal_title()); } if (cached_has_bits & 0x00000002u) { _internal_set_body(from._internal_body()); } if (cached_has_bits & 0x00000004u) { _internal_set_thumbnailurl(from._internal_thumbnailurl()); } if (cached_has_bits & 0x00000008u) { _internal_set_mediaurl(from._internal_mediaurl()); } if (cached_has_bits & 0x00000010u) { _internal_set_thumbnail(from._internal_thumbnail()); } if (cached_has_bits & 0x00000020u) { _internal_set_sourcetype(from._internal_sourcetype()); } if (cached_has_bits & 0x00000040u) { _internal_set_sourceid(from._internal_sourceid()); } if (cached_has_bits & 0x00000080u) { _internal_set_sourceurl(from._internal_sourceurl()); } } if (cached_has_bits & 0x00000100u) { _internal_set_mediatype(from._internal_mediatype()); } } void ExternalAdReplyInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.ExternalAdReplyInfo) if (&from == this) return; Clear(); MergeFrom(from); } void ExternalAdReplyInfo::CopyFrom(const ExternalAdReplyInfo& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.ExternalAdReplyInfo) if (&from == this) return; Clear(); MergeFrom(from); } bool ExternalAdReplyInfo::IsInitialized() const { return true; } void ExternalAdReplyInfo::InternalSwap(ExternalAdReplyInfo* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); title_.Swap(&other->title_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); body_.Swap(&other->body_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); thumbnailurl_.Swap(&other->thumbnailurl_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); mediaurl_.Swap(&other->mediaurl_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); thumbnail_.Swap(&other->thumbnail_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); sourcetype_.Swap(&other->sourcetype_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); sourceid_.Swap(&other->sourceid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); sourceurl_.Swap(&other->sourceurl_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(mediatype_, other->mediatype_); } ::PROTOBUF_NAMESPACE_ID::Metadata ExternalAdReplyInfo::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class ContextInfo::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_stanzaid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_participant(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static const ::proto::Message& quotedmessage(const ContextInfo* msg); static void set_has_quotedmessage(HasBits* has_bits) { (*has_bits)[0] |= 64u; } static void set_has_remotejid(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_conversionsource(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_conversiondata(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_conversiondelayseconds(HasBits* has_bits) { (*has_bits)[0] |= 1024u; } static void set_has_forwardingscore(HasBits* has_bits) { (*has_bits)[0] |= 2048u; } static void set_has_isforwarded(HasBits* has_bits) { (*has_bits)[0] |= 4096u; } static const ::proto::AdReplyInfo& quotedad(const ContextInfo* msg); static void set_has_quotedad(HasBits* has_bits) { (*has_bits)[0] |= 128u; } static const ::proto::MessageKey& placeholderkey(const ContextInfo* msg); static void set_has_placeholderkey(HasBits* has_bits) { (*has_bits)[0] |= 256u; } static void set_has_expiration(HasBits* has_bits) { (*has_bits)[0] |= 8192u; } static void set_has_ephemeralsettingtimestamp(HasBits* has_bits) { (*has_bits)[0] |= 16384u; } static void set_has_ephemeralsharedsecret(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static const ::proto::ExternalAdReplyInfo& externaladreply(const ContextInfo* msg); static void set_has_externaladreply(HasBits* has_bits) { (*has_bits)[0] |= 512u; } }; const ::proto::Message& ContextInfo::_Internal::quotedmessage(const ContextInfo* msg) { return *msg->quotedmessage_; } const ::proto::AdReplyInfo& ContextInfo::_Internal::quotedad(const ContextInfo* msg) { return *msg->quotedad_; } const ::proto::MessageKey& ContextInfo::_Internal::placeholderkey(const ContextInfo* msg) { return *msg->placeholderkey_; } const ::proto::ExternalAdReplyInfo& ContextInfo::_Internal::externaladreply(const ContextInfo* msg) { return *msg->externaladreply_; } ContextInfo::ContextInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), mentionedjid_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.ContextInfo) } ContextInfo::ContextInfo(const ContextInfo& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_), mentionedjid_(from.mentionedjid_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); stanzaid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_stanzaid()) { stanzaid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_stanzaid(), GetArena()); } participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_participant()) { participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_participant(), GetArena()); } remotejid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_remotejid()) { remotejid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_remotejid(), GetArena()); } conversionsource_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_conversionsource()) { conversionsource_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_conversionsource(), GetArena()); } conversiondata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_conversiondata()) { conversiondata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_conversiondata(), GetArena()); } ephemeralsharedsecret_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_ephemeralsharedsecret()) { ephemeralsharedsecret_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ephemeralsharedsecret(), GetArena()); } if (from._internal_has_quotedmessage()) { quotedmessage_ = new ::proto::Message(*from.quotedmessage_); } else { quotedmessage_ = nullptr; } if (from._internal_has_quotedad()) { quotedad_ = new ::proto::AdReplyInfo(*from.quotedad_); } else { quotedad_ = nullptr; } if (from._internal_has_placeholderkey()) { placeholderkey_ = new ::proto::MessageKey(*from.placeholderkey_); } else { placeholderkey_ = nullptr; } if (from._internal_has_externaladreply()) { externaladreply_ = new ::proto::ExternalAdReplyInfo(*from.externaladreply_); } else { externaladreply_ = nullptr; } ::memcpy(&conversiondelayseconds_, &from.conversiondelayseconds_, static_cast(reinterpret_cast(&ephemeralsettingtimestamp_) - reinterpret_cast(&conversiondelayseconds_)) + sizeof(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(this) + static_cast( reinterpret_cast("edmessage_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&ephemeralsettingtimestamp_) - reinterpret_cast("edmessage_)) + sizeof(ephemeralsettingtimestamp_)); } ContextInfo::~ContextInfo() { // @@protoc_insertion_point(destructor:proto.ContextInfo) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void ContextInfo::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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_; } 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); } void ContextInfo::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ContextInfo) ::PROTOBUF_NAMESPACE_ID::uint32 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]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { stanzaid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { participant_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { remotejid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { conversionsource_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { conversiondata_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { ephemeralsharedsecret_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { GOOGLE_DCHECK(quotedmessage_ != nullptr); quotedmessage_->Clear(); } if (cached_has_bits & 0x00000080u) { GOOGLE_DCHECK(quotedad_ != nullptr); quotedad_->Clear(); } } if (cached_has_bits & 0x00000300u) { if (cached_has_bits & 0x00000100u) { GOOGLE_DCHECK(placeholderkey_ != nullptr); placeholderkey_->Clear(); } if (cached_has_bits & 0x00000200u) { GOOGLE_DCHECK(externaladreply_ != nullptr); externaladreply_->Clear(); } } if (cached_has_bits & 0x00007c00u) { ::memset(&conversiondelayseconds_, 0, static_cast( reinterpret_cast(&ephemeralsettingtimestamp_) - reinterpret_cast(&conversiondelayseconds_)) + sizeof(ephemeralsettingtimestamp_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string stanzaId = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_stanzaid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_participant(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_quotedmessage(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string remoteJid = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { auto str = _internal_mutable_remotejid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr -= 1; do { ptr += 1; auto str = _internal_add_mentionedjid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ContextInfo.mentionedJid"); #endif // !NDEBUG CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<122>(ptr)); } else goto handle_unusual; continue; // optional string conversionSource = 18; case 18: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 146)) { auto str = _internal_mutable_conversionsource(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_conversiondata(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_conversiondelayseconds(&has_bits); 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)) { _Internal::set_has_forwardingscore(&has_bits); 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)) { _Internal::set_has_isforwarded(&has_bits); 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)) { ptr = ctx->ParseMessage(_internal_mutable_quotedad(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.MessageKey placeholderKey = 24; case 24: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 194)) { ptr = ctx->ParseMessage(_internal_mutable_placeholderkey(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 expiration = 25; case 25: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 200)) { _Internal::set_has_expiration(&has_bits); 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)) { _Internal::set_has_ephemeralsettingtimestamp(&has_bits); 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)) { auto str = _internal_mutable_ephemeralsharedsecret(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_externaladreply(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* ContextInfo::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string stanzaId = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_stanzaid().data(), static_cast(this->_internal_stanzaid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ContextInfo.stanzaId"); target = stream->WriteStringMaybeAliased( 1, this->_internal_stanzaid(), target); } // optional string participant = 2; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_participant().data(), static_cast(this->_internal_participant().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ContextInfo.participant"); target = stream->WriteStringMaybeAliased( 2, this->_internal_participant(), target); } // 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); } // optional string remoteJid = 4; if (cached_has_bits & 0x00000004u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_remotejid().data(), static_cast(this->_internal_remotejid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ContextInfo.remoteJid"); target = stream->WriteStringMaybeAliased( 4, this->_internal_remotejid(), target); } // repeated string mentionedJid = 15; for (int i = 0, n = this->_internal_mentionedjid_size(); i < n; i++) { const auto& s = this->_internal_mentionedjid(i); ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( s.data(), static_cast(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ContextInfo.mentionedJid"); target = stream->WriteString(15, s, target); } // optional string conversionSource = 18; if (cached_has_bits & 0x00000008u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_conversionsource().data(), static_cast(this->_internal_conversionsource().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ContextInfo.conversionSource"); target = stream->WriteStringMaybeAliased( 18, this->_internal_conversionsource(), target); } // optional bytes conversionData = 19; if (cached_has_bits & 0x00000010u) { target = stream->WriteBytesMaybeAliased( 19, this->_internal_conversiondata(), target); } // 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); } // 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); } // 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); } // 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); } // 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); } // 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); } // 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); } // optional bytes ephemeralSharedSecret = 27; if (cached_has_bits & 0x00000020u) { target = stream->WriteBytesMaybeAliased( 27, this->_internal_ephemeralsharedsecret(), target); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ContextInfo) return target; } 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; // 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++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( mentionedjid_.Get(i)); } cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string stanzaId = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_stanzaid()); } // optional string participant = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_participant()); } // optional string remoteJid = 4; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_remotejid()); } // optional string conversionSource = 18; if (cached_has_bits & 0x00000008u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_conversionsource()); } // optional bytes conversionData = 19; if (cached_has_bits & 0x00000010u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_conversiondata()); } // optional bytes ephemeralSharedSecret = 27; if (cached_has_bits & 0x00000020u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_ephemeralsharedsecret()); } // optional .proto.Message quotedMessage = 3; if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *quotedmessage_); } // optional .proto.AdReplyInfo quotedAd = 23; if (cached_has_bits & 0x00000080u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *quotedad_); } } if (cached_has_bits & 0x00007f00u) { // optional .proto.MessageKey placeholderKey = 24; if (cached_has_bits & 0x00000100u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *placeholderkey_); } // optional .proto.ExternalAdReplyInfo externalAdReply = 28; if (cached_has_bits & 0x00000200u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *externaladreply_); } // optional uint32 conversionDelaySeconds = 20; if (cached_has_bits & 0x00000400u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_conversiondelayseconds()); } // optional uint32 forwardingScore = 21; if (cached_has_bits & 0x00000800u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_forwardingscore()); } // optional bool isForwarded = 22; if (cached_has_bits & 0x00001000u) { total_size += 2 + 1; } // optional uint32 expiration = 25; if (cached_has_bits & 0x00002000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_expiration()); } // optional int64 ephemeralSettingTimestamp = 26; if (cached_has_bits & 0x00004000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_ephemeralsettingtimestamp()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ContextInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.ContextInfo) GOOGLE_DCHECK_NE(&from, this); const ContextInfo* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.ContextInfo) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.ContextInfo) MergeFrom(*source); } } void ContextInfo::MergeFrom(const ContextInfo& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ContextInfo) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; mentionedjid_.MergeFrom(from.mentionedjid_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { _internal_set_stanzaid(from._internal_stanzaid()); } if (cached_has_bits & 0x00000002u) { _internal_set_participant(from._internal_participant()); } if (cached_has_bits & 0x00000004u) { _internal_set_remotejid(from._internal_remotejid()); } if (cached_has_bits & 0x00000008u) { _internal_set_conversionsource(from._internal_conversionsource()); } if (cached_has_bits & 0x00000010u) { _internal_set_conversiondata(from._internal_conversiondata()); } if (cached_has_bits & 0x00000020u) { _internal_set_ephemeralsharedsecret(from._internal_ephemeralsharedsecret()); } if (cached_has_bits & 0x00000040u) { _internal_mutable_quotedmessage()->::proto::Message::MergeFrom(from._internal_quotedmessage()); } if (cached_has_bits & 0x00000080u) { _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()); } if (cached_has_bits & 0x00000200u) { _internal_mutable_externaladreply()->::proto::ExternalAdReplyInfo::MergeFrom(from._internal_externaladreply()); } if (cached_has_bits & 0x00000400u) { conversiondelayseconds_ = from.conversiondelayseconds_; } if (cached_has_bits & 0x00000800u) { forwardingscore_ = from.forwardingscore_; } if (cached_has_bits & 0x00001000u) { isforwarded_ = from.isforwarded_; } if (cached_has_bits & 0x00002000u) { expiration_ = from.expiration_; } if (cached_has_bits & 0x00004000u) { ephemeralsettingtimestamp_ = from.ephemeralsettingtimestamp_; } _has_bits_[0] |= cached_has_bits; } } void ContextInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.ContextInfo) if (&from == this) return; Clear(); MergeFrom(from); } void ContextInfo::CopyFrom(const ContextInfo& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.ContextInfo) if (&from == this) return; Clear(); MergeFrom(from); } bool ContextInfo::IsInitialized() const { return true; } void ContextInfo::InternalSwap(ContextInfo* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); mentionedjid_.InternalSwap(&other->mentionedjid_); stanzaid_.Swap(&other->stanzaid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); participant_.Swap(&other->participant_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); remotejid_.Swap(&other->remotejid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); conversionsource_.Swap(&other->conversionsource_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); conversiondata_.Swap(&other->conversiondata_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ephemeralsharedsecret_.Swap(&other->ephemeralsharedsecret_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ContextInfo, ephemeralsettingtimestamp_) + sizeof(ContextInfo::ephemeralsettingtimestamp_) - PROTOBUF_FIELD_OFFSET(ContextInfo, quotedmessage_)>( reinterpret_cast("edmessage_), reinterpret_cast(&other->quotedmessage_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ContextInfo::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class SenderKeyDistributionMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_groupid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_axolotlsenderkeydistributionmessage(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; SenderKeyDistributionMessage::SenderKeyDistributionMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.SenderKeyDistributionMessage) } SenderKeyDistributionMessage::SenderKeyDistributionMessage(const SenderKeyDistributionMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); groupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_groupid()) { groupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_groupid(), GetArena()); } axolotlsenderkeydistributionmessage_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_axolotlsenderkeydistributionmessage()) { axolotlsenderkeydistributionmessage_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_axolotlsenderkeydistributionmessage(), GetArena()); } // @@protoc_insertion_point(copy_constructor:proto.SenderKeyDistributionMessage) } void SenderKeyDistributionMessage::SharedCtor() { groupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); axolotlsenderkeydistributionmessage_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } SenderKeyDistributionMessage::~SenderKeyDistributionMessage() { // @@protoc_insertion_point(destructor:proto.SenderKeyDistributionMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void SenderKeyDistributionMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); groupid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); axolotlsenderkeydistributionmessage_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void SenderKeyDistributionMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.SenderKeyDistributionMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { groupid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { axolotlsenderkeydistributionmessage_.ClearNonDefaultToEmpty(); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SenderKeyDistributionMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string groupId = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_groupid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_axolotlsenderkeydistributionmessage(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* SenderKeyDistributionMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string groupId = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_groupid().data(), static_cast(this->_internal_groupid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.SenderKeyDistributionMessage.groupId"); target = stream->WriteStringMaybeAliased( 1, this->_internal_groupid(), target); } // optional bytes axolotlSenderKeyDistributionMessage = 2; if (cached_has_bits & 0x00000002u) { target = stream->WriteBytesMaybeAliased( 2, this->_internal_axolotlsenderkeydistributionmessage(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.SenderKeyDistributionMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string groupId = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_groupid()); } // optional bytes axolotlSenderKeyDistributionMessage = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_axolotlsenderkeydistributionmessage()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void SenderKeyDistributionMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.SenderKeyDistributionMessage) GOOGLE_DCHECK_NE(&from, this); const SenderKeyDistributionMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.SenderKeyDistributionMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.SenderKeyDistributionMessage) MergeFrom(*source); } } void SenderKeyDistributionMessage::MergeFrom(const SenderKeyDistributionMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.SenderKeyDistributionMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _internal_set_groupid(from._internal_groupid()); } if (cached_has_bits & 0x00000002u) { _internal_set_axolotlsenderkeydistributionmessage(from._internal_axolotlsenderkeydistributionmessage()); } } } void SenderKeyDistributionMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.SenderKeyDistributionMessage) if (&from == this) return; Clear(); MergeFrom(from); } void SenderKeyDistributionMessage::CopyFrom(const SenderKeyDistributionMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.SenderKeyDistributionMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool SenderKeyDistributionMessage::IsInitialized() const { return true; } void SenderKeyDistributionMessage::InternalSwap(SenderKeyDistributionMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); groupid_.Swap(&other->groupid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); axolotlsenderkeydistributionmessage_.Swap(&other->axolotlsenderkeydistributionmessage_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata SenderKeyDistributionMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class ImageMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_url(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_mimetype(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_caption(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_filesha256(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_filelength(HasBits* has_bits) { (*has_bits)[0] |= 65536u; } static void set_has_height(HasBits* has_bits) { (*has_bits)[0] |= 131072u; } static void set_has_width(HasBits* has_bits) { (*has_bits)[0] |= 262144u; } static void set_has_mediakey(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_fileencsha256(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static void set_has_directpath(HasBits* has_bits) { (*has_bits)[0] |= 64u; } static void set_has_mediakeytimestamp(HasBits* has_bits) { (*has_bits)[0] |= 524288u; } static void set_has_jpegthumbnail(HasBits* has_bits) { (*has_bits)[0] |= 128u; } static const ::proto::ContextInfo& contextinfo(const ImageMessage* msg); static void set_has_contextinfo(HasBits* has_bits) { (*has_bits)[0] |= 32768u; } static void set_has_firstscansidecar(HasBits* has_bits) { (*has_bits)[0] |= 256u; } static void set_has_firstscanlength(HasBits* has_bits) { (*has_bits)[0] |= 1048576u; } static void set_has_experimentgroupid(HasBits* has_bits) { (*has_bits)[0] |= 2097152u; } static void set_has_scanssidecar(HasBits* has_bits) { (*has_bits)[0] |= 512u; } static void set_has_midqualityfilesha256(HasBits* has_bits) { (*has_bits)[0] |= 1024u; } static void set_has_midqualityfileencsha256(HasBits* has_bits) { (*has_bits)[0] |= 2048u; } static void set_has_viewonce(HasBits* has_bits) { (*has_bits)[0] |= 4194304u; } static void set_has_thumbnaildirectpath(HasBits* has_bits) { (*has_bits)[0] |= 4096u; } static void set_has_thumbnailsha256(HasBits* has_bits) { (*has_bits)[0] |= 8192u; } static void set_has_thumbnailencsha256(HasBits* has_bits) { (*has_bits)[0] |= 16384u; } }; const ::proto::ContextInfo& ImageMessage::_Internal::contextinfo(const ImageMessage* msg) { return *msg->contextinfo_; } ImageMessage::ImageMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), interactiveannotations_(arena), scanlengths_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@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_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_url()) { url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), GetArena()); } mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mimetype()) { mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mimetype(), GetArena()); } caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_caption()) { caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_caption(), GetArena()); } filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_filesha256()) { filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), GetArena()); } mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mediakey()) { mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), GetArena()); } fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fileencsha256()) { fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), GetArena()); } directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_directpath()) { directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), GetArena()); } jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_jpegthumbnail()) { jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), GetArena()); } firstscansidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_firstscansidecar()) { firstscansidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_firstscansidecar(), GetArena()); } scanssidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_scanssidecar()) { scanssidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_scanssidecar(), GetArena()); } midqualityfilesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_midqualityfilesha256()) { midqualityfilesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_midqualityfilesha256(), GetArena()); } midqualityfileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_midqualityfileencsha256()) { midqualityfileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_midqualityfileencsha256(), GetArena()); } thumbnaildirectpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnaildirectpath()) { thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnaildirectpath(), GetArena()); } thumbnailsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnailsha256()) { thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailsha256(), GetArena()); } thumbnailencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnailencsha256()) { thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailencsha256(), GetArena()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); } else { contextinfo_ = nullptr; } ::memcpy(&filelength_, &from.filelength_, static_cast(reinterpret_cast(&viewonce_) - reinterpret_cast(&filelength_)) + sizeof(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(this) + static_cast( reinterpret_cast(&contextinfo_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&viewonce_) - reinterpret_cast(&contextinfo_)) + sizeof(viewonce_)); } ImageMessage::~ImageMessage() { // @@protoc_insertion_point(destructor:proto.ImageMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void ImageMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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*) { } void ImageMessage::SetCachedSize(int size) const { _cached_size_.Set(size); } void ImageMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ImageMessage) ::PROTOBUF_NAMESPACE_ID::uint32 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]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { url_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { mimetype_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { caption_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { filesha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { mediakey_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { fileencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { directpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { jpegthumbnail_.ClearNonDefaultToEmpty(); } } if (cached_has_bits & 0x0000ff00u) { if (cached_has_bits & 0x00000100u) { firstscansidecar_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000200u) { scanssidecar_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000400u) { midqualityfilesha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000800u) { midqualityfileencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00001000u) { thumbnaildirectpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00002000u) { thumbnailsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00004000u) { thumbnailencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00008000u) { GOOGLE_DCHECK(contextinfo_ != nullptr); contextinfo_->Clear(); } } if (cached_has_bits & 0x007f0000u) { ::memset(&filelength_, 0, static_cast( reinterpret_cast(&viewonce_) - reinterpret_cast(&filelength_)) + sizeof(viewonce_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string url = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_url(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_mimetype(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_caption(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_filesha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_filelength(&has_bits); 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)) { _Internal::set_has_height(&has_bits); 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)) { _Internal::set_has_width(&has_bits); 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)) { auto str = _internal_mutable_mediakey(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_fileencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_interactiveannotations(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr)); } else goto handle_unusual; continue; // optional string directPath = 11; case 11: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { auto str = _internal_mutable_directpath(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_mediakeytimestamp(&has_bits); 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)) { auto str = _internal_mutable_jpegthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes firstScanSidecar = 18; case 18: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 146)) { auto str = _internal_mutable_firstscansidecar(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_firstscanlength(&has_bits); 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)) { _Internal::set_has_experimentgroupid(&has_bits); 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)) { auto str = _internal_mutable_scanssidecar(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr -= 2; do { ptr += 2; _internal_add_scanlengths(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); 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) { ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_scanlengths(), ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes midQualityFileSha256 = 23; case 23: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 186)) { auto str = _internal_mutable_midqualityfilesha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_midqualityfileencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_viewonce(&has_bits); 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)) { auto str = _internal_mutable_thumbnaildirectpath(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_thumbnailsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_thumbnailencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* ImageMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string url = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_url().data(), static_cast(this->_internal_url().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ImageMessage.url"); target = stream->WriteStringMaybeAliased( 1, this->_internal_url(), target); } // optional string mimetype = 2; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_mimetype().data(), static_cast(this->_internal_mimetype().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ImageMessage.mimetype"); target = stream->WriteStringMaybeAliased( 2, this->_internal_mimetype(), target); } // optional string caption = 3; if (cached_has_bits & 0x00000004u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_caption().data(), static_cast(this->_internal_caption().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ImageMessage.caption"); target = stream->WriteStringMaybeAliased( 3, this->_internal_caption(), target); } // optional bytes fileSha256 = 4; if (cached_has_bits & 0x00000008u) { target = stream->WriteBytesMaybeAliased( 4, this->_internal_filesha256(), target); } // 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); } // 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); } // 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); } // optional bytes mediaKey = 8; if (cached_has_bits & 0x00000010u) { target = stream->WriteBytesMaybeAliased( 8, this->_internal_mediakey(), target); } // optional bytes fileEncSha256 = 9; if (cached_has_bits & 0x00000020u) { target = stream->WriteBytesMaybeAliased( 9, this->_internal_fileencsha256(), target); } // repeated .proto.InteractiveAnnotation interactiveAnnotations = 10; for (unsigned int i = 0, n = static_cast(this->_internal_interactiveannotations_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(10, this->_internal_interactiveannotations(i), target, stream); } // optional string directPath = 11; if (cached_has_bits & 0x00000040u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_directpath().data(), static_cast(this->_internal_directpath().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ImageMessage.directPath"); target = stream->WriteStringMaybeAliased( 11, this->_internal_directpath(), target); } // 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); } // optional bytes jpegThumbnail = 16; if (cached_has_bits & 0x00000080u) { target = stream->WriteBytesMaybeAliased( 16, this->_internal_jpegthumbnail(), target); } // 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); } // optional bytes firstScanSidecar = 18; if (cached_has_bits & 0x00000100u) { target = stream->WriteBytesMaybeAliased( 18, this->_internal_firstscansidecar(), target); } // 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); } // 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); } // optional bytes scansSidecar = 21; if (cached_has_bits & 0x00000200u) { target = stream->WriteBytesMaybeAliased( 21, this->_internal_scanssidecar(), target); } // 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); } // optional bytes midQualityFileSha256 = 23; if (cached_has_bits & 0x00000400u) { target = stream->WriteBytesMaybeAliased( 23, this->_internal_midqualityfilesha256(), target); } // optional bytes midQualityFileEncSha256 = 24; if (cached_has_bits & 0x00000800u) { target = stream->WriteBytesMaybeAliased( 24, this->_internal_midqualityfileencsha256(), target); } // 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); } // optional string thumbnailDirectPath = 26; if (cached_has_bits & 0x00001000u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_thumbnaildirectpath().data(), static_cast(this->_internal_thumbnaildirectpath().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ImageMessage.thumbnailDirectPath"); target = stream->WriteStringMaybeAliased( 26, this->_internal_thumbnaildirectpath(), target); } // optional bytes thumbnailSha256 = 27; if (cached_has_bits & 0x00002000u) { target = stream->WriteBytesMaybeAliased( 27, this->_internal_thumbnailsha256(), target); } // optional bytes thumbnailEncSha256 = 28; if (cached_has_bits & 0x00004000u) { target = stream->WriteBytesMaybeAliased( 28, this->_internal_thumbnailencsha256(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ImageMessage) return target; } 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; // 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_) { 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_); total_size += 2 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_scanlengths_size()); total_size += data_size; } cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string url = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_url()); } // optional string mimetype = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_mimetype()); } // optional string caption = 3; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_caption()); } // optional bytes fileSha256 = 4; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_filesha256()); } // optional bytes mediaKey = 8; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_mediakey()); } // optional bytes fileEncSha256 = 9; if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_fileencsha256()); } // optional string directPath = 11; if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_directpath()); } // optional bytes jpegThumbnail = 16; if (cached_has_bits & 0x00000080u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_jpegthumbnail()); } } if (cached_has_bits & 0x0000ff00u) { // optional bytes firstScanSidecar = 18; if (cached_has_bits & 0x00000100u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_firstscansidecar()); } // optional bytes scansSidecar = 21; if (cached_has_bits & 0x00000200u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_scanssidecar()); } // optional bytes midQualityFileSha256 = 23; if (cached_has_bits & 0x00000400u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_midqualityfilesha256()); } // optional bytes midQualityFileEncSha256 = 24; if (cached_has_bits & 0x00000800u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_midqualityfileencsha256()); } // optional string thumbnailDirectPath = 26; if (cached_has_bits & 0x00001000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_thumbnaildirectpath()); } // optional bytes thumbnailSha256 = 27; if (cached_has_bits & 0x00002000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_thumbnailsha256()); } // optional bytes thumbnailEncSha256 = 28; if (cached_has_bits & 0x00004000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_thumbnailencsha256()); } // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00008000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *contextinfo_); } } if (cached_has_bits & 0x007f0000u) { // optional uint64 fileLength = 5; if (cached_has_bits & 0x00010000u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( this->_internal_filelength()); } // optional uint32 height = 6; if (cached_has_bits & 0x00020000u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_height()); } // optional uint32 width = 7; if (cached_has_bits & 0x00040000u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_width()); } // optional int64 mediaKeyTimestamp = 12; if (cached_has_bits & 0x00080000u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_mediakeytimestamp()); } // optional uint32 firstScanLength = 19; if (cached_has_bits & 0x00100000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_firstscanlength()); } // optional uint32 experimentGroupId = 20; if (cached_has_bits & 0x00200000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_experimentgroupid()); } // optional bool viewOnce = 25; if (cached_has_bits & 0x00400000u) { total_size += 2 + 1; } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ImageMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.ImageMessage) GOOGLE_DCHECK_NE(&from, this); const ImageMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.ImageMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.ImageMessage) MergeFrom(*source); } } void ImageMessage::MergeFrom(const ImageMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ImageMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; interactiveannotations_.MergeFrom(from.interactiveannotations_); scanlengths_.MergeFrom(from.scanlengths_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { _internal_set_url(from._internal_url()); } if (cached_has_bits & 0x00000002u) { _internal_set_mimetype(from._internal_mimetype()); } if (cached_has_bits & 0x00000004u) { _internal_set_caption(from._internal_caption()); } if (cached_has_bits & 0x00000008u) { _internal_set_filesha256(from._internal_filesha256()); } if (cached_has_bits & 0x00000010u) { _internal_set_mediakey(from._internal_mediakey()); } if (cached_has_bits & 0x00000020u) { _internal_set_fileencsha256(from._internal_fileencsha256()); } if (cached_has_bits & 0x00000040u) { _internal_set_directpath(from._internal_directpath()); } if (cached_has_bits & 0x00000080u) { _internal_set_jpegthumbnail(from._internal_jpegthumbnail()); } } if (cached_has_bits & 0x0000ff00u) { if (cached_has_bits & 0x00000100u) { _internal_set_firstscansidecar(from._internal_firstscansidecar()); } if (cached_has_bits & 0x00000200u) { _internal_set_scanssidecar(from._internal_scanssidecar()); } if (cached_has_bits & 0x00000400u) { _internal_set_midqualityfilesha256(from._internal_midqualityfilesha256()); } if (cached_has_bits & 0x00000800u) { _internal_set_midqualityfileencsha256(from._internal_midqualityfileencsha256()); } if (cached_has_bits & 0x00001000u) { _internal_set_thumbnaildirectpath(from._internal_thumbnaildirectpath()); } if (cached_has_bits & 0x00002000u) { _internal_set_thumbnailsha256(from._internal_thumbnailsha256()); } if (cached_has_bits & 0x00004000u) { _internal_set_thumbnailencsha256(from._internal_thumbnailencsha256()); } if (cached_has_bits & 0x00008000u) { _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); } } if (cached_has_bits & 0x007f0000u) { if (cached_has_bits & 0x00010000u) { filelength_ = from.filelength_; } if (cached_has_bits & 0x00020000u) { height_ = from.height_; } if (cached_has_bits & 0x00040000u) { width_ = from.width_; } if (cached_has_bits & 0x00080000u) { mediakeytimestamp_ = from.mediakeytimestamp_; } if (cached_has_bits & 0x00100000u) { firstscanlength_ = from.firstscanlength_; } if (cached_has_bits & 0x00200000u) { experimentgroupid_ = from.experimentgroupid_; } if (cached_has_bits & 0x00400000u) { viewonce_ = from.viewonce_; } _has_bits_[0] |= cached_has_bits; } } void ImageMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.ImageMessage) if (&from == this) return; Clear(); MergeFrom(from); } void ImageMessage::CopyFrom(const ImageMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.ImageMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool ImageMessage::IsInitialized() const { return true; } void ImageMessage::InternalSwap(ImageMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); interactiveannotations_.InternalSwap(&other->interactiveannotations_); scanlengths_.InternalSwap(&other->scanlengths_); url_.Swap(&other->url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); mimetype_.Swap(&other->mimetype_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); caption_.Swap(&other->caption_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); filesha256_.Swap(&other->filesha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); mediakey_.Swap(&other->mediakey_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); fileencsha256_.Swap(&other->fileencsha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); directpath_.Swap(&other->directpath_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); jpegthumbnail_.Swap(&other->jpegthumbnail_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); firstscansidecar_.Swap(&other->firstscansidecar_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); scanssidecar_.Swap(&other->scanssidecar_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); midqualityfilesha256_.Swap(&other->midqualityfilesha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); midqualityfileencsha256_.Swap(&other->midqualityfileencsha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); thumbnaildirectpath_.Swap(&other->thumbnaildirectpath_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); thumbnailsha256_.Swap(&other->thumbnailsha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); thumbnailencsha256_.Swap(&other->thumbnailencsha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ImageMessage, viewonce_) + sizeof(ImageMessage::viewonce_) - PROTOBUF_FIELD_OFFSET(ImageMessage, contextinfo_)>( reinterpret_cast(&contextinfo_), reinterpret_cast(&other->contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ImageMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class InvoiceMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_note(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_token(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_attachmenttype(HasBits* has_bits) { (*has_bits)[0] |= 512u; } static void set_has_attachmentmimetype(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_attachmentmediakey(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_attachmentmediakeytimestamp(HasBits* has_bits) { (*has_bits)[0] |= 256u; } static void set_has_attachmentfilesha256(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_attachmentfileencsha256(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static void set_has_attachmentdirectpath(HasBits* has_bits) { (*has_bits)[0] |= 64u; } static void set_has_attachmentjpegthumbnail(HasBits* has_bits) { (*has_bits)[0] |= 128u; } }; InvoiceMessage::InvoiceMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.InvoiceMessage) } InvoiceMessage::InvoiceMessage(const InvoiceMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); note_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_note()) { note_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_note(), GetArena()); } token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_token()) { token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_token(), GetArena()); } attachmentmimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_attachmentmimetype()) { attachmentmimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentmimetype(), GetArena()); } attachmentmediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_attachmentmediakey()) { attachmentmediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentmediakey(), GetArena()); } attachmentfilesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_attachmentfilesha256()) { attachmentfilesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentfilesha256(), GetArena()); } attachmentfileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_attachmentfileencsha256()) { attachmentfileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentfileencsha256(), GetArena()); } attachmentdirectpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_attachmentdirectpath()) { attachmentdirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentdirectpath(), GetArena()); } attachmentjpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_attachmentjpegthumbnail()) { attachmentjpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentjpegthumbnail(), GetArena()); } ::memcpy(&attachmentmediakeytimestamp_, &from.attachmentmediakeytimestamp_, static_cast(reinterpret_cast(&attachmenttype_) - reinterpret_cast(&attachmentmediakeytimestamp_)) + sizeof(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(this) + static_cast( reinterpret_cast(&attachmentmediakeytimestamp_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&attachmenttype_) - reinterpret_cast(&attachmentmediakeytimestamp_)) + sizeof(attachmenttype_)); } InvoiceMessage::~InvoiceMessage() { // @@protoc_insertion_point(destructor:proto.InvoiceMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void InvoiceMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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()); } 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); } void InvoiceMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.InvoiceMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { note_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { token_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { attachmentmimetype_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { attachmentmediakey_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { attachmentfilesha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { attachmentfileencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { attachmentdirectpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { attachmentjpegthumbnail_.ClearNonDefaultToEmpty(); } } if (cached_has_bits & 0x00000300u) { ::memset(&attachmentmediakeytimestamp_, 0, static_cast( reinterpret_cast(&attachmenttype_) - reinterpret_cast(&attachmentmediakeytimestamp_)) + sizeof(attachmenttype_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* InvoiceMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string note = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_note(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_token(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::InvoiceMessage_InvoiceMessageAttachmentType_IsValid(val))) { _internal_set_attachmenttype(static_cast<::proto::InvoiceMessage_InvoiceMessageAttachmentType>(val)); } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); } } else goto handle_unusual; continue; // optional string attachmentMimetype = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { auto str = _internal_mutable_attachmentmimetype(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_attachmentmediakey(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_attachmentmediakeytimestamp(&has_bits); 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)) { auto str = _internal_mutable_attachmentfilesha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_attachmentfileencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_attachmentdirectpath(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_attachmentjpegthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* InvoiceMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string note = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_note().data(), static_cast(this->_internal_note().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.InvoiceMessage.note"); target = stream->WriteStringMaybeAliased( 1, this->_internal_note(), target); } // optional string token = 2; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_token().data(), static_cast(this->_internal_token().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.InvoiceMessage.token"); target = stream->WriteStringMaybeAliased( 2, this->_internal_token(), target); } // optional .proto.InvoiceMessage.InvoiceMessageAttachmentType attachmentType = 3; if (cached_has_bits & 0x00000200u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 3, this->_internal_attachmenttype(), target); } // optional string attachmentMimetype = 4; if (cached_has_bits & 0x00000004u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_attachmentmimetype().data(), static_cast(this->_internal_attachmentmimetype().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.InvoiceMessage.attachmentMimetype"); target = stream->WriteStringMaybeAliased( 4, this->_internal_attachmentmimetype(), target); } // optional bytes attachmentMediaKey = 5; if (cached_has_bits & 0x00000008u) { target = stream->WriteBytesMaybeAliased( 5, this->_internal_attachmentmediakey(), target); } // 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); } // optional bytes attachmentFileSha256 = 7; if (cached_has_bits & 0x00000010u) { target = stream->WriteBytesMaybeAliased( 7, this->_internal_attachmentfilesha256(), target); } // optional bytes attachmentFileEncSha256 = 8; if (cached_has_bits & 0x00000020u) { target = stream->WriteBytesMaybeAliased( 8, this->_internal_attachmentfileencsha256(), target); } // optional string attachmentDirectPath = 9; if (cached_has_bits & 0x00000040u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_attachmentdirectpath().data(), static_cast(this->_internal_attachmentdirectpath().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.InvoiceMessage.attachmentDirectPath"); target = stream->WriteStringMaybeAliased( 9, this->_internal_attachmentdirectpath(), target); } // optional bytes attachmentJpegThumbnail = 10; if (cached_has_bits & 0x00000080u) { target = stream->WriteBytesMaybeAliased( 10, this->_internal_attachmentjpegthumbnail(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.InvoiceMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string note = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_note()); } // optional string token = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_token()); } // optional string attachmentMimetype = 4; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_attachmentmimetype()); } // optional bytes attachmentMediaKey = 5; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_attachmentmediakey()); } // optional bytes attachmentFileSha256 = 7; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_attachmentfilesha256()); } // optional bytes attachmentFileEncSha256 = 8; if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_attachmentfileencsha256()); } // optional string attachmentDirectPath = 9; if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_attachmentdirectpath()); } // optional bytes attachmentJpegThumbnail = 10; if (cached_has_bits & 0x00000080u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_attachmentjpegthumbnail()); } } if (cached_has_bits & 0x00000300u) { // optional int64 attachmentMediaKeyTimestamp = 6; if (cached_has_bits & 0x00000100u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( 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()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void InvoiceMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.InvoiceMessage) GOOGLE_DCHECK_NE(&from, this); const InvoiceMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.InvoiceMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.InvoiceMessage) MergeFrom(*source); } } void InvoiceMessage::MergeFrom(const InvoiceMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.InvoiceMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { _internal_set_note(from._internal_note()); } if (cached_has_bits & 0x00000002u) { _internal_set_token(from._internal_token()); } if (cached_has_bits & 0x00000004u) { _internal_set_attachmentmimetype(from._internal_attachmentmimetype()); } if (cached_has_bits & 0x00000008u) { _internal_set_attachmentmediakey(from._internal_attachmentmediakey()); } if (cached_has_bits & 0x00000010u) { _internal_set_attachmentfilesha256(from._internal_attachmentfilesha256()); } if (cached_has_bits & 0x00000020u) { _internal_set_attachmentfileencsha256(from._internal_attachmentfileencsha256()); } if (cached_has_bits & 0x00000040u) { _internal_set_attachmentdirectpath(from._internal_attachmentdirectpath()); } if (cached_has_bits & 0x00000080u) { _internal_set_attachmentjpegthumbnail(from._internal_attachmentjpegthumbnail()); } } if (cached_has_bits & 0x00000300u) { if (cached_has_bits & 0x00000100u) { attachmentmediakeytimestamp_ = from.attachmentmediakeytimestamp_; } if (cached_has_bits & 0x00000200u) { attachmenttype_ = from.attachmenttype_; } _has_bits_[0] |= cached_has_bits; } } void InvoiceMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.InvoiceMessage) if (&from == this) return; Clear(); MergeFrom(from); } void InvoiceMessage::CopyFrom(const InvoiceMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.InvoiceMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool InvoiceMessage::IsInitialized() const { return true; } void InvoiceMessage::InternalSwap(InvoiceMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); note_.Swap(&other->note_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); token_.Swap(&other->token_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); attachmentmimetype_.Swap(&other->attachmentmimetype_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); attachmentmediakey_.Swap(&other->attachmentmediakey_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); attachmentfilesha256_.Swap(&other->attachmentfilesha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); attachmentfileencsha256_.Swap(&other->attachmentfileencsha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); attachmentdirectpath_.Swap(&other->attachmentdirectpath_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); attachmentjpegthumbnail_.Swap(&other->attachmentjpegthumbnail_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(InvoiceMessage, attachmenttype_) + sizeof(InvoiceMessage::attachmenttype_) - PROTOBUF_FIELD_OFFSET(InvoiceMessage, attachmentmediakeytimestamp_)>( reinterpret_cast(&attachmentmediakeytimestamp_), reinterpret_cast(&other->attachmentmediakeytimestamp_)); } ::PROTOBUF_NAMESPACE_ID::Metadata InvoiceMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class ContactMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_displayname(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_vcard(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static const ::proto::ContextInfo& contextinfo(const ContactMessage* msg); static void set_has_contextinfo(HasBits* has_bits) { (*has_bits)[0] |= 4u; } }; const ::proto::ContextInfo& ContactMessage::_Internal::contextinfo(const ContactMessage* msg) { return *msg->contextinfo_; } ContactMessage::ContactMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.ContactMessage) } ContactMessage::ContactMessage(const ContactMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); displayname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_displayname()) { displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displayname(), GetArena()); } vcard_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_vcard()) { vcard_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_vcard(), GetArena()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); } else { contextinfo_ = nullptr; } // @@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; } ContactMessage::~ContactMessage() { // @@protoc_insertion_point(destructor:proto.ContactMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void ContactMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); displayname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); vcard_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete 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); } void ContactMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ContactMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { displayname_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { vcard_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(contextinfo_ != nullptr); contextinfo_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ContactMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string displayName = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_displayname(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_vcard(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* ContactMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string displayName = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_displayname().data(), static_cast(this->_internal_displayname().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ContactMessage.displayName"); target = stream->WriteStringMaybeAliased( 1, this->_internal_displayname(), target); } // optional string vcard = 16; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_vcard().data(), static_cast(this->_internal_vcard().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ContactMessage.vcard"); target = stream->WriteStringMaybeAliased( 16, this->_internal_vcard(), target); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ContactMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string displayName = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_displayname()); } // optional string vcard = 16; if (cached_has_bits & 0x00000002u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_vcard()); } // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000004u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *contextinfo_); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ContactMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.ContactMessage) GOOGLE_DCHECK_NE(&from, this); const ContactMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.ContactMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.ContactMessage) MergeFrom(*source); } } void ContactMessage::MergeFrom(const ContactMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ContactMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { _internal_set_displayname(from._internal_displayname()); } if (cached_has_bits & 0x00000002u) { _internal_set_vcard(from._internal_vcard()); } if (cached_has_bits & 0x00000004u) { _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); } } } void ContactMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.ContactMessage) if (&from == this) return; Clear(); MergeFrom(from); } void ContactMessage::CopyFrom(const ContactMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.ContactMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool ContactMessage::IsInitialized() const { return true; } void ContactMessage::InternalSwap(ContactMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); displayname_.Swap(&other->displayname_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); vcard_.Swap(&other->vcard_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(contextinfo_, other->contextinfo_); } ::PROTOBUF_NAMESPACE_ID::Metadata ContactMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class LocationMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_degreeslatitude(HasBits* has_bits) { (*has_bits)[0] |= 64u; } static void set_has_degreeslongitude(HasBits* has_bits) { (*has_bits)[0] |= 128u; } static void set_has_name(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_address(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_url(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_islive(HasBits* has_bits) { (*has_bits)[0] |= 256u; } static void set_has_accuracyinmeters(HasBits* has_bits) { (*has_bits)[0] |= 512u; } static void set_has_speedinmps(HasBits* has_bits) { (*has_bits)[0] |= 1024u; } static void set_has_degreesclockwisefrommagneticnorth(HasBits* has_bits) { (*has_bits)[0] |= 2048u; } static void set_has_comment(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_jpegthumbnail(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static const ::proto::ContextInfo& contextinfo(const LocationMessage* msg); static void set_has_contextinfo(HasBits* has_bits) { (*has_bits)[0] |= 32u; } }; const ::proto::ContextInfo& LocationMessage::_Internal::contextinfo(const LocationMessage* msg) { return *msg->contextinfo_; } LocationMessage::LocationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.LocationMessage) } LocationMessage::LocationMessage(const LocationMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_name()) { name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), GetArena()); } address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_address()) { address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_address(), GetArena()); } url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_url()) { url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), GetArena()); } comment_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_comment()) { comment_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_comment(), GetArena()); } jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_jpegthumbnail()) { jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), GetArena()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); } else { contextinfo_ = nullptr; } ::memcpy(°reeslatitude_, &from.degreeslatitude_, static_cast(reinterpret_cast(°reesclockwisefrommagneticnorth_) - reinterpret_cast(°reeslatitude_)) + sizeof(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(this) + static_cast( reinterpret_cast(&contextinfo_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(°reesclockwisefrommagneticnorth_) - reinterpret_cast(&contextinfo_)) + sizeof(degreesclockwisefrommagneticnorth_)); } LocationMessage::~LocationMessage() { // @@protoc_insertion_point(destructor:proto.LocationMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void LocationMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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_; } 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); } void LocationMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.LocationMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000003fu) { if (cached_has_bits & 0x00000001u) { name_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { address_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { url_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { comment_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { jpegthumbnail_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { GOOGLE_DCHECK(contextinfo_ != nullptr); contextinfo_->Clear(); } } if (cached_has_bits & 0x000000c0u) { ::memset(°reeslatitude_, 0, static_cast( reinterpret_cast(°reeslongitude_) - reinterpret_cast(°reeslatitude_)) + sizeof(degreeslongitude_)); } if (cached_has_bits & 0x00000f00u) { ::memset(&islive_, 0, static_cast( reinterpret_cast(°reesclockwisefrommagneticnorth_) - reinterpret_cast(&islive_)) + sizeof(degreesclockwisefrommagneticnorth_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* LocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional double degreesLatitude = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { _Internal::set_has_degreeslatitude(&has_bits); degreeslatitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(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)) { _Internal::set_has_degreeslongitude(&has_bits); degreeslongitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(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)) { auto str = _internal_mutable_name(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_address(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_url(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_islive(&has_bits); 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)) { _Internal::set_has_accuracyinmeters(&has_bits); 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)) { _Internal::set_has_speedinmps(&has_bits); speedinmps_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(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)) { _Internal::set_has_degreesclockwisefrommagneticnorth(&has_bits); 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)) { auto str = _internal_mutable_comment(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_jpegthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* LocationMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } // 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); } // optional string name = 3; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_name().data(), static_cast(this->_internal_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.LocationMessage.name"); target = stream->WriteStringMaybeAliased( 3, this->_internal_name(), target); } // optional string address = 4; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_address().data(), static_cast(this->_internal_address().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.LocationMessage.address"); target = stream->WriteStringMaybeAliased( 4, this->_internal_address(), target); } // optional string url = 5; if (cached_has_bits & 0x00000004u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_url().data(), static_cast(this->_internal_url().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.LocationMessage.url"); target = stream->WriteStringMaybeAliased( 5, this->_internal_url(), target); } // 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); } // 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); } // 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); } // 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); } // optional string comment = 11; if (cached_has_bits & 0x00000008u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_comment().data(), static_cast(this->_internal_comment().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.LocationMessage.comment"); target = stream->WriteStringMaybeAliased( 11, this->_internal_comment(), target); } // optional bytes jpegThumbnail = 16; if (cached_has_bits & 0x00000010u) { target = stream->WriteBytesMaybeAliased( 16, this->_internal_jpegthumbnail(), target); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.LocationMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string name = 3; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_name()); } // optional string address = 4; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_address()); } // optional string url = 5; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_url()); } // optional string comment = 11; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_comment()); } // optional bytes jpegThumbnail = 16; if (cached_has_bits & 0x00000010u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_jpegthumbnail()); } // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000020u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *contextinfo_); } // optional double degreesLatitude = 1; if (cached_has_bits & 0x00000040u) { total_size += 1 + 8; } // optional double degreesLongitude = 2; if (cached_has_bits & 0x00000080u) { total_size += 1 + 8; } } if (cached_has_bits & 0x00000f00u) { // optional bool isLive = 6; if (cached_has_bits & 0x00000100u) { total_size += 1 + 1; } // optional uint32 accuracyInMeters = 7; if (cached_has_bits & 0x00000200u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_accuracyinmeters()); } // optional float speedInMps = 8; if (cached_has_bits & 0x00000400u) { total_size += 1 + 4; } // optional uint32 degreesClockwiseFromMagneticNorth = 9; if (cached_has_bits & 0x00000800u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_degreesclockwisefrommagneticnorth()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void LocationMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.LocationMessage) GOOGLE_DCHECK_NE(&from, this); const LocationMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.LocationMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.LocationMessage) MergeFrom(*source); } } void LocationMessage::MergeFrom(const LocationMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.LocationMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { _internal_set_name(from._internal_name()); } if (cached_has_bits & 0x00000002u) { _internal_set_address(from._internal_address()); } if (cached_has_bits & 0x00000004u) { _internal_set_url(from._internal_url()); } if (cached_has_bits & 0x00000008u) { _internal_set_comment(from._internal_comment()); } if (cached_has_bits & 0x00000010u) { _internal_set_jpegthumbnail(from._internal_jpegthumbnail()); } if (cached_has_bits & 0x00000020u) { _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); } if (cached_has_bits & 0x00000040u) { degreeslatitude_ = from.degreeslatitude_; } if (cached_has_bits & 0x00000080u) { degreeslongitude_ = from.degreeslongitude_; } _has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00000f00u) { if (cached_has_bits & 0x00000100u) { islive_ = from.islive_; } if (cached_has_bits & 0x00000200u) { accuracyinmeters_ = from.accuracyinmeters_; } if (cached_has_bits & 0x00000400u) { speedinmps_ = from.speedinmps_; } if (cached_has_bits & 0x00000800u) { degreesclockwisefrommagneticnorth_ = from.degreesclockwisefrommagneticnorth_; } _has_bits_[0] |= cached_has_bits; } } void LocationMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.LocationMessage) if (&from == this) return; Clear(); MergeFrom(from); } void LocationMessage::CopyFrom(const LocationMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.LocationMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool LocationMessage::IsInitialized() const { return true; } void LocationMessage::InternalSwap(LocationMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); address_.Swap(&other->address_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); url_.Swap(&other->url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); comment_.Swap(&other->comment_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); jpegthumbnail_.Swap(&other->jpegthumbnail_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(LocationMessage, degreesclockwisefrommagneticnorth_) + sizeof(LocationMessage::degreesclockwisefrommagneticnorth_) - PROTOBUF_FIELD_OFFSET(LocationMessage, contextinfo_)>( reinterpret_cast(&contextinfo_), reinterpret_cast(&other->contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata LocationMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class ExtendedTextMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_text(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_matchedtext(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_canonicalurl(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_description(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_title(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_textargb(HasBits* has_bits) { (*has_bits)[0] |= 128u; } static void set_has_backgroundargb(HasBits* has_bits) { (*has_bits)[0] |= 256u; } static void set_has_font(HasBits* has_bits) { (*has_bits)[0] |= 512u; } static void set_has_previewtype(HasBits* has_bits) { (*has_bits)[0] |= 1024u; } static void set_has_jpegthumbnail(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static const ::proto::ContextInfo& contextinfo(const ExtendedTextMessage* msg); static void set_has_contextinfo(HasBits* has_bits) { (*has_bits)[0] |= 64u; } static void set_has_donotplayinline(HasBits* has_bits) { (*has_bits)[0] |= 2048u; } }; const ::proto::ContextInfo& ExtendedTextMessage::_Internal::contextinfo(const ExtendedTextMessage* msg) { return *msg->contextinfo_; } ExtendedTextMessage::ExtendedTextMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.ExtendedTextMessage) } ExtendedTextMessage::ExtendedTextMessage(const ExtendedTextMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_text()) { text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_text(), GetArena()); } matchedtext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_matchedtext()) { matchedtext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_matchedtext(), GetArena()); } canonicalurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_canonicalurl()) { canonicalurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_canonicalurl(), GetArena()); } description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_description()) { description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), GetArena()); } title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), GetArena()); } jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_jpegthumbnail()) { jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), GetArena()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); } else { contextinfo_ = nullptr; } ::memcpy(&textargb_, &from.textargb_, static_cast(reinterpret_cast(&donotplayinline_) - reinterpret_cast(&textargb_)) + sizeof(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(this) + static_cast( reinterpret_cast(&contextinfo_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&donotplayinline_) - reinterpret_cast(&contextinfo_)) + sizeof(donotplayinline_)); } ExtendedTextMessage::~ExtendedTextMessage() { // @@protoc_insertion_point(destructor:proto.ExtendedTextMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void ExtendedTextMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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_; } 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); } void ExtendedTextMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ExtendedTextMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000007fu) { if (cached_has_bits & 0x00000001u) { text_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { matchedtext_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { canonicalurl_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { description_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { title_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { jpegthumbnail_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { GOOGLE_DCHECK(contextinfo_ != nullptr); contextinfo_->Clear(); } } textargb_ = 0u; if (cached_has_bits & 0x00000f00u) { ::memset(&backgroundargb_, 0, static_cast( reinterpret_cast(&donotplayinline_) - reinterpret_cast(&backgroundargb_)) + sizeof(donotplayinline_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string text = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_text(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_matchedtext(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_canonicalurl(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_description(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_title(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_textargb(&has_bits); textargb_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint32>(ptr); ptr += sizeof(::PROTOBUF_NAMESPACE_ID::uint32); } else goto handle_unusual; continue; // optional fixed32 backgroundArgb = 8; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(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); } 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); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::ExtendedTextMessage_ExtendedTextMessageFontType_IsValid(val))) { _internal_set_font(static_cast<::proto::ExtendedTextMessage_ExtendedTextMessageFontType>(val)); } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(9, val, mutable_unknown_fields()); } } else goto handle_unusual; 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); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::ExtendedTextMessage_ExtendedTextMessagePreviewType_IsValid(val))) { _internal_set_previewtype(static_cast<::proto::ExtendedTextMessage_ExtendedTextMessagePreviewType>(val)); } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(10, val, mutable_unknown_fields()); } } else goto handle_unusual; continue; // optional bytes jpegThumbnail = 16; case 16: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { auto str = _internal_mutable_jpegthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bool doNotPlayInline = 18; case 18: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) { _Internal::set_has_donotplayinline(&has_bits); donotplayinline_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* ExtendedTextMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string text = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_text().data(), static_cast(this->_internal_text().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ExtendedTextMessage.text"); target = stream->WriteStringMaybeAliased( 1, this->_internal_text(), target); } // optional string matchedText = 2; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_matchedtext().data(), static_cast(this->_internal_matchedtext().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ExtendedTextMessage.matchedText"); target = stream->WriteStringMaybeAliased( 2, this->_internal_matchedtext(), target); } // optional string canonicalUrl = 4; if (cached_has_bits & 0x00000004u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_canonicalurl().data(), static_cast(this->_internal_canonicalurl().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ExtendedTextMessage.canonicalUrl"); target = stream->WriteStringMaybeAliased( 4, this->_internal_canonicalurl(), target); } // optional string description = 5; if (cached_has_bits & 0x00000008u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_description().data(), static_cast(this->_internal_description().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ExtendedTextMessage.description"); target = stream->WriteStringMaybeAliased( 5, this->_internal_description(), target); } // optional string title = 6; if (cached_has_bits & 0x00000010u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_title().data(), static_cast(this->_internal_title().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ExtendedTextMessage.title"); target = stream->WriteStringMaybeAliased( 6, this->_internal_title(), target); } // 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); } // 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); } // optional .proto.ExtendedTextMessage.ExtendedTextMessageFontType font = 9; if (cached_has_bits & 0x00000200u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::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( 10, this->_internal_previewtype(), target); } // optional bytes jpegThumbnail = 16; if (cached_has_bits & 0x00000020u) { target = stream->WriteBytesMaybeAliased( 16, this->_internal_jpegthumbnail(), target); } // 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); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ExtendedTextMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string text = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_text()); } // optional string matchedText = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_matchedtext()); } // optional string canonicalUrl = 4; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_canonicalurl()); } // optional string description = 5; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_description()); } // optional string title = 6; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_title()); } // optional bytes jpegThumbnail = 16; if (cached_has_bits & 0x00000020u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_jpegthumbnail()); } // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000040u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *contextinfo_); } // optional fixed32 textArgb = 7; if (cached_has_bits & 0x00000080u) { total_size += 1 + 4; } } if (cached_has_bits & 0x00000f00u) { // optional fixed32 backgroundArgb = 8; if (cached_has_bits & 0x00000100u) { total_size += 1 + 4; } // optional .proto.ExtendedTextMessage.ExtendedTextMessageFontType font = 9; if (cached_has_bits & 0x00000200u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::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()); } // optional bool doNotPlayInline = 18; if (cached_has_bits & 0x00000800u) { total_size += 2 + 1; } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ExtendedTextMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.ExtendedTextMessage) GOOGLE_DCHECK_NE(&from, this); const ExtendedTextMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.ExtendedTextMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.ExtendedTextMessage) MergeFrom(*source); } } void ExtendedTextMessage::MergeFrom(const ExtendedTextMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ExtendedTextMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { _internal_set_text(from._internal_text()); } if (cached_has_bits & 0x00000002u) { _internal_set_matchedtext(from._internal_matchedtext()); } if (cached_has_bits & 0x00000004u) { _internal_set_canonicalurl(from._internal_canonicalurl()); } if (cached_has_bits & 0x00000008u) { _internal_set_description(from._internal_description()); } if (cached_has_bits & 0x00000010u) { _internal_set_title(from._internal_title()); } if (cached_has_bits & 0x00000020u) { _internal_set_jpegthumbnail(from._internal_jpegthumbnail()); } if (cached_has_bits & 0x00000040u) { _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); } if (cached_has_bits & 0x00000080u) { textargb_ = from.textargb_; } _has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00000f00u) { if (cached_has_bits & 0x00000100u) { backgroundargb_ = from.backgroundargb_; } if (cached_has_bits & 0x00000200u) { font_ = from.font_; } if (cached_has_bits & 0x00000400u) { previewtype_ = from.previewtype_; } if (cached_has_bits & 0x00000800u) { donotplayinline_ = from.donotplayinline_; } _has_bits_[0] |= cached_has_bits; } } void ExtendedTextMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.ExtendedTextMessage) if (&from == this) return; Clear(); MergeFrom(from); } void ExtendedTextMessage::CopyFrom(const ExtendedTextMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.ExtendedTextMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool ExtendedTextMessage::IsInitialized() const { return true; } void ExtendedTextMessage::InternalSwap(ExtendedTextMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); text_.Swap(&other->text_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); matchedtext_.Swap(&other->matchedtext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); canonicalurl_.Swap(&other->canonicalurl_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); description_.Swap(&other->description_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); title_.Swap(&other->title_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); jpegthumbnail_.Swap(&other->jpegthumbnail_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ExtendedTextMessage, donotplayinline_) + sizeof(ExtendedTextMessage::donotplayinline_) - PROTOBUF_FIELD_OFFSET(ExtendedTextMessage, contextinfo_)>( reinterpret_cast(&contextinfo_), reinterpret_cast(&other->contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ExtendedTextMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class DocumentMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_url(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_mimetype(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_title(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_filesha256(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_filelength(HasBits* has_bits) { (*has_bits)[0] |= 8192u; } static void set_has_pagecount(HasBits* has_bits) { (*has_bits)[0] |= 16384u; } static void set_has_mediakey(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_filename(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static void set_has_fileencsha256(HasBits* has_bits) { (*has_bits)[0] |= 64u; } static void set_has_directpath(HasBits* has_bits) { (*has_bits)[0] |= 128u; } static void set_has_mediakeytimestamp(HasBits* has_bits) { (*has_bits)[0] |= 65536u; } static void set_has_contactvcard(HasBits* has_bits) { (*has_bits)[0] |= 32768u; } static void set_has_thumbnaildirectpath(HasBits* has_bits) { (*has_bits)[0] |= 256u; } static void set_has_thumbnailsha256(HasBits* has_bits) { (*has_bits)[0] |= 512u; } static void set_has_thumbnailencsha256(HasBits* has_bits) { (*has_bits)[0] |= 1024u; } static void set_has_jpegthumbnail(HasBits* has_bits) { (*has_bits)[0] |= 2048u; } static const ::proto::ContextInfo& contextinfo(const DocumentMessage* msg); static void set_has_contextinfo(HasBits* has_bits) { (*has_bits)[0] |= 4096u; } static void set_has_thumbnailheight(HasBits* has_bits) { (*has_bits)[0] |= 131072u; } static void set_has_thumbnailwidth(HasBits* has_bits) { (*has_bits)[0] |= 262144u; } }; const ::proto::ContextInfo& DocumentMessage::_Internal::contextinfo(const DocumentMessage* msg) { return *msg->contextinfo_; } DocumentMessage::DocumentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.DocumentMessage) } DocumentMessage::DocumentMessage(const DocumentMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_url()) { url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), GetArena()); } mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mimetype()) { mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mimetype(), GetArena()); } title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), GetArena()); } filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_filesha256()) { filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), GetArena()); } mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mediakey()) { mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), GetArena()); } filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_filename()) { filename_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filename(), GetArena()); } fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fileencsha256()) { fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), GetArena()); } directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_directpath()) { directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), GetArena()); } thumbnaildirectpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnaildirectpath()) { thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnaildirectpath(), GetArena()); } thumbnailsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnailsha256()) { thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailsha256(), GetArena()); } thumbnailencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnailencsha256()) { thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailencsha256(), GetArena()); } jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_jpegthumbnail()) { jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), GetArena()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); } else { contextinfo_ = nullptr; } ::memcpy(&filelength_, &from.filelength_, static_cast(reinterpret_cast(&thumbnailwidth_) - reinterpret_cast(&filelength_)) + sizeof(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(this) + static_cast( reinterpret_cast(&contextinfo_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&thumbnailwidth_) - reinterpret_cast(&contextinfo_)) + sizeof(thumbnailwidth_)); } DocumentMessage::~DocumentMessage() { // @@protoc_insertion_point(destructor:proto.DocumentMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void DocumentMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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*) { } void DocumentMessage::SetCachedSize(int size) const { _cached_size_.Set(size); } void DocumentMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.DocumentMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { url_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { mimetype_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { title_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { filesha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { mediakey_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { filename_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { fileencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { directpath_.ClearNonDefaultToEmpty(); } } if (cached_has_bits & 0x00001f00u) { if (cached_has_bits & 0x00000100u) { thumbnaildirectpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000200u) { thumbnailsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000400u) { thumbnailencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000800u) { jpegthumbnail_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00001000u) { GOOGLE_DCHECK(contextinfo_ != nullptr); contextinfo_->Clear(); } } if (cached_has_bits & 0x0000e000u) { ::memset(&filelength_, 0, static_cast( reinterpret_cast(&contactvcard_) - reinterpret_cast(&filelength_)) + sizeof(contactvcard_)); } if (cached_has_bits & 0x00070000u) { ::memset(&mediakeytimestamp_, 0, static_cast( reinterpret_cast(&thumbnailwidth_) - reinterpret_cast(&mediakeytimestamp_)) + sizeof(thumbnailwidth_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string url = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_url(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_mimetype(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_title(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_filesha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_filelength(&has_bits); 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)) { _Internal::set_has_pagecount(&has_bits); 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)) { auto str = _internal_mutable_mediakey(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_filename(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_fileencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_directpath(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_mediakeytimestamp(&has_bits); 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)) { _Internal::set_has_contactvcard(&has_bits); 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)) { auto str = _internal_mutable_thumbnaildirectpath(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_thumbnailsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_thumbnailencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_jpegthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 thumbnailHeight = 18; case 18: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) { _Internal::set_has_thumbnailheight(&has_bits); 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)) { _Internal::set_has_thumbnailwidth(&has_bits); thumbnailwidth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* DocumentMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string url = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_url().data(), static_cast(this->_internal_url().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.DocumentMessage.url"); target = stream->WriteStringMaybeAliased( 1, this->_internal_url(), target); } // optional string mimetype = 2; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_mimetype().data(), static_cast(this->_internal_mimetype().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.DocumentMessage.mimetype"); target = stream->WriteStringMaybeAliased( 2, this->_internal_mimetype(), target); } // optional string title = 3; if (cached_has_bits & 0x00000004u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_title().data(), static_cast(this->_internal_title().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.DocumentMessage.title"); target = stream->WriteStringMaybeAliased( 3, this->_internal_title(), target); } // optional bytes fileSha256 = 4; if (cached_has_bits & 0x00000008u) { target = stream->WriteBytesMaybeAliased( 4, this->_internal_filesha256(), target); } // 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); } // 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); } // optional bytes mediaKey = 7; if (cached_has_bits & 0x00000010u) { target = stream->WriteBytesMaybeAliased( 7, this->_internal_mediakey(), target); } // optional string fileName = 8; if (cached_has_bits & 0x00000020u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_filename().data(), static_cast(this->_internal_filename().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.DocumentMessage.fileName"); target = stream->WriteStringMaybeAliased( 8, this->_internal_filename(), target); } // optional bytes fileEncSha256 = 9; if (cached_has_bits & 0x00000040u) { target = stream->WriteBytesMaybeAliased( 9, this->_internal_fileencsha256(), target); } // optional string directPath = 10; if (cached_has_bits & 0x00000080u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_directpath().data(), static_cast(this->_internal_directpath().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.DocumentMessage.directPath"); target = stream->WriteStringMaybeAliased( 10, this->_internal_directpath(), target); } // 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); } // 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); } // optional string thumbnailDirectPath = 13; if (cached_has_bits & 0x00000100u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_thumbnaildirectpath().data(), static_cast(this->_internal_thumbnaildirectpath().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.DocumentMessage.thumbnailDirectPath"); target = stream->WriteStringMaybeAliased( 13, this->_internal_thumbnaildirectpath(), target); } // optional bytes thumbnailSha256 = 14; if (cached_has_bits & 0x00000200u) { target = stream->WriteBytesMaybeAliased( 14, this->_internal_thumbnailsha256(), target); } // optional bytes thumbnailEncSha256 = 15; if (cached_has_bits & 0x00000400u) { target = stream->WriteBytesMaybeAliased( 15, this->_internal_thumbnailencsha256(), target); } // optional bytes jpegThumbnail = 16; if (cached_has_bits & 0x00000800u) { target = stream->WriteBytesMaybeAliased( 16, this->_internal_jpegthumbnail(), target); } // 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); } // 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); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.DocumentMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string url = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_url()); } // optional string mimetype = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_mimetype()); } // optional string title = 3; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_title()); } // optional bytes fileSha256 = 4; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_filesha256()); } // optional bytes mediaKey = 7; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_mediakey()); } // optional string fileName = 8; if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_filename()); } // optional bytes fileEncSha256 = 9; if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_fileencsha256()); } // optional string directPath = 10; if (cached_has_bits & 0x00000080u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_directpath()); } } if (cached_has_bits & 0x0000ff00u) { // optional string thumbnailDirectPath = 13; if (cached_has_bits & 0x00000100u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_thumbnaildirectpath()); } // optional bytes thumbnailSha256 = 14; if (cached_has_bits & 0x00000200u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_thumbnailsha256()); } // optional bytes thumbnailEncSha256 = 15; if (cached_has_bits & 0x00000400u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_thumbnailencsha256()); } // optional bytes jpegThumbnail = 16; if (cached_has_bits & 0x00000800u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_jpegthumbnail()); } // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00001000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *contextinfo_); } // optional uint64 fileLength = 5; if (cached_has_bits & 0x00002000u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( this->_internal_filelength()); } // optional uint32 pageCount = 6; if (cached_has_bits & 0x00004000u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_pagecount()); } // optional bool contactVcard = 12; if (cached_has_bits & 0x00008000u) { total_size += 1 + 1; } } if (cached_has_bits & 0x00070000u) { // optional int64 mediaKeyTimestamp = 11; if (cached_has_bits & 0x00010000u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_mediakeytimestamp()); } // optional uint32 thumbnailHeight = 18; if (cached_has_bits & 0x00020000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_thumbnailheight()); } // optional uint32 thumbnailWidth = 19; if (cached_has_bits & 0x00040000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_thumbnailwidth()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void DocumentMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.DocumentMessage) GOOGLE_DCHECK_NE(&from, this); const DocumentMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.DocumentMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.DocumentMessage) MergeFrom(*source); } } void DocumentMessage::MergeFrom(const DocumentMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.DocumentMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { _internal_set_url(from._internal_url()); } if (cached_has_bits & 0x00000002u) { _internal_set_mimetype(from._internal_mimetype()); } if (cached_has_bits & 0x00000004u) { _internal_set_title(from._internal_title()); } if (cached_has_bits & 0x00000008u) { _internal_set_filesha256(from._internal_filesha256()); } if (cached_has_bits & 0x00000010u) { _internal_set_mediakey(from._internal_mediakey()); } if (cached_has_bits & 0x00000020u) { _internal_set_filename(from._internal_filename()); } if (cached_has_bits & 0x00000040u) { _internal_set_fileencsha256(from._internal_fileencsha256()); } if (cached_has_bits & 0x00000080u) { _internal_set_directpath(from._internal_directpath()); } } if (cached_has_bits & 0x0000ff00u) { if (cached_has_bits & 0x00000100u) { _internal_set_thumbnaildirectpath(from._internal_thumbnaildirectpath()); } if (cached_has_bits & 0x00000200u) { _internal_set_thumbnailsha256(from._internal_thumbnailsha256()); } if (cached_has_bits & 0x00000400u) { _internal_set_thumbnailencsha256(from._internal_thumbnailencsha256()); } if (cached_has_bits & 0x00000800u) { _internal_set_jpegthumbnail(from._internal_jpegthumbnail()); } if (cached_has_bits & 0x00001000u) { _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); } if (cached_has_bits & 0x00002000u) { filelength_ = from.filelength_; } if (cached_has_bits & 0x00004000u) { pagecount_ = from.pagecount_; } if (cached_has_bits & 0x00008000u) { contactvcard_ = from.contactvcard_; } _has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00070000u) { if (cached_has_bits & 0x00010000u) { mediakeytimestamp_ = from.mediakeytimestamp_; } if (cached_has_bits & 0x00020000u) { thumbnailheight_ = from.thumbnailheight_; } if (cached_has_bits & 0x00040000u) { thumbnailwidth_ = from.thumbnailwidth_; } _has_bits_[0] |= cached_has_bits; } } void DocumentMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.DocumentMessage) if (&from == this) return; Clear(); MergeFrom(from); } void DocumentMessage::CopyFrom(const DocumentMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.DocumentMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool DocumentMessage::IsInitialized() const { return true; } void DocumentMessage::InternalSwap(DocumentMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); url_.Swap(&other->url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); mimetype_.Swap(&other->mimetype_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); title_.Swap(&other->title_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); filesha256_.Swap(&other->filesha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); mediakey_.Swap(&other->mediakey_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); filename_.Swap(&other->filename_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); fileencsha256_.Swap(&other->fileencsha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); directpath_.Swap(&other->directpath_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); thumbnaildirectpath_.Swap(&other->thumbnaildirectpath_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); thumbnailsha256_.Swap(&other->thumbnailsha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); thumbnailencsha256_.Swap(&other->thumbnailencsha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); jpegthumbnail_.Swap(&other->jpegthumbnail_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(DocumentMessage, thumbnailwidth_) + sizeof(DocumentMessage::thumbnailwidth_) - PROTOBUF_FIELD_OFFSET(DocumentMessage, contextinfo_)>( reinterpret_cast(&contextinfo_), reinterpret_cast(&other->contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata DocumentMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class AudioMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_url(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_mimetype(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_filesha256(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_filelength(HasBits* has_bits) { (*has_bits)[0] |= 256u; } static void set_has_seconds(HasBits* has_bits) { (*has_bits)[0] |= 512u; } static void set_has_ptt(HasBits* has_bits) { (*has_bits)[0] |= 1024u; } static void set_has_mediakey(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_fileencsha256(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_directpath(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static void set_has_mediakeytimestamp(HasBits* has_bits) { (*has_bits)[0] |= 2048u; } static const ::proto::ContextInfo& contextinfo(const AudioMessage* msg); static void set_has_contextinfo(HasBits* has_bits) { (*has_bits)[0] |= 128u; } static void set_has_streamingsidecar(HasBits* has_bits) { (*has_bits)[0] |= 64u; } }; const ::proto::ContextInfo& AudioMessage::_Internal::contextinfo(const AudioMessage* msg) { return *msg->contextinfo_; } AudioMessage::AudioMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.AudioMessage) } AudioMessage::AudioMessage(const AudioMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_url()) { url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), GetArena()); } mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mimetype()) { mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mimetype(), GetArena()); } filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_filesha256()) { filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), GetArena()); } mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mediakey()) { mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), GetArena()); } fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fileencsha256()) { fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), GetArena()); } directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_directpath()) { directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), GetArena()); } streamingsidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_streamingsidecar()) { streamingsidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_streamingsidecar(), GetArena()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); } else { contextinfo_ = nullptr; } ::memcpy(&filelength_, &from.filelength_, static_cast(reinterpret_cast(&mediakeytimestamp_) - reinterpret_cast(&filelength_)) + sizeof(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(this) + static_cast( reinterpret_cast(&contextinfo_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&mediakeytimestamp_) - reinterpret_cast(&contextinfo_)) + sizeof(mediakeytimestamp_)); } AudioMessage::~AudioMessage() { // @@protoc_insertion_point(destructor:proto.AudioMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void AudioMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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_; } 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); } void AudioMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AudioMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { url_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { mimetype_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { filesha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { mediakey_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { fileencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { directpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { streamingsidecar_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { GOOGLE_DCHECK(contextinfo_ != nullptr); contextinfo_->Clear(); } } if (cached_has_bits & 0x00000f00u) { ::memset(&filelength_, 0, static_cast( reinterpret_cast(&mediakeytimestamp_) - reinterpret_cast(&filelength_)) + sizeof(mediakeytimestamp_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* AudioMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string url = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_url(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_mimetype(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_filesha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_filelength(&has_bits); 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)) { _Internal::set_has_seconds(&has_bits); 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)) { _Internal::set_has_ptt(&has_bits); 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)) { auto str = _internal_mutable_mediakey(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_fileencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_directpath(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_mediakeytimestamp(&has_bits); 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)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes streamingSidecar = 18; case 18: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 146)) { auto str = _internal_mutable_streamingsidecar(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* AudioMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string url = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_url().data(), static_cast(this->_internal_url().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.AudioMessage.url"); target = stream->WriteStringMaybeAliased( 1, this->_internal_url(), target); } // optional string mimetype = 2; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_mimetype().data(), static_cast(this->_internal_mimetype().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.AudioMessage.mimetype"); target = stream->WriteStringMaybeAliased( 2, this->_internal_mimetype(), target); } // optional bytes fileSha256 = 3; if (cached_has_bits & 0x00000004u) { target = stream->WriteBytesMaybeAliased( 3, this->_internal_filesha256(), target); } // 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); } // 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); } // 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); } // optional bytes mediaKey = 7; if (cached_has_bits & 0x00000008u) { target = stream->WriteBytesMaybeAliased( 7, this->_internal_mediakey(), target); } // optional bytes fileEncSha256 = 8; if (cached_has_bits & 0x00000010u) { target = stream->WriteBytesMaybeAliased( 8, this->_internal_fileencsha256(), target); } // optional string directPath = 9; if (cached_has_bits & 0x00000020u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_directpath().data(), static_cast(this->_internal_directpath().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.AudioMessage.directPath"); target = stream->WriteStringMaybeAliased( 9, this->_internal_directpath(), target); } // 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); } // 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); } // optional bytes streamingSidecar = 18; if (cached_has_bits & 0x00000040u) { target = stream->WriteBytesMaybeAliased( 18, this->_internal_streamingsidecar(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AudioMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string url = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_url()); } // optional string mimetype = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_mimetype()); } // optional bytes fileSha256 = 3; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_filesha256()); } // optional bytes mediaKey = 7; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_mediakey()); } // optional bytes fileEncSha256 = 8; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_fileencsha256()); } // optional string directPath = 9; if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_directpath()); } // optional bytes streamingSidecar = 18; if (cached_has_bits & 0x00000040u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_streamingsidecar()); } // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000080u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *contextinfo_); } } if (cached_has_bits & 0x00000f00u) { // optional uint64 fileLength = 4; if (cached_has_bits & 0x00000100u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( this->_internal_filelength()); } // optional uint32 seconds = 5; if (cached_has_bits & 0x00000200u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_seconds()); } // optional bool ptt = 6; if (cached_has_bits & 0x00000400u) { total_size += 1 + 1; } // optional int64 mediaKeyTimestamp = 10; if (cached_has_bits & 0x00000800u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_mediakeytimestamp()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void AudioMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.AudioMessage) GOOGLE_DCHECK_NE(&from, this); const AudioMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.AudioMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.AudioMessage) MergeFrom(*source); } } void AudioMessage::MergeFrom(const AudioMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AudioMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { _internal_set_url(from._internal_url()); } if (cached_has_bits & 0x00000002u) { _internal_set_mimetype(from._internal_mimetype()); } if (cached_has_bits & 0x00000004u) { _internal_set_filesha256(from._internal_filesha256()); } if (cached_has_bits & 0x00000008u) { _internal_set_mediakey(from._internal_mediakey()); } if (cached_has_bits & 0x00000010u) { _internal_set_fileencsha256(from._internal_fileencsha256()); } if (cached_has_bits & 0x00000020u) { _internal_set_directpath(from._internal_directpath()); } if (cached_has_bits & 0x00000040u) { _internal_set_streamingsidecar(from._internal_streamingsidecar()); } if (cached_has_bits & 0x00000080u) { _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); } } if (cached_has_bits & 0x00000f00u) { if (cached_has_bits & 0x00000100u) { filelength_ = from.filelength_; } if (cached_has_bits & 0x00000200u) { seconds_ = from.seconds_; } if (cached_has_bits & 0x00000400u) { ptt_ = from.ptt_; } if (cached_has_bits & 0x00000800u) { mediakeytimestamp_ = from.mediakeytimestamp_; } _has_bits_[0] |= cached_has_bits; } } void AudioMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.AudioMessage) if (&from == this) return; Clear(); MergeFrom(from); } void AudioMessage::CopyFrom(const AudioMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.AudioMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool AudioMessage::IsInitialized() const { return true; } void AudioMessage::InternalSwap(AudioMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); url_.Swap(&other->url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); mimetype_.Swap(&other->mimetype_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); filesha256_.Swap(&other->filesha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); mediakey_.Swap(&other->mediakey_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); fileencsha256_.Swap(&other->fileencsha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); directpath_.Swap(&other->directpath_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); streamingsidecar_.Swap(&other->streamingsidecar_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(AudioMessage, mediakeytimestamp_) + sizeof(AudioMessage::mediakeytimestamp_) - PROTOBUF_FIELD_OFFSET(AudioMessage, contextinfo_)>( reinterpret_cast(&contextinfo_), reinterpret_cast(&other->contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata AudioMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class VideoMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_url(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_mimetype(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_filesha256(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_filelength(HasBits* has_bits) { (*has_bits)[0] |= 8192u; } static void set_has_seconds(HasBits* has_bits) { (*has_bits)[0] |= 16384u; } static void set_has_mediakey(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_caption(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_gifplayback(HasBits* has_bits) { (*has_bits)[0] |= 131072u; } static void set_has_height(HasBits* has_bits) { (*has_bits)[0] |= 32768u; } static void set_has_width(HasBits* has_bits) { (*has_bits)[0] |= 65536u; } static void set_has_fileencsha256(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static void set_has_directpath(HasBits* has_bits) { (*has_bits)[0] |= 64u; } static void set_has_mediakeytimestamp(HasBits* has_bits) { (*has_bits)[0] |= 524288u; } static void set_has_jpegthumbnail(HasBits* has_bits) { (*has_bits)[0] |= 128u; } static const ::proto::ContextInfo& contextinfo(const VideoMessage* msg); static void set_has_contextinfo(HasBits* has_bits) { (*has_bits)[0] |= 4096u; } static void set_has_streamingsidecar(HasBits* has_bits) { (*has_bits)[0] |= 256u; } static void set_has_gifattribution(HasBits* has_bits) { (*has_bits)[0] |= 1048576u; } static void set_has_viewonce(HasBits* has_bits) { (*has_bits)[0] |= 262144u; } static void set_has_thumbnaildirectpath(HasBits* has_bits) { (*has_bits)[0] |= 512u; } static void set_has_thumbnailsha256(HasBits* has_bits) { (*has_bits)[0] |= 1024u; } static void set_has_thumbnailencsha256(HasBits* has_bits) { (*has_bits)[0] |= 2048u; } }; const ::proto::ContextInfo& VideoMessage::_Internal::contextinfo(const VideoMessage* msg) { return *msg->contextinfo_; } VideoMessage::VideoMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), interactiveannotations_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.VideoMessage) } VideoMessage::VideoMessage(const VideoMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_), interactiveannotations_(from.interactiveannotations_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_url()) { url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), GetArena()); } mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mimetype()) { mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mimetype(), GetArena()); } filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_filesha256()) { filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), GetArena()); } mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mediakey()) { mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), GetArena()); } caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_caption()) { caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_caption(), GetArena()); } fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fileencsha256()) { fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), GetArena()); } directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_directpath()) { directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), GetArena()); } jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_jpegthumbnail()) { jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), GetArena()); } streamingsidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_streamingsidecar()) { streamingsidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_streamingsidecar(), GetArena()); } thumbnaildirectpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnaildirectpath()) { thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnaildirectpath(), GetArena()); } thumbnailsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnailsha256()) { thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailsha256(), GetArena()); } thumbnailencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnailencsha256()) { thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailencsha256(), GetArena()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); } else { contextinfo_ = nullptr; } ::memcpy(&filelength_, &from.filelength_, static_cast(reinterpret_cast(&gifattribution_) - reinterpret_cast(&filelength_)) + sizeof(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(this) + static_cast( reinterpret_cast(&contextinfo_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&gifattribution_) - reinterpret_cast(&contextinfo_)) + sizeof(gifattribution_)); } VideoMessage::~VideoMessage() { // @@protoc_insertion_point(destructor:proto.VideoMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void VideoMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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*) { } void VideoMessage::SetCachedSize(int size) const { _cached_size_.Set(size); } void VideoMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.VideoMessage) ::PROTOBUF_NAMESPACE_ID::uint32 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]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { url_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { mimetype_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { filesha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { mediakey_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { caption_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { fileencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { directpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { jpegthumbnail_.ClearNonDefaultToEmpty(); } } if (cached_has_bits & 0x00001f00u) { if (cached_has_bits & 0x00000100u) { streamingsidecar_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000200u) { thumbnaildirectpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000400u) { thumbnailsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000800u) { thumbnailencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00001000u) { GOOGLE_DCHECK(contextinfo_ != nullptr); contextinfo_->Clear(); } } if (cached_has_bits & 0x0000e000u) { ::memset(&filelength_, 0, static_cast( reinterpret_cast(&height_) - reinterpret_cast(&filelength_)) + sizeof(height_)); } if (cached_has_bits & 0x001f0000u) { ::memset(&width_, 0, static_cast( reinterpret_cast(&gifattribution_) - reinterpret_cast(&width_)) + sizeof(gifattribution_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string url = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_url(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_mimetype(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_filesha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_filelength(&has_bits); 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)) { _Internal::set_has_seconds(&has_bits); 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)) { auto str = _internal_mutable_mediakey(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_caption(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_gifplayback(&has_bits); 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)) { _Internal::set_has_height(&has_bits); 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)) { _Internal::set_has_width(&has_bits); 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)) { auto str = _internal_mutable_fileencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_interactiveannotations(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr)); } else goto handle_unusual; continue; // optional string directPath = 13; case 13: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { auto str = _internal_mutable_directpath(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_mediakeytimestamp(&has_bits); 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)) { auto str = _internal_mutable_jpegthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional bytes streamingSidecar = 18; case 18: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 146)) { auto str = _internal_mutable_streamingsidecar(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::VideoMessage_VideoMessageAttribution_IsValid(val))) { _internal_set_gifattribution(static_cast<::proto::VideoMessage_VideoMessageAttribution>(val)); } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(19, val, mutable_unknown_fields()); } } else goto handle_unusual; continue; // optional bool viewOnce = 20; case 20: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 160)) { _Internal::set_has_viewonce(&has_bits); 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)) { auto str = _internal_mutable_thumbnaildirectpath(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_thumbnailsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_thumbnailencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* VideoMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string url = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_url().data(), static_cast(this->_internal_url().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.VideoMessage.url"); target = stream->WriteStringMaybeAliased( 1, this->_internal_url(), target); } // optional string mimetype = 2; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_mimetype().data(), static_cast(this->_internal_mimetype().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.VideoMessage.mimetype"); target = stream->WriteStringMaybeAliased( 2, this->_internal_mimetype(), target); } // optional bytes fileSha256 = 3; if (cached_has_bits & 0x00000004u) { target = stream->WriteBytesMaybeAliased( 3, this->_internal_filesha256(), target); } // 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); } // 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); } // optional bytes mediaKey = 6; if (cached_has_bits & 0x00000008u) { target = stream->WriteBytesMaybeAliased( 6, this->_internal_mediakey(), target); } // optional string caption = 7; if (cached_has_bits & 0x00000010u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_caption().data(), static_cast(this->_internal_caption().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.VideoMessage.caption"); target = stream->WriteStringMaybeAliased( 7, this->_internal_caption(), target); } // 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); } // 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); } // 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); } // optional bytes fileEncSha256 = 11; if (cached_has_bits & 0x00000020u) { target = stream->WriteBytesMaybeAliased( 11, this->_internal_fileencsha256(), target); } // repeated .proto.InteractiveAnnotation interactiveAnnotations = 12; for (unsigned int i = 0, n = static_cast(this->_internal_interactiveannotations_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(12, this->_internal_interactiveannotations(i), target, stream); } // optional string directPath = 13; if (cached_has_bits & 0x00000040u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_directpath().data(), static_cast(this->_internal_directpath().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.VideoMessage.directPath"); target = stream->WriteStringMaybeAliased( 13, this->_internal_directpath(), target); } // 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); } // optional bytes jpegThumbnail = 16; if (cached_has_bits & 0x00000080u) { target = stream->WriteBytesMaybeAliased( 16, this->_internal_jpegthumbnail(), target); } // 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); } // optional bytes streamingSidecar = 18; if (cached_has_bits & 0x00000100u) { target = stream->WriteBytesMaybeAliased( 18, this->_internal_streamingsidecar(), target); } // optional .proto.VideoMessage.VideoMessageAttribution gifAttribution = 19; if (cached_has_bits & 0x00100000u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::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); } // optional string thumbnailDirectPath = 21; if (cached_has_bits & 0x00000200u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_thumbnaildirectpath().data(), static_cast(this->_internal_thumbnaildirectpath().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.VideoMessage.thumbnailDirectPath"); target = stream->WriteStringMaybeAliased( 21, this->_internal_thumbnaildirectpath(), target); } // optional bytes thumbnailSha256 = 22; if (cached_has_bits & 0x00000400u) { target = stream->WriteBytesMaybeAliased( 22, this->_internal_thumbnailsha256(), target); } // optional bytes thumbnailEncSha256 = 23; if (cached_has_bits & 0x00000800u) { target = stream->WriteBytesMaybeAliased( 23, this->_internal_thumbnailencsha256(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.VideoMessage) return target; } 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; // 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_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string url = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_url()); } // optional string mimetype = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_mimetype()); } // optional bytes fileSha256 = 3; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_filesha256()); } // optional bytes mediaKey = 6; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_mediakey()); } // optional string caption = 7; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_caption()); } // optional bytes fileEncSha256 = 11; if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_fileencsha256()); } // optional string directPath = 13; if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_directpath()); } // optional bytes jpegThumbnail = 16; if (cached_has_bits & 0x00000080u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_jpegthumbnail()); } } if (cached_has_bits & 0x0000ff00u) { // optional bytes streamingSidecar = 18; if (cached_has_bits & 0x00000100u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_streamingsidecar()); } // optional string thumbnailDirectPath = 21; if (cached_has_bits & 0x00000200u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_thumbnaildirectpath()); } // optional bytes thumbnailSha256 = 22; if (cached_has_bits & 0x00000400u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_thumbnailsha256()); } // optional bytes thumbnailEncSha256 = 23; if (cached_has_bits & 0x00000800u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_thumbnailencsha256()); } // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00001000u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *contextinfo_); } // optional uint64 fileLength = 4; if (cached_has_bits & 0x00002000u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( this->_internal_filelength()); } // optional uint32 seconds = 5; if (cached_has_bits & 0x00004000u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_seconds()); } // optional uint32 height = 9; if (cached_has_bits & 0x00008000u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_height()); } } if (cached_has_bits & 0x001f0000u) { // optional uint32 width = 10; if (cached_has_bits & 0x00010000u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_width()); } // optional bool gifPlayback = 8; if (cached_has_bits & 0x00020000u) { total_size += 1 + 1; } // optional bool viewOnce = 20; if (cached_has_bits & 0x00040000u) { total_size += 2 + 1; } // optional int64 mediaKeyTimestamp = 14; if (cached_has_bits & 0x00080000u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( 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()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void VideoMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.VideoMessage) GOOGLE_DCHECK_NE(&from, this); const VideoMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.VideoMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.VideoMessage) MergeFrom(*source); } } void VideoMessage::MergeFrom(const VideoMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.VideoMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; interactiveannotations_.MergeFrom(from.interactiveannotations_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { _internal_set_url(from._internal_url()); } if (cached_has_bits & 0x00000002u) { _internal_set_mimetype(from._internal_mimetype()); } if (cached_has_bits & 0x00000004u) { _internal_set_filesha256(from._internal_filesha256()); } if (cached_has_bits & 0x00000008u) { _internal_set_mediakey(from._internal_mediakey()); } if (cached_has_bits & 0x00000010u) { _internal_set_caption(from._internal_caption()); } if (cached_has_bits & 0x00000020u) { _internal_set_fileencsha256(from._internal_fileencsha256()); } if (cached_has_bits & 0x00000040u) { _internal_set_directpath(from._internal_directpath()); } if (cached_has_bits & 0x00000080u) { _internal_set_jpegthumbnail(from._internal_jpegthumbnail()); } } if (cached_has_bits & 0x0000ff00u) { if (cached_has_bits & 0x00000100u) { _internal_set_streamingsidecar(from._internal_streamingsidecar()); } if (cached_has_bits & 0x00000200u) { _internal_set_thumbnaildirectpath(from._internal_thumbnaildirectpath()); } if (cached_has_bits & 0x00000400u) { _internal_set_thumbnailsha256(from._internal_thumbnailsha256()); } if (cached_has_bits & 0x00000800u) { _internal_set_thumbnailencsha256(from._internal_thumbnailencsha256()); } if (cached_has_bits & 0x00001000u) { _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); } if (cached_has_bits & 0x00002000u) { filelength_ = from.filelength_; } if (cached_has_bits & 0x00004000u) { seconds_ = from.seconds_; } if (cached_has_bits & 0x00008000u) { height_ = from.height_; } _has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x001f0000u) { if (cached_has_bits & 0x00010000u) { width_ = from.width_; } if (cached_has_bits & 0x00020000u) { gifplayback_ = from.gifplayback_; } if (cached_has_bits & 0x00040000u) { viewonce_ = from.viewonce_; } if (cached_has_bits & 0x00080000u) { mediakeytimestamp_ = from.mediakeytimestamp_; } if (cached_has_bits & 0x00100000u) { gifattribution_ = from.gifattribution_; } _has_bits_[0] |= cached_has_bits; } } void VideoMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.VideoMessage) if (&from == this) return; Clear(); MergeFrom(from); } void VideoMessage::CopyFrom(const VideoMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.VideoMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool VideoMessage::IsInitialized() const { return true; } void VideoMessage::InternalSwap(VideoMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); interactiveannotations_.InternalSwap(&other->interactiveannotations_); url_.Swap(&other->url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); mimetype_.Swap(&other->mimetype_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); filesha256_.Swap(&other->filesha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); mediakey_.Swap(&other->mediakey_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); caption_.Swap(&other->caption_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); fileencsha256_.Swap(&other->fileencsha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); directpath_.Swap(&other->directpath_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); jpegthumbnail_.Swap(&other->jpegthumbnail_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); streamingsidecar_.Swap(&other->streamingsidecar_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); thumbnaildirectpath_.Swap(&other->thumbnaildirectpath_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); thumbnailsha256_.Swap(&other->thumbnailsha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); thumbnailencsha256_.Swap(&other->thumbnailencsha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(VideoMessage, gifattribution_) + sizeof(VideoMessage::gifattribution_) - PROTOBUF_FIELD_OFFSET(VideoMessage, contextinfo_)>( reinterpret_cast(&contextinfo_), reinterpret_cast(&other->contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata VideoMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class Call::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_callkey(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; Call::Call(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.Call) } Call::Call(const Call& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); callkey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_callkey()) { callkey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_callkey(), GetArena()); } // @@protoc_insertion_point(copy_constructor:proto.Call) } void Call::SharedCtor() { callkey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } Call::~Call() { // @@protoc_insertion_point(destructor:proto.Call) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Call::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); callkey_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void Call::Clear() { // @@protoc_insertion_point(message_clear_start:proto.Call) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { callkey_.ClearNonDefaultToEmpty(); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Call::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional bytes callKey = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_callkey(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* Call::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional bytes callKey = 1; if (cached_has_bits & 0x00000001u) { target = stream->WriteBytesMaybeAliased( 1, this->_internal_callkey(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.Call) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional bytes callKey = 1; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_callkey()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Call::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.Call) GOOGLE_DCHECK_NE(&from, this); const Call* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.Call) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.Call) MergeFrom(*source); } } void Call::MergeFrom(const Call& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.Call) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_callkey()) { _internal_set_callkey(from._internal_callkey()); } } void Call::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.Call) if (&from == this) return; Clear(); MergeFrom(from); } void Call::CopyFrom(const Call& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.Call) if (&from == this) return; Clear(); MergeFrom(from); } bool Call::IsInitialized() const { return true; } void Call::InternalSwap(Call* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); callkey_.Swap(&other->callkey_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata Call::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class Chat::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_displayname(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_id(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; Chat::Chat(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.Chat) } Chat::Chat(const Chat& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); displayname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_displayname()) { displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displayname(), GetArena()); } id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_id()) { id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), GetArena()); } // @@protoc_insertion_point(copy_constructor:proto.Chat) } void Chat::SharedCtor() { displayname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } Chat::~Chat() { // @@protoc_insertion_point(destructor:proto.Chat) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Chat::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); displayname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void Chat::Clear() { // @@protoc_insertion_point(message_clear_start:proto.Chat) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { displayname_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { id_.ClearNonDefaultToEmpty(); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Chat::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string displayName = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_displayname(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_id(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Chat.id"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* Chat::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string displayName = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_displayname().data(), static_cast(this->_internal_displayname().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.Chat.displayName"); target = stream->WriteStringMaybeAliased( 1, this->_internal_displayname(), target); } // optional string id = 2; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_id().data(), static_cast(this->_internal_id().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.Chat.id"); target = stream->WriteStringMaybeAliased( 2, this->_internal_id(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.Chat) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string displayName = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_displayname()); } // optional string id = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_id()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Chat::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.Chat) GOOGLE_DCHECK_NE(&from, this); const Chat* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.Chat) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.Chat) MergeFrom(*source); } } void Chat::MergeFrom(const Chat& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.Chat) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _internal_set_displayname(from._internal_displayname()); } if (cached_has_bits & 0x00000002u) { _internal_set_id(from._internal_id()); } } } void Chat::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.Chat) if (&from == this) return; Clear(); MergeFrom(from); } void Chat::CopyFrom(const Chat& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.Chat) if (&from == this) return; Clear(); MergeFrom(from); } bool Chat::IsInitialized() const { return true; } void Chat::InternalSwap(Chat* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); displayname_.Swap(&other->displayname_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata Chat::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class ProtocolMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::proto::MessageKey& key(const ProtocolMessage* msg); static void set_has_key(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_type(HasBits* has_bits) { (*has_bits)[0] |= 64u; } static void set_has_ephemeralexpiration(HasBits* has_bits) { (*has_bits)[0] |= 128u; } static void set_has_ephemeralsettingtimestamp(HasBits* has_bits) { (*has_bits)[0] |= 256u; } static const ::proto::HistorySyncNotification& historysyncnotification(const ProtocolMessage* msg); static void set_has_historysyncnotification(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static const ::proto::AppStateSyncKeyShare& appstatesynckeyshare(const ProtocolMessage* msg); static void set_has_appstatesynckeyshare(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static const ::proto::AppStateSyncKeyRequest& appstatesynckeyrequest(const ProtocolMessage* msg); static void set_has_appstatesynckeyrequest(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static const ::proto::InitialSecurityNotificationSettingSync& initialsecuritynotificationsettingsync(const ProtocolMessage* msg); static void set_has_initialsecuritynotificationsettingsync(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static const ::proto::AppStateFatalExceptionNotification& appstatefatalexceptionnotification(const ProtocolMessage* msg); static void set_has_appstatefatalexceptionnotification(HasBits* has_bits) { (*has_bits)[0] |= 32u; } }; const ::proto::MessageKey& ProtocolMessage::_Internal::key(const ProtocolMessage* msg) { return *msg->key_; } const ::proto::HistorySyncNotification& ProtocolMessage::_Internal::historysyncnotification(const ProtocolMessage* msg) { return *msg->historysyncnotification_; } const ::proto::AppStateSyncKeyShare& ProtocolMessage::_Internal::appstatesynckeyshare(const ProtocolMessage* msg) { return *msg->appstatesynckeyshare_; } const ::proto::AppStateSyncKeyRequest& ProtocolMessage::_Internal::appstatesynckeyrequest(const ProtocolMessage* msg) { return *msg->appstatesynckeyrequest_; } const ::proto::InitialSecurityNotificationSettingSync& ProtocolMessage::_Internal::initialsecuritynotificationsettingsync(const ProtocolMessage* msg) { return *msg->initialsecuritynotificationsettingsync_; } const ::proto::AppStateFatalExceptionNotification& ProtocolMessage::_Internal::appstatefatalexceptionnotification(const ProtocolMessage* msg) { return *msg->appstatefatalexceptionnotification_; } ProtocolMessage::ProtocolMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.ProtocolMessage) } ProtocolMessage::ProtocolMessage(const ProtocolMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_key()) { key_ = new ::proto::MessageKey(*from.key_); } else { key_ = nullptr; } if (from._internal_has_historysyncnotification()) { historysyncnotification_ = new ::proto::HistorySyncNotification(*from.historysyncnotification_); } else { historysyncnotification_ = nullptr; } if (from._internal_has_appstatesynckeyshare()) { appstatesynckeyshare_ = new ::proto::AppStateSyncKeyShare(*from.appstatesynckeyshare_); } else { appstatesynckeyshare_ = nullptr; } if (from._internal_has_appstatesynckeyrequest()) { appstatesynckeyrequest_ = new ::proto::AppStateSyncKeyRequest(*from.appstatesynckeyrequest_); } else { appstatesynckeyrequest_ = nullptr; } if (from._internal_has_initialsecuritynotificationsettingsync()) { initialsecuritynotificationsettingsync_ = new ::proto::InitialSecurityNotificationSettingSync(*from.initialsecuritynotificationsettingsync_); } else { initialsecuritynotificationsettingsync_ = nullptr; } if (from._internal_has_appstatefatalexceptionnotification()) { appstatefatalexceptionnotification_ = new ::proto::AppStateFatalExceptionNotification(*from.appstatefatalexceptionnotification_); } else { appstatefatalexceptionnotification_ = nullptr; } ::memcpy(&type_, &from.type_, static_cast(reinterpret_cast(&ephemeralsettingtimestamp_) - reinterpret_cast(&type_)) + sizeof(ephemeralsettingtimestamp_)); // @@protoc_insertion_point(copy_constructor:proto.ProtocolMessage) } void ProtocolMessage::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&key_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&ephemeralsettingtimestamp_) - reinterpret_cast(&key_)) + sizeof(ephemeralsettingtimestamp_)); } ProtocolMessage::~ProtocolMessage() { // @@protoc_insertion_point(destructor:proto.ProtocolMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void ProtocolMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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_; } 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); } void ProtocolMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ProtocolMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000003fu) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(key_ != nullptr); key_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(historysyncnotification_ != nullptr); historysyncnotification_->Clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(appstatesynckeyshare_ != nullptr); appstatesynckeyshare_->Clear(); } if (cached_has_bits & 0x00000008u) { GOOGLE_DCHECK(appstatesynckeyrequest_ != nullptr); appstatesynckeyrequest_->Clear(); } if (cached_has_bits & 0x00000010u) { GOOGLE_DCHECK(initialsecuritynotificationsettingsync_ != nullptr); initialsecuritynotificationsettingsync_->Clear(); } if (cached_has_bits & 0x00000020u) { GOOGLE_DCHECK(appstatefatalexceptionnotification_ != nullptr); appstatefatalexceptionnotification_->Clear(); } } if (cached_has_bits & 0x000000c0u) { ::memset(&type_, 0, static_cast( reinterpret_cast(&ephemeralexpiration_) - reinterpret_cast(&type_)) + sizeof(ephemeralexpiration_)); } ephemeralsettingtimestamp_ = PROTOBUF_LONGLONG(0); _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ProtocolMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional .proto.MessageKey key = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_key(), ptr); CHK_(ptr); } else goto handle_unusual; 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); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::ProtocolMessage_ProtocolMessageType_IsValid(val))) { _internal_set_type(static_cast<::proto::ProtocolMessage_ProtocolMessageType>(val)); } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); } } else goto handle_unusual; continue; // optional uint32 ephemeralExpiration = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { _Internal::set_has_ephemeralexpiration(&has_bits); 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)) { _Internal::set_has_ephemeralsettingtimestamp(&has_bits); 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)) { ptr = ctx->ParseMessage(_internal_mutable_historysyncnotification(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.AppStateSyncKeyShare appStateSyncKeyShare = 7; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { ptr = ctx->ParseMessage(_internal_mutable_appstatesynckeyshare(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.AppStateSyncKeyRequest appStateSyncKeyRequest = 8; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { ptr = ctx->ParseMessage(_internal_mutable_appstatesynckeyrequest(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.InitialSecurityNotificationSettingSync initialSecurityNotificationSettingSync = 9; case 9: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { ptr = ctx->ParseMessage(_internal_mutable_initialsecuritynotificationsettingsync(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.AppStateFatalExceptionNotification appStateFatalExceptionNotification = 10; case 10: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { ptr = ctx->ParseMessage(_internal_mutable_appstatefatalexceptionnotification(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* ProtocolMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } // optional .proto.ProtocolMessage.ProtocolMessageType type = 2; if (cached_has_bits & 0x00000040u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::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); } // 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); } // 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); } // 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); } // 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); } // 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); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ProtocolMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional .proto.MessageKey key = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *key_); } // optional .proto.HistorySyncNotification historySyncNotification = 6; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *historysyncnotification_); } // optional .proto.AppStateSyncKeyShare appStateSyncKeyShare = 7; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *appstatesynckeyshare_); } // optional .proto.AppStateSyncKeyRequest appStateSyncKeyRequest = 8; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *appstatesynckeyrequest_); } // optional .proto.InitialSecurityNotificationSettingSync initialSecurityNotificationSettingSync = 9; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *initialsecuritynotificationsettingsync_); } // optional .proto.AppStateFatalExceptionNotification appStateFatalExceptionNotification = 10; if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *appstatefatalexceptionnotification_); } // optional .proto.ProtocolMessage.ProtocolMessageType type = 2; if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); } // optional uint32 ephemeralExpiration = 4; if (cached_has_bits & 0x00000080u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_ephemeralexpiration()); } } // optional int64 ephemeralSettingTimestamp = 5; if (cached_has_bits & 0x00000100u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_ephemeralsettingtimestamp()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ProtocolMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.ProtocolMessage) GOOGLE_DCHECK_NE(&from, this); const ProtocolMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.ProtocolMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.ProtocolMessage) MergeFrom(*source); } } void ProtocolMessage::MergeFrom(const ProtocolMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ProtocolMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { _internal_mutable_key()->::proto::MessageKey::MergeFrom(from._internal_key()); } if (cached_has_bits & 0x00000002u) { _internal_mutable_historysyncnotification()->::proto::HistorySyncNotification::MergeFrom(from._internal_historysyncnotification()); } if (cached_has_bits & 0x00000004u) { _internal_mutable_appstatesynckeyshare()->::proto::AppStateSyncKeyShare::MergeFrom(from._internal_appstatesynckeyshare()); } if (cached_has_bits & 0x00000008u) { _internal_mutable_appstatesynckeyrequest()->::proto::AppStateSyncKeyRequest::MergeFrom(from._internal_appstatesynckeyrequest()); } if (cached_has_bits & 0x00000010u) { _internal_mutable_initialsecuritynotificationsettingsync()->::proto::InitialSecurityNotificationSettingSync::MergeFrom(from._internal_initialsecuritynotificationsettingsync()); } if (cached_has_bits & 0x00000020u) { _internal_mutable_appstatefatalexceptionnotification()->::proto::AppStateFatalExceptionNotification::MergeFrom(from._internal_appstatefatalexceptionnotification()); } if (cached_has_bits & 0x00000040u) { type_ = from.type_; } if (cached_has_bits & 0x00000080u) { ephemeralexpiration_ = from.ephemeralexpiration_; } _has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00000100u) { _internal_set_ephemeralsettingtimestamp(from._internal_ephemeralsettingtimestamp()); } } void ProtocolMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.ProtocolMessage) if (&from == this) return; Clear(); MergeFrom(from); } void ProtocolMessage::CopyFrom(const ProtocolMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.ProtocolMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool ProtocolMessage::IsInitialized() const { return true; } void ProtocolMessage::InternalSwap(ProtocolMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ProtocolMessage, ephemeralsettingtimestamp_) + sizeof(ProtocolMessage::ephemeralsettingtimestamp_) - PROTOBUF_FIELD_OFFSET(ProtocolMessage, key_)>( reinterpret_cast(&key_), reinterpret_cast(&other->key_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ProtocolMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class HistorySyncNotification::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_filesha256(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_filelength(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static void set_has_mediakey(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_fileencsha256(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_directpath(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_synctype(HasBits* has_bits) { (*has_bits)[0] |= 64u; } static void set_has_chunkorder(HasBits* has_bits) { (*has_bits)[0] |= 128u; } static void set_has_originalmessageid(HasBits* has_bits) { (*has_bits)[0] |= 16u; } }; HistorySyncNotification::HistorySyncNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.HistorySyncNotification) } HistorySyncNotification::HistorySyncNotification(const HistorySyncNotification& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_filesha256()) { filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), GetArena()); } mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mediakey()) { mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), GetArena()); } fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fileencsha256()) { fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), GetArena()); } directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_directpath()) { directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), GetArena()); } originalmessageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_originalmessageid()) { originalmessageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_originalmessageid(), GetArena()); } ::memcpy(&filelength_, &from.filelength_, static_cast(reinterpret_cast(&chunkorder_) - reinterpret_cast(&filelength_)) + sizeof(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(this) + static_cast( reinterpret_cast(&filelength_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&chunkorder_) - reinterpret_cast(&filelength_)) + sizeof(chunkorder_)); } HistorySyncNotification::~HistorySyncNotification() { // @@protoc_insertion_point(destructor:proto.HistorySyncNotification) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void HistorySyncNotification::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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()); } 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); } void HistorySyncNotification::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HistorySyncNotification) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000001fu) { if (cached_has_bits & 0x00000001u) { filesha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { mediakey_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { fileencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { directpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { originalmessageid_.ClearNonDefaultToEmpty(); } } if (cached_has_bits & 0x000000e0u) { ::memset(&filelength_, 0, static_cast( reinterpret_cast(&chunkorder_) - reinterpret_cast(&filelength_)) + sizeof(chunkorder_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* HistorySyncNotification::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional bytes fileSha256 = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_filesha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_filelength(&has_bits); 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)) { auto str = _internal_mutable_mediakey(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_fileencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_directpath(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::HistorySyncNotification_HistorySyncNotificationHistorySyncType_IsValid(val))) { _internal_set_synctype(static_cast<::proto::HistorySyncNotification_HistorySyncNotificationHistorySyncType>(val)); } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(6, val, mutable_unknown_fields()); } } else goto handle_unusual; continue; // optional uint32 chunkOrder = 7; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { _Internal::set_has_chunkorder(&has_bits); 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)) { auto str = _internal_mutable_originalmessageid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HistorySyncNotification.originalMessageId"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* HistorySyncNotification::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional bytes fileSha256 = 1; if (cached_has_bits & 0x00000001u) { target = stream->WriteBytesMaybeAliased( 1, this->_internal_filesha256(), target); } // 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); } // optional bytes mediaKey = 3; if (cached_has_bits & 0x00000002u) { target = stream->WriteBytesMaybeAliased( 3, this->_internal_mediakey(), target); } // optional bytes fileEncSha256 = 4; if (cached_has_bits & 0x00000004u) { target = stream->WriteBytesMaybeAliased( 4, this->_internal_fileencsha256(), target); } // optional string directPath = 5; if (cached_has_bits & 0x00000008u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_directpath().data(), static_cast(this->_internal_directpath().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HistorySyncNotification.directPath"); target = stream->WriteStringMaybeAliased( 5, this->_internal_directpath(), target); } // optional .proto.HistorySyncNotification.HistorySyncNotificationHistorySyncType syncType = 6; if (cached_has_bits & 0x00000040u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::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); } // optional string originalMessageId = 8; if (cached_has_bits & 0x00000010u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_originalmessageid().data(), static_cast(this->_internal_originalmessageid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HistorySyncNotification.originalMessageId"); target = stream->WriteStringMaybeAliased( 8, this->_internal_originalmessageid(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HistorySyncNotification) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional bytes fileSha256 = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_filesha256()); } // optional bytes mediaKey = 3; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_mediakey()); } // optional bytes fileEncSha256 = 4; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_fileencsha256()); } // optional string directPath = 5; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_directpath()); } // optional string originalMessageId = 8; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_originalmessageid()); } // optional uint64 fileLength = 2; if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( 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()); } // optional uint32 chunkOrder = 7; if (cached_has_bits & 0x00000080u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_chunkorder()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void HistorySyncNotification::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.HistorySyncNotification) GOOGLE_DCHECK_NE(&from, this); const HistorySyncNotification* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.HistorySyncNotification) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.HistorySyncNotification) MergeFrom(*source); } } void HistorySyncNotification::MergeFrom(const HistorySyncNotification& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HistorySyncNotification) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { _internal_set_filesha256(from._internal_filesha256()); } if (cached_has_bits & 0x00000002u) { _internal_set_mediakey(from._internal_mediakey()); } if (cached_has_bits & 0x00000004u) { _internal_set_fileencsha256(from._internal_fileencsha256()); } if (cached_has_bits & 0x00000008u) { _internal_set_directpath(from._internal_directpath()); } if (cached_has_bits & 0x00000010u) { _internal_set_originalmessageid(from._internal_originalmessageid()); } if (cached_has_bits & 0x00000020u) { filelength_ = from.filelength_; } if (cached_has_bits & 0x00000040u) { synctype_ = from.synctype_; } if (cached_has_bits & 0x00000080u) { chunkorder_ = from.chunkorder_; } _has_bits_[0] |= cached_has_bits; } } void HistorySyncNotification::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.HistorySyncNotification) if (&from == this) return; Clear(); MergeFrom(from); } void HistorySyncNotification::CopyFrom(const HistorySyncNotification& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.HistorySyncNotification) if (&from == this) return; Clear(); MergeFrom(from); } bool HistorySyncNotification::IsInitialized() const { return true; } void HistorySyncNotification::InternalSwap(HistorySyncNotification* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); filesha256_.Swap(&other->filesha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); mediakey_.Swap(&other->mediakey_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); fileencsha256_.Swap(&other->fileencsha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); directpath_.Swap(&other->directpath_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); originalmessageid_.Swap(&other->originalmessageid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(HistorySyncNotification, chunkorder_) + sizeof(HistorySyncNotification::chunkorder_) - PROTOBUF_FIELD_OFFSET(HistorySyncNotification, filelength_)>( reinterpret_cast(&filelength_), reinterpret_cast(&other->filelength_)); } ::PROTOBUF_NAMESPACE_ID::Metadata HistorySyncNotification::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class AppStateSyncKey::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::proto::AppStateSyncKeyId& keyid(const AppStateSyncKey* msg); static void set_has_keyid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::proto::AppStateSyncKeyData& keydata(const AppStateSyncKey* msg); static void set_has_keydata(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; const ::proto::AppStateSyncKeyId& AppStateSyncKey::_Internal::keyid(const AppStateSyncKey* msg) { return *msg->keyid_; } const ::proto::AppStateSyncKeyData& AppStateSyncKey::_Internal::keydata(const AppStateSyncKey* msg) { return *msg->keydata_; } AppStateSyncKey::AppStateSyncKey(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKey) } AppStateSyncKey::AppStateSyncKey(const AppStateSyncKey& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_keyid()) { keyid_ = new ::proto::AppStateSyncKeyId(*from.keyid_); } else { keyid_ = nullptr; } if (from._internal_has_keydata()) { keydata_ = new ::proto::AppStateSyncKeyData(*from.keydata_); } else { keydata_ = nullptr; } // @@protoc_insertion_point(copy_constructor:proto.AppStateSyncKey) } void AppStateSyncKey::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&keyid_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&keydata_) - reinterpret_cast(&keyid_)) + sizeof(keydata_)); } AppStateSyncKey::~AppStateSyncKey() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKey) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void AppStateSyncKey::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); if (this != internal_default_instance()) delete keyid_; if (this != internal_default_instance()) delete 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); } void AppStateSyncKey::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AppStateSyncKey) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(keyid_ != nullptr); keyid_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(keydata_ != nullptr); keydata_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* AppStateSyncKey::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional .proto.AppStateSyncKeyId keyId = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_keyid(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.AppStateSyncKeyData keyData = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_keydata(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* AppStateSyncKey::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AppStateSyncKey) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional .proto.AppStateSyncKeyId keyId = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *keyid_); } // optional .proto.AppStateSyncKeyData keyData = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *keydata_); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void AppStateSyncKey::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.AppStateSyncKey) GOOGLE_DCHECK_NE(&from, this); const AppStateSyncKey* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.AppStateSyncKey) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.AppStateSyncKey) MergeFrom(*source); } } void AppStateSyncKey::MergeFrom(const AppStateSyncKey& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKey) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _internal_mutable_keyid()->::proto::AppStateSyncKeyId::MergeFrom(from._internal_keyid()); } if (cached_has_bits & 0x00000002u) { _internal_mutable_keydata()->::proto::AppStateSyncKeyData::MergeFrom(from._internal_keydata()); } } } void AppStateSyncKey::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.AppStateSyncKey) if (&from == this) return; Clear(); MergeFrom(from); } void AppStateSyncKey::CopyFrom(const AppStateSyncKey& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.AppStateSyncKey) if (&from == this) return; Clear(); MergeFrom(from); } bool AppStateSyncKey::IsInitialized() const { return true; } void AppStateSyncKey::InternalSwap(AppStateSyncKey* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(AppStateSyncKey, keydata_) + sizeof(AppStateSyncKey::keydata_) - PROTOBUF_FIELD_OFFSET(AppStateSyncKey, keyid_)>( reinterpret_cast(&keyid_), reinterpret_cast(&other->keyid_)); } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKey::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class AppStateSyncKeyId::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_keyid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; AppStateSyncKeyId::AppStateSyncKeyId(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKeyId) } AppStateSyncKeyId::AppStateSyncKeyId(const AppStateSyncKeyId& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); keyid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_keyid()) { keyid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_keyid(), GetArena()); } // @@protoc_insertion_point(copy_constructor:proto.AppStateSyncKeyId) } void AppStateSyncKeyId::SharedCtor() { keyid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } AppStateSyncKeyId::~AppStateSyncKeyId() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKeyId) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void AppStateSyncKeyId::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); keyid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void AppStateSyncKeyId::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AppStateSyncKeyId) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { keyid_.ClearNonDefaultToEmpty(); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* AppStateSyncKeyId::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional bytes keyId = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_keyid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* AppStateSyncKeyId::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional bytes keyId = 1; if (cached_has_bits & 0x00000001u) { target = stream->WriteBytesMaybeAliased( 1, this->_internal_keyid(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AppStateSyncKeyId) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional bytes keyId = 1; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_keyid()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void AppStateSyncKeyId::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.AppStateSyncKeyId) GOOGLE_DCHECK_NE(&from, this); const AppStateSyncKeyId* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.AppStateSyncKeyId) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.AppStateSyncKeyId) MergeFrom(*source); } } void AppStateSyncKeyId::MergeFrom(const AppStateSyncKeyId& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyId) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_keyid()) { _internal_set_keyid(from._internal_keyid()); } } void AppStateSyncKeyId::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.AppStateSyncKeyId) if (&from == this) return; Clear(); MergeFrom(from); } void AppStateSyncKeyId::CopyFrom(const AppStateSyncKeyId& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.AppStateSyncKeyId) if (&from == this) return; Clear(); MergeFrom(from); } bool AppStateSyncKeyId::IsInitialized() const { return true; } void AppStateSyncKeyId::InternalSwap(AppStateSyncKeyId* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); keyid_.Swap(&other->keyid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKeyId::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class AppStateSyncKeyFingerprint::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_rawid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_currentindex(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; AppStateSyncKeyFingerprint::AppStateSyncKeyFingerprint(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), deviceindexes_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKeyFingerprint) } AppStateSyncKeyFingerprint::AppStateSyncKeyFingerprint(const AppStateSyncKeyFingerprint& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_), deviceindexes_(from.deviceindexes_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&rawid_, &from.rawid_, static_cast(reinterpret_cast(¤tindex_) - reinterpret_cast(&rawid_)) + sizeof(currentindex_)); // @@protoc_insertion_point(copy_constructor:proto.AppStateSyncKeyFingerprint) } void AppStateSyncKeyFingerprint::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&rawid_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(¤tindex_) - reinterpret_cast(&rawid_)) + sizeof(currentindex_)); } AppStateSyncKeyFingerprint::~AppStateSyncKeyFingerprint() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKeyFingerprint) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void AppStateSyncKeyFingerprint::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } 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); } void AppStateSyncKeyFingerprint::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AppStateSyncKeyFingerprint) ::PROTOBUF_NAMESPACE_ID::uint32 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]; if (cached_has_bits & 0x00000003u) { ::memset(&rawid_, 0, static_cast( reinterpret_cast(¤tindex_) - reinterpret_cast(&rawid_)) + sizeof(currentindex_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* AppStateSyncKeyFingerprint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional uint32 rawId = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { _Internal::set_has_rawid(&has_bits); 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)) { _Internal::set_has_currentindex(&has_bits); 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)) { ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_deviceindexes(), ptr, ctx); CHK_(ptr); } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) { _internal_add_deviceindexes(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* AppStateSyncKeyFingerprint::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } // 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); } // repeated uint32 deviceIndexes = 3 [packed = true]; { int byte_size = _deviceindexes_cached_byte_size_.load(std::memory_order_relaxed); if (byte_size > 0) { target = stream->WriteUInt32Packed( 3, _internal_deviceindexes(), byte_size, target); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AppStateSyncKeyFingerprint) return target; } 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; // 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_); if (data_size > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); _deviceindexes_cached_byte_size_.store(cached_size, std::memory_order_relaxed); total_size += data_size; } cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional uint32 rawId = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_rawid()); } // optional uint32 currentIndex = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_currentindex()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void AppStateSyncKeyFingerprint::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.AppStateSyncKeyFingerprint) GOOGLE_DCHECK_NE(&from, this); const AppStateSyncKeyFingerprint* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.AppStateSyncKeyFingerprint) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.AppStateSyncKeyFingerprint) MergeFrom(*source); } } void AppStateSyncKeyFingerprint::MergeFrom(const AppStateSyncKeyFingerprint& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyFingerprint) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; deviceindexes_.MergeFrom(from.deviceindexes_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { rawid_ = from.rawid_; } if (cached_has_bits & 0x00000002u) { currentindex_ = from.currentindex_; } _has_bits_[0] |= cached_has_bits; } } void AppStateSyncKeyFingerprint::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.AppStateSyncKeyFingerprint) if (&from == this) return; Clear(); MergeFrom(from); } void AppStateSyncKeyFingerprint::CopyFrom(const AppStateSyncKeyFingerprint& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.AppStateSyncKeyFingerprint) if (&from == this) return; Clear(); MergeFrom(from); } bool AppStateSyncKeyFingerprint::IsInitialized() const { return true; } void AppStateSyncKeyFingerprint::InternalSwap(AppStateSyncKeyFingerprint* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); deviceindexes_.InternalSwap(&other->deviceindexes_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(AppStateSyncKeyFingerprint, currentindex_) + sizeof(AppStateSyncKeyFingerprint::currentindex_) - PROTOBUF_FIELD_OFFSET(AppStateSyncKeyFingerprint, rawid_)>( reinterpret_cast(&rawid_), reinterpret_cast(&other->rawid_)); } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKeyFingerprint::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class AppStateSyncKeyData::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_keydata(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::proto::AppStateSyncKeyFingerprint& fingerprint(const AppStateSyncKeyData* msg); static void set_has_fingerprint(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_timestamp(HasBits* has_bits) { (*has_bits)[0] |= 4u; } }; const ::proto::AppStateSyncKeyFingerprint& AppStateSyncKeyData::_Internal::fingerprint(const AppStateSyncKeyData* msg) { return *msg->fingerprint_; } AppStateSyncKeyData::AppStateSyncKeyData(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKeyData) } AppStateSyncKeyData::AppStateSyncKeyData(const AppStateSyncKeyData& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); keydata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_keydata()) { keydata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_keydata(), GetArena()); } if (from._internal_has_fingerprint()) { fingerprint_ = new ::proto::AppStateSyncKeyFingerprint(*from.fingerprint_); } else { fingerprint_ = nullptr; } timestamp_ = from.timestamp_; // @@protoc_insertion_point(copy_constructor:proto.AppStateSyncKeyData) } void AppStateSyncKeyData::SharedCtor() { keydata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&fingerprint_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(×tamp_) - reinterpret_cast(&fingerprint_)) + sizeof(timestamp_)); } AppStateSyncKeyData::~AppStateSyncKeyData() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKeyData) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void AppStateSyncKeyData::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); keydata_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete 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); } void AppStateSyncKeyData::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AppStateSyncKeyData) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { keydata_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(fingerprint_ != nullptr); fingerprint_->Clear(); } } timestamp_ = PROTOBUF_LONGLONG(0); _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* AppStateSyncKeyData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional bytes keyData = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_keydata(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_fingerprint(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional int64 timestamp = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { _Internal::set_has_timestamp(&has_bits); timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* AppStateSyncKeyData::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional bytes keyData = 1; if (cached_has_bits & 0x00000001u) { target = stream->WriteBytesMaybeAliased( 1, this->_internal_keydata(), target); } // 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); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AppStateSyncKeyData) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional bytes keyData = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_keydata()); } // optional .proto.AppStateSyncKeyFingerprint fingerprint = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *fingerprint_); } // optional int64 timestamp = 3; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_timestamp()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void AppStateSyncKeyData::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.AppStateSyncKeyData) GOOGLE_DCHECK_NE(&from, this); const AppStateSyncKeyData* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.AppStateSyncKeyData) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.AppStateSyncKeyData) MergeFrom(*source); } } void AppStateSyncKeyData::MergeFrom(const AppStateSyncKeyData& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyData) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { _internal_set_keydata(from._internal_keydata()); } if (cached_has_bits & 0x00000002u) { _internal_mutable_fingerprint()->::proto::AppStateSyncKeyFingerprint::MergeFrom(from._internal_fingerprint()); } if (cached_has_bits & 0x00000004u) { timestamp_ = from.timestamp_; } _has_bits_[0] |= cached_has_bits; } } void AppStateSyncKeyData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.AppStateSyncKeyData) if (&from == this) return; Clear(); MergeFrom(from); } void AppStateSyncKeyData::CopyFrom(const AppStateSyncKeyData& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.AppStateSyncKeyData) if (&from == this) return; Clear(); MergeFrom(from); } bool AppStateSyncKeyData::IsInitialized() const { return true; } void AppStateSyncKeyData::InternalSwap(AppStateSyncKeyData* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); keydata_.Swap(&other->keydata_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(AppStateSyncKeyData, timestamp_) + sizeof(AppStateSyncKeyData::timestamp_) - PROTOBUF_FIELD_OFFSET(AppStateSyncKeyData, fingerprint_)>( reinterpret_cast(&fingerprint_), reinterpret_cast(&other->fingerprint_)); } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKeyData::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class AppStateSyncKeyShare::_Internal { public: }; AppStateSyncKeyShare::AppStateSyncKeyShare(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), keys_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKeyShare) } AppStateSyncKeyShare::AppStateSyncKeyShare(const AppStateSyncKeyShare& from) : ::PROTOBUF_NAMESPACE_ID::Message(), keys_(from.keys_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:proto.AppStateSyncKeyShare) } void AppStateSyncKeyShare::SharedCtor() { } AppStateSyncKeyShare::~AppStateSyncKeyShare() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKeyShare) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void AppStateSyncKeyShare::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } 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); } void AppStateSyncKeyShare::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AppStateSyncKeyShare) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; keys_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* AppStateSyncKeyShare::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // repeated .proto.AppStateSyncKey keys = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_keys(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* AppStateSyncKeyShare::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; // repeated .proto.AppStateSyncKey keys = 1; for (unsigned int i = 0, n = static_cast(this->_internal_keys_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, this->_internal_keys(i), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AppStateSyncKeyShare) return target; } 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; // 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_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void AppStateSyncKeyShare::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.AppStateSyncKeyShare) GOOGLE_DCHECK_NE(&from, this); const AppStateSyncKeyShare* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.AppStateSyncKeyShare) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.AppStateSyncKeyShare) MergeFrom(*source); } } void AppStateSyncKeyShare::MergeFrom(const AppStateSyncKeyShare& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyShare) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; keys_.MergeFrom(from.keys_); } void AppStateSyncKeyShare::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.AppStateSyncKeyShare) if (&from == this) return; Clear(); MergeFrom(from); } void AppStateSyncKeyShare::CopyFrom(const AppStateSyncKeyShare& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.AppStateSyncKeyShare) if (&from == this) return; Clear(); MergeFrom(from); } bool AppStateSyncKeyShare::IsInitialized() const { return true; } void AppStateSyncKeyShare::InternalSwap(AppStateSyncKeyShare* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); keys_.InternalSwap(&other->keys_); } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKeyShare::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class AppStateSyncKeyRequest::_Internal { public: }; AppStateSyncKeyRequest::AppStateSyncKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), keyids_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKeyRequest) } AppStateSyncKeyRequest::AppStateSyncKeyRequest(const AppStateSyncKeyRequest& from) : ::PROTOBUF_NAMESPACE_ID::Message(), keyids_(from.keyids_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:proto.AppStateSyncKeyRequest) } void AppStateSyncKeyRequest::SharedCtor() { } AppStateSyncKeyRequest::~AppStateSyncKeyRequest() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKeyRequest) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void AppStateSyncKeyRequest::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } 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); } void AppStateSyncKeyRequest::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AppStateSyncKeyRequest) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; keyids_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* AppStateSyncKeyRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // repeated .proto.AppStateSyncKeyId keyIds = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_keyids(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* AppStateSyncKeyRequest::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; // repeated .proto.AppStateSyncKeyId keyIds = 1; for (unsigned int i = 0, n = static_cast(this->_internal_keyids_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, this->_internal_keyids(i), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AppStateSyncKeyRequest) return target; } 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; // 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_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void AppStateSyncKeyRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.AppStateSyncKeyRequest) GOOGLE_DCHECK_NE(&from, this); const AppStateSyncKeyRequest* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.AppStateSyncKeyRequest) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.AppStateSyncKeyRequest) MergeFrom(*source); } } void AppStateSyncKeyRequest::MergeFrom(const AppStateSyncKeyRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; keyids_.MergeFrom(from.keyids_); } void AppStateSyncKeyRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.AppStateSyncKeyRequest) if (&from == this) return; Clear(); MergeFrom(from); } void AppStateSyncKeyRequest::CopyFrom(const AppStateSyncKeyRequest& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.AppStateSyncKeyRequest) if (&from == this) return; Clear(); MergeFrom(from); } bool AppStateSyncKeyRequest::IsInitialized() const { return true; } void AppStateSyncKeyRequest::InternalSwap(AppStateSyncKeyRequest* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); keyids_.InternalSwap(&other->keyids_); } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKeyRequest::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class AppStateFatalExceptionNotification::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_timestamp(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; AppStateFatalExceptionNotification::AppStateFatalExceptionNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), collectionnames_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.AppStateFatalExceptionNotification) } AppStateFatalExceptionNotification::AppStateFatalExceptionNotification(const AppStateFatalExceptionNotification& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_), collectionnames_(from.collectionnames_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); timestamp_ = from.timestamp_; // @@protoc_insertion_point(copy_constructor:proto.AppStateFatalExceptionNotification) } void AppStateFatalExceptionNotification::SharedCtor() { timestamp_ = PROTOBUF_LONGLONG(0); } AppStateFatalExceptionNotification::~AppStateFatalExceptionNotification() { // @@protoc_insertion_point(destructor:proto.AppStateFatalExceptionNotification) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void AppStateFatalExceptionNotification::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } 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); } void AppStateFatalExceptionNotification::Clear() { // @@protoc_insertion_point(message_clear_start:proto.AppStateFatalExceptionNotification) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; collectionnames_.Clear(); timestamp_ = PROTOBUF_LONGLONG(0); _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* AppStateFatalExceptionNotification::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // repeated string collectionNames = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr -= 1; do { ptr += 1; auto str = _internal_add_collectionnames(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.AppStateFatalExceptionNotification.collectionNames"); #endif // !NDEBUG CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); } else goto handle_unusual; continue; // optional int64 timestamp = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { _Internal::set_has_timestamp(&has_bits); timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* AppStateFatalExceptionNotification::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; // repeated string collectionNames = 1; for (int i = 0, n = this->_internal_collectionnames_size(); i < n; i++) { const auto& s = this->_internal_collectionnames(i); ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( s.data(), static_cast(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.AppStateFatalExceptionNotification.collectionNames"); target = stream->WriteString(1, s, target); } cached_has_bits = _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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.AppStateFatalExceptionNotification) return target; } 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; // 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++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( collectionnames_.Get(i)); } // optional int64 timestamp = 2; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_timestamp()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void AppStateFatalExceptionNotification::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.AppStateFatalExceptionNotification) GOOGLE_DCHECK_NE(&from, this); const AppStateFatalExceptionNotification* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.AppStateFatalExceptionNotification) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.AppStateFatalExceptionNotification) MergeFrom(*source); } } void AppStateFatalExceptionNotification::MergeFrom(const AppStateFatalExceptionNotification& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateFatalExceptionNotification) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; collectionnames_.MergeFrom(from.collectionnames_); if (from._internal_has_timestamp()) { _internal_set_timestamp(from._internal_timestamp()); } } void AppStateFatalExceptionNotification::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.AppStateFatalExceptionNotification) if (&from == this) return; Clear(); MergeFrom(from); } void AppStateFatalExceptionNotification::CopyFrom(const AppStateFatalExceptionNotification& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.AppStateFatalExceptionNotification) if (&from == this) return; Clear(); MergeFrom(from); } bool AppStateFatalExceptionNotification::IsInitialized() const { return true; } void AppStateFatalExceptionNotification::InternalSwap(AppStateFatalExceptionNotification* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); collectionnames_.InternalSwap(&other->collectionnames_); swap(timestamp_, other->timestamp_); } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateFatalExceptionNotification::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class InitialSecurityNotificationSettingSync::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_securitynotificationenabled(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; InitialSecurityNotificationSettingSync::InitialSecurityNotificationSettingSync(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.InitialSecurityNotificationSettingSync) } InitialSecurityNotificationSettingSync::InitialSecurityNotificationSettingSync(const InitialSecurityNotificationSettingSync& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); securitynotificationenabled_ = from.securitynotificationenabled_; // @@protoc_insertion_point(copy_constructor:proto.InitialSecurityNotificationSettingSync) } void InitialSecurityNotificationSettingSync::SharedCtor() { securitynotificationenabled_ = false; } InitialSecurityNotificationSettingSync::~InitialSecurityNotificationSettingSync() { // @@protoc_insertion_point(destructor:proto.InitialSecurityNotificationSettingSync) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void InitialSecurityNotificationSettingSync::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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); } void InitialSecurityNotificationSettingSync::Clear() { // @@protoc_insertion_point(message_clear_start:proto.InitialSecurityNotificationSettingSync) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; securitynotificationenabled_ = false; _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* InitialSecurityNotificationSettingSync::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional bool securityNotificationEnabled = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { _Internal::set_has_securitynotificationenabled(&has_bits); securitynotificationenabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* InitialSecurityNotificationSettingSync::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.InitialSecurityNotificationSettingSync) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional bool securityNotificationEnabled = 1; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + 1; } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void InitialSecurityNotificationSettingSync::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.InitialSecurityNotificationSettingSync) GOOGLE_DCHECK_NE(&from, this); const InitialSecurityNotificationSettingSync* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.InitialSecurityNotificationSettingSync) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.InitialSecurityNotificationSettingSync) MergeFrom(*source); } } void InitialSecurityNotificationSettingSync::MergeFrom(const InitialSecurityNotificationSettingSync& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.InitialSecurityNotificationSettingSync) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_securitynotificationenabled()) { _internal_set_securitynotificationenabled(from._internal_securitynotificationenabled()); } } void InitialSecurityNotificationSettingSync::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.InitialSecurityNotificationSettingSync) if (&from == this) return; Clear(); MergeFrom(from); } void InitialSecurityNotificationSettingSync::CopyFrom(const InitialSecurityNotificationSettingSync& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.InitialSecurityNotificationSettingSync) if (&from == this) return; Clear(); MergeFrom(from); } bool InitialSecurityNotificationSettingSync::IsInitialized() const { return true; } void InitialSecurityNotificationSettingSync::InternalSwap(InitialSecurityNotificationSettingSync* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(securitynotificationenabled_, other->securitynotificationenabled_); } ::PROTOBUF_NAMESPACE_ID::Metadata InitialSecurityNotificationSettingSync::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class ContactsArrayMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_displayname(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::proto::ContextInfo& contextinfo(const ContactsArrayMessage* msg); static void set_has_contextinfo(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; const ::proto::ContextInfo& ContactsArrayMessage::_Internal::contextinfo(const ContactsArrayMessage* msg) { return *msg->contextinfo_; } ContactsArrayMessage::ContactsArrayMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), contacts_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.ContactsArrayMessage) } ContactsArrayMessage::ContactsArrayMessage(const ContactsArrayMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_), contacts_(from.contacts_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); displayname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_displayname()) { displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displayname(), GetArena()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); } else { contextinfo_ = nullptr; } // @@protoc_insertion_point(copy_constructor:proto.ContactsArrayMessage) } void ContactsArrayMessage::SharedCtor() { displayname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); contextinfo_ = nullptr; } ContactsArrayMessage::~ContactsArrayMessage() { // @@protoc_insertion_point(destructor:proto.ContactsArrayMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void ContactsArrayMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); displayname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete 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); } void ContactsArrayMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ContactsArrayMessage) ::PROTOBUF_NAMESPACE_ID::uint32 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]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { displayname_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(contextinfo_ != nullptr); contextinfo_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ContactsArrayMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string displayName = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_displayname(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_contacts(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* ContactsArrayMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string displayName = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_displayname().data(), static_cast(this->_internal_displayname().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ContactsArrayMessage.displayName"); target = stream->WriteStringMaybeAliased( 1, this->_internal_displayname(), target); } // repeated .proto.ContactMessage contacts = 2; for (unsigned int i = 0, n = static_cast(this->_internal_contacts_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, this->_internal_contacts(i), 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ContactsArrayMessage) return target; } 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; // 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_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string displayName = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_displayname()); } // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000002u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *contextinfo_); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ContactsArrayMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.ContactsArrayMessage) GOOGLE_DCHECK_NE(&from, this); const ContactsArrayMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.ContactsArrayMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.ContactsArrayMessage) MergeFrom(*source); } } void ContactsArrayMessage::MergeFrom(const ContactsArrayMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ContactsArrayMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; contacts_.MergeFrom(from.contacts_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _internal_set_displayname(from._internal_displayname()); } if (cached_has_bits & 0x00000002u) { _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); } } } void ContactsArrayMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.ContactsArrayMessage) if (&from == this) return; Clear(); MergeFrom(from); } void ContactsArrayMessage::CopyFrom(const ContactsArrayMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.ContactsArrayMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool ContactsArrayMessage::IsInitialized() const { return true; } void ContactsArrayMessage::InternalSwap(ContactsArrayMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); contacts_.InternalSwap(&other->contacts_); displayname_.Swap(&other->displayname_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(contextinfo_, other->contextinfo_); } ::PROTOBUF_NAMESPACE_ID::Metadata ContactsArrayMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class HSMCurrency::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_currencycode(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_amount1000(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; HSMCurrency::HSMCurrency(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.HSMCurrency) } HSMCurrency::HSMCurrency(const HSMCurrency& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); currencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_currencycode()) { currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_currencycode(), GetArena()); } amount1000_ = from.amount1000_; // @@protoc_insertion_point(copy_constructor:proto.HSMCurrency) } void HSMCurrency::SharedCtor() { currencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); amount1000_ = PROTOBUF_LONGLONG(0); } HSMCurrency::~HSMCurrency() { // @@protoc_insertion_point(destructor:proto.HSMCurrency) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void HSMCurrency::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); currencycode_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void HSMCurrency::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HSMCurrency) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { currencycode_.ClearNonDefaultToEmpty(); } amount1000_ = PROTOBUF_LONGLONG(0); _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* HSMCurrency::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string currencyCode = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_currencycode(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_amount1000(&has_bits); amount1000_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* HSMCurrency::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string currencyCode = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_currencycode().data(), static_cast(this->_internal_currencycode().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HSMCurrency.currencyCode"); target = stream->WriteStringMaybeAliased( 1, this->_internal_currencycode(), target); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HSMCurrency) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional string currencyCode = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_currencycode()); } // optional int64 amount1000 = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_amount1000()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void HSMCurrency::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.HSMCurrency) GOOGLE_DCHECK_NE(&from, this); const HSMCurrency* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.HSMCurrency) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.HSMCurrency) MergeFrom(*source); } } void HSMCurrency::MergeFrom(const HSMCurrency& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMCurrency) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _internal_set_currencycode(from._internal_currencycode()); } if (cached_has_bits & 0x00000002u) { amount1000_ = from.amount1000_; } _has_bits_[0] |= cached_has_bits; } } void HSMCurrency::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.HSMCurrency) if (&from == this) return; Clear(); MergeFrom(from); } void HSMCurrency::CopyFrom(const HSMCurrency& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.HSMCurrency) if (&from == this) return; Clear(); MergeFrom(from); } bool HSMCurrency::IsInitialized() const { return true; } void HSMCurrency::InternalSwap(HSMCurrency* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); currencycode_.Swap(&other->currencycode_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(amount1000_, other->amount1000_); } ::PROTOBUF_NAMESPACE_ID::Metadata HSMCurrency::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class HSMDateTimeComponent::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_dayofweek(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static void set_has_year(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_month(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_dayofmonth(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_hour(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_minute(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_calendar(HasBits* has_bits) { (*has_bits)[0] |= 64u; } }; HSMDateTimeComponent::HSMDateTimeComponent(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.HSMDateTimeComponent) } HSMDateTimeComponent::HSMDateTimeComponent(const HSMDateTimeComponent& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::memcpy(&year_, &from.year_, static_cast(reinterpret_cast(&calendar_) - reinterpret_cast(&year_)) + sizeof(calendar_)); // @@protoc_insertion_point(copy_constructor:proto.HSMDateTimeComponent) } void HSMDateTimeComponent::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&year_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&minute_) - reinterpret_cast(&year_)) + sizeof(minute_)); dayofweek_ = 1; calendar_ = 1; } HSMDateTimeComponent::~HSMDateTimeComponent() { // @@protoc_insertion_point(destructor:proto.HSMDateTimeComponent) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void HSMDateTimeComponent::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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); } void HSMDateTimeComponent::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HSMDateTimeComponent) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000007fu) { ::memset(&year_, 0, static_cast( reinterpret_cast(&minute_) - reinterpret_cast(&year_)) + sizeof(minute_)); dayofweek_ = 1; calendar_ = 1; } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* HSMDateTimeComponent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); 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); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_IsValid(val))) { _internal_set_dayofweek(static_cast<::proto::HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType>(val)); } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); } } else goto handle_unusual; continue; // optional uint32 year = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { _Internal::set_has_year(&has_bits); 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)) { _Internal::set_has_month(&has_bits); 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)) { _Internal::set_has_dayofmonth(&has_bits); 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)) { _Internal::set_has_hour(&has_bits); 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)) { _Internal::set_has_minute(&has_bits); 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); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::HSMDateTimeComponent_HSMDateTimeComponentCalendarType_IsValid(val))) { _internal_set_calendar(static_cast<::proto::HSMDateTimeComponent_HSMDateTimeComponentCalendarType>(val)); } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(7, val, mutable_unknown_fields()); } } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* HSMDateTimeComponent::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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( 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); } // 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); } // 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); } // 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); } // 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); } // optional .proto.HSMDateTimeComponent.HSMDateTimeComponentCalendarType calendar = 7; if (cached_has_bits & 0x00000040u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 7, this->_internal_calendar(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HSMDateTimeComponent) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000007fu) { // optional uint32 year = 2; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_year()); } // optional uint32 month = 3; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_month()); } // optional uint32 dayOfMonth = 4; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_dayofmonth()); } // optional uint32 hour = 5; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_hour()); } // optional uint32 minute = 6; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( 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()); } // optional .proto.HSMDateTimeComponent.HSMDateTimeComponentCalendarType calendar = 7; if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_calendar()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void HSMDateTimeComponent::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.HSMDateTimeComponent) GOOGLE_DCHECK_NE(&from, this); const HSMDateTimeComponent* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.HSMDateTimeComponent) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.HSMDateTimeComponent) MergeFrom(*source); } } void HSMDateTimeComponent::MergeFrom(const HSMDateTimeComponent& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMDateTimeComponent) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000007fu) { if (cached_has_bits & 0x00000001u) { year_ = from.year_; } if (cached_has_bits & 0x00000002u) { month_ = from.month_; } if (cached_has_bits & 0x00000004u) { dayofmonth_ = from.dayofmonth_; } if (cached_has_bits & 0x00000008u) { hour_ = from.hour_; } if (cached_has_bits & 0x00000010u) { minute_ = from.minute_; } if (cached_has_bits & 0x00000020u) { dayofweek_ = from.dayofweek_; } if (cached_has_bits & 0x00000040u) { calendar_ = from.calendar_; } _has_bits_[0] |= cached_has_bits; } } void HSMDateTimeComponent::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.HSMDateTimeComponent) if (&from == this) return; Clear(); MergeFrom(from); } void HSMDateTimeComponent::CopyFrom(const HSMDateTimeComponent& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.HSMDateTimeComponent) if (&from == this) return; Clear(); MergeFrom(from); } bool HSMDateTimeComponent::IsInitialized() const { return true; } void HSMDateTimeComponent::InternalSwap(HSMDateTimeComponent* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(HSMDateTimeComponent, minute_) + sizeof(HSMDateTimeComponent::minute_) - PROTOBUF_FIELD_OFFSET(HSMDateTimeComponent, year_)>( reinterpret_cast(&year_), reinterpret_cast(&other->year_)); swap(dayofweek_, other->dayofweek_); swap(calendar_, other->calendar_); } ::PROTOBUF_NAMESPACE_ID::Metadata HSMDateTimeComponent::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class HSMDateTimeUnixEpoch::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_timestamp(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; HSMDateTimeUnixEpoch::HSMDateTimeUnixEpoch(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.HSMDateTimeUnixEpoch) } HSMDateTimeUnixEpoch::HSMDateTimeUnixEpoch(const HSMDateTimeUnixEpoch& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); timestamp_ = from.timestamp_; // @@protoc_insertion_point(copy_constructor:proto.HSMDateTimeUnixEpoch) } void HSMDateTimeUnixEpoch::SharedCtor() { timestamp_ = PROTOBUF_LONGLONG(0); } HSMDateTimeUnixEpoch::~HSMDateTimeUnixEpoch() { // @@protoc_insertion_point(destructor:proto.HSMDateTimeUnixEpoch) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void HSMDateTimeUnixEpoch::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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); } void HSMDateTimeUnixEpoch::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HSMDateTimeUnixEpoch) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; timestamp_ = PROTOBUF_LONGLONG(0); _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* HSMDateTimeUnixEpoch::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional int64 timestamp = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { _Internal::set_has_timestamp(&has_bits); timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* HSMDateTimeUnixEpoch::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HSMDateTimeUnixEpoch) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional int64 timestamp = 1; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_timestamp()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void HSMDateTimeUnixEpoch::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.HSMDateTimeUnixEpoch) GOOGLE_DCHECK_NE(&from, this); const HSMDateTimeUnixEpoch* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.HSMDateTimeUnixEpoch) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.HSMDateTimeUnixEpoch) MergeFrom(*source); } } void HSMDateTimeUnixEpoch::MergeFrom(const HSMDateTimeUnixEpoch& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMDateTimeUnixEpoch) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_timestamp()) { _internal_set_timestamp(from._internal_timestamp()); } } void HSMDateTimeUnixEpoch::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.HSMDateTimeUnixEpoch) if (&from == this) return; Clear(); MergeFrom(from); } void HSMDateTimeUnixEpoch::CopyFrom(const HSMDateTimeUnixEpoch& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.HSMDateTimeUnixEpoch) if (&from == this) return; Clear(); MergeFrom(from); } bool HSMDateTimeUnixEpoch::IsInitialized() const { return true; } void HSMDateTimeUnixEpoch::InternalSwap(HSMDateTimeUnixEpoch* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(timestamp_, other->timestamp_); } ::PROTOBUF_NAMESPACE_ID::Metadata HSMDateTimeUnixEpoch::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class HSMDateTime::_Internal { public: static const ::proto::HSMDateTimeComponent& component(const HSMDateTime* msg); static const ::proto::HSMDateTimeUnixEpoch& unixepoch(const HSMDateTime* msg); }; const ::proto::HSMDateTimeComponent& HSMDateTime::_Internal::component(const HSMDateTime* msg) { return *msg->datetimeOneof_.component_; } const ::proto::HSMDateTimeUnixEpoch& HSMDateTime::_Internal::unixepoch(const HSMDateTime* msg) { return *msg->datetimeOneof_.unixepoch_; } void HSMDateTime::set_allocated_component(::proto::HSMDateTimeComponent* component) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_datetimeOneof(); if (component) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(component); if (message_arena != submessage_arena) { component = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, component, submessage_arena); } set_has_component(); datetimeOneof_.component_ = component; } // @@protoc_insertion_point(field_set_allocated:proto.HSMDateTime.component) } void HSMDateTime::set_allocated_unixepoch(::proto::HSMDateTimeUnixEpoch* unixepoch) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_datetimeOneof(); if (unixepoch) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(unixepoch); if (message_arena != submessage_arena) { unixepoch = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, unixepoch, submessage_arena); } set_has_unixepoch(); datetimeOneof_.unixepoch_ = unixepoch; } // @@protoc_insertion_point(field_set_allocated:proto.HSMDateTime.unixEpoch) } HSMDateTime::HSMDateTime(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.HSMDateTime) } HSMDateTime::HSMDateTime(const HSMDateTime& from) : ::PROTOBUF_NAMESPACE_ID::Message() { _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()); break; } case kUnixEpoch: { _internal_mutable_unixepoch()->::proto::HSMDateTimeUnixEpoch::MergeFrom(from._internal_unixepoch()); break; } case DATETIMEONEOF_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:proto.HSMDateTime) } void HSMDateTime::SharedCtor() { clear_has_datetimeOneof(); } HSMDateTime::~HSMDateTime() { // @@protoc_insertion_point(destructor:proto.HSMDateTime) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void HSMDateTime::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); if (has_datetimeOneof()) { clear_datetimeOneof(); } } 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); } void HSMDateTime::clear_datetimeOneof() { // @@protoc_insertion_point(one_of_clear_start:proto.HSMDateTime) switch (datetimeOneof_case()) { case kComponent: { if (GetArena() == nullptr) { delete datetimeOneof_.component_; } break; } case kUnixEpoch: { if (GetArena() == nullptr) { delete datetimeOneof_.unixepoch_; } break; } case DATETIMEONEOF_NOT_SET: { break; } } _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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_datetimeOneof(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* HSMDateTime::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // .proto.HSMDateTimeComponent component = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_component(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.HSMDateTimeUnixEpoch unixEpoch = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_unixepoch(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* HSMDateTime::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (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); break; } case kUnixEpoch: { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 2, _Internal::unixepoch(this), target, stream); break; } default: ; } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HSMDateTime) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; switch (datetimeOneof_case()) { // .proto.HSMDateTimeComponent component = 1; case kComponent: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *datetimeOneof_.component_); break; } // .proto.HSMDateTimeUnixEpoch unixEpoch = 2; case kUnixEpoch: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *datetimeOneof_.unixepoch_); break; } case DATETIMEONEOF_NOT_SET: { break; } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void HSMDateTime::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.HSMDateTime) GOOGLE_DCHECK_NE(&from, this); const HSMDateTime* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.HSMDateTime) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.HSMDateTime) MergeFrom(*source); } } void HSMDateTime::MergeFrom(const HSMDateTime& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMDateTime) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; switch (from.datetimeOneof_case()) { case kComponent: { _internal_mutable_component()->::proto::HSMDateTimeComponent::MergeFrom(from._internal_component()); break; } case kUnixEpoch: { _internal_mutable_unixepoch()->::proto::HSMDateTimeUnixEpoch::MergeFrom(from._internal_unixepoch()); break; } case DATETIMEONEOF_NOT_SET: { break; } } } void HSMDateTime::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.HSMDateTime) if (&from == this) return; Clear(); MergeFrom(from); } void HSMDateTime::CopyFrom(const HSMDateTime& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.HSMDateTime) if (&from == this) return; Clear(); MergeFrom(from); } bool HSMDateTime::IsInitialized() const { return true; } void HSMDateTime::InternalSwap(HSMDateTime* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(datetimeOneof_, other->datetimeOneof_); swap(_oneof_case_[0], other->_oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata HSMDateTime::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class HSMLocalizableParameter::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_default_(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::proto::HSMCurrency& currency(const HSMLocalizableParameter* msg); static const ::proto::HSMDateTime& datetime(const HSMLocalizableParameter* msg); }; const ::proto::HSMCurrency& HSMLocalizableParameter::_Internal::currency(const HSMLocalizableParameter* msg) { return *msg->paramOneof_.currency_; } const ::proto::HSMDateTime& HSMLocalizableParameter::_Internal::datetime(const HSMLocalizableParameter* msg) { return *msg->paramOneof_.datetime_; } void HSMLocalizableParameter::set_allocated_currency(::proto::HSMCurrency* currency) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_paramOneof(); if (currency) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(currency); if (message_arena != submessage_arena) { currency = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, currency, submessage_arena); } set_has_currency(); paramOneof_.currency_ = currency; } // @@protoc_insertion_point(field_set_allocated:proto.HSMLocalizableParameter.currency) } void HSMLocalizableParameter::set_allocated_datetime(::proto::HSMDateTime* datetime) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_paramOneof(); if (datetime) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(datetime); if (message_arena != submessage_arena) { datetime = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, datetime, submessage_arena); } set_has_datetime(); paramOneof_.datetime_ = datetime; } // @@protoc_insertion_point(field_set_allocated:proto.HSMLocalizableParameter.dateTime) } HSMLocalizableParameter::HSMLocalizableParameter(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.HSMLocalizableParameter) } HSMLocalizableParameter::HSMLocalizableParameter(const HSMLocalizableParameter& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); default__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_default_()) { default__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_default_(), GetArena()); } clear_has_paramOneof(); switch (from.paramOneof_case()) { case kCurrency: { _internal_mutable_currency()->::proto::HSMCurrency::MergeFrom(from._internal_currency()); break; } case kDateTime: { _internal_mutable_datetime()->::proto::HSMDateTime::MergeFrom(from._internal_datetime()); break; } case PARAMONEOF_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:proto.HSMLocalizableParameter) } void HSMLocalizableParameter::SharedCtor() { default__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); clear_has_paramOneof(); } HSMLocalizableParameter::~HSMLocalizableParameter() { // @@protoc_insertion_point(destructor:proto.HSMLocalizableParameter) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void HSMLocalizableParameter::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); default__.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); 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); } void HSMLocalizableParameter::clear_paramOneof() { // @@protoc_insertion_point(one_of_clear_start:proto.HSMLocalizableParameter) switch (paramOneof_case()) { case kCurrency: { if (GetArena() == nullptr) { delete paramOneof_.currency_; } break; } case kDateTime: { if (GetArena() == nullptr) { delete paramOneof_.datetime_; } break; } case PARAMONEOF_NOT_SET: { break; } } _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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { default__.ClearNonDefaultToEmpty(); } clear_paramOneof(); _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* HSMLocalizableParameter::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string default = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_default_(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_currency(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.HSMDateTime dateTime = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_datetime(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* HSMLocalizableParameter::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string default = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_default_().data(), static_cast(this->_internal_default_().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HSMLocalizableParameter.default"); target = stream->WriteStringMaybeAliased( 1, this->_internal_default_(), target); } switch (paramOneof_case()) { case kCurrency: { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 2, _Internal::currency(this), target, stream); break; } case kDateTime: { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 3, _Internal::datetime(this), target, stream); break; } default: ; } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HSMLocalizableParameter) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional string default = 1; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_default_()); } switch (paramOneof_case()) { // .proto.HSMCurrency currency = 2; case kCurrency: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *paramOneof_.currency_); break; } // .proto.HSMDateTime dateTime = 3; case kDateTime: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *paramOneof_.datetime_); break; } case PARAMONEOF_NOT_SET: { break; } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void HSMLocalizableParameter::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.HSMLocalizableParameter) GOOGLE_DCHECK_NE(&from, this); const HSMLocalizableParameter* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.HSMLocalizableParameter) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.HSMLocalizableParameter) MergeFrom(*source); } } void HSMLocalizableParameter::MergeFrom(const HSMLocalizableParameter& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMLocalizableParameter) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_default_()) { _internal_set_default_(from._internal_default_()); } switch (from.paramOneof_case()) { case kCurrency: { _internal_mutable_currency()->::proto::HSMCurrency::MergeFrom(from._internal_currency()); break; } case kDateTime: { _internal_mutable_datetime()->::proto::HSMDateTime::MergeFrom(from._internal_datetime()); break; } case PARAMONEOF_NOT_SET: { break; } } } void HSMLocalizableParameter::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.HSMLocalizableParameter) if (&from == this) return; Clear(); MergeFrom(from); } void HSMLocalizableParameter::CopyFrom(const HSMLocalizableParameter& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.HSMLocalizableParameter) if (&from == this) return; Clear(); MergeFrom(from); } bool HSMLocalizableParameter::IsInitialized() const { return true; } void HSMLocalizableParameter::InternalSwap(HSMLocalizableParameter* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); default__.Swap(&other->default__, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(paramOneof_, other->paramOneof_); swap(_oneof_case_[0], other->_oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata HSMLocalizableParameter::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class HighlyStructuredMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_namespace_(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_elementname(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_fallbacklg(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_fallbacklc(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_deterministiclg(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_deterministiclc(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static const ::proto::TemplateMessage& hydratedhsm(const HighlyStructuredMessage* msg); static void set_has_hydratedhsm(HasBits* has_bits) { (*has_bits)[0] |= 64u; } }; const ::proto::TemplateMessage& HighlyStructuredMessage::_Internal::hydratedhsm(const HighlyStructuredMessage* msg) { return *msg->hydratedhsm_; } HighlyStructuredMessage::HighlyStructuredMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), params_(arena), localizableparams_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@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_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); namespace__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_namespace_()) { namespace__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_namespace_(), GetArena()); } elementname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_elementname()) { elementname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_elementname(), GetArena()); } fallbacklg_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fallbacklg()) { fallbacklg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fallbacklg(), GetArena()); } fallbacklc_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fallbacklc()) { fallbacklc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fallbacklc(), GetArena()); } deterministiclg_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_deterministiclg()) { deterministiclg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_deterministiclg(), GetArena()); } deterministiclc_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_deterministiclc()) { deterministiclc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_deterministiclc(), GetArena()); } if (from._internal_has_hydratedhsm()) { hydratedhsm_ = new ::proto::TemplateMessage(*from.hydratedhsm_); } else { hydratedhsm_ = nullptr; } // @@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; } HighlyStructuredMessage::~HighlyStructuredMessage() { // @@protoc_insertion_point(destructor:proto.HighlyStructuredMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void HighlyStructuredMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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_; } 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); } void HighlyStructuredMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.HighlyStructuredMessage) ::PROTOBUF_NAMESPACE_ID::uint32 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]; if (cached_has_bits & 0x0000007fu) { if (cached_has_bits & 0x00000001u) { namespace__.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { elementname_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { fallbacklg_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { fallbacklc_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { deterministiclg_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { deterministiclc_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { GOOGLE_DCHECK(hydratedhsm_ != nullptr); hydratedhsm_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* HighlyStructuredMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string namespace = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_namespace_(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_elementname(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr -= 1; do { ptr += 1; auto str = _internal_add_params(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HighlyStructuredMessage.params"); #endif // !NDEBUG CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); } else goto handle_unusual; continue; // optional string fallbackLg = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { auto str = _internal_mutable_fallbacklg(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_fallbacklc(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_localizableparams(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); } else goto handle_unusual; continue; // optional string deterministicLg = 7; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { auto str = _internal_mutable_deterministiclg(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_deterministiclc(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_hydratedhsm(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* HighlyStructuredMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string namespace = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_namespace_().data(), static_cast(this->_internal_namespace_().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HighlyStructuredMessage.namespace"); target = stream->WriteStringMaybeAliased( 1, this->_internal_namespace_(), target); } // optional string elementName = 2; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_elementname().data(), static_cast(this->_internal_elementname().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HighlyStructuredMessage.elementName"); target = stream->WriteStringMaybeAliased( 2, this->_internal_elementname(), target); } // repeated string params = 3; for (int i = 0, n = this->_internal_params_size(); i < n; i++) { const auto& s = this->_internal_params(i); ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( s.data(), static_cast(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HighlyStructuredMessage.params"); target = stream->WriteString(3, s, target); } // optional string fallbackLg = 4; if (cached_has_bits & 0x00000004u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_fallbacklg().data(), static_cast(this->_internal_fallbacklg().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HighlyStructuredMessage.fallbackLg"); target = stream->WriteStringMaybeAliased( 4, this->_internal_fallbacklg(), target); } // optional string fallbackLc = 5; if (cached_has_bits & 0x00000008u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_fallbacklc().data(), static_cast(this->_internal_fallbacklc().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HighlyStructuredMessage.fallbackLc"); target = stream->WriteStringMaybeAliased( 5, this->_internal_fallbacklc(), target); } // repeated .proto.HSMLocalizableParameter localizableParams = 6; for (unsigned int i = 0, n = static_cast(this->_internal_localizableparams_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(6, this->_internal_localizableparams(i), target, stream); } // optional string deterministicLg = 7; if (cached_has_bits & 0x00000010u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_deterministiclg().data(), static_cast(this->_internal_deterministiclg().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HighlyStructuredMessage.deterministicLg"); target = stream->WriteStringMaybeAliased( 7, this->_internal_deterministiclg(), target); } // optional string deterministicLc = 8; if (cached_has_bits & 0x00000020u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_deterministiclc().data(), static_cast(this->_internal_deterministiclc().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HighlyStructuredMessage.deterministicLc"); target = stream->WriteStringMaybeAliased( 8, this->_internal_deterministiclc(), target); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HighlyStructuredMessage) return target; } 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; // 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++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( params_.Get(i)); } // repeated .proto.HSMLocalizableParameter localizableParams = 6; total_size += 1UL * this->_internal_localizableparams_size(); for (const auto& msg : this->localizableparams_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000007fu) { // optional string namespace = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_namespace_()); } // optional string elementName = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_elementname()); } // optional string fallbackLg = 4; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_fallbacklg()); } // optional string fallbackLc = 5; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_fallbacklc()); } // optional string deterministicLg = 7; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_deterministiclg()); } // optional string deterministicLc = 8; if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_deterministiclc()); } // optional .proto.TemplateMessage hydratedHsm = 9; if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *hydratedhsm_); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void HighlyStructuredMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.HighlyStructuredMessage) GOOGLE_DCHECK_NE(&from, this); const HighlyStructuredMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.HighlyStructuredMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.HighlyStructuredMessage) MergeFrom(*source); } } void HighlyStructuredMessage::MergeFrom(const HighlyStructuredMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HighlyStructuredMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; params_.MergeFrom(from.params_); localizableparams_.MergeFrom(from.localizableparams_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000007fu) { if (cached_has_bits & 0x00000001u) { _internal_set_namespace_(from._internal_namespace_()); } if (cached_has_bits & 0x00000002u) { _internal_set_elementname(from._internal_elementname()); } if (cached_has_bits & 0x00000004u) { _internal_set_fallbacklg(from._internal_fallbacklg()); } if (cached_has_bits & 0x00000008u) { _internal_set_fallbacklc(from._internal_fallbacklc()); } if (cached_has_bits & 0x00000010u) { _internal_set_deterministiclg(from._internal_deterministiclg()); } if (cached_has_bits & 0x00000020u) { _internal_set_deterministiclc(from._internal_deterministiclc()); } if (cached_has_bits & 0x00000040u) { _internal_mutable_hydratedhsm()->::proto::TemplateMessage::MergeFrom(from._internal_hydratedhsm()); } } } void HighlyStructuredMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.HighlyStructuredMessage) if (&from == this) return; Clear(); MergeFrom(from); } void HighlyStructuredMessage::CopyFrom(const HighlyStructuredMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.HighlyStructuredMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool HighlyStructuredMessage::IsInitialized() const { return true; } void HighlyStructuredMessage::InternalSwap(HighlyStructuredMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); params_.InternalSwap(&other->params_); localizableparams_.InternalSwap(&other->localizableparams_); namespace__.Swap(&other->namespace__, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); elementname_.Swap(&other->elementname_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); fallbacklg_.Swap(&other->fallbacklg_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); fallbacklc_.Swap(&other->fallbacklc_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); deterministiclg_.Swap(&other->deterministiclg_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); deterministiclc_.Swap(&other->deterministiclc_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(hydratedhsm_, other->hydratedhsm_); } ::PROTOBUF_NAMESPACE_ID::Metadata HighlyStructuredMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class SendPaymentMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::proto::Message& notemessage(const SendPaymentMessage* msg); static void set_has_notemessage(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::proto::MessageKey& requestmessagekey(const SendPaymentMessage* msg); static void set_has_requestmessagekey(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; const ::proto::Message& SendPaymentMessage::_Internal::notemessage(const SendPaymentMessage* msg) { return *msg->notemessage_; } const ::proto::MessageKey& SendPaymentMessage::_Internal::requestmessagekey(const SendPaymentMessage* msg) { return *msg->requestmessagekey_; } SendPaymentMessage::SendPaymentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.SendPaymentMessage) } SendPaymentMessage::SendPaymentMessage(const SendPaymentMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_notemessage()) { notemessage_ = new ::proto::Message(*from.notemessage_); } else { notemessage_ = nullptr; } if (from._internal_has_requestmessagekey()) { requestmessagekey_ = new ::proto::MessageKey(*from.requestmessagekey_); } else { requestmessagekey_ = nullptr; } // @@protoc_insertion_point(copy_constructor:proto.SendPaymentMessage) } void SendPaymentMessage::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(¬emessage_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&requestmessagekey_) - reinterpret_cast(¬emessage_)) + sizeof(requestmessagekey_)); } SendPaymentMessage::~SendPaymentMessage() { // @@protoc_insertion_point(destructor:proto.SendPaymentMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void SendPaymentMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); if (this != internal_default_instance()) delete notemessage_; if (this != internal_default_instance()) delete 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); } void SendPaymentMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.SendPaymentMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(notemessage_ != nullptr); notemessage_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(requestmessagekey_ != nullptr); requestmessagekey_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SendPaymentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional .proto.Message noteMessage = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_notemessage(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.MessageKey requestMessageKey = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_requestmessagekey(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* SendPaymentMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.SendPaymentMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional .proto.Message noteMessage = 2; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *notemessage_); } // optional .proto.MessageKey requestMessageKey = 3; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *requestmessagekey_); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void SendPaymentMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.SendPaymentMessage) GOOGLE_DCHECK_NE(&from, this); const SendPaymentMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.SendPaymentMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.SendPaymentMessage) MergeFrom(*source); } } void SendPaymentMessage::MergeFrom(const SendPaymentMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.SendPaymentMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _internal_mutable_notemessage()->::proto::Message::MergeFrom(from._internal_notemessage()); } if (cached_has_bits & 0x00000002u) { _internal_mutable_requestmessagekey()->::proto::MessageKey::MergeFrom(from._internal_requestmessagekey()); } } } void SendPaymentMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.SendPaymentMessage) if (&from == this) return; Clear(); MergeFrom(from); } void SendPaymentMessage::CopyFrom(const SendPaymentMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.SendPaymentMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool SendPaymentMessage::IsInitialized() const { return true; } void SendPaymentMessage::InternalSwap(SendPaymentMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(SendPaymentMessage, requestmessagekey_) + sizeof(SendPaymentMessage::requestmessagekey_) - PROTOBUF_FIELD_OFFSET(SendPaymentMessage, notemessage_)>( reinterpret_cast(¬emessage_), reinterpret_cast(&other->notemessage_)); } ::PROTOBUF_NAMESPACE_ID::Metadata SendPaymentMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class RequestPaymentMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::proto::Message& notemessage(const RequestPaymentMessage* msg); static void set_has_notemessage(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_currencycodeiso4217(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_amount1000(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_requestfrom(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_expirytimestamp(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static const ::proto::PaymentMoney& amount(const RequestPaymentMessage* msg); static void set_has_amount(HasBits* has_bits) { (*has_bits)[0] |= 8u; } }; const ::proto::Message& RequestPaymentMessage::_Internal::notemessage(const RequestPaymentMessage* msg) { return *msg->notemessage_; } const ::proto::PaymentMoney& RequestPaymentMessage::_Internal::amount(const RequestPaymentMessage* msg) { return *msg->amount_; } RequestPaymentMessage::RequestPaymentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.RequestPaymentMessage) } RequestPaymentMessage::RequestPaymentMessage(const RequestPaymentMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); currencycodeiso4217_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_currencycodeiso4217()) { currencycodeiso4217_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_currencycodeiso4217(), GetArena()); } requestfrom_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_requestfrom()) { requestfrom_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_requestfrom(), GetArena()); } if (from._internal_has_notemessage()) { notemessage_ = new ::proto::Message(*from.notemessage_); } else { notemessage_ = nullptr; } if (from._internal_has_amount()) { amount_ = new ::proto::PaymentMoney(*from.amount_); } else { amount_ = nullptr; } ::memcpy(&amount1000_, &from.amount1000_, static_cast(reinterpret_cast(&expirytimestamp_) - reinterpret_cast(&amount1000_)) + sizeof(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(this) + static_cast( reinterpret_cast(¬emessage_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&expirytimestamp_) - reinterpret_cast(¬emessage_)) + sizeof(expirytimestamp_)); } RequestPaymentMessage::~RequestPaymentMessage() { // @@protoc_insertion_point(destructor:proto.RequestPaymentMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void RequestPaymentMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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_; } 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); } void RequestPaymentMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.RequestPaymentMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { currencycodeiso4217_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { requestfrom_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(notemessage_ != nullptr); notemessage_->Clear(); } if (cached_has_bits & 0x00000008u) { GOOGLE_DCHECK(amount_ != nullptr); amount_->Clear(); } } if (cached_has_bits & 0x00000030u) { ::memset(&amount1000_, 0, static_cast( reinterpret_cast(&expirytimestamp_) - reinterpret_cast(&amount1000_)) + sizeof(expirytimestamp_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* RequestPaymentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string currencyCodeIso4217 = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_currencycodeiso4217(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_amount1000(&has_bits); 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)) { auto str = _internal_mutable_requestfrom(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_notemessage(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional int64 expiryTimestamp = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { _Internal::set_has_expirytimestamp(&has_bits); 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)) { ptr = ctx->ParseMessage(_internal_mutable_amount(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* RequestPaymentMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string currencyCodeIso4217 = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_currencycodeiso4217().data(), static_cast(this->_internal_currencycodeiso4217().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.RequestPaymentMessage.currencyCodeIso4217"); target = stream->WriteStringMaybeAliased( 1, this->_internal_currencycodeiso4217(), target); } // 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); } // optional string requestFrom = 3; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_requestfrom().data(), static_cast(this->_internal_requestfrom().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.RequestPaymentMessage.requestFrom"); target = stream->WriteStringMaybeAliased( 3, this->_internal_requestfrom(), target); } // 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); } // 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); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.RequestPaymentMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000003fu) { // optional string currencyCodeIso4217 = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_currencycodeiso4217()); } // optional string requestFrom = 3; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_requestfrom()); } // optional .proto.Message noteMessage = 4; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *notemessage_); } // optional .proto.PaymentMoney amount = 6; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *amount_); } // optional uint64 amount1000 = 2; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( this->_internal_amount1000()); } // optional int64 expiryTimestamp = 5; if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_expirytimestamp()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void RequestPaymentMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.RequestPaymentMessage) GOOGLE_DCHECK_NE(&from, this); const RequestPaymentMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.RequestPaymentMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.RequestPaymentMessage) MergeFrom(*source); } } void RequestPaymentMessage::MergeFrom(const RequestPaymentMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.RequestPaymentMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000003fu) { if (cached_has_bits & 0x00000001u) { _internal_set_currencycodeiso4217(from._internal_currencycodeiso4217()); } if (cached_has_bits & 0x00000002u) { _internal_set_requestfrom(from._internal_requestfrom()); } if (cached_has_bits & 0x00000004u) { _internal_mutable_notemessage()->::proto::Message::MergeFrom(from._internal_notemessage()); } if (cached_has_bits & 0x00000008u) { _internal_mutable_amount()->::proto::PaymentMoney::MergeFrom(from._internal_amount()); } if (cached_has_bits & 0x00000010u) { amount1000_ = from.amount1000_; } if (cached_has_bits & 0x00000020u) { expirytimestamp_ = from.expirytimestamp_; } _has_bits_[0] |= cached_has_bits; } } void RequestPaymentMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.RequestPaymentMessage) if (&from == this) return; Clear(); MergeFrom(from); } void RequestPaymentMessage::CopyFrom(const RequestPaymentMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.RequestPaymentMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool RequestPaymentMessage::IsInitialized() const { return true; } void RequestPaymentMessage::InternalSwap(RequestPaymentMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); currencycodeiso4217_.Swap(&other->currencycodeiso4217_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); requestfrom_.Swap(&other->requestfrom_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(RequestPaymentMessage, expirytimestamp_) + sizeof(RequestPaymentMessage::expirytimestamp_) - PROTOBUF_FIELD_OFFSET(RequestPaymentMessage, notemessage_)>( reinterpret_cast(¬emessage_), reinterpret_cast(&other->notemessage_)); } ::PROTOBUF_NAMESPACE_ID::Metadata RequestPaymentMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class DeclinePaymentRequestMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::proto::MessageKey& key(const DeclinePaymentRequestMessage* msg); static void set_has_key(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; const ::proto::MessageKey& DeclinePaymentRequestMessage::_Internal::key(const DeclinePaymentRequestMessage* msg) { return *msg->key_; } DeclinePaymentRequestMessage::DeclinePaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.DeclinePaymentRequestMessage) } DeclinePaymentRequestMessage::DeclinePaymentRequestMessage(const DeclinePaymentRequestMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_key()) { key_ = new ::proto::MessageKey(*from.key_); } else { key_ = nullptr; } // @@protoc_insertion_point(copy_constructor:proto.DeclinePaymentRequestMessage) } void DeclinePaymentRequestMessage::SharedCtor() { key_ = nullptr; } DeclinePaymentRequestMessage::~DeclinePaymentRequestMessage() { // @@protoc_insertion_point(destructor:proto.DeclinePaymentRequestMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void DeclinePaymentRequestMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); if (this != internal_default_instance()) delete 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); } void DeclinePaymentRequestMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.DeclinePaymentRequestMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(key_ != nullptr); key_->Clear(); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* DeclinePaymentRequestMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional .proto.MessageKey key = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_key(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* DeclinePaymentRequestMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.DeclinePaymentRequestMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional .proto.MessageKey key = 1; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *key_); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void DeclinePaymentRequestMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.DeclinePaymentRequestMessage) GOOGLE_DCHECK_NE(&from, this); const DeclinePaymentRequestMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.DeclinePaymentRequestMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.DeclinePaymentRequestMessage) MergeFrom(*source); } } void DeclinePaymentRequestMessage::MergeFrom(const DeclinePaymentRequestMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.DeclinePaymentRequestMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_key()) { _internal_mutable_key()->::proto::MessageKey::MergeFrom(from._internal_key()); } } void DeclinePaymentRequestMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.DeclinePaymentRequestMessage) if (&from == this) return; Clear(); MergeFrom(from); } void DeclinePaymentRequestMessage::CopyFrom(const DeclinePaymentRequestMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.DeclinePaymentRequestMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool DeclinePaymentRequestMessage::IsInitialized() const { return true; } void DeclinePaymentRequestMessage::InternalSwap(DeclinePaymentRequestMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(key_, other->key_); } ::PROTOBUF_NAMESPACE_ID::Metadata DeclinePaymentRequestMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class CancelPaymentRequestMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::proto::MessageKey& key(const CancelPaymentRequestMessage* msg); static void set_has_key(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; const ::proto::MessageKey& CancelPaymentRequestMessage::_Internal::key(const CancelPaymentRequestMessage* msg) { return *msg->key_; } CancelPaymentRequestMessage::CancelPaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.CancelPaymentRequestMessage) } CancelPaymentRequestMessage::CancelPaymentRequestMessage(const CancelPaymentRequestMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_key()) { key_ = new ::proto::MessageKey(*from.key_); } else { key_ = nullptr; } // @@protoc_insertion_point(copy_constructor:proto.CancelPaymentRequestMessage) } void CancelPaymentRequestMessage::SharedCtor() { key_ = nullptr; } CancelPaymentRequestMessage::~CancelPaymentRequestMessage() { // @@protoc_insertion_point(destructor:proto.CancelPaymentRequestMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void CancelPaymentRequestMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); if (this != internal_default_instance()) delete 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); } void CancelPaymentRequestMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.CancelPaymentRequestMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(key_ != nullptr); key_->Clear(); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CancelPaymentRequestMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional .proto.MessageKey key = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_key(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* CancelPaymentRequestMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.CancelPaymentRequestMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional .proto.MessageKey key = 1; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *key_); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void CancelPaymentRequestMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.CancelPaymentRequestMessage) GOOGLE_DCHECK_NE(&from, this); const CancelPaymentRequestMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.CancelPaymentRequestMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.CancelPaymentRequestMessage) MergeFrom(*source); } } void CancelPaymentRequestMessage::MergeFrom(const CancelPaymentRequestMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.CancelPaymentRequestMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_key()) { _internal_mutable_key()->::proto::MessageKey::MergeFrom(from._internal_key()); } } void CancelPaymentRequestMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.CancelPaymentRequestMessage) if (&from == this) return; Clear(); MergeFrom(from); } void CancelPaymentRequestMessage::CopyFrom(const CancelPaymentRequestMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.CancelPaymentRequestMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool CancelPaymentRequestMessage::IsInitialized() const { return true; } void CancelPaymentRequestMessage::InternalSwap(CancelPaymentRequestMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(key_, other->key_); } ::PROTOBUF_NAMESPACE_ID::Metadata CancelPaymentRequestMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class LiveLocationMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_degreeslatitude(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_degreeslongitude(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_accuracyinmeters(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static void set_has_speedinmps(HasBits* has_bits) { (*has_bits)[0] |= 64u; } static void set_has_degreesclockwisefrommagneticnorth(HasBits* has_bits) { (*has_bits)[0] |= 128u; } static void set_has_caption(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_sequencenumber(HasBits* has_bits) { (*has_bits)[0] |= 512u; } static void set_has_timeoffset(HasBits* has_bits) { (*has_bits)[0] |= 256u; } static void set_has_jpegthumbnail(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static const ::proto::ContextInfo& contextinfo(const LiveLocationMessage* msg); static void set_has_contextinfo(HasBits* has_bits) { (*has_bits)[0] |= 4u; } }; const ::proto::ContextInfo& LiveLocationMessage::_Internal::contextinfo(const LiveLocationMessage* msg) { return *msg->contextinfo_; } LiveLocationMessage::LiveLocationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.LiveLocationMessage) } LiveLocationMessage::LiveLocationMessage(const LiveLocationMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_caption()) { caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_caption(), GetArena()); } jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_jpegthumbnail()) { jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), GetArena()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); } else { contextinfo_ = nullptr; } ::memcpy(°reeslatitude_, &from.degreeslatitude_, static_cast(reinterpret_cast(&sequencenumber_) - reinterpret_cast(°reeslatitude_)) + sizeof(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(this) + static_cast( reinterpret_cast(&contextinfo_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&sequencenumber_) - reinterpret_cast(&contextinfo_)) + sizeof(sequencenumber_)); } LiveLocationMessage::~LiveLocationMessage() { // @@protoc_insertion_point(destructor:proto.LiveLocationMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void LiveLocationMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); caption_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); jpegthumbnail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete 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); } void LiveLocationMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.LiveLocationMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { caption_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { jpegthumbnail_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(contextinfo_ != nullptr); contextinfo_->Clear(); } } if (cached_has_bits & 0x000000f8u) { ::memset(°reeslatitude_, 0, static_cast( reinterpret_cast(°reesclockwisefrommagneticnorth_) - reinterpret_cast(°reeslatitude_)) + sizeof(degreesclockwisefrommagneticnorth_)); } if (cached_has_bits & 0x00000300u) { ::memset(&timeoffset_, 0, static_cast( reinterpret_cast(&sequencenumber_) - reinterpret_cast(&timeoffset_)) + sizeof(sequencenumber_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* LiveLocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional double degreesLatitude = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { _Internal::set_has_degreeslatitude(&has_bits); degreeslatitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(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)) { _Internal::set_has_degreeslongitude(&has_bits); degreeslongitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(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)) { _Internal::set_has_accuracyinmeters(&has_bits); 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)) { _Internal::set_has_speedinmps(&has_bits); speedinmps_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(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)) { _Internal::set_has_degreesclockwisefrommagneticnorth(&has_bits); 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)) { auto str = _internal_mutable_caption(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_sequencenumber(&has_bits); 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)) { _Internal::set_has_timeoffset(&has_bits); 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)) { auto str = _internal_mutable_jpegthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* LiveLocationMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } // 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); } // 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); } // 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); } // 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); } // optional string caption = 6; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_caption().data(), static_cast(this->_internal_caption().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.LiveLocationMessage.caption"); target = stream->WriteStringMaybeAliased( 6, this->_internal_caption(), target); } // 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); } // 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); } // optional bytes jpegThumbnail = 16; if (cached_has_bits & 0x00000002u) { target = stream->WriteBytesMaybeAliased( 16, this->_internal_jpegthumbnail(), target); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.LiveLocationMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string caption = 6; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_caption()); } // optional bytes jpegThumbnail = 16; if (cached_has_bits & 0x00000002u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_jpegthumbnail()); } // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000004u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *contextinfo_); } // optional double degreesLatitude = 1; if (cached_has_bits & 0x00000008u) { total_size += 1 + 8; } // optional double degreesLongitude = 2; if (cached_has_bits & 0x00000010u) { total_size += 1 + 8; } // optional uint32 accuracyInMeters = 3; if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_accuracyinmeters()); } // optional float speedInMps = 4; if (cached_has_bits & 0x00000040u) { total_size += 1 + 4; } // optional uint32 degreesClockwiseFromMagneticNorth = 5; if (cached_has_bits & 0x00000080u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_degreesclockwisefrommagneticnorth()); } } if (cached_has_bits & 0x00000300u) { // optional uint32 timeOffset = 8; if (cached_has_bits & 0x00000100u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_timeoffset()); } // optional int64 sequenceNumber = 7; if (cached_has_bits & 0x00000200u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_sequencenumber()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void LiveLocationMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.LiveLocationMessage) GOOGLE_DCHECK_NE(&from, this); const LiveLocationMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.LiveLocationMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.LiveLocationMessage) MergeFrom(*source); } } void LiveLocationMessage::MergeFrom(const LiveLocationMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.LiveLocationMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { _internal_set_caption(from._internal_caption()); } if (cached_has_bits & 0x00000002u) { _internal_set_jpegthumbnail(from._internal_jpegthumbnail()); } if (cached_has_bits & 0x00000004u) { _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); } if (cached_has_bits & 0x00000008u) { degreeslatitude_ = from.degreeslatitude_; } if (cached_has_bits & 0x00000010u) { degreeslongitude_ = from.degreeslongitude_; } if (cached_has_bits & 0x00000020u) { accuracyinmeters_ = from.accuracyinmeters_; } if (cached_has_bits & 0x00000040u) { speedinmps_ = from.speedinmps_; } if (cached_has_bits & 0x00000080u) { degreesclockwisefrommagneticnorth_ = from.degreesclockwisefrommagneticnorth_; } _has_bits_[0] |= cached_has_bits; } if (cached_has_bits & 0x00000300u) { if (cached_has_bits & 0x00000100u) { timeoffset_ = from.timeoffset_; } if (cached_has_bits & 0x00000200u) { sequencenumber_ = from.sequencenumber_; } _has_bits_[0] |= cached_has_bits; } } void LiveLocationMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.LiveLocationMessage) if (&from == this) return; Clear(); MergeFrom(from); } void LiveLocationMessage::CopyFrom(const LiveLocationMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.LiveLocationMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool LiveLocationMessage::IsInitialized() const { return true; } void LiveLocationMessage::InternalSwap(LiveLocationMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); caption_.Swap(&other->caption_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); jpegthumbnail_.Swap(&other->jpegthumbnail_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(LiveLocationMessage, sequencenumber_) + sizeof(LiveLocationMessage::sequencenumber_) - PROTOBUF_FIELD_OFFSET(LiveLocationMessage, contextinfo_)>( reinterpret_cast(&contextinfo_), reinterpret_cast(&other->contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata LiveLocationMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class StickerMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_url(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_filesha256(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_fileencsha256(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_mediakey(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_mimetype(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_height(HasBits* has_bits) { (*has_bits)[0] |= 512u; } static void set_has_width(HasBits* has_bits) { (*has_bits)[0] |= 1024u; } static void set_has_directpath(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static void set_has_filelength(HasBits* has_bits) { (*has_bits)[0] |= 2048u; } static void set_has_mediakeytimestamp(HasBits* has_bits) { (*has_bits)[0] |= 4096u; } static void set_has_firstframelength(HasBits* has_bits) { (*has_bits)[0] |= 8192u; } static void set_has_firstframesidecar(HasBits* has_bits) { (*has_bits)[0] |= 64u; } static void set_has_isanimated(HasBits* has_bits) { (*has_bits)[0] |= 16384u; } static void set_has_pngthumbnail(HasBits* has_bits) { (*has_bits)[0] |= 128u; } static const ::proto::ContextInfo& contextinfo(const StickerMessage* msg); static void set_has_contextinfo(HasBits* has_bits) { (*has_bits)[0] |= 256u; } }; const ::proto::ContextInfo& StickerMessage::_Internal::contextinfo(const StickerMessage* msg) { return *msg->contextinfo_; } StickerMessage::StickerMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.StickerMessage) } StickerMessage::StickerMessage(const StickerMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_url()) { url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), GetArena()); } filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_filesha256()) { filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), GetArena()); } fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fileencsha256()) { fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), GetArena()); } mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mediakey()) { mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), GetArena()); } mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mimetype()) { mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mimetype(), GetArena()); } directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_directpath()) { directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), GetArena()); } firstframesidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_firstframesidecar()) { firstframesidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_firstframesidecar(), GetArena()); } pngthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_pngthumbnail()) { pngthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pngthumbnail(), GetArena()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); } else { contextinfo_ = nullptr; } ::memcpy(&height_, &from.height_, static_cast(reinterpret_cast(&isanimated_) - reinterpret_cast(&height_)) + sizeof(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(this) + static_cast( reinterpret_cast(&contextinfo_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&isanimated_) - reinterpret_cast(&contextinfo_)) + sizeof(isanimated_)); } StickerMessage::~StickerMessage() { // @@protoc_insertion_point(destructor:proto.StickerMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void StickerMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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_; } 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); } void StickerMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.StickerMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { url_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { filesha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { fileencsha256_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { mediakey_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { mimetype_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { directpath_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { firstframesidecar_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { pngthumbnail_.ClearNonDefaultToEmpty(); } } if (cached_has_bits & 0x00000100u) { GOOGLE_DCHECK(contextinfo_ != nullptr); contextinfo_->Clear(); } if (cached_has_bits & 0x00007e00u) { ::memset(&height_, 0, static_cast( reinterpret_cast(&isanimated_) - reinterpret_cast(&height_)) + sizeof(isanimated_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string url = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_url(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_filesha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_fileencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_mediakey(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_mimetype(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_height(&has_bits); 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)) { _Internal::set_has_width(&has_bits); 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)) { auto str = _internal_mutable_directpath(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_filelength(&has_bits); 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)) { _Internal::set_has_mediakeytimestamp(&has_bits); 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)) { _Internal::set_has_firstframelength(&has_bits); 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)) { auto str = _internal_mutable_firstframesidecar(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_isanimated(&has_bits); 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)) { auto str = _internal_mutable_pngthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* StickerMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string url = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_url().data(), static_cast(this->_internal_url().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.StickerMessage.url"); target = stream->WriteStringMaybeAliased( 1, this->_internal_url(), target); } // optional bytes fileSha256 = 2; if (cached_has_bits & 0x00000002u) { target = stream->WriteBytesMaybeAliased( 2, this->_internal_filesha256(), target); } // optional bytes fileEncSha256 = 3; if (cached_has_bits & 0x00000004u) { target = stream->WriteBytesMaybeAliased( 3, this->_internal_fileencsha256(), target); } // optional bytes mediaKey = 4; if (cached_has_bits & 0x00000008u) { target = stream->WriteBytesMaybeAliased( 4, this->_internal_mediakey(), target); } // optional string mimetype = 5; if (cached_has_bits & 0x00000010u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_mimetype().data(), static_cast(this->_internal_mimetype().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.StickerMessage.mimetype"); target = stream->WriteStringMaybeAliased( 5, this->_internal_mimetype(), target); } // 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); } // 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); } // optional string directPath = 8; if (cached_has_bits & 0x00000020u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_directpath().data(), static_cast(this->_internal_directpath().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.StickerMessage.directPath"); target = stream->WriteStringMaybeAliased( 8, this->_internal_directpath(), target); } // 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); } // 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); } // 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); } // optional bytes firstFrameSidecar = 12; if (cached_has_bits & 0x00000040u) { target = stream->WriteBytesMaybeAliased( 12, this->_internal_firstframesidecar(), target); } // 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); } // optional bytes pngThumbnail = 16; if (cached_has_bits & 0x00000080u) { target = stream->WriteBytesMaybeAliased( 16, this->_internal_pngthumbnail(), target); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.StickerMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string url = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_url()); } // optional bytes fileSha256 = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_filesha256()); } // optional bytes fileEncSha256 = 3; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_fileencsha256()); } // optional bytes mediaKey = 4; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_mediakey()); } // optional string mimetype = 5; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_mimetype()); } // optional string directPath = 8; if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_directpath()); } // optional bytes firstFrameSidecar = 12; if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_firstframesidecar()); } // optional bytes pngThumbnail = 16; if (cached_has_bits & 0x00000080u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_pngthumbnail()); } } if (cached_has_bits & 0x00007f00u) { // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000100u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *contextinfo_); } // optional uint32 height = 6; if (cached_has_bits & 0x00000200u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_height()); } // optional uint32 width = 7; if (cached_has_bits & 0x00000400u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_width()); } // optional uint64 fileLength = 9; if (cached_has_bits & 0x00000800u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( this->_internal_filelength()); } // optional int64 mediaKeyTimestamp = 10; if (cached_has_bits & 0x00001000u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_mediakeytimestamp()); } // optional uint32 firstFrameLength = 11; if (cached_has_bits & 0x00002000u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_firstframelength()); } // optional bool isAnimated = 13; if (cached_has_bits & 0x00004000u) { total_size += 1 + 1; } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void StickerMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.StickerMessage) GOOGLE_DCHECK_NE(&from, this); const StickerMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.StickerMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.StickerMessage) MergeFrom(*source); } } void StickerMessage::MergeFrom(const StickerMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.StickerMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { _internal_set_url(from._internal_url()); } if (cached_has_bits & 0x00000002u) { _internal_set_filesha256(from._internal_filesha256()); } if (cached_has_bits & 0x00000004u) { _internal_set_fileencsha256(from._internal_fileencsha256()); } if (cached_has_bits & 0x00000008u) { _internal_set_mediakey(from._internal_mediakey()); } if (cached_has_bits & 0x00000010u) { _internal_set_mimetype(from._internal_mimetype()); } if (cached_has_bits & 0x00000020u) { _internal_set_directpath(from._internal_directpath()); } if (cached_has_bits & 0x00000040u) { _internal_set_firstframesidecar(from._internal_firstframesidecar()); } if (cached_has_bits & 0x00000080u) { _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()); } if (cached_has_bits & 0x00000200u) { height_ = from.height_; } if (cached_has_bits & 0x00000400u) { width_ = from.width_; } if (cached_has_bits & 0x00000800u) { filelength_ = from.filelength_; } if (cached_has_bits & 0x00001000u) { mediakeytimestamp_ = from.mediakeytimestamp_; } if (cached_has_bits & 0x00002000u) { firstframelength_ = from.firstframelength_; } if (cached_has_bits & 0x00004000u) { isanimated_ = from.isanimated_; } _has_bits_[0] |= cached_has_bits; } } void StickerMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.StickerMessage) if (&from == this) return; Clear(); MergeFrom(from); } void StickerMessage::CopyFrom(const StickerMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.StickerMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool StickerMessage::IsInitialized() const { return true; } void StickerMessage::InternalSwap(StickerMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); url_.Swap(&other->url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); filesha256_.Swap(&other->filesha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); fileencsha256_.Swap(&other->fileencsha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); mediakey_.Swap(&other->mediakey_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); mimetype_.Swap(&other->mimetype_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); directpath_.Swap(&other->directpath_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); firstframesidecar_.Swap(&other->firstframesidecar_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); pngthumbnail_.Swap(&other->pngthumbnail_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(StickerMessage, isanimated_) + sizeof(StickerMessage::isanimated_) - PROTOBUF_FIELD_OFFSET(StickerMessage, contextinfo_)>( reinterpret_cast(&contextinfo_), reinterpret_cast(&other->contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata StickerMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class FourRowTemplate::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::proto::HighlyStructuredMessage& content(const FourRowTemplate* msg); static void set_has_content(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::proto::HighlyStructuredMessage& footer(const FourRowTemplate* msg); static void set_has_footer(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static const ::proto::DocumentMessage& documentmessage(const FourRowTemplate* msg); static const ::proto::HighlyStructuredMessage& highlystructuredmessage(const FourRowTemplate* msg); static const ::proto::ImageMessage& imagemessage(const FourRowTemplate* msg); static const ::proto::VideoMessage& videomessage(const FourRowTemplate* msg); static const ::proto::LocationMessage& locationmessage(const FourRowTemplate* msg); }; const ::proto::HighlyStructuredMessage& FourRowTemplate::_Internal::content(const FourRowTemplate* msg) { return *msg->content_; } const ::proto::HighlyStructuredMessage& FourRowTemplate::_Internal::footer(const FourRowTemplate* msg) { return *msg->footer_; } const ::proto::DocumentMessage& FourRowTemplate::_Internal::documentmessage(const FourRowTemplate* msg) { return *msg->title_.documentmessage_; } const ::proto::HighlyStructuredMessage& FourRowTemplate::_Internal::highlystructuredmessage(const FourRowTemplate* msg) { return *msg->title_.highlystructuredmessage_; } const ::proto::ImageMessage& FourRowTemplate::_Internal::imagemessage(const FourRowTemplate* msg) { return *msg->title_.imagemessage_; } const ::proto::VideoMessage& FourRowTemplate::_Internal::videomessage(const FourRowTemplate* msg) { return *msg->title_.videomessage_; } const ::proto::LocationMessage& FourRowTemplate::_Internal::locationmessage(const FourRowTemplate* msg) { return *msg->title_.locationmessage_; } void FourRowTemplate::set_allocated_documentmessage(::proto::DocumentMessage* documentmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_title(); if (documentmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(documentmessage); if (message_arena != submessage_arena) { documentmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, documentmessage, submessage_arena); } set_has_documentmessage(); title_.documentmessage_ = documentmessage; } // @@protoc_insertion_point(field_set_allocated:proto.FourRowTemplate.documentMessage) } void FourRowTemplate::set_allocated_highlystructuredmessage(::proto::HighlyStructuredMessage* highlystructuredmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_title(); if (highlystructuredmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(highlystructuredmessage); if (message_arena != submessage_arena) { highlystructuredmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, highlystructuredmessage, submessage_arena); } set_has_highlystructuredmessage(); title_.highlystructuredmessage_ = highlystructuredmessage; } // @@protoc_insertion_point(field_set_allocated:proto.FourRowTemplate.highlyStructuredMessage) } void FourRowTemplate::set_allocated_imagemessage(::proto::ImageMessage* imagemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_title(); if (imagemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(imagemessage); if (message_arena != submessage_arena) { imagemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, imagemessage, submessage_arena); } set_has_imagemessage(); title_.imagemessage_ = imagemessage; } // @@protoc_insertion_point(field_set_allocated:proto.FourRowTemplate.imageMessage) } void FourRowTemplate::set_allocated_videomessage(::proto::VideoMessage* videomessage) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_title(); if (videomessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(videomessage); if (message_arena != submessage_arena) { videomessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, videomessage, submessage_arena); } set_has_videomessage(); title_.videomessage_ = videomessage; } // @@protoc_insertion_point(field_set_allocated:proto.FourRowTemplate.videoMessage) } void FourRowTemplate::set_allocated_locationmessage(::proto::LocationMessage* locationmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_title(); if (locationmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(locationmessage); if (message_arena != submessage_arena) { locationmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, locationmessage, submessage_arena); } set_has_locationmessage(); title_.locationmessage_ = locationmessage; } // @@protoc_insertion_point(field_set_allocated:proto.FourRowTemplate.locationMessage) } FourRowTemplate::FourRowTemplate(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), buttons_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.FourRowTemplate) } FourRowTemplate::FourRowTemplate(const FourRowTemplate& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_), buttons_(from.buttons_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_content()) { content_ = new ::proto::HighlyStructuredMessage(*from.content_); } else { content_ = nullptr; } if (from._internal_has_footer()) { footer_ = new ::proto::HighlyStructuredMessage(*from.footer_); } else { footer_ = nullptr; } clear_has_title(); switch (from.title_case()) { case kDocumentMessage: { _internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom(from._internal_documentmessage()); break; } case kHighlyStructuredMessage: { _internal_mutable_highlystructuredmessage()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_highlystructuredmessage()); break; } case kImageMessage: { _internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom(from._internal_imagemessage()); break; } case kVideoMessage: { _internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom(from._internal_videomessage()); break; } case kLocationMessage: { _internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom(from._internal_locationmessage()); break; } case TITLE_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:proto.FourRowTemplate) } void FourRowTemplate::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&content_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&footer_) - reinterpret_cast(&content_)) + sizeof(footer_)); clear_has_title(); } FourRowTemplate::~FourRowTemplate() { // @@protoc_insertion_point(destructor:proto.FourRowTemplate) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void FourRowTemplate::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); if (this != internal_default_instance()) delete content_; if (this != internal_default_instance()) delete 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); } void FourRowTemplate::clear_title() { // @@protoc_insertion_point(one_of_clear_start:proto.FourRowTemplate) switch (title_case()) { case kDocumentMessage: { if (GetArena() == nullptr) { delete title_.documentmessage_; } break; } case kHighlyStructuredMessage: { if (GetArena() == nullptr) { delete title_.highlystructuredmessage_; } break; } case kImageMessage: { if (GetArena() == nullptr) { delete title_.imagemessage_; } break; } case kVideoMessage: { if (GetArena() == nullptr) { delete title_.videomessage_; } break; } case kLocationMessage: { if (GetArena() == nullptr) { delete title_.locationmessage_; } break; } case TITLE_NOT_SET: { break; } } _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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; buttons_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(content_ != nullptr); content_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(footer_ != nullptr); footer_->Clear(); } } clear_title(); _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* FourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // .proto.DocumentMessage documentMessage = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_documentmessage(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.HighlyStructuredMessage highlyStructuredMessage = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_highlystructuredmessage(), ptr); 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)) { ptr = ctx->ParseMessage(_internal_mutable_imagemessage(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.VideoMessage videoMessage = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_videomessage(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.LocationMessage locationMessage = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { ptr = ctx->ParseMessage(_internal_mutable_locationmessage(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.HighlyStructuredMessage content = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { ptr = ctx->ParseMessage(_internal_mutable_content(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.HighlyStructuredMessage footer = 7; case 7: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { ptr = ctx->ParseMessage(_internal_mutable_footer(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // repeated .proto.TemplateButton buttons = 8; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_buttons(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* FourRowTemplate::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (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); break; } case kHighlyStructuredMessage: { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 2, _Internal::highlystructuredmessage(this), target, stream); break; } case kImageMessage: { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 3, _Internal::imagemessage(this), target, stream); break; } case kVideoMessage: { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 4, _Internal::videomessage(this), target, stream); break; } case kLocationMessage: { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 5, _Internal::locationmessage(this), target, stream); break; } default: ; } cached_has_bits = _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); } // 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); } // repeated .proto.TemplateButton buttons = 8; for (unsigned int i = 0, n = static_cast(this->_internal_buttons_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(8, this->_internal_buttons(i), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.FourRowTemplate) return target; } 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; // 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_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } cached_has_bits = _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_); } // optional .proto.HighlyStructuredMessage footer = 7; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *footer_); } } switch (title_case()) { // .proto.DocumentMessage documentMessage = 1; case kDocumentMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *title_.documentmessage_); break; } // .proto.HighlyStructuredMessage highlyStructuredMessage = 2; case kHighlyStructuredMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *title_.highlystructuredmessage_); break; } // .proto.ImageMessage imageMessage = 3; case kImageMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *title_.imagemessage_); break; } // .proto.VideoMessage videoMessage = 4; case kVideoMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *title_.videomessage_); break; } // .proto.LocationMessage locationMessage = 5; case kLocationMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *title_.locationmessage_); break; } case TITLE_NOT_SET: { break; } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void FourRowTemplate::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.FourRowTemplate) GOOGLE_DCHECK_NE(&from, this); const FourRowTemplate* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.FourRowTemplate) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.FourRowTemplate) MergeFrom(*source); } } void FourRowTemplate::MergeFrom(const FourRowTemplate& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.FourRowTemplate) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; buttons_.MergeFrom(from.buttons_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _internal_mutable_content()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_content()); } if (cached_has_bits & 0x00000002u) { _internal_mutable_footer()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_footer()); } } switch (from.title_case()) { case kDocumentMessage: { _internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom(from._internal_documentmessage()); break; } case kHighlyStructuredMessage: { _internal_mutable_highlystructuredmessage()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_highlystructuredmessage()); break; } case kImageMessage: { _internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom(from._internal_imagemessage()); break; } case kVideoMessage: { _internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom(from._internal_videomessage()); break; } case kLocationMessage: { _internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom(from._internal_locationmessage()); break; } case TITLE_NOT_SET: { break; } } } void FourRowTemplate::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.FourRowTemplate) if (&from == this) return; Clear(); MergeFrom(from); } void FourRowTemplate::CopyFrom(const FourRowTemplate& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.FourRowTemplate) if (&from == this) return; Clear(); MergeFrom(from); } bool FourRowTemplate::IsInitialized() const { return true; } void FourRowTemplate::InternalSwap(FourRowTemplate* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); buttons_.InternalSwap(&other->buttons_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(FourRowTemplate, footer_) + sizeof(FourRowTemplate::footer_) - PROTOBUF_FIELD_OFFSET(FourRowTemplate, content_)>( reinterpret_cast(&content_), reinterpret_cast(&other->content_)); swap(title_, other->title_); swap(_oneof_case_[0], other->_oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata FourRowTemplate::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class HydratedFourRowTemplate::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_hydratedcontenttext(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_hydratedfootertext(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_templateid(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static const ::proto::DocumentMessage& documentmessage(const HydratedFourRowTemplate* msg); static const ::proto::ImageMessage& imagemessage(const HydratedFourRowTemplate* msg); static const ::proto::VideoMessage& videomessage(const HydratedFourRowTemplate* msg); static const ::proto::LocationMessage& locationmessage(const HydratedFourRowTemplate* msg); }; const ::proto::DocumentMessage& HydratedFourRowTemplate::_Internal::documentmessage(const HydratedFourRowTemplate* msg) { return *msg->title_.documentmessage_; } const ::proto::ImageMessage& HydratedFourRowTemplate::_Internal::imagemessage(const HydratedFourRowTemplate* msg) { return *msg->title_.imagemessage_; } const ::proto::VideoMessage& HydratedFourRowTemplate::_Internal::videomessage(const HydratedFourRowTemplate* msg) { return *msg->title_.videomessage_; } const ::proto::LocationMessage& HydratedFourRowTemplate::_Internal::locationmessage(const HydratedFourRowTemplate* msg) { return *msg->title_.locationmessage_; } void HydratedFourRowTemplate::set_allocated_documentmessage(::proto::DocumentMessage* documentmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_title(); if (documentmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(documentmessage); if (message_arena != submessage_arena) { documentmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, documentmessage, submessage_arena); } set_has_documentmessage(); title_.documentmessage_ = documentmessage; } // @@protoc_insertion_point(field_set_allocated:proto.HydratedFourRowTemplate.documentMessage) } void HydratedFourRowTemplate::set_allocated_imagemessage(::proto::ImageMessage* imagemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_title(); if (imagemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(imagemessage); if (message_arena != submessage_arena) { imagemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, imagemessage, submessage_arena); } set_has_imagemessage(); title_.imagemessage_ = imagemessage; } // @@protoc_insertion_point(field_set_allocated:proto.HydratedFourRowTemplate.imageMessage) } void HydratedFourRowTemplate::set_allocated_videomessage(::proto::VideoMessage* videomessage) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_title(); if (videomessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(videomessage); if (message_arena != submessage_arena) { videomessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, videomessage, submessage_arena); } set_has_videomessage(); title_.videomessage_ = videomessage; } // @@protoc_insertion_point(field_set_allocated:proto.HydratedFourRowTemplate.videoMessage) } void HydratedFourRowTemplate::set_allocated_locationmessage(::proto::LocationMessage* locationmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_title(); if (locationmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(locationmessage); if (message_arena != submessage_arena) { locationmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, locationmessage, submessage_arena); } set_has_locationmessage(); title_.locationmessage_ = locationmessage; } // @@protoc_insertion_point(field_set_allocated:proto.HydratedFourRowTemplate.locationMessage) } HydratedFourRowTemplate::HydratedFourRowTemplate(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), hydratedbuttons_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.HydratedFourRowTemplate) } HydratedFourRowTemplate::HydratedFourRowTemplate(const HydratedFourRowTemplate& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_), hydratedbuttons_(from.hydratedbuttons_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); hydratedcontenttext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_hydratedcontenttext()) { hydratedcontenttext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_hydratedcontenttext(), GetArena()); } hydratedfootertext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_hydratedfootertext()) { hydratedfootertext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_hydratedfootertext(), GetArena()); } templateid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_templateid()) { templateid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_templateid(), GetArena()); } clear_has_title(); switch (from.title_case()) { case kDocumentMessage: { _internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom(from._internal_documentmessage()); break; } case kHydratedTitleText: { _internal_set_hydratedtitletext(from._internal_hydratedtitletext()); break; } case kImageMessage: { _internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom(from._internal_imagemessage()); break; } case kVideoMessage: { _internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom(from._internal_videomessage()); break; } case kLocationMessage: { _internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom(from._internal_locationmessage()); break; } case TITLE_NOT_SET: { break; } } // @@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(); } HydratedFourRowTemplate::~HydratedFourRowTemplate() { // @@protoc_insertion_point(destructor:proto.HydratedFourRowTemplate) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void HydratedFourRowTemplate::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); hydratedcontenttext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); hydratedfootertext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); templateid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); 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); } void HydratedFourRowTemplate::clear_title() { // @@protoc_insertion_point(one_of_clear_start:proto.HydratedFourRowTemplate) switch (title_case()) { case kDocumentMessage: { if (GetArena() == nullptr) { delete title_.documentmessage_; } break; } case kHydratedTitleText: { title_.hydratedtitletext_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); break; } case kImageMessage: { if (GetArena() == nullptr) { delete title_.imagemessage_; } break; } case kVideoMessage: { if (GetArena() == nullptr) { delete title_.videomessage_; } break; } case kLocationMessage: { if (GetArena() == nullptr) { delete title_.locationmessage_; } break; } case TITLE_NOT_SET: { break; } } _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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; hydratedbuttons_.Clear(); cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { hydratedcontenttext_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { hydratedfootertext_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { templateid_.ClearNonDefaultToEmpty(); } } clear_title(); _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* HydratedFourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // .proto.DocumentMessage documentMessage = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_documentmessage(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // string hydratedTitleText = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { auto str = _internal_mutable_hydratedtitletext(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_imagemessage(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.VideoMessage videoMessage = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_videomessage(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.LocationMessage locationMessage = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { ptr = ctx->ParseMessage(_internal_mutable_locationmessage(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string hydratedContentText = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { auto str = _internal_mutable_hydratedcontenttext(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_hydratedfootertext(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_hydratedbuttons(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); } else goto handle_unusual; continue; // optional string templateId = 9; case 9: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { auto str = _internal_mutable_templateid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedFourRowTemplate.templateId"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* HydratedFourRowTemplate::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (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); break; } case kHydratedTitleText: { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_hydratedtitletext().data(), static_cast(this->_internal_hydratedtitletext().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HydratedFourRowTemplate.hydratedTitleText"); target = stream->WriteStringMaybeAliased( 2, this->_internal_hydratedtitletext(), target); break; } case kImageMessage: { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 3, _Internal::imagemessage(this), target, stream); break; } case kVideoMessage: { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 4, _Internal::videomessage(this), target, stream); break; } case kLocationMessage: { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 5, _Internal::locationmessage(this), target, stream); break; } default: ; } cached_has_bits = _has_bits_[0]; // optional string hydratedContentText = 6; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_hydratedcontenttext().data(), static_cast(this->_internal_hydratedcontenttext().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HydratedFourRowTemplate.hydratedContentText"); target = stream->WriteStringMaybeAliased( 6, this->_internal_hydratedcontenttext(), target); } // optional string hydratedFooterText = 7; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_hydratedfootertext().data(), static_cast(this->_internal_hydratedfootertext().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HydratedFourRowTemplate.hydratedFooterText"); target = stream->WriteStringMaybeAliased( 7, this->_internal_hydratedfootertext(), target); } // repeated .proto.HydratedTemplateButton hydratedButtons = 8; for (unsigned int i = 0, n = static_cast(this->_internal_hydratedbuttons_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(8, this->_internal_hydratedbuttons(i), target, stream); } // optional string templateId = 9; if (cached_has_bits & 0x00000004u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_templateid().data(), static_cast(this->_internal_templateid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.HydratedFourRowTemplate.templateId"); target = stream->WriteStringMaybeAliased( 9, this->_internal_templateid(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.HydratedFourRowTemplate) return target; } 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; // 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_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string hydratedContentText = 6; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_hydratedcontenttext()); } // optional string hydratedFooterText = 7; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_hydratedfootertext()); } // optional string templateId = 9; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_templateid()); } } switch (title_case()) { // .proto.DocumentMessage documentMessage = 1; case kDocumentMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *title_.documentmessage_); break; } // string hydratedTitleText = 2; case kHydratedTitleText: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_hydratedtitletext()); break; } // .proto.ImageMessage imageMessage = 3; case kImageMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *title_.imagemessage_); break; } // .proto.VideoMessage videoMessage = 4; case kVideoMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *title_.videomessage_); break; } // .proto.LocationMessage locationMessage = 5; case kLocationMessage: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *title_.locationmessage_); break; } case TITLE_NOT_SET: { break; } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void HydratedFourRowTemplate::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.HydratedFourRowTemplate) GOOGLE_DCHECK_NE(&from, this); const HydratedFourRowTemplate* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.HydratedFourRowTemplate) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.HydratedFourRowTemplate) MergeFrom(*source); } } void HydratedFourRowTemplate::MergeFrom(const HydratedFourRowTemplate& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedFourRowTemplate) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; hydratedbuttons_.MergeFrom(from.hydratedbuttons_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { _internal_set_hydratedcontenttext(from._internal_hydratedcontenttext()); } if (cached_has_bits & 0x00000002u) { _internal_set_hydratedfootertext(from._internal_hydratedfootertext()); } if (cached_has_bits & 0x00000004u) { _internal_set_templateid(from._internal_templateid()); } } switch (from.title_case()) { case kDocumentMessage: { _internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom(from._internal_documentmessage()); break; } case kHydratedTitleText: { _internal_set_hydratedtitletext(from._internal_hydratedtitletext()); break; } case kImageMessage: { _internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom(from._internal_imagemessage()); break; } case kVideoMessage: { _internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom(from._internal_videomessage()); break; } case kLocationMessage: { _internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom(from._internal_locationmessage()); break; } case TITLE_NOT_SET: { break; } } } void HydratedFourRowTemplate::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.HydratedFourRowTemplate) if (&from == this) return; Clear(); MergeFrom(from); } void HydratedFourRowTemplate::CopyFrom(const HydratedFourRowTemplate& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.HydratedFourRowTemplate) if (&from == this) return; Clear(); MergeFrom(from); } bool HydratedFourRowTemplate::IsInitialized() const { return true; } void HydratedFourRowTemplate::InternalSwap(HydratedFourRowTemplate* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); hydratedbuttons_.InternalSwap(&other->hydratedbuttons_); hydratedcontenttext_.Swap(&other->hydratedcontenttext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); hydratedfootertext_.Swap(&other->hydratedfootertext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); templateid_.Swap(&other->templateid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(title_, other->title_); swap(_oneof_case_[0], other->_oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata HydratedFourRowTemplate::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class TemplateMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::proto::ContextInfo& contextinfo(const TemplateMessage* msg); static void set_has_contextinfo(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::proto::HydratedFourRowTemplate& hydratedtemplate(const TemplateMessage* msg); static void set_has_hydratedtemplate(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static const ::proto::FourRowTemplate& fourrowtemplate(const TemplateMessage* msg); static const ::proto::HydratedFourRowTemplate& hydratedfourrowtemplate(const TemplateMessage* msg); }; const ::proto::ContextInfo& TemplateMessage::_Internal::contextinfo(const TemplateMessage* msg) { return *msg->contextinfo_; } const ::proto::HydratedFourRowTemplate& TemplateMessage::_Internal::hydratedtemplate(const TemplateMessage* msg) { return *msg->hydratedtemplate_; } const ::proto::FourRowTemplate& TemplateMessage::_Internal::fourrowtemplate(const TemplateMessage* msg) { return *msg->format_.fourrowtemplate_; } const ::proto::HydratedFourRowTemplate& TemplateMessage::_Internal::hydratedfourrowtemplate(const TemplateMessage* msg) { return *msg->format_.hydratedfourrowtemplate_; } void TemplateMessage::set_allocated_fourrowtemplate(::proto::FourRowTemplate* fourrowtemplate) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_format(); if (fourrowtemplate) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(fourrowtemplate); if (message_arena != submessage_arena) { fourrowtemplate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, fourrowtemplate, submessage_arena); } set_has_fourrowtemplate(); format_.fourrowtemplate_ = fourrowtemplate; } // @@protoc_insertion_point(field_set_allocated:proto.TemplateMessage.fourRowTemplate) } void TemplateMessage::set_allocated_hydratedfourrowtemplate(::proto::HydratedFourRowTemplate* hydratedfourrowtemplate) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_format(); if (hydratedfourrowtemplate) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(hydratedfourrowtemplate); if (message_arena != submessage_arena) { hydratedfourrowtemplate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, hydratedfourrowtemplate, submessage_arena); } set_has_hydratedfourrowtemplate(); format_.hydratedfourrowtemplate_ = hydratedfourrowtemplate; } // @@protoc_insertion_point(field_set_allocated:proto.TemplateMessage.hydratedFourRowTemplate) } TemplateMessage::TemplateMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.TemplateMessage) } TemplateMessage::TemplateMessage(const TemplateMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); } else { contextinfo_ = nullptr; } if (from._internal_has_hydratedtemplate()) { hydratedtemplate_ = new ::proto::HydratedFourRowTemplate(*from.hydratedtemplate_); } else { hydratedtemplate_ = nullptr; } clear_has_format(); switch (from.format_case()) { case kFourRowTemplate: { _internal_mutable_fourrowtemplate()->::proto::FourRowTemplate::MergeFrom(from._internal_fourrowtemplate()); break; } case kHydratedFourRowTemplate: { _internal_mutable_hydratedfourrowtemplate()->::proto::HydratedFourRowTemplate::MergeFrom(from._internal_hydratedfourrowtemplate()); break; } case FORMAT_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:proto.TemplateMessage) } void TemplateMessage::SharedCtor() { ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&contextinfo_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&hydratedtemplate_) - reinterpret_cast(&contextinfo_)) + sizeof(hydratedtemplate_)); clear_has_format(); } TemplateMessage::~TemplateMessage() { // @@protoc_insertion_point(destructor:proto.TemplateMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void TemplateMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); if (this != internal_default_instance()) delete contextinfo_; if (this != internal_default_instance()) delete 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); } void TemplateMessage::clear_format() { // @@protoc_insertion_point(one_of_clear_start:proto.TemplateMessage) switch (format_case()) { case kFourRowTemplate: { if (GetArena() == nullptr) { delete format_.fourrowtemplate_; } break; } case kHydratedFourRowTemplate: { if (GetArena() == nullptr) { delete format_.hydratedfourrowtemplate_; } break; } case FORMAT_NOT_SET: { break; } } _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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(contextinfo_ != nullptr); contextinfo_->Clear(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(hydratedtemplate_ != nullptr); hydratedtemplate_->Clear(); } } clear_format(); _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* TemplateMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // .proto.FourRowTemplate fourRowTemplate = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_fourrowtemplate(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // .proto.HydratedFourRowTemplate hydratedFourRowTemplate = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_hydratedfourrowtemplate(), ptr); 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)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.HydratedFourRowTemplate hydratedTemplate = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_hydratedtemplate(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* TemplateMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (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); break; } case kHydratedFourRowTemplate: { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage( 2, _Internal::hydratedfourrowtemplate(this), target, stream); break; } default: ; } cached_has_bits = _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); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.TemplateMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000003u) { // optional .proto.ContextInfo contextInfo = 3; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *contextinfo_); } // optional .proto.HydratedFourRowTemplate hydratedTemplate = 4; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *hydratedtemplate_); } } switch (format_case()) { // .proto.FourRowTemplate fourRowTemplate = 1; case kFourRowTemplate: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *format_.fourrowtemplate_); break; } // .proto.HydratedFourRowTemplate hydratedFourRowTemplate = 2; case kHydratedFourRowTemplate: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *format_.hydratedfourrowtemplate_); break; } case FORMAT_NOT_SET: { break; } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void TemplateMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.TemplateMessage) GOOGLE_DCHECK_NE(&from, this); const TemplateMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.TemplateMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.TemplateMessage) MergeFrom(*source); } } void TemplateMessage::MergeFrom(const TemplateMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.TemplateMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); } if (cached_has_bits & 0x00000002u) { _internal_mutable_hydratedtemplate()->::proto::HydratedFourRowTemplate::MergeFrom(from._internal_hydratedtemplate()); } } switch (from.format_case()) { case kFourRowTemplate: { _internal_mutable_fourrowtemplate()->::proto::FourRowTemplate::MergeFrom(from._internal_fourrowtemplate()); break; } case kHydratedFourRowTemplate: { _internal_mutable_hydratedfourrowtemplate()->::proto::HydratedFourRowTemplate::MergeFrom(from._internal_hydratedfourrowtemplate()); break; } case FORMAT_NOT_SET: { break; } } } void TemplateMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.TemplateMessage) if (&from == this) return; Clear(); MergeFrom(from); } void TemplateMessage::CopyFrom(const TemplateMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.TemplateMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool TemplateMessage::IsInitialized() const { return true; } void TemplateMessage::InternalSwap(TemplateMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(TemplateMessage, hydratedtemplate_) + sizeof(TemplateMessage::hydratedtemplate_) - PROTOBUF_FIELD_OFFSET(TemplateMessage, contextinfo_)>( reinterpret_cast(&contextinfo_), reinterpret_cast(&other->contextinfo_)); swap(format_, other->format_); swap(_oneof_case_[0], other->_oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata TemplateMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class TemplateButtonReplyMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_selectedid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_selecteddisplaytext(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static const ::proto::ContextInfo& contextinfo(const TemplateButtonReplyMessage* msg); static void set_has_contextinfo(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_selectedindex(HasBits* has_bits) { (*has_bits)[0] |= 8u; } }; const ::proto::ContextInfo& TemplateButtonReplyMessage::_Internal::contextinfo(const TemplateButtonReplyMessage* msg) { return *msg->contextinfo_; } TemplateButtonReplyMessage::TemplateButtonReplyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.TemplateButtonReplyMessage) } TemplateButtonReplyMessage::TemplateButtonReplyMessage(const TemplateButtonReplyMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); selectedid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_selectedid()) { selectedid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_selectedid(), GetArena()); } selecteddisplaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_selecteddisplaytext()) { selecteddisplaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_selecteddisplaytext(), GetArena()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); } else { contextinfo_ = nullptr; } selectedindex_ = from.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(this) + static_cast( reinterpret_cast(&contextinfo_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&selectedindex_) - reinterpret_cast(&contextinfo_)) + sizeof(selectedindex_)); } TemplateButtonReplyMessage::~TemplateButtonReplyMessage() { // @@protoc_insertion_point(destructor:proto.TemplateButtonReplyMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void TemplateButtonReplyMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); selectedid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); selecteddisplaytext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete 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); } void TemplateButtonReplyMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.TemplateButtonReplyMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { selectedid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { selecteddisplaytext_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(contextinfo_ != nullptr); contextinfo_->Clear(); } } selectedindex_ = 0u; _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* TemplateButtonReplyMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string selectedId = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_selectedid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_selecteddisplaytext(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional uint32 selectedIndex = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { _Internal::set_has_selectedindex(&has_bits); selectedindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* TemplateButtonReplyMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string selectedId = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_selectedid().data(), static_cast(this->_internal_selectedid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.TemplateButtonReplyMessage.selectedId"); target = stream->WriteStringMaybeAliased( 1, this->_internal_selectedid(), target); } // optional string selectedDisplayText = 2; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_selecteddisplaytext().data(), static_cast(this->_internal_selecteddisplaytext().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.TemplateButtonReplyMessage.selectedDisplayText"); target = stream->WriteStringMaybeAliased( 2, this->_internal_selecteddisplaytext(), target); } // 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); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.TemplateButtonReplyMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional string selectedId = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_selectedid()); } // optional string selectedDisplayText = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_selecteddisplaytext()); } // optional .proto.ContextInfo contextInfo = 3; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *contextinfo_); } // optional uint32 selectedIndex = 4; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_selectedindex()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void TemplateButtonReplyMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.TemplateButtonReplyMessage) GOOGLE_DCHECK_NE(&from, this); const TemplateButtonReplyMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.TemplateButtonReplyMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.TemplateButtonReplyMessage) MergeFrom(*source); } } void TemplateButtonReplyMessage::MergeFrom(const TemplateButtonReplyMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.TemplateButtonReplyMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { _internal_set_selectedid(from._internal_selectedid()); } if (cached_has_bits & 0x00000002u) { _internal_set_selecteddisplaytext(from._internal_selecteddisplaytext()); } if (cached_has_bits & 0x00000004u) { _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); } if (cached_has_bits & 0x00000008u) { selectedindex_ = from.selectedindex_; } _has_bits_[0] |= cached_has_bits; } } void TemplateButtonReplyMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.TemplateButtonReplyMessage) if (&from == this) return; Clear(); MergeFrom(from); } void TemplateButtonReplyMessage::CopyFrom(const TemplateButtonReplyMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.TemplateButtonReplyMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool TemplateButtonReplyMessage::IsInitialized() const { return true; } void TemplateButtonReplyMessage::InternalSwap(TemplateButtonReplyMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); selectedid_.Swap(&other->selectedid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); selecteddisplaytext_.Swap(&other->selecteddisplaytext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(TemplateButtonReplyMessage, selectedindex_) + sizeof(TemplateButtonReplyMessage::selectedindex_) - PROTOBUF_FIELD_OFFSET(TemplateButtonReplyMessage, contextinfo_)>( reinterpret_cast(&contextinfo_), reinterpret_cast(&other->contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata TemplateButtonReplyMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class CatalogSnapshot::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::proto::ImageMessage& catalogimage(const CatalogSnapshot* msg); static void set_has_catalogimage(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_title(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_description(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; const ::proto::ImageMessage& CatalogSnapshot::_Internal::catalogimage(const CatalogSnapshot* msg) { return *msg->catalogimage_; } CatalogSnapshot::CatalogSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.CatalogSnapshot) } CatalogSnapshot::CatalogSnapshot(const CatalogSnapshot& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), GetArena()); } description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_description()) { description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), GetArena()); } if (from._internal_has_catalogimage()) { catalogimage_ = new ::proto::ImageMessage(*from.catalogimage_); } else { catalogimage_ = nullptr; } // @@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; } CatalogSnapshot::~CatalogSnapshot() { // @@protoc_insertion_point(destructor:proto.CatalogSnapshot) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void CatalogSnapshot::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete 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); } void CatalogSnapshot::Clear() { // @@protoc_insertion_point(message_clear_start:proto.CatalogSnapshot) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { title_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { description_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(catalogimage_ != nullptr); catalogimage_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* CatalogSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional .proto.ImageMessage catalogImage = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_catalogimage(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string title = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { auto str = _internal_mutable_title(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_description(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.CatalogSnapshot.description"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* CatalogSnapshot::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } // optional string title = 2; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_title().data(), static_cast(this->_internal_title().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.CatalogSnapshot.title"); target = stream->WriteStringMaybeAliased( 2, this->_internal_title(), target); } // optional string description = 3; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_description().data(), static_cast(this->_internal_description().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.CatalogSnapshot.description"); target = stream->WriteStringMaybeAliased( 3, this->_internal_description(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.CatalogSnapshot) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string title = 2; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_title()); } // optional string description = 3; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_description()); } // optional .proto.ImageMessage catalogImage = 1; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *catalogimage_); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void CatalogSnapshot::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.CatalogSnapshot) GOOGLE_DCHECK_NE(&from, this); const CatalogSnapshot* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.CatalogSnapshot) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.CatalogSnapshot) MergeFrom(*source); } } void CatalogSnapshot::MergeFrom(const CatalogSnapshot& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.CatalogSnapshot) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { _internal_set_title(from._internal_title()); } if (cached_has_bits & 0x00000002u) { _internal_set_description(from._internal_description()); } if (cached_has_bits & 0x00000004u) { _internal_mutable_catalogimage()->::proto::ImageMessage::MergeFrom(from._internal_catalogimage()); } } } void CatalogSnapshot::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.CatalogSnapshot) if (&from == this) return; Clear(); MergeFrom(from); } void CatalogSnapshot::CopyFrom(const CatalogSnapshot& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.CatalogSnapshot) if (&from == this) return; Clear(); MergeFrom(from); } bool CatalogSnapshot::IsInitialized() const { return true; } void CatalogSnapshot::InternalSwap(CatalogSnapshot* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); title_.Swap(&other->title_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); description_.Swap(&other->description_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(catalogimage_, other->catalogimage_); } ::PROTOBUF_NAMESPACE_ID::Metadata CatalogSnapshot::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class ProductSnapshot::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::proto::ImageMessage& productimage(const ProductSnapshot* msg); static void set_has_productimage(HasBits* has_bits) { (*has_bits)[0] |= 128u; } static void set_has_productid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_title(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_description(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_currencycode(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_priceamount1000(HasBits* has_bits) { (*has_bits)[0] |= 256u; } static void set_has_retailerid(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_url(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static void set_has_productimagecount(HasBits* has_bits) { (*has_bits)[0] |= 512u; } static void set_has_firstimageid(HasBits* has_bits) { (*has_bits)[0] |= 64u; } }; const ::proto::ImageMessage& ProductSnapshot::_Internal::productimage(const ProductSnapshot* msg) { return *msg->productimage_; } ProductSnapshot::ProductSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.ProductSnapshot) } ProductSnapshot::ProductSnapshot(const ProductSnapshot& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); productid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_productid()) { productid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_productid(), GetArena()); } title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), GetArena()); } description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_description()) { description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), GetArena()); } currencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_currencycode()) { currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_currencycode(), GetArena()); } retailerid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_retailerid()) { retailerid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_retailerid(), GetArena()); } url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_url()) { url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), GetArena()); } firstimageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_firstimageid()) { firstimageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_firstimageid(), GetArena()); } if (from._internal_has_productimage()) { productimage_ = new ::proto::ImageMessage(*from.productimage_); } else { productimage_ = nullptr; } ::memcpy(&priceamount1000_, &from.priceamount1000_, static_cast(reinterpret_cast(&productimagecount_) - reinterpret_cast(&priceamount1000_)) + sizeof(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(this) + static_cast( reinterpret_cast(&productimage_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&productimagecount_) - reinterpret_cast(&productimage_)) + sizeof(productimagecount_)); } ProductSnapshot::~ProductSnapshot() { // @@protoc_insertion_point(destructor:proto.ProductSnapshot) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void ProductSnapshot::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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_; } 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); } void ProductSnapshot::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ProductSnapshot) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { productid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { title_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { description_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { currencycode_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { retailerid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { url_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { firstimageid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { GOOGLE_DCHECK(productimage_ != nullptr); productimage_->Clear(); } } if (cached_has_bits & 0x00000300u) { ::memset(&priceamount1000_, 0, static_cast( reinterpret_cast(&productimagecount_) - reinterpret_cast(&priceamount1000_)) + sizeof(productimagecount_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ProductSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional .proto.ImageMessage productImage = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_productimage(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string productId = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { auto str = _internal_mutable_productid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_title(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_description(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_currencycode(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_priceamount1000(&has_bits); 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)) { auto str = _internal_mutable_retailerid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_url(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_productimagecount(&has_bits); 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)) { auto str = _internal_mutable_firstimageid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ProductSnapshot.firstImageId"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* ProductSnapshot::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } // optional string productId = 2; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_productid().data(), static_cast(this->_internal_productid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ProductSnapshot.productId"); target = stream->WriteStringMaybeAliased( 2, this->_internal_productid(), target); } // optional string title = 3; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_title().data(), static_cast(this->_internal_title().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ProductSnapshot.title"); target = stream->WriteStringMaybeAliased( 3, this->_internal_title(), target); } // optional string description = 4; if (cached_has_bits & 0x00000004u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_description().data(), static_cast(this->_internal_description().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ProductSnapshot.description"); target = stream->WriteStringMaybeAliased( 4, this->_internal_description(), target); } // optional string currencyCode = 5; if (cached_has_bits & 0x00000008u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_currencycode().data(), static_cast(this->_internal_currencycode().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ProductSnapshot.currencyCode"); target = stream->WriteStringMaybeAliased( 5, this->_internal_currencycode(), target); } // 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); } // optional string retailerId = 7; if (cached_has_bits & 0x00000010u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_retailerid().data(), static_cast(this->_internal_retailerid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ProductSnapshot.retailerId"); target = stream->WriteStringMaybeAliased( 7, this->_internal_retailerid(), target); } // optional string url = 8; if (cached_has_bits & 0x00000020u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_url().data(), static_cast(this->_internal_url().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ProductSnapshot.url"); target = stream->WriteStringMaybeAliased( 8, this->_internal_url(), target); } // 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); } // optional string firstImageId = 11; if (cached_has_bits & 0x00000040u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_firstimageid().data(), static_cast(this->_internal_firstimageid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ProductSnapshot.firstImageId"); target = stream->WriteStringMaybeAliased( 11, this->_internal_firstimageid(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ProductSnapshot) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string productId = 2; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_productid()); } // optional string title = 3; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_title()); } // optional string description = 4; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_description()); } // optional string currencyCode = 5; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_currencycode()); } // optional string retailerId = 7; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_retailerid()); } // optional string url = 8; if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_url()); } // optional string firstImageId = 11; if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_firstimageid()); } // optional .proto.ImageMessage productImage = 1; if (cached_has_bits & 0x00000080u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *productimage_); } } if (cached_has_bits & 0x00000300u) { // optional int64 priceAmount1000 = 6; if (cached_has_bits & 0x00000100u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_priceamount1000()); } // optional uint32 productImageCount = 9; if (cached_has_bits & 0x00000200u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_productimagecount()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ProductSnapshot::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.ProductSnapshot) GOOGLE_DCHECK_NE(&from, this); const ProductSnapshot* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.ProductSnapshot) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.ProductSnapshot) MergeFrom(*source); } } void ProductSnapshot::MergeFrom(const ProductSnapshot& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ProductSnapshot) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { _internal_set_productid(from._internal_productid()); } if (cached_has_bits & 0x00000002u) { _internal_set_title(from._internal_title()); } if (cached_has_bits & 0x00000004u) { _internal_set_description(from._internal_description()); } if (cached_has_bits & 0x00000008u) { _internal_set_currencycode(from._internal_currencycode()); } if (cached_has_bits & 0x00000010u) { _internal_set_retailerid(from._internal_retailerid()); } if (cached_has_bits & 0x00000020u) { _internal_set_url(from._internal_url()); } if (cached_has_bits & 0x00000040u) { _internal_set_firstimageid(from._internal_firstimageid()); } if (cached_has_bits & 0x00000080u) { _internal_mutable_productimage()->::proto::ImageMessage::MergeFrom(from._internal_productimage()); } } if (cached_has_bits & 0x00000300u) { if (cached_has_bits & 0x00000100u) { priceamount1000_ = from.priceamount1000_; } if (cached_has_bits & 0x00000200u) { productimagecount_ = from.productimagecount_; } _has_bits_[0] |= cached_has_bits; } } void ProductSnapshot::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.ProductSnapshot) if (&from == this) return; Clear(); MergeFrom(from); } void ProductSnapshot::CopyFrom(const ProductSnapshot& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.ProductSnapshot) if (&from == this) return; Clear(); MergeFrom(from); } bool ProductSnapshot::IsInitialized() const { return true; } void ProductSnapshot::InternalSwap(ProductSnapshot* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); productid_.Swap(&other->productid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); title_.Swap(&other->title_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); description_.Swap(&other->description_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); currencycode_.Swap(&other->currencycode_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); retailerid_.Swap(&other->retailerid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); url_.Swap(&other->url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); firstimageid_.Swap(&other->firstimageid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ProductSnapshot, productimagecount_) + sizeof(ProductSnapshot::productimagecount_) - PROTOBUF_FIELD_OFFSET(ProductSnapshot, productimage_)>( reinterpret_cast(&productimage_), reinterpret_cast(&other->productimage_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ProductSnapshot::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class ProductMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::proto::ProductSnapshot& product(const ProductMessage* msg); static void set_has_product(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_businessownerjid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::proto::CatalogSnapshot& catalog(const ProductMessage* msg); static void set_has_catalog(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static const ::proto::ContextInfo& contextinfo(const ProductMessage* msg); static void set_has_contextinfo(HasBits* has_bits) { (*has_bits)[0] |= 8u; } }; const ::proto::ProductSnapshot& ProductMessage::_Internal::product(const ProductMessage* msg) { return *msg->product_; } const ::proto::CatalogSnapshot& ProductMessage::_Internal::catalog(const ProductMessage* msg) { return *msg->catalog_; } const ::proto::ContextInfo& ProductMessage::_Internal::contextinfo(const ProductMessage* msg) { return *msg->contextinfo_; } ProductMessage::ProductMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.ProductMessage) } ProductMessage::ProductMessage(const ProductMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); businessownerjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_businessownerjid()) { businessownerjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_businessownerjid(), GetArena()); } if (from._internal_has_product()) { product_ = new ::proto::ProductSnapshot(*from.product_); } else { product_ = nullptr; } if (from._internal_has_catalog()) { catalog_ = new ::proto::CatalogSnapshot(*from.catalog_); } else { catalog_ = nullptr; } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); } else { contextinfo_ = nullptr; } // @@protoc_insertion_point(copy_constructor:proto.ProductMessage) } void ProductMessage::SharedCtor() { businessownerjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&product_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&contextinfo_) - reinterpret_cast(&product_)) + sizeof(contextinfo_)); } ProductMessage::~ProductMessage() { // @@protoc_insertion_point(destructor:proto.ProductMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void ProductMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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_; } 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); } void ProductMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ProductMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { businessownerjid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { GOOGLE_DCHECK(product_ != nullptr); product_->Clear(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(catalog_ != nullptr); catalog_->Clear(); } if (cached_has_bits & 0x00000008u) { GOOGLE_DCHECK(contextinfo_ != nullptr); contextinfo_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ProductMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional .proto.ProductSnapshot product = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_product(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string businessOwnerJid = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { auto str = _internal_mutable_businessownerjid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_catalog(), 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)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* ProductMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } // optional string businessOwnerJid = 2; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_businessownerjid().data(), static_cast(this->_internal_businessownerjid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ProductMessage.businessOwnerJid"); target = stream->WriteStringMaybeAliased( 2, this->_internal_businessownerjid(), target); } // 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); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ProductMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional string businessOwnerJid = 2; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_businessownerjid()); } // optional .proto.ProductSnapshot product = 1; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *product_); } // optional .proto.CatalogSnapshot catalog = 4; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *catalog_); } // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000008u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *contextinfo_); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ProductMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.ProductMessage) GOOGLE_DCHECK_NE(&from, this); const ProductMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.ProductMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.ProductMessage) MergeFrom(*source); } } void ProductMessage::MergeFrom(const ProductMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ProductMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { _internal_set_businessownerjid(from._internal_businessownerjid()); } if (cached_has_bits & 0x00000002u) { _internal_mutable_product()->::proto::ProductSnapshot::MergeFrom(from._internal_product()); } if (cached_has_bits & 0x00000004u) { _internal_mutable_catalog()->::proto::CatalogSnapshot::MergeFrom(from._internal_catalog()); } if (cached_has_bits & 0x00000008u) { _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); } } } void ProductMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.ProductMessage) if (&from == this) return; Clear(); MergeFrom(from); } void ProductMessage::CopyFrom(const ProductMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.ProductMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool ProductMessage::IsInitialized() const { return true; } void ProductMessage::InternalSwap(ProductMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); businessownerjid_.Swap(&other->businessownerjid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ProductMessage, contextinfo_) + sizeof(ProductMessage::contextinfo_) - PROTOBUF_FIELD_OFFSET(ProductMessage, product_)>( reinterpret_cast(&product_), reinterpret_cast(&other->product_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ProductMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class OrderMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_orderid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_thumbnail(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_itemcount(HasBits* has_bits) { (*has_bits)[0] |= 512u; } static void set_has_status(HasBits* has_bits) { (*has_bits)[0] |= 1024u; } static void set_has_surface(HasBits* has_bits) { (*has_bits)[0] |= 2048u; } static void set_has_message(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_ordertitle(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_sellerjid(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static void set_has_token(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static void set_has_totalamount1000(HasBits* has_bits) { (*has_bits)[0] |= 256u; } static void set_has_totalcurrencycode(HasBits* has_bits) { (*has_bits)[0] |= 64u; } static const ::proto::ContextInfo& contextinfo(const OrderMessage* msg); static void set_has_contextinfo(HasBits* has_bits) { (*has_bits)[0] |= 128u; } }; const ::proto::ContextInfo& OrderMessage::_Internal::contextinfo(const OrderMessage* msg) { return *msg->contextinfo_; } OrderMessage::OrderMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.OrderMessage) } OrderMessage::OrderMessage(const OrderMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); orderid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_orderid()) { orderid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_orderid(), GetArena()); } thumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnail()) { thumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnail(), GetArena()); } message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_message()) { message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message(), GetArena()); } ordertitle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_ordertitle()) { ordertitle_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ordertitle(), GetArena()); } sellerjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_sellerjid()) { sellerjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sellerjid(), GetArena()); } token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_token()) { token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_token(), GetArena()); } totalcurrencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_totalcurrencycode()) { totalcurrencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_totalcurrencycode(), GetArena()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); } else { contextinfo_ = nullptr; } ::memcpy(&totalamount1000_, &from.totalamount1000_, static_cast(reinterpret_cast(&surface_) - reinterpret_cast(&totalamount1000_)) + sizeof(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(this) + static_cast( reinterpret_cast(&contextinfo_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&itemcount_) - reinterpret_cast(&contextinfo_)) + sizeof(itemcount_)); status_ = 1; surface_ = 1; } OrderMessage::~OrderMessage() { // @@protoc_insertion_point(destructor:proto.OrderMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void OrderMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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_; } 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); } void OrderMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.OrderMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { orderid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { thumbnail_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { message_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { ordertitle_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { sellerjid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { token_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000040u) { totalcurrencycode_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000080u) { GOOGLE_DCHECK(contextinfo_ != nullptr); contextinfo_->Clear(); } } if (cached_has_bits & 0x00000f00u) { ::memset(&totalamount1000_, 0, static_cast( reinterpret_cast(&itemcount_) - reinterpret_cast(&totalamount1000_)) + sizeof(itemcount_)); status_ = 1; surface_ = 1; } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* OrderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string orderId = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_orderid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_thumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_itemcount(&has_bits); itemcount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&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); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::OrderMessage_OrderMessageOrderStatus_IsValid(val))) { _internal_set_status(static_cast<::proto::OrderMessage_OrderMessageOrderStatus>(val)); } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); } } else goto handle_unusual; 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); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::OrderMessage_OrderMessageOrderSurface_IsValid(val))) { _internal_set_surface(static_cast<::proto::OrderMessage_OrderMessageOrderSurface>(val)); } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); } } else goto handle_unusual; continue; // optional string message = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { auto str = _internal_mutable_message(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_ordertitle(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_sellerjid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_token(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_totalamount1000(&has_bits); 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)) { auto str = _internal_mutable_totalcurrencycode(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* OrderMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string orderId = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_orderid().data(), static_cast(this->_internal_orderid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.OrderMessage.orderId"); target = stream->WriteStringMaybeAliased( 1, this->_internal_orderid(), target); } // optional bytes thumbnail = 2; if (cached_has_bits & 0x00000002u) { target = stream->WriteBytesMaybeAliased( 2, this->_internal_thumbnail(), target); } // 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); } // optional .proto.OrderMessage.OrderMessageOrderStatus status = 4; if (cached_has_bits & 0x00000400u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::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( 5, this->_internal_surface(), target); } // optional string message = 6; if (cached_has_bits & 0x00000004u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_message().data(), static_cast(this->_internal_message().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.OrderMessage.message"); target = stream->WriteStringMaybeAliased( 6, this->_internal_message(), target); } // optional string orderTitle = 7; if (cached_has_bits & 0x00000008u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_ordertitle().data(), static_cast(this->_internal_ordertitle().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.OrderMessage.orderTitle"); target = stream->WriteStringMaybeAliased( 7, this->_internal_ordertitle(), target); } // optional string sellerJid = 8; if (cached_has_bits & 0x00000010u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_sellerjid().data(), static_cast(this->_internal_sellerjid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.OrderMessage.sellerJid"); target = stream->WriteStringMaybeAliased( 8, this->_internal_sellerjid(), target); } // optional string token = 9; if (cached_has_bits & 0x00000020u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_token().data(), static_cast(this->_internal_token().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.OrderMessage.token"); target = stream->WriteStringMaybeAliased( 9, this->_internal_token(), target); } // 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); } // optional string totalCurrencyCode = 11; if (cached_has_bits & 0x00000040u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_totalcurrencycode().data(), static_cast(this->_internal_totalcurrencycode().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.OrderMessage.totalCurrencyCode"); target = stream->WriteStringMaybeAliased( 11, this->_internal_totalcurrencycode(), 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.OrderMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x000000ffu) { // optional string orderId = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_orderid()); } // optional bytes thumbnail = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_thumbnail()); } // optional string message = 6; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_message()); } // optional string orderTitle = 7; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_ordertitle()); } // optional string sellerJid = 8; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_sellerjid()); } // optional string token = 9; if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_token()); } // optional string totalCurrencyCode = 11; if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_totalcurrencycode()); } // optional .proto.ContextInfo contextInfo = 17; if (cached_has_bits & 0x00000080u) { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *contextinfo_); } } if (cached_has_bits & 0x00000f00u) { // optional int64 totalAmount1000 = 10; if (cached_has_bits & 0x00000100u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_totalamount1000()); } // optional int32 itemCount = 3; if (cached_has_bits & 0x00000200u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( 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()); } // optional .proto.OrderMessage.OrderMessageOrderSurface surface = 5; if (cached_has_bits & 0x00000800u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_surface()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void OrderMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.OrderMessage) GOOGLE_DCHECK_NE(&from, this); const OrderMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.OrderMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.OrderMessage) MergeFrom(*source); } } void OrderMessage::MergeFrom(const OrderMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.OrderMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { _internal_set_orderid(from._internal_orderid()); } if (cached_has_bits & 0x00000002u) { _internal_set_thumbnail(from._internal_thumbnail()); } if (cached_has_bits & 0x00000004u) { _internal_set_message(from._internal_message()); } if (cached_has_bits & 0x00000008u) { _internal_set_ordertitle(from._internal_ordertitle()); } if (cached_has_bits & 0x00000010u) { _internal_set_sellerjid(from._internal_sellerjid()); } if (cached_has_bits & 0x00000020u) { _internal_set_token(from._internal_token()); } if (cached_has_bits & 0x00000040u) { _internal_set_totalcurrencycode(from._internal_totalcurrencycode()); } if (cached_has_bits & 0x00000080u) { _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); } } if (cached_has_bits & 0x00000f00u) { if (cached_has_bits & 0x00000100u) { totalamount1000_ = from.totalamount1000_; } if (cached_has_bits & 0x00000200u) { itemcount_ = from.itemcount_; } if (cached_has_bits & 0x00000400u) { status_ = from.status_; } if (cached_has_bits & 0x00000800u) { surface_ = from.surface_; } _has_bits_[0] |= cached_has_bits; } } void OrderMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.OrderMessage) if (&from == this) return; Clear(); MergeFrom(from); } void OrderMessage::CopyFrom(const OrderMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.OrderMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool OrderMessage::IsInitialized() const { return true; } void OrderMessage::InternalSwap(OrderMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); orderid_.Swap(&other->orderid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); thumbnail_.Swap(&other->thumbnail_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); message_.Swap(&other->message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ordertitle_.Swap(&other->ordertitle_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); sellerjid_.Swap(&other->sellerjid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); token_.Swap(&other->token_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); totalcurrencycode_.Swap(&other->totalcurrencycode_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(OrderMessage, itemcount_) + sizeof(OrderMessage::itemcount_) - PROTOBUF_FIELD_OFFSET(OrderMessage, contextinfo_)>( reinterpret_cast(&contextinfo_), reinterpret_cast(&other->contextinfo_)); swap(status_, other->status_); swap(surface_, other->surface_); } ::PROTOBUF_NAMESPACE_ID::Metadata OrderMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class Row::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_title(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_description(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_rowid(HasBits* has_bits) { (*has_bits)[0] |= 4u; } }; Row::Row(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.Row) } Row::Row(const Row& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), GetArena()); } description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_description()) { description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), GetArena()); } rowid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_rowid()) { rowid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_rowid(), GetArena()); } // @@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()); } Row::~Row() { // @@protoc_insertion_point(destructor:proto.Row) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Row::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); rowid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void Row::Clear() { // @@protoc_insertion_point(message_clear_start:proto.Row) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { title_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { description_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { rowid_.ClearNonDefaultToEmpty(); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Row::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string title = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_title(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_description(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_rowid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Row.rowId"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* Row::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string title = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_title().data(), static_cast(this->_internal_title().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.Row.title"); target = stream->WriteStringMaybeAliased( 1, this->_internal_title(), target); } // optional string description = 2; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_description().data(), static_cast(this->_internal_description().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.Row.description"); target = stream->WriteStringMaybeAliased( 2, this->_internal_description(), target); } // optional string rowId = 3; if (cached_has_bits & 0x00000004u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_rowid().data(), static_cast(this->_internal_rowid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.Row.rowId"); target = stream->WriteStringMaybeAliased( 3, this->_internal_rowid(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.Row) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string title = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_title()); } // optional string description = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_description()); } // optional string rowId = 3; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_rowid()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Row::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.Row) GOOGLE_DCHECK_NE(&from, this); const Row* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.Row) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.Row) MergeFrom(*source); } } void Row::MergeFrom(const Row& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.Row) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { _internal_set_title(from._internal_title()); } if (cached_has_bits & 0x00000002u) { _internal_set_description(from._internal_description()); } if (cached_has_bits & 0x00000004u) { _internal_set_rowid(from._internal_rowid()); } } } void Row::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.Row) if (&from == this) return; Clear(); MergeFrom(from); } void Row::CopyFrom(const Row& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.Row) if (&from == this) return; Clear(); MergeFrom(from); } bool Row::IsInitialized() const { return true; } void Row::InternalSwap(Row* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); title_.Swap(&other->title_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); description_.Swap(&other->description_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); rowid_.Swap(&other->rowid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata Row::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class Section::_Internal { public: using HasBits = decltype(std::declval
()._has_bits_); static void set_has_title(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; Section::Section(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), rows_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.Section) } Section::Section(const Section& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_), rows_(from.rows_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), GetArena()); } // @@protoc_insertion_point(copy_constructor:proto.Section) } void Section::SharedCtor() { title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } Section::~Section() { // @@protoc_insertion_point(destructor:proto.Section) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void Section::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void Section::Clear() { // @@protoc_insertion_point(message_clear_start:proto.Section) ::PROTOBUF_NAMESPACE_ID::uint32 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]; if (cached_has_bits & 0x00000001u) { title_.ClearNonDefaultToEmpty(); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* Section::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string title = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_title(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_rows(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* Section::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string title = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_title().data(), static_cast(this->_internal_title().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.Section.title"); target = stream->WriteStringMaybeAliased( 1, this->_internal_title(), target); } // repeated .proto.Row rows = 2; for (unsigned int i = 0, n = static_cast(this->_internal_rows_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, this->_internal_rows(i), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.Section) return target; } 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; // 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_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // optional string title = 1; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_title()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Section::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.Section) GOOGLE_DCHECK_NE(&from, this); const Section* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated
( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.Section) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.Section) MergeFrom(*source); } } void Section::MergeFrom(const Section& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.Section) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; rows_.MergeFrom(from.rows_); if (from._internal_has_title()) { _internal_set_title(from._internal_title()); } } void Section::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.Section) if (&from == this) return; Clear(); MergeFrom(from); } void Section::CopyFrom(const Section& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.Section) if (&from == this) return; Clear(); MergeFrom(from); } bool Section::IsInitialized() const { return true; } void Section::InternalSwap(Section* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); rows_.InternalSwap(&other->rows_); title_.Swap(&other->title_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata Section::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class ListMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_title(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_description(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_buttontext(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_listtype(HasBits* has_bits) { (*has_bits)[0] |= 8u; } }; ListMessage::ListMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), sections_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.ListMessage) } ListMessage::ListMessage(const ListMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_), sections_(from.sections_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), GetArena()); } description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_description()) { description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), GetArena()); } buttontext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_buttontext()) { buttontext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_buttontext(), GetArena()); } listtype_ = from.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; } ListMessage::~ListMessage() { // @@protoc_insertion_point(destructor:proto.ListMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void ListMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); buttontext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void ListMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ListMessage) ::PROTOBUF_NAMESPACE_ID::uint32 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]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { title_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { description_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { buttontext_.ClearNonDefaultToEmpty(); } } listtype_ = 0; _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ListMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string title = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_title(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_description(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_buttontext(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::ListMessage_ListMessageListType_IsValid(val))) { _internal_set_listtype(static_cast<::proto::ListMessage_ListMessageListType>(val)); } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); } } else goto handle_unusual; continue; // repeated .proto.Section sections = 5; case 5: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_sections(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* ListMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string title = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_title().data(), static_cast(this->_internal_title().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ListMessage.title"); target = stream->WriteStringMaybeAliased( 1, this->_internal_title(), target); } // optional string description = 2; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_description().data(), static_cast(this->_internal_description().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ListMessage.description"); target = stream->WriteStringMaybeAliased( 2, this->_internal_description(), target); } // optional string buttonText = 3; if (cached_has_bits & 0x00000004u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_buttontext().data(), static_cast(this->_internal_buttontext().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ListMessage.buttonText"); target = stream->WriteStringMaybeAliased( 3, this->_internal_buttontext(), target); } // optional .proto.ListMessage.ListMessageListType listType = 4; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 4, this->_internal_listtype(), target); } // repeated .proto.Section sections = 5; for (unsigned int i = 0, n = static_cast(this->_internal_sections_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(5, this->_internal_sections(i), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ListMessage) return target; } 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; // 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_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { // optional string title = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_title()); } // optional string description = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_description()); } // optional string buttonText = 3; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_buttontext()); } // optional .proto.ListMessage.ListMessageListType listType = 4; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_listtype()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ListMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.ListMessage) GOOGLE_DCHECK_NE(&from, this); const ListMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.ListMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.ListMessage) MergeFrom(*source); } } void ListMessage::MergeFrom(const ListMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ListMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; sections_.MergeFrom(from.sections_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { _internal_set_title(from._internal_title()); } if (cached_has_bits & 0x00000002u) { _internal_set_description(from._internal_description()); } if (cached_has_bits & 0x00000004u) { _internal_set_buttontext(from._internal_buttontext()); } if (cached_has_bits & 0x00000008u) { listtype_ = from.listtype_; } _has_bits_[0] |= cached_has_bits; } } void ListMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.ListMessage) if (&from == this) return; Clear(); MergeFrom(from); } void ListMessage::CopyFrom(const ListMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.ListMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool ListMessage::IsInitialized() const { return true; } void ListMessage::InternalSwap(ListMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); sections_.InternalSwap(&other->sections_); title_.Swap(&other->title_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); description_.Swap(&other->description_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); buttontext_.Swap(&other->buttontext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(listtype_, other->listtype_); } ::PROTOBUF_NAMESPACE_ID::Metadata ListMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class SingleSelectReply::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_selectedrowid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; SingleSelectReply::SingleSelectReply(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.SingleSelectReply) } SingleSelectReply::SingleSelectReply(const SingleSelectReply& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); selectedrowid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_selectedrowid()) { selectedrowid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_selectedrowid(), GetArena()); } // @@protoc_insertion_point(copy_constructor:proto.SingleSelectReply) } void SingleSelectReply::SharedCtor() { selectedrowid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } SingleSelectReply::~SingleSelectReply() { // @@protoc_insertion_point(destructor:proto.SingleSelectReply) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void SingleSelectReply::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); selectedrowid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void SingleSelectReply::Clear() { // @@protoc_insertion_point(message_clear_start:proto.SingleSelectReply) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { selectedrowid_.ClearNonDefaultToEmpty(); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* SingleSelectReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string selectedRowId = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_selectedrowid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.SingleSelectReply.selectedRowId"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* SingleSelectReply::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string selectedRowId = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_selectedrowid().data(), static_cast(this->_internal_selectedrowid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.SingleSelectReply.selectedRowId"); target = stream->WriteStringMaybeAliased( 1, this->_internal_selectedrowid(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.SingleSelectReply) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional string selectedRowId = 1; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_selectedrowid()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void SingleSelectReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.SingleSelectReply) GOOGLE_DCHECK_NE(&from, this); const SingleSelectReply* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.SingleSelectReply) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.SingleSelectReply) MergeFrom(*source); } } void SingleSelectReply::MergeFrom(const SingleSelectReply& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.SingleSelectReply) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_selectedrowid()) { _internal_set_selectedrowid(from._internal_selectedrowid()); } } void SingleSelectReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.SingleSelectReply) if (&from == this) return; Clear(); MergeFrom(from); } void SingleSelectReply::CopyFrom(const SingleSelectReply& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.SingleSelectReply) if (&from == this) return; Clear(); MergeFrom(from); } bool SingleSelectReply::IsInitialized() const { return true; } void SingleSelectReply::InternalSwap(SingleSelectReply* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); selectedrowid_.Swap(&other->selectedrowid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata SingleSelectReply::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class ListResponseMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_title(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_listtype(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static const ::proto::SingleSelectReply& singleselectreply(const ListResponseMessage* msg); static void set_has_singleselectreply(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static const ::proto::ContextInfo& contextinfo(const ListResponseMessage* msg); static void set_has_contextinfo(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_description(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; const ::proto::SingleSelectReply& ListResponseMessage::_Internal::singleselectreply(const ListResponseMessage* msg) { return *msg->singleselectreply_; } const ::proto::ContextInfo& ListResponseMessage::_Internal::contextinfo(const ListResponseMessage* msg) { return *msg->contextinfo_; } ListResponseMessage::ListResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.ListResponseMessage) } ListResponseMessage::ListResponseMessage(const ListResponseMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), GetArena()); } description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_description()) { description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), GetArena()); } if (from._internal_has_singleselectreply()) { singleselectreply_ = new ::proto::SingleSelectReply(*from.singleselectreply_); } else { singleselectreply_ = nullptr; } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); } else { contextinfo_ = nullptr; } listtype_ = from.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(this) + static_cast( reinterpret_cast(&singleselectreply_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&listtype_) - reinterpret_cast(&singleselectreply_)) + sizeof(listtype_)); } ListResponseMessage::~ListResponseMessage() { // @@protoc_insertion_point(destructor:proto.ListResponseMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void ListResponseMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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_; } 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); } void ListResponseMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ListResponseMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { title_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { description_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(singleselectreply_ != nullptr); singleselectreply_->Clear(); } if (cached_has_bits & 0x00000008u) { GOOGLE_DCHECK(contextinfo_ != nullptr); contextinfo_->Clear(); } } listtype_ = 0; _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ListResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string title = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_title(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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); CHK_(ptr); if (PROTOBUF_PREDICT_TRUE(::proto::ListResponseMessage_ListResponseMessageListType_IsValid(val))) { _internal_set_listtype(static_cast<::proto::ListResponseMessage_ListResponseMessageListType>(val)); } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); } } else goto handle_unusual; continue; // optional .proto.SingleSelectReply singleSelectReply = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_singleselectreply(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional .proto.ContextInfo contextInfo = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); 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)) { auto str = _internal_mutable_description(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ListResponseMessage.description"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* ListResponseMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string title = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_title().data(), static_cast(this->_internal_title().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ListResponseMessage.title"); target = stream->WriteStringMaybeAliased( 1, this->_internal_title(), target); } // optional .proto.ListResponseMessage.ListResponseMessageListType listType = 2; if (cached_has_bits & 0x00000010u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::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); } // 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); } // optional string description = 5; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_description().data(), static_cast(this->_internal_description().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ListResponseMessage.description"); target = stream->WriteStringMaybeAliased( 5, this->_internal_description(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ListResponseMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000001fu) { // optional string title = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_title()); } // optional string description = 5; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_description()); } // optional .proto.SingleSelectReply singleSelectReply = 3; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *singleselectreply_); } // optional .proto.ContextInfo contextInfo = 4; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *contextinfo_); } // optional .proto.ListResponseMessage.ListResponseMessageListType listType = 2; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_listtype()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ListResponseMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.ListResponseMessage) GOOGLE_DCHECK_NE(&from, this); const ListResponseMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.ListResponseMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.ListResponseMessage) MergeFrom(*source); } } void ListResponseMessage::MergeFrom(const ListResponseMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ListResponseMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000001fu) { if (cached_has_bits & 0x00000001u) { _internal_set_title(from._internal_title()); } if (cached_has_bits & 0x00000002u) { _internal_set_description(from._internal_description()); } if (cached_has_bits & 0x00000004u) { _internal_mutable_singleselectreply()->::proto::SingleSelectReply::MergeFrom(from._internal_singleselectreply()); } if (cached_has_bits & 0x00000008u) { _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); } if (cached_has_bits & 0x00000010u) { listtype_ = from.listtype_; } _has_bits_[0] |= cached_has_bits; } } void ListResponseMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.ListResponseMessage) if (&from == this) return; Clear(); MergeFrom(from); } void ListResponseMessage::CopyFrom(const ListResponseMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.ListResponseMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool ListResponseMessage::IsInitialized() const { return true; } void ListResponseMessage::InternalSwap(ListResponseMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); title_.Swap(&other->title_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); description_.Swap(&other->description_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ListResponseMessage, listtype_) + sizeof(ListResponseMessage::listtype_) - PROTOBUF_FIELD_OFFSET(ListResponseMessage, singleselectreply_)>( reinterpret_cast(&singleselectreply_), reinterpret_cast(&other->singleselectreply_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ListResponseMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class GroupInviteMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_groupjid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_invitecode(HasBits* has_bits) { (*has_bits)[0] |= 2u; } static void set_has_inviteexpiration(HasBits* has_bits) { (*has_bits)[0] |= 64u; } static void set_has_groupname(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_jpegthumbnail(HasBits* has_bits) { (*has_bits)[0] |= 8u; } static void set_has_caption(HasBits* has_bits) { (*has_bits)[0] |= 16u; } static const ::proto::ContextInfo& contextinfo(const GroupInviteMessage* msg); static void set_has_contextinfo(HasBits* has_bits) { (*has_bits)[0] |= 32u; } }; const ::proto::ContextInfo& GroupInviteMessage::_Internal::contextinfo(const GroupInviteMessage* msg) { return *msg->contextinfo_; } GroupInviteMessage::GroupInviteMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.GroupInviteMessage) } GroupInviteMessage::GroupInviteMessage(const GroupInviteMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); groupjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_groupjid()) { groupjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_groupjid(), GetArena()); } invitecode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_invitecode()) { invitecode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_invitecode(), GetArena()); } groupname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_groupname()) { groupname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_groupname(), GetArena()); } jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_jpegthumbnail()) { jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), GetArena()); } caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_caption()) { caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_caption(), GetArena()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); } else { contextinfo_ = nullptr; } inviteexpiration_ = from.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(this) + static_cast( reinterpret_cast(&contextinfo_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&inviteexpiration_) - reinterpret_cast(&contextinfo_)) + sizeof(inviteexpiration_)); } GroupInviteMessage::~GroupInviteMessage() { // @@protoc_insertion_point(destructor:proto.GroupInviteMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void GroupInviteMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == 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_; } 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); } void GroupInviteMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.GroupInviteMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000003fu) { if (cached_has_bits & 0x00000001u) { groupjid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { invitecode_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { groupname_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000008u) { jpegthumbnail_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000010u) { caption_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000020u) { GOOGLE_DCHECK(contextinfo_ != nullptr); contextinfo_->Clear(); } } inviteexpiration_ = PROTOBUF_LONGLONG(0); _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* GroupInviteMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string groupJid = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_groupjid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_invitecode(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_inviteexpiration(&has_bits); 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)) { auto str = _internal_mutable_groupname(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_jpegthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::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)) { auto str = _internal_mutable_caption(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* GroupInviteMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string groupJid = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_groupjid().data(), static_cast(this->_internal_groupjid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.GroupInviteMessage.groupJid"); target = stream->WriteStringMaybeAliased( 1, this->_internal_groupjid(), target); } // optional string inviteCode = 2; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_invitecode().data(), static_cast(this->_internal_invitecode().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.GroupInviteMessage.inviteCode"); target = stream->WriteStringMaybeAliased( 2, this->_internal_invitecode(), target); } // 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); } // optional string groupName = 4; if (cached_has_bits & 0x00000004u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_groupname().data(), static_cast(this->_internal_groupname().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.GroupInviteMessage.groupName"); target = stream->WriteStringMaybeAliased( 4, this->_internal_groupname(), target); } // optional bytes jpegThumbnail = 5; if (cached_has_bits & 0x00000008u) { target = stream->WriteBytesMaybeAliased( 5, this->_internal_jpegthumbnail(), target); } // optional string caption = 6; if (cached_has_bits & 0x00000010u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_caption().data(), static_cast(this->_internal_caption().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.GroupInviteMessage.caption"); target = stream->WriteStringMaybeAliased( 6, this->_internal_caption(), target); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.GroupInviteMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x0000007fu) { // optional string groupJid = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_groupjid()); } // optional string inviteCode = 2; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_invitecode()); } // optional string groupName = 4; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_groupname()); } // optional bytes jpegThumbnail = 5; if (cached_has_bits & 0x00000008u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( this->_internal_jpegthumbnail()); } // optional string caption = 6; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_caption()); } // optional .proto.ContextInfo contextInfo = 7; if (cached_has_bits & 0x00000020u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *contextinfo_); } // optional int64 inviteExpiration = 3; if (cached_has_bits & 0x00000040u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_inviteexpiration()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void GroupInviteMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.GroupInviteMessage) GOOGLE_DCHECK_NE(&from, this); const GroupInviteMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.GroupInviteMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.GroupInviteMessage) MergeFrom(*source); } } void GroupInviteMessage::MergeFrom(const GroupInviteMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.GroupInviteMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x0000007fu) { if (cached_has_bits & 0x00000001u) { _internal_set_groupjid(from._internal_groupjid()); } if (cached_has_bits & 0x00000002u) { _internal_set_invitecode(from._internal_invitecode()); } if (cached_has_bits & 0x00000004u) { _internal_set_groupname(from._internal_groupname()); } if (cached_has_bits & 0x00000008u) { _internal_set_jpegthumbnail(from._internal_jpegthumbnail()); } if (cached_has_bits & 0x00000010u) { _internal_set_caption(from._internal_caption()); } if (cached_has_bits & 0x00000020u) { _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); } if (cached_has_bits & 0x00000040u) { inviteexpiration_ = from.inviteexpiration_; } _has_bits_[0] |= cached_has_bits; } } void GroupInviteMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.GroupInviteMessage) if (&from == this) return; Clear(); MergeFrom(from); } void GroupInviteMessage::CopyFrom(const GroupInviteMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.GroupInviteMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool GroupInviteMessage::IsInitialized() const { return true; } void GroupInviteMessage::InternalSwap(GroupInviteMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); groupjid_.Swap(&other->groupjid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); invitecode_.Swap(&other->invitecode_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); groupname_.Swap(&other->groupname_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); jpegthumbnail_.Swap(&other->jpegthumbnail_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); caption_.Swap(&other->caption_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(GroupInviteMessage, inviteexpiration_) + sizeof(GroupInviteMessage::inviteexpiration_) - PROTOBUF_FIELD_OFFSET(GroupInviteMessage, contextinfo_)>( reinterpret_cast(&contextinfo_), reinterpret_cast(&other->contextinfo_)); } ::PROTOBUF_NAMESPACE_ID::Metadata GroupInviteMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class EphemeralSetting::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_chatjid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_ephemeralexpiration(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_ephemeralsettingtimestamp(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; EphemeralSetting::EphemeralSetting(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.EphemeralSetting) } EphemeralSetting::EphemeralSetting(const EphemeralSetting& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); chatjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_chatjid()) { chatjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_chatjid(), GetArena()); } ::memcpy(&ephemeralsettingtimestamp_, &from.ephemeralsettingtimestamp_, static_cast(reinterpret_cast(&ephemeralexpiration_) - reinterpret_cast(&ephemeralsettingtimestamp_)) + sizeof(ephemeralexpiration_)); // @@protoc_insertion_point(copy_constructor:proto.EphemeralSetting) } void EphemeralSetting::SharedCtor() { chatjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&ephemeralsettingtimestamp_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&ephemeralexpiration_) - reinterpret_cast(&ephemeralsettingtimestamp_)) + sizeof(ephemeralexpiration_)); } EphemeralSetting::~EphemeralSetting() { // @@protoc_insertion_point(destructor:proto.EphemeralSetting) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void EphemeralSetting::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); chatjid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void EphemeralSetting::Clear() { // @@protoc_insertion_point(message_clear_start:proto.EphemeralSetting) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { chatjid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000006u) { ::memset(&ephemeralsettingtimestamp_, 0, static_cast( reinterpret_cast(&ephemeralexpiration_) - reinterpret_cast(&ephemeralsettingtimestamp_)) + sizeof(ephemeralexpiration_)); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* EphemeralSetting::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string chatJid = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_chatjid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { _Internal::set_has_ephemeralexpiration(&has_bits); 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)) { _Internal::set_has_ephemeralsettingtimestamp(&has_bits); ephemeralsettingtimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* EphemeralSetting::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string chatJid = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_chatjid().data(), static_cast(this->_internal_chatjid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.EphemeralSetting.chatJid"); target = stream->WriteStringMaybeAliased( 1, this->_internal_chatjid(), target); } // 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); } // 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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.EphemeralSetting) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string chatJid = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_chatjid()); } // optional int64 ephemeralSettingTimestamp = 3; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->_internal_ephemeralsettingtimestamp()); } // optional uint32 ephemeralExpiration = 2; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( this->_internal_ephemeralexpiration()); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void EphemeralSetting::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.EphemeralSetting) GOOGLE_DCHECK_NE(&from, this); const EphemeralSetting* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.EphemeralSetting) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.EphemeralSetting) MergeFrom(*source); } } void EphemeralSetting::MergeFrom(const EphemeralSetting& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.EphemeralSetting) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { _internal_set_chatjid(from._internal_chatjid()); } if (cached_has_bits & 0x00000002u) { ephemeralsettingtimestamp_ = from.ephemeralsettingtimestamp_; } if (cached_has_bits & 0x00000004u) { ephemeralexpiration_ = from.ephemeralexpiration_; } _has_bits_[0] |= cached_has_bits; } } void EphemeralSetting::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.EphemeralSetting) if (&from == this) return; Clear(); MergeFrom(from); } void EphemeralSetting::CopyFrom(const EphemeralSetting& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.EphemeralSetting) if (&from == this) return; Clear(); MergeFrom(from); } bool EphemeralSetting::IsInitialized() const { return true; } void EphemeralSetting::InternalSwap(EphemeralSetting* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); chatjid_.Swap(&other->chatjid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(EphemeralSetting, ephemeralexpiration_) + sizeof(EphemeralSetting::ephemeralexpiration_) - PROTOBUF_FIELD_OFFSET(EphemeralSetting, ephemeralsettingtimestamp_)>( reinterpret_cast(&ephemeralsettingtimestamp_), reinterpret_cast(&other->ephemeralsettingtimestamp_)); } ::PROTOBUF_NAMESPACE_ID::Metadata EphemeralSetting::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class DeviceSentMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_destinationjid(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static const ::proto::Message& message(const DeviceSentMessage* msg); static void set_has_message(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_phash(HasBits* has_bits) { (*has_bits)[0] |= 2u; } }; const ::proto::Message& DeviceSentMessage::_Internal::message(const DeviceSentMessage* msg) { return *msg->message_; } DeviceSentMessage::DeviceSentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena), broadcastephemeralsettings_(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.DeviceSentMessage) } DeviceSentMessage::DeviceSentMessage(const DeviceSentMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_), broadcastephemeralsettings_(from.broadcastephemeralsettings_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); destinationjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_destinationjid()) { destinationjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_destinationjid(), GetArena()); } phash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_phash()) { phash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_phash(), GetArena()); } if (from._internal_has_message()) { message_ = new ::proto::Message(*from.message_); } else { message_ = nullptr; } // @@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; } DeviceSentMessage::~DeviceSentMessage() { // @@protoc_insertion_point(destructor:proto.DeviceSentMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void DeviceSentMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); destinationjid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); phash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete 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); } void DeviceSentMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.DeviceSentMessage) ::PROTOBUF_NAMESPACE_ID::uint32 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]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { destinationjid_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { phash_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000004u) { GOOGLE_DCHECK(message_ != nullptr); message_->Clear(); } } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* DeviceSentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string destinationJid = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_destinationjid(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr = ctx->ParseMessage(_internal_mutable_message(), ptr); CHK_(ptr); } else goto handle_unusual; continue; // optional string phash = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { auto str = _internal_mutable_phash(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::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)) { ptr -= 1; do { ptr += 1; ptr = ctx->ParseMessage(_internal_add_broadcastephemeralsettings(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* DeviceSentMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string destinationJid = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_destinationjid().data(), static_cast(this->_internal_destinationjid().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.DeviceSentMessage.destinationJid"); target = stream->WriteStringMaybeAliased( 1, this->_internal_destinationjid(), target); } // 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); } // optional string phash = 3; if (cached_has_bits & 0x00000002u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_phash().data(), static_cast(this->_internal_phash().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.DeviceSentMessage.phash"); target = stream->WriteStringMaybeAliased( 3, this->_internal_phash(), target); } // repeated .proto.EphemeralSetting broadcastEphemeralSettings = 4; for (unsigned int i = 0, n = static_cast(this->_internal_broadcastephemeralsettings_size()); i < n; i++) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(4, this->_internal_broadcastephemeralsettings(i), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.DeviceSentMessage) return target; } 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; // 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_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000007u) { // optional string destinationJid = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_destinationjid()); } // optional string phash = 3; if (cached_has_bits & 0x00000002u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_phash()); } // optional .proto.Message message = 2; if (cached_has_bits & 0x00000004u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *message_); } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void DeviceSentMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.DeviceSentMessage) GOOGLE_DCHECK_NE(&from, this); const DeviceSentMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.DeviceSentMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.DeviceSentMessage) MergeFrom(*source); } } void DeviceSentMessage::MergeFrom(const DeviceSentMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.DeviceSentMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; broadcastephemeralsettings_.MergeFrom(from.broadcastephemeralsettings_); cached_has_bits = from._has_bits_[0]; if (cached_has_bits & 0x00000007u) { if (cached_has_bits & 0x00000001u) { _internal_set_destinationjid(from._internal_destinationjid()); } if (cached_has_bits & 0x00000002u) { _internal_set_phash(from._internal_phash()); } if (cached_has_bits & 0x00000004u) { _internal_mutable_message()->::proto::Message::MergeFrom(from._internal_message()); } } } void DeviceSentMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.DeviceSentMessage) if (&from == this) return; Clear(); MergeFrom(from); } void DeviceSentMessage::CopyFrom(const DeviceSentMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.DeviceSentMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool DeviceSentMessage::IsInitialized() const { return true; } void DeviceSentMessage::InternalSwap(DeviceSentMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); broadcastephemeralsettings_.InternalSwap(&other->broadcastephemeralsettings_); destinationjid_.Swap(&other->destinationjid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); phash_.Swap(&other->phash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); swap(message_, other->message_); } ::PROTOBUF_NAMESPACE_ID::Metadata DeviceSentMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class FutureProofMessage::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static const ::proto::Message& message(const FutureProofMessage* msg); static void set_has_message(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; const ::proto::Message& FutureProofMessage::_Internal::message(const FutureProofMessage* msg) { return *msg->message_; } FutureProofMessage::FutureProofMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.FutureProofMessage) } FutureProofMessage::FutureProofMessage(const FutureProofMessage& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_message()) { message_ = new ::proto::Message(*from.message_); } else { message_ = nullptr; } // @@protoc_insertion_point(copy_constructor:proto.FutureProofMessage) } void FutureProofMessage::SharedCtor() { message_ = nullptr; } FutureProofMessage::~FutureProofMessage() { // @@protoc_insertion_point(destructor:proto.FutureProofMessage) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void FutureProofMessage::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); if (this != internal_default_instance()) delete 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); } void FutureProofMessage::Clear() { // @@protoc_insertion_point(message_clear_start:proto.FutureProofMessage) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(message_ != nullptr); message_->Clear(); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* FutureProofMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional .proto.Message message = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_message(), ptr); CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* FutureProofMessage::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _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); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.FutureProofMessage) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional .proto.Message message = 1; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *message_); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void FutureProofMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.FutureProofMessage) GOOGLE_DCHECK_NE(&from, this); const FutureProofMessage* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.FutureProofMessage) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.FutureProofMessage) MergeFrom(*source); } } void FutureProofMessage::MergeFrom(const FutureProofMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.FutureProofMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_message()) { _internal_mutable_message()->::proto::Message::MergeFrom(from._internal_message()); } } void FutureProofMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.FutureProofMessage) if (&from == this) return; Clear(); MergeFrom(from); } void FutureProofMessage::CopyFrom(const FutureProofMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.FutureProofMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool FutureProofMessage::IsInitialized() const { return true; } void FutureProofMessage::InternalSwap(FutureProofMessage* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(message_, other->message_); } ::PROTOBUF_NAMESPACE_ID::Metadata FutureProofMessage::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class ButtonText::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_displaytext(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; ButtonText::ButtonText(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:proto.ButtonText) } ButtonText::ButtonText(const ButtonText& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_displaytext()) { displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displaytext(), GetArena()); } // @@protoc_insertion_point(copy_constructor:proto.ButtonText) } void ButtonText::SharedCtor() { displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } ButtonText::~ButtonText() { // @@protoc_insertion_point(destructor:proto.ButtonText) SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } void ButtonText::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); displaytext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } 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); } void ButtonText::Clear() { // @@protoc_insertion_point(message_clear_start:proto.ButtonText) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { displaytext_.ClearNonDefaultToEmpty(); } _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } const char* ButtonText::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { // optional string displayText = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_displaytext(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); #ifndef NDEBUG ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ButtonText.displayText"); #endif // !NDEBUG CHK_(ptr); } else goto handle_unusual; continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->SetLastTag(tag); goto success; } ptr = UnknownFieldParse(tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); continue; } } // switch } // while success: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; goto success; #undef CHK_ } ::PROTOBUF_NAMESPACE_ID::uint8* ButtonText::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* 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; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional string displayText = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( this->_internal_displaytext().data(), static_cast(this->_internal_displaytext().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, "proto.ButtonText.displayText"); target = stream->WriteStringMaybeAliased( 1, this->_internal_displaytext(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:proto.ButtonText) return target; } 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; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // optional string displayText = 1; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_displaytext()); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( _internal_metadata_, total_size, &_cached_size_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ButtonText::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:proto.ButtonText) GOOGLE_DCHECK_NE(&from, this); const ButtonText* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.ButtonText) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.ButtonText) MergeFrom(*source); } } void ButtonText::MergeFrom(const ButtonText& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ButtonText) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from._internal_has_displaytext()) { _internal_set_displaytext(from._internal_displaytext()); } } void ButtonText::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:proto.ButtonText) if (&from == this) return; Clear(); MergeFrom(from); } void ButtonText::CopyFrom(const ButtonText& from) { // @@protoc_insertion_point(class_specific_copy_from_start:proto.ButtonText) if (&from == this) return; Clear(); MergeFrom(from); } bool ButtonText::IsInitialized() const { return true; } void ButtonText::InternalSwap(ButtonText* other) { using std::swap; _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); displaytext_.Swap(&other->displaytext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata ButtonText::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== class Button::_Internal { public: using HasBits = decltype(std::declval