diff options
| -rw-r--r-- | protocols/WhatsAppWeb/WhatsAppWeb.vcxproj | 6 | ||||
| -rw-r--r-- | protocols/WhatsAppWeb/WhatsAppWeb.vcxproj.filters | 3 | ||||
| -rw-r--r-- | protocols/WhatsAppWeb/src/pmsg.pb.cc | 39354 | ||||
| -rw-r--r-- | protocols/WhatsAppWeb/src/pmsg.pb.h | 53296 | ||||
| -rw-r--r-- | protocols/WhatsAppWeb/src/pmsg.proto | 1050 | ||||
| -rw-r--r-- | protocols/WhatsAppWeb/src/server.cpp | 69 | ||||
| -rw-r--r-- | protocols/WhatsAppWeb/src/stdafx.h | 12 |
7 files changed, 93759 insertions, 31 deletions
diff --git a/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj b/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj index 75bfef340d..3648058fe1 100644 --- a/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj +++ b/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj @@ -46,6 +46,12 @@ <ClCompile Include="src\chats.cpp" /> <ClCompile Include="src\main.cpp" /> <ClCompile Include="src\options.cpp" /> + <ClCompile Include="src\pmsg.pb.cc"> + <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader> + <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader> + <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader> + <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">NotUsing</PrecompiledHeader> + </ClCompile> <ClCompile Include="src\proto.cpp" /> <ClCompile Include="src\qrcode.cpp" /> <ClCompile Include="src\server.cpp" /> diff --git a/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj.filters b/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj.filters index 57f42bbe7d..f210837fd9 100644 --- a/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj.filters +++ b/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj.filters @@ -29,6 +29,9 @@ <ClCompile Include="src\chats.cpp"> <Filter>Source Files</Filter> </ClCompile> + <ClCompile Include="src\pmsg.pb.cc"> + <Filter>Source Files</Filter> + </ClCompile> </ItemGroup> <ItemGroup> <ClInclude Include="src\db.h"> diff --git a/protocols/WhatsAppWeb/src/pmsg.pb.cc b/protocols/WhatsAppWeb/src/pmsg.pb.cc new file mode 100644 index 0000000000..632ae67396 --- /dev/null +++ b/protocols/WhatsAppWeb/src/pmsg.pb.cc @@ -0,0 +1,39354 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: pmsg.proto + +#include "pmsg.pb.h" + +#include <algorithm> + +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/extension_set.h> +#include <google/protobuf/wire_format_lite.h> +#include <google/protobuf/descriptor.h> +#include <google/protobuf/generated_message_reflection.h> +#include <google/protobuf/reflection_ops.h> +#include <google/protobuf/wire_format.h> +// @@protoc_insertion_point(includes) +#include <google/protobuf/port_def.inc> + +PROTOBUF_PRAGMA_INIT_SEG +namespace 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<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_PaymentMoney_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HydratedQuickReplyButton_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HydratedURLButton_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HydratedCallButton_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HydratedTemplateButton_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_QuickReplyButton_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_URLButton_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_CallButton_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_TemplateButton_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_Location_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_Point_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_InteractiveAnnotation_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_DeviceListMetadata_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_MessageContextInfo_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AdReplyInfo_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ExternalAdReplyInfo_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ContextInfo_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_SenderKeyDistributionMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ImageMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_InvoiceMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ContactMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_LocationMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ExtendedTextMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_DocumentMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AudioMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_VideoMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_Call_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_Chat_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ProtocolMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HistorySyncNotification_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AppStateSyncKey_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AppStateSyncKeyId_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AppStateSyncKeyFingerprint_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AppStateSyncKeyData_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AppStateSyncKeyShare_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AppStateSyncKeyRequest_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_AppStateFatalExceptionNotification_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_InitialSecurityNotificationSettingSync_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ContactsArrayMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HSMCurrency_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HSMDateTimeComponent_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HSMDateTimeUnixEpoch_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HSMDateTime_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HSMLocalizableParameter_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HighlyStructuredMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_SendPaymentMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_RequestPaymentMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_DeclinePaymentRequestMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_CancelPaymentRequestMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_LiveLocationMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_StickerMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_FourRowTemplate_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_HydratedFourRowTemplate_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_TemplateMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_TemplateButtonReplyMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_CatalogSnapshot_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ProductSnapshot_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ProductMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_OrderMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_Row_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_Section_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ListMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_SingleSelectReply_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ListResponseMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_GroupInviteMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_EphemeralSetting_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_DeviceSentMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_FutureProofMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ButtonText_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_Button_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ButtonsMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_ButtonsResponseMessage_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_Message_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_MessageKey_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_WebFeatures_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_NotificationMessageInfo_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_WebNotificationsInfo_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_PaymentInfo_default_instance_), + reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::proto::_WebMessageInfo_default_instance_), +}; + +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<PaymentMoney>()._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<size_t>(reinterpret_cast<char*>(&offset_) - + reinterpret_cast<char*>(&value_)) + sizeof(offset_)); + // @@protoc_insertion_point(copy_constructor:proto.PaymentMoney) +} + +void PaymentMoney::SharedCtor() { +currencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&value_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&offset_) - + reinterpret_cast<char*>(&value_)) + sizeof(offset_)); +} + +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<size_t>( + reinterpret_cast<char*>(&offset_) - + reinterpret_cast<char*>(&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<int>(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<PaymentMoney>( + &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<char*>(&value_), + reinterpret_cast<char*>(&other->value_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PaymentMoney::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class HydratedQuickReplyButton::_Internal { + public: + using HasBits = decltype(std::declval<HydratedQuickReplyButton>()._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<int>(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<int>(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<HydratedQuickReplyButton>( + &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<HydratedURLButton>()._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<int>(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<int>(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<HydratedURLButton>( + &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<HydratedCallButton>()._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<int>(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<int>(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<HydratedCallButton>( + &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<HydratedTemplateButton>()._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<HydratedTemplateButton>( + &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<QuickReplyButton>()._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<int>(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<QuickReplyButton>( + &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<URLButton>()._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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&displaytext_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&url_) - + reinterpret_cast<char*>(&displaytext_)) + sizeof(url_)); +} + +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<URLButton>( + &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<char*>(&displaytext_), + reinterpret_cast<char*>(&other->displaytext_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata URLButton::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class CallButton::_Internal { + public: + using HasBits = decltype(std::declval<CallButton>()._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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&displaytext_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&phonenumber_) - + reinterpret_cast<char*>(&displaytext_)) + sizeof(phonenumber_)); +} + +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<CallButton>( + &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<char*>(&displaytext_), + reinterpret_cast<char*>(&other->displaytext_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CallButton::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class TemplateButton::_Internal { + public: + using HasBits = decltype(std::declval<TemplateButton>()._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<TemplateButton>( + &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<Location>()._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<size_t>(reinterpret_cast<char*>(°reeslongitude_) - + reinterpret_cast<char*>(°reeslatitude_)) + sizeof(degreeslongitude_)); + // @@protoc_insertion_point(copy_constructor:proto.Location) +} + +void Location::SharedCtor() { +name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(°reeslatitude_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(°reeslongitude_) - + reinterpret_cast<char*>(°reeslatitude_)) + sizeof(degreeslongitude_)); +} + +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<size_t>( + reinterpret_cast<char*>(°reeslongitude_) - + reinterpret_cast<char*>(°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<double>(ptr); + ptr += sizeof(double); + } else goto handle_unusual; + continue; + // optional double degreesLongitude = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { + _Internal::set_has_degreeslongitude(&has_bits); + degreeslongitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); + ptr += sizeof(double); + } else goto handle_unusual; + continue; + // optional string name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + 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<int>(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<Location>( + &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<char*>(°reeslatitude_), + reinterpret_cast<char*>(&other->degreeslatitude_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Location::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class Point::_Internal { + public: + using HasBits = decltype(std::declval<Point>()._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<size_t>(reinterpret_cast<char*>(&y_) - + reinterpret_cast<char*>(&xdeprecated_)) + sizeof(y_)); + // @@protoc_insertion_point(copy_constructor:proto.Point) +} + +void Point::SharedCtor() { +::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&xdeprecated_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&y_) - + reinterpret_cast<char*>(&xdeprecated_)) + sizeof(y_)); +} + +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<size_t>( + reinterpret_cast<char*>(&y_) - + reinterpret_cast<char*>(&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<double>(ptr); + ptr += sizeof(double); + } else goto handle_unusual; + continue; + // optional double y = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) { + _Internal::set_has_y(&has_bits); + y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(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<Point>( + &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<char*>(&xdeprecated_), + reinterpret_cast<char*>(&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<unsigned int>(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<InteractiveAnnotation>( + &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<DeviceListMetadata>()._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<size_t>(reinterpret_cast<char*>(&recipienttimestamp_) - + reinterpret_cast<char*>(&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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&sendertimestamp_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&recipienttimestamp_) - + reinterpret_cast<char*>(&sendertimestamp_)) + sizeof(recipienttimestamp_)); +} + +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<size_t>( + reinterpret_cast<char*>(&recipienttimestamp_) - + reinterpret_cast<char*>(&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<DeviceListMetadata>( + &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<char*>(&sendertimestamp_), + reinterpret_cast<char*>(&other->sendertimestamp_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DeviceListMetadata::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class MessageContextInfo::_Internal { + public: + using HasBits = decltype(std::declval<MessageContextInfo>()._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<MessageContextInfo>( + &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<AdReplyInfo>()._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<int>(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<int>(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<AdReplyInfo>( + &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<ExternalAdReplyInfo>()._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<int>(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<int>(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<int>(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<int>(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<int>(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<int>(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<int>(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<ExternalAdReplyInfo>( + &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<ContextInfo>()._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<size_t>(reinterpret_cast<char*>(&ephemeralsettingtimestamp_) - + reinterpret_cast<char*>(&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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>("edmessage_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&ephemeralsettingtimestamp_) - + reinterpret_cast<char*>("edmessage_)) + sizeof(ephemeralsettingtimestamp_)); +} + +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<size_t>( + reinterpret_cast<char*>(&ephemeralsettingtimestamp_) - + reinterpret_cast<char*>(&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<int>(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<int>(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<int>(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<int>(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<int>(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<ContextInfo>( + &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<char*>("edmessage_), + reinterpret_cast<char*>(&other->quotedmessage_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ContextInfo::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class SenderKeyDistributionMessage::_Internal { + public: + using HasBits = decltype(std::declval<SenderKeyDistributionMessage>()._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<int>(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<SenderKeyDistributionMessage>( + &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<ImageMessage>()._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<size_t>(reinterpret_cast<char*>(&viewonce_) - + reinterpret_cast<char*>(&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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&viewonce_) - + reinterpret_cast<char*>(&contextinfo_)) + sizeof(viewonce_)); +} + +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<size_t>( + reinterpret_cast<char*>(&viewonce_) - + reinterpret_cast<char*>(&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<int>(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<int>(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<int>(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<unsigned int>(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<int>(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<int>(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<ImageMessage>( + &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<char*>(&contextinfo_), + reinterpret_cast<char*>(&other->contextinfo_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ImageMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class InvoiceMessage::_Internal { + public: + using HasBits = decltype(std::declval<InvoiceMessage>()._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<size_t>(reinterpret_cast<char*>(&attachmenttype_) - + reinterpret_cast<char*>(&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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&attachmentmediakeytimestamp_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&attachmenttype_) - + reinterpret_cast<char*>(&attachmentmediakeytimestamp_)) + sizeof(attachmenttype_)); +} + +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<size_t>( + reinterpret_cast<char*>(&attachmenttype_) - + reinterpret_cast<char*>(&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<int>(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<int>(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<int>(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<int>(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<InvoiceMessage>( + &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<char*>(&attachmentmediakeytimestamp_), + reinterpret_cast<char*>(&other->attachmentmediakeytimestamp_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata InvoiceMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ContactMessage::_Internal { + public: + using HasBits = decltype(std::declval<ContactMessage>()._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<int>(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<int>(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<ContactMessage>( + &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<LocationMessage>()._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<size_t>(reinterpret_cast<char*>(°reesclockwisefrommagneticnorth_) - + reinterpret_cast<char*>(°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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(°reesclockwisefrommagneticnorth_) - + reinterpret_cast<char*>(&contextinfo_)) + sizeof(degreesclockwisefrommagneticnorth_)); +} + +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<size_t>( + reinterpret_cast<char*>(°reeslongitude_) - + reinterpret_cast<char*>(°reeslatitude_)) + sizeof(degreeslongitude_)); + } + if (cached_has_bits & 0x00000f00u) { + ::memset(&islive_, 0, static_cast<size_t>( + reinterpret_cast<char*>(°reesclockwisefrommagneticnorth_) - + reinterpret_cast<char*>(&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<double>(ptr); + ptr += sizeof(double); + } else goto handle_unusual; + continue; + // optional double degreesLongitude = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { + _Internal::set_has_degreeslongitude(&has_bits); + degreeslongitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); + ptr += sizeof(double); + } else goto handle_unusual; + continue; + // optional string name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + 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<float>(ptr); + ptr += sizeof(float); + } else goto handle_unusual; + continue; + // optional uint32 degreesClockwiseFromMagneticNorth = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { + _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<int>(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<int>(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<int>(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<int>(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<LocationMessage>( + &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<char*>(&contextinfo_), + reinterpret_cast<char*>(&other->contextinfo_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata LocationMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ExtendedTextMessage::_Internal { + public: + using HasBits = decltype(std::declval<ExtendedTextMessage>()._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<size_t>(reinterpret_cast<char*>(&donotplayinline_) - + reinterpret_cast<char*>(&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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&donotplayinline_) - + reinterpret_cast<char*>(&contextinfo_)) + sizeof(donotplayinline_)); +} + +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<size_t>( + reinterpret_cast<char*>(&donotplayinline_) - + reinterpret_cast<char*>(&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<int>(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<int>(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<int>(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<int>(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<int>(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<ExtendedTextMessage>( + &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<char*>(&contextinfo_), + reinterpret_cast<char*>(&other->contextinfo_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ExtendedTextMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class DocumentMessage::_Internal { + public: + using HasBits = decltype(std::declval<DocumentMessage>()._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<size_t>(reinterpret_cast<char*>(&thumbnailwidth_) - + reinterpret_cast<char*>(&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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&thumbnailwidth_) - + reinterpret_cast<char*>(&contextinfo_)) + sizeof(thumbnailwidth_)); +} + +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<size_t>( + reinterpret_cast<char*>(&contactvcard_) - + reinterpret_cast<char*>(&filelength_)) + sizeof(contactvcard_)); + } + if (cached_has_bits & 0x00070000u) { + ::memset(&mediakeytimestamp_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&thumbnailwidth_) - + reinterpret_cast<char*>(&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<int>(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<int>(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<int>(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<int>(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<int>(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<int>(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<DocumentMessage>( + &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<char*>(&contextinfo_), + reinterpret_cast<char*>(&other->contextinfo_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DocumentMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class AudioMessage::_Internal { + public: + using HasBits = decltype(std::declval<AudioMessage>()._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<size_t>(reinterpret_cast<char*>(&mediakeytimestamp_) - + reinterpret_cast<char*>(&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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&mediakeytimestamp_) - + reinterpret_cast<char*>(&contextinfo_)) + sizeof(mediakeytimestamp_)); +} + +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<size_t>( + reinterpret_cast<char*>(&mediakeytimestamp_) - + reinterpret_cast<char*>(&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<int>(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<int>(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<int>(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<AudioMessage>( + &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<char*>(&contextinfo_), + reinterpret_cast<char*>(&other->contextinfo_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AudioMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class VideoMessage::_Internal { + public: + using HasBits = decltype(std::declval<VideoMessage>()._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<size_t>(reinterpret_cast<char*>(&gifattribution_) - + reinterpret_cast<char*>(&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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&gifattribution_) - + reinterpret_cast<char*>(&contextinfo_)) + sizeof(gifattribution_)); +} + +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<size_t>( + reinterpret_cast<char*>(&height_) - + reinterpret_cast<char*>(&filelength_)) + sizeof(height_)); + } + if (cached_has_bits & 0x001f0000u) { + ::memset(&width_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&gifattribution_) - + reinterpret_cast<char*>(&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<int>(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<int>(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<int>(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<unsigned int>(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<int>(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<int>(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<VideoMessage>( + &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<char*>(&contextinfo_), + reinterpret_cast<char*>(&other->contextinfo_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata VideoMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class Call::_Internal { + public: + using HasBits = decltype(std::declval<Call>()._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<Call>( + &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<Chat>()._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<int>(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<int>(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<Chat>( + &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<ProtocolMessage>()._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<size_t>(reinterpret_cast<char*>(&ephemeralsettingtimestamp_) - + reinterpret_cast<char*>(&type_)) + sizeof(ephemeralsettingtimestamp_)); + // @@protoc_insertion_point(copy_constructor:proto.ProtocolMessage) +} + +void ProtocolMessage::SharedCtor() { +::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&key_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&ephemeralsettingtimestamp_) - + reinterpret_cast<char*>(&key_)) + sizeof(ephemeralsettingtimestamp_)); +} + +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<size_t>( + reinterpret_cast<char*>(&ephemeralexpiration_) - + reinterpret_cast<char*>(&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<ProtocolMessage>( + &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<char*>(&key_), + reinterpret_cast<char*>(&other->key_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ProtocolMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class HistorySyncNotification::_Internal { + public: + using HasBits = decltype(std::declval<HistorySyncNotification>()._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<size_t>(reinterpret_cast<char*>(&chunkorder_) - + reinterpret_cast<char*>(&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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&filelength_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&chunkorder_) - + reinterpret_cast<char*>(&filelength_)) + sizeof(chunkorder_)); +} + +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<size_t>( + reinterpret_cast<char*>(&chunkorder_) - + reinterpret_cast<char*>(&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<int>(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<int>(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<HistorySyncNotification>( + &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<char*>(&filelength_), + reinterpret_cast<char*>(&other->filelength_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata HistorySyncNotification::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class AppStateSyncKey::_Internal { + public: + using HasBits = decltype(std::declval<AppStateSyncKey>()._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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&keyid_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&keydata_) - + reinterpret_cast<char*>(&keyid_)) + sizeof(keydata_)); +} + +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<AppStateSyncKey>( + &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<char*>(&keyid_), + reinterpret_cast<char*>(&other->keyid_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKey::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class AppStateSyncKeyId::_Internal { + public: + using HasBits = decltype(std::declval<AppStateSyncKeyId>()._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<AppStateSyncKeyId>( + &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<AppStateSyncKeyFingerprint>()._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<size_t>(reinterpret_cast<char*>(¤tindex_) - + reinterpret_cast<char*>(&rawid_)) + sizeof(currentindex_)); + // @@protoc_insertion_point(copy_constructor:proto.AppStateSyncKeyFingerprint) +} + +void AppStateSyncKeyFingerprint::SharedCtor() { +::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&rawid_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(¤tindex_) - + reinterpret_cast<char*>(&rawid_)) + sizeof(currentindex_)); +} + +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<size_t>( + reinterpret_cast<char*>(¤tindex_) - + reinterpret_cast<char*>(&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<AppStateSyncKeyFingerprint>( + &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<char*>(&rawid_), + reinterpret_cast<char*>(&other->rawid_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKeyFingerprint::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class AppStateSyncKeyData::_Internal { + public: + using HasBits = decltype(std::declval<AppStateSyncKeyData>()._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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&fingerprint_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(×tamp_) - + reinterpret_cast<char*>(&fingerprint_)) + sizeof(timestamp_)); +} + +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<AppStateSyncKeyData>( + &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<char*>(&fingerprint_), + reinterpret_cast<char*>(&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<unsigned int>(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<AppStateSyncKeyShare>( + &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<unsigned int>(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<AppStateSyncKeyRequest>( + &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<AppStateFatalExceptionNotification>()._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<int>(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<AppStateFatalExceptionNotification>( + &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<InitialSecurityNotificationSettingSync>()._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<InitialSecurityNotificationSettingSync>( + &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<ContactsArrayMessage>()._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<int>(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<unsigned int>(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<ContactsArrayMessage>( + &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<HSMCurrency>()._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<int>(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<HSMCurrency>( + &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<HSMDateTimeComponent>()._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<size_t>(reinterpret_cast<char*>(&calendar_) - + reinterpret_cast<char*>(&year_)) + sizeof(calendar_)); + // @@protoc_insertion_point(copy_constructor:proto.HSMDateTimeComponent) +} + +void HSMDateTimeComponent::SharedCtor() { +::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&year_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&minute_) - + reinterpret_cast<char*>(&year_)) + sizeof(minute_)); +dayofweek_ = 1; +calendar_ = 1; +} + +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<size_t>( + reinterpret_cast<char*>(&minute_) - + reinterpret_cast<char*>(&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<HSMDateTimeComponent>( + &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<char*>(&year_), + reinterpret_cast<char*>(&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<HSMDateTimeUnixEpoch>()._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<HSMDateTimeUnixEpoch>( + &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<HSMDateTime>( + &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<HSMLocalizableParameter>()._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<int>(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<HSMLocalizableParameter>( + &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<HighlyStructuredMessage>()._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<int>(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<int>(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<int>(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<int>(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<int>(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<unsigned int>(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<int>(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<int>(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<HighlyStructuredMessage>( + &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<SendPaymentMessage>()._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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(¬emessage_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&requestmessagekey_) - + reinterpret_cast<char*>(¬emessage_)) + sizeof(requestmessagekey_)); +} + +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<SendPaymentMessage>( + &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<char*>(¬emessage_), + reinterpret_cast<char*>(&other->notemessage_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SendPaymentMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class RequestPaymentMessage::_Internal { + public: + using HasBits = decltype(std::declval<RequestPaymentMessage>()._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<size_t>(reinterpret_cast<char*>(&expirytimestamp_) - + reinterpret_cast<char*>(&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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(¬emessage_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&expirytimestamp_) - + reinterpret_cast<char*>(¬emessage_)) + sizeof(expirytimestamp_)); +} + +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<size_t>( + reinterpret_cast<char*>(&expirytimestamp_) - + reinterpret_cast<char*>(&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<int>(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<int>(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<RequestPaymentMessage>( + &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<char*>(¬emessage_), + reinterpret_cast<char*>(&other->notemessage_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata RequestPaymentMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class DeclinePaymentRequestMessage::_Internal { + public: + using HasBits = decltype(std::declval<DeclinePaymentRequestMessage>()._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<DeclinePaymentRequestMessage>( + &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<CancelPaymentRequestMessage>()._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<CancelPaymentRequestMessage>( + &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<LiveLocationMessage>()._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<size_t>(reinterpret_cast<char*>(&sequencenumber_) - + reinterpret_cast<char*>(°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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&sequencenumber_) - + reinterpret_cast<char*>(&contextinfo_)) + sizeof(sequencenumber_)); +} + +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<size_t>( + reinterpret_cast<char*>(°reesclockwisefrommagneticnorth_) - + reinterpret_cast<char*>(°reeslatitude_)) + sizeof(degreesclockwisefrommagneticnorth_)); + } + if (cached_has_bits & 0x00000300u) { + ::memset(&timeoffset_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&sequencenumber_) - + reinterpret_cast<char*>(&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<double>(ptr); + ptr += sizeof(double); + } else goto handle_unusual; + continue; + // optional double degreesLongitude = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { + _Internal::set_has_degreeslongitude(&has_bits); + degreeslongitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); + ptr += sizeof(double); + } else goto handle_unusual; + continue; + // optional uint32 accuracyInMeters = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _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<float>(ptr); + ptr += sizeof(float); + } else goto handle_unusual; + continue; + // optional uint32 degreesClockwiseFromMagneticNorth = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + _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<int>(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<LiveLocationMessage>( + &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<char*>(&contextinfo_), + reinterpret_cast<char*>(&other->contextinfo_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata LiveLocationMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class StickerMessage::_Internal { + public: + using HasBits = decltype(std::declval<StickerMessage>()._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<size_t>(reinterpret_cast<char*>(&isanimated_) - + reinterpret_cast<char*>(&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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&isanimated_) - + reinterpret_cast<char*>(&contextinfo_)) + sizeof(isanimated_)); +} + +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<size_t>( + reinterpret_cast<char*>(&isanimated_) - + reinterpret_cast<char*>(&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<int>(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<int>(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<int>(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<StickerMessage>( + &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<char*>(&contextinfo_), + reinterpret_cast<char*>(&other->contextinfo_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StickerMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class FourRowTemplate::_Internal { + public: + using HasBits = decltype(std::declval<FourRowTemplate>()._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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&content_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&footer_) - + reinterpret_cast<char*>(&content_)) + sizeof(footer_)); +clear_has_title(); +} + +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<unsigned int>(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<FourRowTemplate>( + &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<char*>(&content_), + reinterpret_cast<char*>(&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<HydratedFourRowTemplate>()._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<int>(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<int>(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<int>(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<unsigned int>(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<int>(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<HydratedFourRowTemplate>( + &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<TemplateMessage>()._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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&hydratedtemplate_) - + reinterpret_cast<char*>(&contextinfo_)) + sizeof(hydratedtemplate_)); +clear_has_format(); +} + +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<TemplateMessage>( + &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<char*>(&contextinfo_), + reinterpret_cast<char*>(&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<TemplateButtonReplyMessage>()._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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&selectedindex_) - + reinterpret_cast<char*>(&contextinfo_)) + sizeof(selectedindex_)); +} + +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<int>(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<int>(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<TemplateButtonReplyMessage>( + &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<char*>(&contextinfo_), + reinterpret_cast<char*>(&other->contextinfo_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TemplateButtonReplyMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class CatalogSnapshot::_Internal { + public: + using HasBits = decltype(std::declval<CatalogSnapshot>()._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<int>(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<int>(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<CatalogSnapshot>( + &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<ProductSnapshot>()._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<size_t>(reinterpret_cast<char*>(&productimagecount_) - + reinterpret_cast<char*>(&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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&productimage_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&productimagecount_) - + reinterpret_cast<char*>(&productimage_)) + sizeof(productimagecount_)); +} + +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<size_t>( + reinterpret_cast<char*>(&productimagecount_) - + reinterpret_cast<char*>(&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<int>(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<int>(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<int>(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<int>(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<int>(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<int>(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<int>(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<ProductSnapshot>( + &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<char*>(&productimage_), + reinterpret_cast<char*>(&other->productimage_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ProductSnapshot::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ProductMessage::_Internal { + public: + using HasBits = decltype(std::declval<ProductMessage>()._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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&product_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&contextinfo_) - + reinterpret_cast<char*>(&product_)) + sizeof(contextinfo_)); +} + +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<int>(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<ProductMessage>( + &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<char*>(&product_), + reinterpret_cast<char*>(&other->product_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ProductMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class OrderMessage::_Internal { + public: + using HasBits = decltype(std::declval<OrderMessage>()._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<size_t>(reinterpret_cast<char*>(&surface_) - + reinterpret_cast<char*>(&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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&itemcount_) - + reinterpret_cast<char*>(&contextinfo_)) + sizeof(itemcount_)); +status_ = 1; +surface_ = 1; +} + +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<size_t>( + reinterpret_cast<char*>(&itemcount_) - + reinterpret_cast<char*>(&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<int>(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<int>(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<int>(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<int>(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<int>(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<int>(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<OrderMessage>( + &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<char*>(&contextinfo_), + reinterpret_cast<char*>(&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<Row>()._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<int>(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<int>(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<int>(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<Row>( + &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<Section>()._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<int>(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<unsigned int>(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<Section>( + &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<ListMessage>()._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<int>(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<int>(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<int>(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<unsigned int>(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<ListMessage>( + &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<SingleSelectReply>()._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<int>(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<SingleSelectReply>( + &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<ListResponseMessage>()._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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&singleselectreply_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&listtype_) - + reinterpret_cast<char*>(&singleselectreply_)) + sizeof(listtype_)); +} + +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<int>(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<int>(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<ListResponseMessage>( + &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<char*>(&singleselectreply_), + reinterpret_cast<char*>(&other->singleselectreply_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListResponseMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class GroupInviteMessage::_Internal { + public: + using HasBits = decltype(std::declval<GroupInviteMessage>()._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<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&inviteexpiration_) - + reinterpret_cast<char*>(&contextinfo_)) + sizeof(inviteexpiration_)); +} + +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<int>(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<int>(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<int>(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<int>(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<GroupInviteMessage>( + &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<char*>(&contextinfo_), + reinterpret_cast<char*>(&other->contextinfo_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GroupInviteMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class EphemeralSetting::_Internal { + public: + using HasBits = decltype(std::declval<EphemeralSetting>()._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<size_t>(reinterpret_cast<char*>(&ephemeralexpiration_) - + reinterpret_cast<char*>(&ephemeralsettingtimestamp_)) + sizeof(ephemeralexpiration_)); + // @@protoc_insertion_point(copy_constructor:proto.EphemeralSetting) +} + +void EphemeralSetting::SharedCtor() { +chatjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&ephemeralsettingtimestamp_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&ephemeralexpiration_) - + reinterpret_cast<char*>(&ephemeralsettingtimestamp_)) + sizeof(ephemeralexpiration_)); +} + +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<size_t>( + reinterpret_cast<char*>(&ephemeralexpiration_) - + reinterpret_cast<char*>(&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<int>(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<EphemeralSetting>( + &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<char*>(&ephemeralsettingtimestamp_), + reinterpret_cast<char*>(&other->ephemeralsettingtimestamp_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata EphemeralSetting::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class DeviceSentMessage::_Internal { + public: + using HasBits = decltype(std::declval<DeviceSentMessage>()._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<int>(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<int>(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<unsigned int>(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<DeviceSentMessage>( + &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<FutureProofMessage>()._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<FutureProofMessage>( + &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<ButtonText>()._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<int>(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<ButtonText>( + &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<Button>()._has_bits_); + static void set_has_buttonid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::proto::ButtonText& buttontext(const Button* msg); + static void set_has_buttontext(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_type(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } +}; + +const ::proto::ButtonText& +Button::_Internal::buttontext(const Button* msg) { + return *msg->buttontext_; +} +Button::Button(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:proto.Button) +} +Button::Button(const Button& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + buttonid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_buttonid()) { + buttonid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_buttonid(), + GetArena()); + } + if (from._internal_has_buttontext()) { + buttontext_ = new ::proto::ButtonText(*from.buttontext_); + } else { + buttontext_ = nullptr; + } + type_ = from.type_; + // @@protoc_insertion_point(copy_constructor:proto.Button) +} + +void Button::SharedCtor() { +buttonid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&buttontext_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&type_) - + reinterpret_cast<char*>(&buttontext_)) + sizeof(type_)); +} + +Button::~Button() { + // @@protoc_insertion_point(destructor:proto.Button) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void Button::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + buttonid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete buttontext_; +} + +void Button::ArenaDtor(void* object) { + Button* _this = reinterpret_cast< Button* >(object); + (void)_this; +} +void Button::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Button::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Button::Clear() { +// @@protoc_insertion_point(message_clear_start:proto.Button) + ::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) { + buttonid_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(buttontext_ != nullptr); + buttontext_->Clear(); + } + } + type_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Button::_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 buttonId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_buttonid(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Button.buttonId"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.ButtonText buttonText = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_buttontext(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.Button.ButtonType type = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::Button_ButtonType_IsValid(val))) { + _internal_set_type(static_cast<::proto::Button_ButtonType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, 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* Button::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:proto.Button) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string buttonId = 1; + if (cached_has_bits & 0x00000001u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_buttonid().data(), static_cast<int>(this->_internal_buttonid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.Button.buttonId"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_buttonid(), target); + } + + // optional .proto.ButtonText buttonText = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::buttontext(this), target, stream); + } + + // optional .proto.Button.ButtonType type = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->_internal_type(), 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.Button) + return target; +} + +size_t Button::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:proto.Button) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // 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 buttonId = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_buttonid()); + } + + // optional .proto.ButtonText buttonText = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *buttontext_); + } + + // optional .proto.Button.ButtonType type = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + } + + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Button::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:proto.Button) + GOOGLE_DCHECK_NE(&from, this); + const Button* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Button>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.Button) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.Button) + MergeFrom(*source); + } +} + +void Button::MergeFrom(const Button& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.Button) + 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_buttonid(from._internal_buttonid()); + } + if (cached_has_bits & 0x00000002u) { + _internal_mutable_buttontext()->::proto::ButtonText::MergeFrom(from._internal_buttontext()); + } + if (cached_has_bits & 0x00000004u) { + type_ = from.type_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void Button::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:proto.Button) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Button::CopyFrom(const Button& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:proto.Button) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Button::IsInitialized() const { + return true; +} + +void Button::InternalSwap(Button* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + buttonid_.Swap(&other->buttonid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Button, type_) + + sizeof(Button::type_) + - PROTOBUF_FIELD_OFFSET(Button, buttontext_)>( + reinterpret_cast<char*>(&buttontext_), + reinterpret_cast<char*>(&other->buttontext_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Button::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ButtonsMessage::_Internal { + public: + using HasBits = decltype(std::declval<ButtonsMessage>()._has_bits_); + static void set_has_contenttext(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_footertext(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static const ::proto::ContextInfo& contextinfo(const ButtonsMessage* msg); + static void set_has_contextinfo(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_headertype(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static const ::proto::DocumentMessage& documentmessage(const ButtonsMessage* msg); + static const ::proto::ImageMessage& imagemessage(const ButtonsMessage* msg); + static const ::proto::VideoMessage& videomessage(const ButtonsMessage* msg); + static const ::proto::LocationMessage& locationmessage(const ButtonsMessage* msg); +}; + +const ::proto::ContextInfo& +ButtonsMessage::_Internal::contextinfo(const ButtonsMessage* msg) { + return *msg->contextinfo_; +} +const ::proto::DocumentMessage& +ButtonsMessage::_Internal::documentmessage(const ButtonsMessage* msg) { + return *msg->header_.documentmessage_; +} +const ::proto::ImageMessage& +ButtonsMessage::_Internal::imagemessage(const ButtonsMessage* msg) { + return *msg->header_.imagemessage_; +} +const ::proto::VideoMessage& +ButtonsMessage::_Internal::videomessage(const ButtonsMessage* msg) { + return *msg->header_.videomessage_; +} +const ::proto::LocationMessage& +ButtonsMessage::_Internal::locationmessage(const ButtonsMessage* msg) { + return *msg->header_.locationmessage_; +} +void ButtonsMessage::set_allocated_documentmessage(::proto::DocumentMessage* documentmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + clear_header(); + 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(); + header_.documentmessage_ = documentmessage; + } + // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.documentMessage) +} +void ButtonsMessage::set_allocated_imagemessage(::proto::ImageMessage* imagemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + clear_header(); + 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(); + header_.imagemessage_ = imagemessage; + } + // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.imageMessage) +} +void ButtonsMessage::set_allocated_videomessage(::proto::VideoMessage* videomessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + clear_header(); + 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(); + header_.videomessage_ = videomessage; + } + // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.videoMessage) +} +void ButtonsMessage::set_allocated_locationmessage(::proto::LocationMessage* locationmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + clear_header(); + 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(); + header_.locationmessage_ = locationmessage; + } + // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.locationMessage) +} +ButtonsMessage::ButtonsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + buttons_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:proto.ButtonsMessage) +} +ButtonsMessage::ButtonsMessage(const ButtonsMessage& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + buttons_(from.buttons_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + contenttext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_contenttext()) { + contenttext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_contenttext(), + GetArena()); + } + footertext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_footertext()) { + footertext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_footertext(), + GetArena()); + } + if (from._internal_has_contextinfo()) { + contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); + } else { + contextinfo_ = nullptr; + } + headertype_ = from.headertype_; + clear_has_header(); + switch (from.header_case()) { + case kText: { + _internal_set_text(from._internal_text()); + break; + } + case kDocumentMessage: { + _internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom(from._internal_documentmessage()); + 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 HEADER_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:proto.ButtonsMessage) +} + +void ButtonsMessage::SharedCtor() { +contenttext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +footertext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&headertype_) - + reinterpret_cast<char*>(&contextinfo_)) + sizeof(headertype_)); +clear_has_header(); +} + +ButtonsMessage::~ButtonsMessage() { + // @@protoc_insertion_point(destructor:proto.ButtonsMessage) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ButtonsMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + contenttext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + footertext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete contextinfo_; + if (has_header()) { + clear_header(); + } +} + +void ButtonsMessage::ArenaDtor(void* object) { + ButtonsMessage* _this = reinterpret_cast< ButtonsMessage* >(object); + (void)_this; +} +void ButtonsMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ButtonsMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ButtonsMessage::clear_header() { +// @@protoc_insertion_point(one_of_clear_start:proto.ButtonsMessage) + switch (header_case()) { + case kText: { + header_.text_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + break; + } + case kDocumentMessage: { + if (GetArena() == nullptr) { + delete header_.documentmessage_; + } + break; + } + case kImageMessage: { + if (GetArena() == nullptr) { + delete header_.imagemessage_; + } + break; + } + case kVideoMessage: { + if (GetArena() == nullptr) { + delete header_.videomessage_; + } + break; + } + case kLocationMessage: { + if (GetArena() == nullptr) { + delete header_.locationmessage_; + } + break; + } + case HEADER_NOT_SET: { + break; + } + } + _oneof_case_[0] = HEADER_NOT_SET; +} + + +void ButtonsMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:proto.ButtonsMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // 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 & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + contenttext_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + footertext_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(contextinfo_ != nullptr); + contextinfo_->Clear(); + } + } + headertype_ = 0; + clear_header(); + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ButtonsMessage::_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) { + // 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.ButtonsMessage.text"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; + // .proto.DocumentMessage documentMessage = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_documentmessage(), 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 string contentText = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + auto str = _internal_mutable_contenttext(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ButtonsMessage.contentText"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional string footerText = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + auto str = _internal_mutable_footertext(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ButtonsMessage.footerText"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.ContextInfo contextInfo = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .proto.Button buttons = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + 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<74>(ptr)); + } else goto handle_unusual; + continue; + // optional .proto.ButtonsMessage.ButtonsMessageHeaderType headerType = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::ButtonsMessage_ButtonsMessageHeaderType_IsValid(val))) { + _internal_set_headertype(static_cast<::proto::ButtonsMessage_ButtonsMessageHeaderType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(10, 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* ButtonsMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:proto.ButtonsMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (header_case()) { + case kText: { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_text().data(), static_cast<int>(this->_internal_text().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.ButtonsMessage.text"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_text(), target); + break; + } + case kDocumentMessage: { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::documentmessage(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 string contentText = 6; + if (cached_has_bits & 0x00000001u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_contenttext().data(), static_cast<int>(this->_internal_contenttext().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.ButtonsMessage.contentText"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_contenttext(), target); + } + + // optional string footerText = 7; + if (cached_has_bits & 0x00000002u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_footertext().data(), static_cast<int>(this->_internal_footertext().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.ButtonsMessage.footerText"); + target = stream->WriteStringMaybeAliased( + 7, this->_internal_footertext(), target); + } + + // optional .proto.ContextInfo contextInfo = 8; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 8, _Internal::contextinfo(this), target, stream); + } + + // repeated .proto.Button buttons = 9; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->_internal_buttons_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, this->_internal_buttons(i), target, stream); + } + + // optional .proto.ButtonsMessage.ButtonsMessageHeaderType headerType = 10; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 10, this->_internal_headertype(), 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.ButtonsMessage) + return target; +} + +size_t ButtonsMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:proto.ButtonsMessage) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .proto.Button buttons = 9; + total_size += 1UL * this->_internal_buttons_size(); + for (const auto& msg : this->buttons_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + // optional string contentText = 6; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_contenttext()); + } + + // optional string footerText = 7; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_footertext()); + } + + // optional .proto.ContextInfo contextInfo = 8; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *contextinfo_); + } + + // optional .proto.ButtonsMessage.ButtonsMessageHeaderType headerType = 10; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_headertype()); + } + + } + switch (header_case()) { + // string text = 1; + case kText: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_text()); + break; + } + // .proto.DocumentMessage documentMessage = 2; + case kDocumentMessage: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *header_.documentmessage_); + break; + } + // .proto.ImageMessage imageMessage = 3; + case kImageMessage: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *header_.imagemessage_); + break; + } + // .proto.VideoMessage videoMessage = 4; + case kVideoMessage: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *header_.videomessage_); + break; + } + // .proto.LocationMessage locationMessage = 5; + case kLocationMessage: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *header_.locationmessage_); + break; + } + case HEADER_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 ButtonsMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:proto.ButtonsMessage) + GOOGLE_DCHECK_NE(&from, this); + const ButtonsMessage* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ButtonsMessage>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.ButtonsMessage) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.ButtonsMessage) + MergeFrom(*source); + } +} + +void ButtonsMessage::MergeFrom(const ButtonsMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.ButtonsMessage) + 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 & 0x0000000fu) { + if (cached_has_bits & 0x00000001u) { + _internal_set_contenttext(from._internal_contenttext()); + } + if (cached_has_bits & 0x00000002u) { + _internal_set_footertext(from._internal_footertext()); + } + if (cached_has_bits & 0x00000004u) { + _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + } + if (cached_has_bits & 0x00000008u) { + headertype_ = from.headertype_; + } + _has_bits_[0] |= cached_has_bits; + } + switch (from.header_case()) { + case kText: { + _internal_set_text(from._internal_text()); + break; + } + case kDocumentMessage: { + _internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom(from._internal_documentmessage()); + 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 HEADER_NOT_SET: { + break; + } + } +} + +void ButtonsMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:proto.ButtonsMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ButtonsMessage::CopyFrom(const ButtonsMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:proto.ButtonsMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ButtonsMessage::IsInitialized() const { + return true; +} + +void ButtonsMessage::InternalSwap(ButtonsMessage* 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_); + contenttext_.Swap(&other->contenttext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + footertext_.Swap(&other->footertext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ButtonsMessage, headertype_) + + sizeof(ButtonsMessage::headertype_) + - PROTOBUF_FIELD_OFFSET(ButtonsMessage, contextinfo_)>( + reinterpret_cast<char*>(&contextinfo_), + reinterpret_cast<char*>(&other->contextinfo_)); + swap(header_, other->header_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ButtonsMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class ButtonsResponseMessage::_Internal { + public: + using HasBits = decltype(std::declval<ButtonsResponseMessage>()._has_bits_); + static void set_has_selectedbuttonid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::proto::ContextInfo& contextinfo(const ButtonsResponseMessage* msg); + static void set_has_contextinfo(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_type(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } +}; + +const ::proto::ContextInfo& +ButtonsResponseMessage::_Internal::contextinfo(const ButtonsResponseMessage* msg) { + return *msg->contextinfo_; +} +ButtonsResponseMessage::ButtonsResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:proto.ButtonsResponseMessage) +} +ButtonsResponseMessage::ButtonsResponseMessage(const ButtonsResponseMessage& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + selectedbuttonid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_selectedbuttonid()) { + selectedbuttonid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_selectedbuttonid(), + GetArena()); + } + if (from._internal_has_contextinfo()) { + contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); + } else { + contextinfo_ = nullptr; + } + type_ = from.type_; + clear_has_response(); + switch (from.response_case()) { + case kSelectedDisplayText: { + _internal_set_selecteddisplaytext(from._internal_selecteddisplaytext()); + break; + } + case RESPONSE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:proto.ButtonsResponseMessage) +} + +void ButtonsResponseMessage::SharedCtor() { +selectedbuttonid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&contextinfo_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&type_) - + reinterpret_cast<char*>(&contextinfo_)) + sizeof(type_)); +clear_has_response(); +} + +ButtonsResponseMessage::~ButtonsResponseMessage() { + // @@protoc_insertion_point(destructor:proto.ButtonsResponseMessage) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void ButtonsResponseMessage::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + selectedbuttonid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete contextinfo_; + if (has_response()) { + clear_response(); + } +} + +void ButtonsResponseMessage::ArenaDtor(void* object) { + ButtonsResponseMessage* _this = reinterpret_cast< ButtonsResponseMessage* >(object); + (void)_this; +} +void ButtonsResponseMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ButtonsResponseMessage::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ButtonsResponseMessage::clear_response() { +// @@protoc_insertion_point(one_of_clear_start:proto.ButtonsResponseMessage) + switch (response_case()) { + case kSelectedDisplayText: { + response_.selecteddisplaytext_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + break; + } + case RESPONSE_NOT_SET: { + break; + } + } + _oneof_case_[0] = RESPONSE_NOT_SET; +} + + +void ButtonsResponseMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:proto.ButtonsResponseMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // 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) { + selectedbuttonid_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(contextinfo_ != nullptr); + contextinfo_->Clear(); + } + } + type_ = 0; + clear_response(); + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ButtonsResponseMessage::_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 selectedButtonId = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_selectedbuttonid(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ButtonsResponseMessage.selectedButtonId"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; + // string selectedDisplayText = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + auto str = _internal_mutable_selecteddisplaytext(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ButtonsResponseMessage.selectedDisplayText"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.ContextInfo contextInfo = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_contextinfo(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.ButtonsResponseMessage.ButtonsResponseMessageType type = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::ButtonsResponseMessage_ButtonsResponseMessageType_IsValid(val))) { + _internal_set_type(static_cast<::proto::ButtonsResponseMessage_ButtonsResponseMessageType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, 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* ButtonsResponseMessage::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:proto.ButtonsResponseMessage) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string selectedButtonId = 1; + if (cached_has_bits & 0x00000001u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_selectedbuttonid().data(), static_cast<int>(this->_internal_selectedbuttonid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.ButtonsResponseMessage.selectedButtonId"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_selectedbuttonid(), target); + } + + // string selectedDisplayText = 2; + if (_internal_has_selecteddisplaytext()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_selecteddisplaytext().data(), static_cast<int>(this->_internal_selecteddisplaytext().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.ButtonsResponseMessage.selectedDisplayText"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_selecteddisplaytext(), target); + } + + // optional .proto.ContextInfo contextInfo = 3; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 3, _Internal::contextinfo(this), target, stream); + } + + // optional .proto.ButtonsResponseMessage.ButtonsResponseMessageType type = 4; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 4, this->_internal_type(), 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.ButtonsResponseMessage) + return target; +} + +size_t ButtonsResponseMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:proto.ButtonsResponseMessage) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // 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 selectedButtonId = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_selectedbuttonid()); + } + + // optional .proto.ContextInfo contextInfo = 3; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *contextinfo_); + } + + // optional .proto.ButtonsResponseMessage.ButtonsResponseMessageType type = 4; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + } + + } + switch (response_case()) { + // string selectedDisplayText = 2; + case kSelectedDisplayText: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_selecteddisplaytext()); + break; + } + case RESPONSE_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 ButtonsResponseMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:proto.ButtonsResponseMessage) + GOOGLE_DCHECK_NE(&from, this); + const ButtonsResponseMessage* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ButtonsResponseMessage>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.ButtonsResponseMessage) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.ButtonsResponseMessage) + MergeFrom(*source); + } +} + +void ButtonsResponseMessage::MergeFrom(const ButtonsResponseMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.ButtonsResponseMessage) + 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_selectedbuttonid(from._internal_selectedbuttonid()); + } + if (cached_has_bits & 0x00000002u) { + _internal_mutable_contextinfo()->::proto::ContextInfo::MergeFrom(from._internal_contextinfo()); + } + if (cached_has_bits & 0x00000004u) { + type_ = from.type_; + } + _has_bits_[0] |= cached_has_bits; + } + switch (from.response_case()) { + case kSelectedDisplayText: { + _internal_set_selecteddisplaytext(from._internal_selecteddisplaytext()); + break; + } + case RESPONSE_NOT_SET: { + break; + } + } +} + +void ButtonsResponseMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:proto.ButtonsResponseMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ButtonsResponseMessage::CopyFrom(const ButtonsResponseMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:proto.ButtonsResponseMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ButtonsResponseMessage::IsInitialized() const { + return true; +} + +void ButtonsResponseMessage::InternalSwap(ButtonsResponseMessage* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + selectedbuttonid_.Swap(&other->selectedbuttonid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ButtonsResponseMessage, type_) + + sizeof(ButtonsResponseMessage::type_) + - PROTOBUF_FIELD_OFFSET(ButtonsResponseMessage, contextinfo_)>( + reinterpret_cast<char*>(&contextinfo_), + reinterpret_cast<char*>(&other->contextinfo_)); + swap(response_, other->response_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ButtonsResponseMessage::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class Message::_Internal { + public: + using HasBits = decltype(std::declval<Message>()._has_bits_); + static void set_has_conversation(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::proto::SenderKeyDistributionMessage& senderkeydistributionmessage(const Message* msg); + static void set_has_senderkeydistributionmessage(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static const ::proto::ImageMessage& imagemessage(const Message* msg); + static void set_has_imagemessage(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static const ::proto::ContactMessage& contactmessage(const Message* msg); + static void set_has_contactmessage(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static const ::proto::LocationMessage& locationmessage(const Message* msg); + static void set_has_locationmessage(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static const ::proto::ExtendedTextMessage& extendedtextmessage(const Message* msg); + static void set_has_extendedtextmessage(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } + static const ::proto::DocumentMessage& documentmessage(const Message* msg); + static void set_has_documentmessage(HasBits* has_bits) { + (*has_bits)[0] |= 64u; + } + static const ::proto::AudioMessage& audiomessage(const Message* msg); + static void set_has_audiomessage(HasBits* has_bits) { + (*has_bits)[0] |= 128u; + } + static const ::proto::VideoMessage& videomessage(const Message* msg); + static void set_has_videomessage(HasBits* has_bits) { + (*has_bits)[0] |= 256u; + } + static const ::proto::Call& call(const Message* msg); + static void set_has_call(HasBits* has_bits) { + (*has_bits)[0] |= 512u; + } + static const ::proto::Chat& chat(const Message* msg); + static void set_has_chat(HasBits* has_bits) { + (*has_bits)[0] |= 1024u; + } + static const ::proto::ProtocolMessage& protocolmessage(const Message* msg); + static void set_has_protocolmessage(HasBits* has_bits) { + (*has_bits)[0] |= 2048u; + } + static const ::proto::ContactsArrayMessage& contactsarraymessage(const Message* msg); + static void set_has_contactsarraymessage(HasBits* has_bits) { + (*has_bits)[0] |= 4096u; + } + static const ::proto::HighlyStructuredMessage& highlystructuredmessage(const Message* msg); + static void set_has_highlystructuredmessage(HasBits* has_bits) { + (*has_bits)[0] |= 8192u; + } + static const ::proto::SenderKeyDistributionMessage& fastratchetkeysenderkeydistributionmessage(const Message* msg); + static void set_has_fastratchetkeysenderkeydistributionmessage(HasBits* has_bits) { + (*has_bits)[0] |= 16384u; + } + static const ::proto::SendPaymentMessage& sendpaymentmessage(const Message* msg); + static void set_has_sendpaymentmessage(HasBits* has_bits) { + (*has_bits)[0] |= 32768u; + } + static const ::proto::LiveLocationMessage& livelocationmessage(const Message* msg); + static void set_has_livelocationmessage(HasBits* has_bits) { + (*has_bits)[0] |= 65536u; + } + static const ::proto::RequestPaymentMessage& requestpaymentmessage(const Message* msg); + static void set_has_requestpaymentmessage(HasBits* has_bits) { + (*has_bits)[0] |= 131072u; + } + static const ::proto::DeclinePaymentRequestMessage& declinepaymentrequestmessage(const Message* msg); + static void set_has_declinepaymentrequestmessage(HasBits* has_bits) { + (*has_bits)[0] |= 262144u; + } + static const ::proto::CancelPaymentRequestMessage& cancelpaymentrequestmessage(const Message* msg); + static void set_has_cancelpaymentrequestmessage(HasBits* has_bits) { + (*has_bits)[0] |= 524288u; + } + static const ::proto::TemplateMessage& templatemessage(const Message* msg); + static void set_has_templatemessage(HasBits* has_bits) { + (*has_bits)[0] |= 1048576u; + } + static const ::proto::StickerMessage& stickermessage(const Message* msg); + static void set_has_stickermessage(HasBits* has_bits) { + (*has_bits)[0] |= 2097152u; + } + static const ::proto::GroupInviteMessage& groupinvitemessage(const Message* msg); + static void set_has_groupinvitemessage(HasBits* has_bits) { + (*has_bits)[0] |= 4194304u; + } + static const ::proto::TemplateButtonReplyMessage& templatebuttonreplymessage(const Message* msg); + static void set_has_templatebuttonreplymessage(HasBits* has_bits) { + (*has_bits)[0] |= 8388608u; + } + static const ::proto::ProductMessage& productmessage(const Message* msg); + static void set_has_productmessage(HasBits* has_bits) { + (*has_bits)[0] |= 16777216u; + } + static const ::proto::DeviceSentMessage& devicesentmessage(const Message* msg); + static void set_has_devicesentmessage(HasBits* has_bits) { + (*has_bits)[0] |= 33554432u; + } + static const ::proto::MessageContextInfo& messagecontextinfo(const Message* msg); + static void set_has_messagecontextinfo(HasBits* has_bits) { + (*has_bits)[0] |= 67108864u; + } + static const ::proto::ListMessage& listmessage(const Message* msg); + static void set_has_listmessage(HasBits* has_bits) { + (*has_bits)[0] |= 134217728u; + } + static const ::proto::FutureProofMessage& viewoncemessage(const Message* msg); + static void set_has_viewoncemessage(HasBits* has_bits) { + (*has_bits)[0] |= 268435456u; + } + static const ::proto::OrderMessage& ordermessage(const Message* msg); + static void set_has_ordermessage(HasBits* has_bits) { + (*has_bits)[0] |= 536870912u; + } + static const ::proto::ListResponseMessage& listresponsemessage(const Message* msg); + static void set_has_listresponsemessage(HasBits* has_bits) { + (*has_bits)[0] |= 1073741824u; + } + static const ::proto::FutureProofMessage& ephemeralmessage(const Message* msg); + static void set_has_ephemeralmessage(HasBits* has_bits) { + (*has_bits)[0] |= 2147483648u; + } + static const ::proto::InvoiceMessage& invoicemessage(const Message* msg); + static void set_has_invoicemessage(HasBits* has_bits) { + (*has_bits)[1] |= 1u; + } + static const ::proto::ButtonsMessage& buttonsmessage(const Message* msg); + static void set_has_buttonsmessage(HasBits* has_bits) { + (*has_bits)[1] |= 2u; + } + static const ::proto::ButtonsResponseMessage& buttonsresponsemessage(const Message* msg); + static void set_has_buttonsresponsemessage(HasBits* has_bits) { + (*has_bits)[1] |= 4u; + } +}; + +const ::proto::SenderKeyDistributionMessage& +Message::_Internal::senderkeydistributionmessage(const Message* msg) { + return *msg->senderkeydistributionmessage_; +} +const ::proto::ImageMessage& +Message::_Internal::imagemessage(const Message* msg) { + return *msg->imagemessage_; +} +const ::proto::ContactMessage& +Message::_Internal::contactmessage(const Message* msg) { + return *msg->contactmessage_; +} +const ::proto::LocationMessage& +Message::_Internal::locationmessage(const Message* msg) { + return *msg->locationmessage_; +} +const ::proto::ExtendedTextMessage& +Message::_Internal::extendedtextmessage(const Message* msg) { + return *msg->extendedtextmessage_; +} +const ::proto::DocumentMessage& +Message::_Internal::documentmessage(const Message* msg) { + return *msg->documentmessage_; +} +const ::proto::AudioMessage& +Message::_Internal::audiomessage(const Message* msg) { + return *msg->audiomessage_; +} +const ::proto::VideoMessage& +Message::_Internal::videomessage(const Message* msg) { + return *msg->videomessage_; +} +const ::proto::Call& +Message::_Internal::call(const Message* msg) { + return *msg->call_; +} +const ::proto::Chat& +Message::_Internal::chat(const Message* msg) { + return *msg->chat_; +} +const ::proto::ProtocolMessage& +Message::_Internal::protocolmessage(const Message* msg) { + return *msg->protocolmessage_; +} +const ::proto::ContactsArrayMessage& +Message::_Internal::contactsarraymessage(const Message* msg) { + return *msg->contactsarraymessage_; +} +const ::proto::HighlyStructuredMessage& +Message::_Internal::highlystructuredmessage(const Message* msg) { + return *msg->highlystructuredmessage_; +} +const ::proto::SenderKeyDistributionMessage& +Message::_Internal::fastratchetkeysenderkeydistributionmessage(const Message* msg) { + return *msg->fastratchetkeysenderkeydistributionmessage_; +} +const ::proto::SendPaymentMessage& +Message::_Internal::sendpaymentmessage(const Message* msg) { + return *msg->sendpaymentmessage_; +} +const ::proto::LiveLocationMessage& +Message::_Internal::livelocationmessage(const Message* msg) { + return *msg->livelocationmessage_; +} +const ::proto::RequestPaymentMessage& +Message::_Internal::requestpaymentmessage(const Message* msg) { + return *msg->requestpaymentmessage_; +} +const ::proto::DeclinePaymentRequestMessage& +Message::_Internal::declinepaymentrequestmessage(const Message* msg) { + return *msg->declinepaymentrequestmessage_; +} +const ::proto::CancelPaymentRequestMessage& +Message::_Internal::cancelpaymentrequestmessage(const Message* msg) { + return *msg->cancelpaymentrequestmessage_; +} +const ::proto::TemplateMessage& +Message::_Internal::templatemessage(const Message* msg) { + return *msg->templatemessage_; +} +const ::proto::StickerMessage& +Message::_Internal::stickermessage(const Message* msg) { + return *msg->stickermessage_; +} +const ::proto::GroupInviteMessage& +Message::_Internal::groupinvitemessage(const Message* msg) { + return *msg->groupinvitemessage_; +} +const ::proto::TemplateButtonReplyMessage& +Message::_Internal::templatebuttonreplymessage(const Message* msg) { + return *msg->templatebuttonreplymessage_; +} +const ::proto::ProductMessage& +Message::_Internal::productmessage(const Message* msg) { + return *msg->productmessage_; +} +const ::proto::DeviceSentMessage& +Message::_Internal::devicesentmessage(const Message* msg) { + return *msg->devicesentmessage_; +} +const ::proto::MessageContextInfo& +Message::_Internal::messagecontextinfo(const Message* msg) { + return *msg->messagecontextinfo_; +} +const ::proto::ListMessage& +Message::_Internal::listmessage(const Message* msg) { + return *msg->listmessage_; +} +const ::proto::FutureProofMessage& +Message::_Internal::viewoncemessage(const Message* msg) { + return *msg->viewoncemessage_; +} +const ::proto::OrderMessage& +Message::_Internal::ordermessage(const Message* msg) { + return *msg->ordermessage_; +} +const ::proto::ListResponseMessage& +Message::_Internal::listresponsemessage(const Message* msg) { + return *msg->listresponsemessage_; +} +const ::proto::FutureProofMessage& +Message::_Internal::ephemeralmessage(const Message* msg) { + return *msg->ephemeralmessage_; +} +const ::proto::InvoiceMessage& +Message::_Internal::invoicemessage(const Message* msg) { + return *msg->invoicemessage_; +} +const ::proto::ButtonsMessage& +Message::_Internal::buttonsmessage(const Message* msg) { + return *msg->buttonsmessage_; +} +const ::proto::ButtonsResponseMessage& +Message::_Internal::buttonsresponsemessage(const Message* msg) { + return *msg->buttonsresponsemessage_; +} +Message::Message(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:proto.Message) +} +Message::Message(const Message& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + conversation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_conversation()) { + conversation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_conversation(), + GetArena()); + } + if (from._internal_has_senderkeydistributionmessage()) { + senderkeydistributionmessage_ = new ::proto::SenderKeyDistributionMessage(*from.senderkeydistributionmessage_); + } else { + senderkeydistributionmessage_ = nullptr; + } + if (from._internal_has_imagemessage()) { + imagemessage_ = new ::proto::ImageMessage(*from.imagemessage_); + } else { + imagemessage_ = nullptr; + } + if (from._internal_has_contactmessage()) { + contactmessage_ = new ::proto::ContactMessage(*from.contactmessage_); + } else { + contactmessage_ = nullptr; + } + if (from._internal_has_locationmessage()) { + locationmessage_ = new ::proto::LocationMessage(*from.locationmessage_); + } else { + locationmessage_ = nullptr; + } + if (from._internal_has_extendedtextmessage()) { + extendedtextmessage_ = new ::proto::ExtendedTextMessage(*from.extendedtextmessage_); + } else { + extendedtextmessage_ = nullptr; + } + if (from._internal_has_documentmessage()) { + documentmessage_ = new ::proto::DocumentMessage(*from.documentmessage_); + } else { + documentmessage_ = nullptr; + } + if (from._internal_has_audiomessage()) { + audiomessage_ = new ::proto::AudioMessage(*from.audiomessage_); + } else { + audiomessage_ = nullptr; + } + if (from._internal_has_videomessage()) { + videomessage_ = new ::proto::VideoMessage(*from.videomessage_); + } else { + videomessage_ = nullptr; + } + if (from._internal_has_call()) { + call_ = new ::proto::Call(*from.call_); + } else { + call_ = nullptr; + } + if (from._internal_has_chat()) { + chat_ = new ::proto::Chat(*from.chat_); + } else { + chat_ = nullptr; + } + if (from._internal_has_protocolmessage()) { + protocolmessage_ = new ::proto::ProtocolMessage(*from.protocolmessage_); + } else { + protocolmessage_ = nullptr; + } + if (from._internal_has_contactsarraymessage()) { + contactsarraymessage_ = new ::proto::ContactsArrayMessage(*from.contactsarraymessage_); + } else { + contactsarraymessage_ = nullptr; + } + if (from._internal_has_highlystructuredmessage()) { + highlystructuredmessage_ = new ::proto::HighlyStructuredMessage(*from.highlystructuredmessage_); + } else { + highlystructuredmessage_ = nullptr; + } + if (from._internal_has_fastratchetkeysenderkeydistributionmessage()) { + fastratchetkeysenderkeydistributionmessage_ = new ::proto::SenderKeyDistributionMessage(*from.fastratchetkeysenderkeydistributionmessage_); + } else { + fastratchetkeysenderkeydistributionmessage_ = nullptr; + } + if (from._internal_has_sendpaymentmessage()) { + sendpaymentmessage_ = new ::proto::SendPaymentMessage(*from.sendpaymentmessage_); + } else { + sendpaymentmessage_ = nullptr; + } + if (from._internal_has_livelocationmessage()) { + livelocationmessage_ = new ::proto::LiveLocationMessage(*from.livelocationmessage_); + } else { + livelocationmessage_ = nullptr; + } + if (from._internal_has_requestpaymentmessage()) { + requestpaymentmessage_ = new ::proto::RequestPaymentMessage(*from.requestpaymentmessage_); + } else { + requestpaymentmessage_ = nullptr; + } + if (from._internal_has_declinepaymentrequestmessage()) { + declinepaymentrequestmessage_ = new ::proto::DeclinePaymentRequestMessage(*from.declinepaymentrequestmessage_); + } else { + declinepaymentrequestmessage_ = nullptr; + } + if (from._internal_has_cancelpaymentrequestmessage()) { + cancelpaymentrequestmessage_ = new ::proto::CancelPaymentRequestMessage(*from.cancelpaymentrequestmessage_); + } else { + cancelpaymentrequestmessage_ = nullptr; + } + if (from._internal_has_templatemessage()) { + templatemessage_ = new ::proto::TemplateMessage(*from.templatemessage_); + } else { + templatemessage_ = nullptr; + } + if (from._internal_has_stickermessage()) { + stickermessage_ = new ::proto::StickerMessage(*from.stickermessage_); + } else { + stickermessage_ = nullptr; + } + if (from._internal_has_groupinvitemessage()) { + groupinvitemessage_ = new ::proto::GroupInviteMessage(*from.groupinvitemessage_); + } else { + groupinvitemessage_ = nullptr; + } + if (from._internal_has_templatebuttonreplymessage()) { + templatebuttonreplymessage_ = new ::proto::TemplateButtonReplyMessage(*from.templatebuttonreplymessage_); + } else { + templatebuttonreplymessage_ = nullptr; + } + if (from._internal_has_productmessage()) { + productmessage_ = new ::proto::ProductMessage(*from.productmessage_); + } else { + productmessage_ = nullptr; + } + if (from._internal_has_devicesentmessage()) { + devicesentmessage_ = new ::proto::DeviceSentMessage(*from.devicesentmessage_); + } else { + devicesentmessage_ = nullptr; + } + if (from._internal_has_messagecontextinfo()) { + messagecontextinfo_ = new ::proto::MessageContextInfo(*from.messagecontextinfo_); + } else { + messagecontextinfo_ = nullptr; + } + if (from._internal_has_listmessage()) { + listmessage_ = new ::proto::ListMessage(*from.listmessage_); + } else { + listmessage_ = nullptr; + } + if (from._internal_has_viewoncemessage()) { + viewoncemessage_ = new ::proto::FutureProofMessage(*from.viewoncemessage_); + } else { + viewoncemessage_ = nullptr; + } + if (from._internal_has_ordermessage()) { + ordermessage_ = new ::proto::OrderMessage(*from.ordermessage_); + } else { + ordermessage_ = nullptr; + } + if (from._internal_has_listresponsemessage()) { + listresponsemessage_ = new ::proto::ListResponseMessage(*from.listresponsemessage_); + } else { + listresponsemessage_ = nullptr; + } + if (from._internal_has_ephemeralmessage()) { + ephemeralmessage_ = new ::proto::FutureProofMessage(*from.ephemeralmessage_); + } else { + ephemeralmessage_ = nullptr; + } + if (from._internal_has_invoicemessage()) { + invoicemessage_ = new ::proto::InvoiceMessage(*from.invoicemessage_); + } else { + invoicemessage_ = nullptr; + } + if (from._internal_has_buttonsmessage()) { + buttonsmessage_ = new ::proto::ButtonsMessage(*from.buttonsmessage_); + } else { + buttonsmessage_ = nullptr; + } + if (from._internal_has_buttonsresponsemessage()) { + buttonsresponsemessage_ = new ::proto::ButtonsResponseMessage(*from.buttonsresponsemessage_); + } else { + buttonsresponsemessage_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:proto.Message) +} + +void Message::SharedCtor() { +conversation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&senderkeydistributionmessage_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&buttonsresponsemessage_) - + reinterpret_cast<char*>(&senderkeydistributionmessage_)) + sizeof(buttonsresponsemessage_)); +} + +Message::~Message() { + // @@protoc_insertion_point(destructor:proto.Message) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void Message::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + conversation_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete senderkeydistributionmessage_; + if (this != internal_default_instance()) delete imagemessage_; + if (this != internal_default_instance()) delete contactmessage_; + if (this != internal_default_instance()) delete locationmessage_; + if (this != internal_default_instance()) delete extendedtextmessage_; + if (this != internal_default_instance()) delete documentmessage_; + if (this != internal_default_instance()) delete audiomessage_; + if (this != internal_default_instance()) delete videomessage_; + if (this != internal_default_instance()) delete call_; + if (this != internal_default_instance()) delete chat_; + if (this != internal_default_instance()) delete protocolmessage_; + if (this != internal_default_instance()) delete contactsarraymessage_; + if (this != internal_default_instance()) delete highlystructuredmessage_; + if (this != internal_default_instance()) delete fastratchetkeysenderkeydistributionmessage_; + if (this != internal_default_instance()) delete sendpaymentmessage_; + if (this != internal_default_instance()) delete livelocationmessage_; + if (this != internal_default_instance()) delete requestpaymentmessage_; + if (this != internal_default_instance()) delete declinepaymentrequestmessage_; + if (this != internal_default_instance()) delete cancelpaymentrequestmessage_; + if (this != internal_default_instance()) delete templatemessage_; + if (this != internal_default_instance()) delete stickermessage_; + if (this != internal_default_instance()) delete groupinvitemessage_; + if (this != internal_default_instance()) delete templatebuttonreplymessage_; + if (this != internal_default_instance()) delete productmessage_; + if (this != internal_default_instance()) delete devicesentmessage_; + if (this != internal_default_instance()) delete messagecontextinfo_; + if (this != internal_default_instance()) delete listmessage_; + if (this != internal_default_instance()) delete viewoncemessage_; + if (this != internal_default_instance()) delete ordermessage_; + if (this != internal_default_instance()) delete listresponsemessage_; + if (this != internal_default_instance()) delete ephemeralmessage_; + if (this != internal_default_instance()) delete invoicemessage_; + if (this != internal_default_instance()) delete buttonsmessage_; + if (this != internal_default_instance()) delete buttonsresponsemessage_; +} + +void Message::ArenaDtor(void* object) { + Message* _this = reinterpret_cast< Message* >(object); + (void)_this; +} +void Message::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void Message::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void Message::Clear() { +// @@protoc_insertion_point(message_clear_start:proto.Message) + ::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) { + conversation_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(senderkeydistributionmessage_ != nullptr); + senderkeydistributionmessage_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(imagemessage_ != nullptr); + imagemessage_->Clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(contactmessage_ != nullptr); + contactmessage_->Clear(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(locationmessage_ != nullptr); + locationmessage_->Clear(); + } + if (cached_has_bits & 0x00000020u) { + GOOGLE_DCHECK(extendedtextmessage_ != nullptr); + extendedtextmessage_->Clear(); + } + if (cached_has_bits & 0x00000040u) { + GOOGLE_DCHECK(documentmessage_ != nullptr); + documentmessage_->Clear(); + } + if (cached_has_bits & 0x00000080u) { + GOOGLE_DCHECK(audiomessage_ != nullptr); + audiomessage_->Clear(); + } + } + if (cached_has_bits & 0x0000ff00u) { + if (cached_has_bits & 0x00000100u) { + GOOGLE_DCHECK(videomessage_ != nullptr); + videomessage_->Clear(); + } + if (cached_has_bits & 0x00000200u) { + GOOGLE_DCHECK(call_ != nullptr); + call_->Clear(); + } + if (cached_has_bits & 0x00000400u) { + GOOGLE_DCHECK(chat_ != nullptr); + chat_->Clear(); + } + if (cached_has_bits & 0x00000800u) { + GOOGLE_DCHECK(protocolmessage_ != nullptr); + protocolmessage_->Clear(); + } + if (cached_has_bits & 0x00001000u) { + GOOGLE_DCHECK(contactsarraymessage_ != nullptr); + contactsarraymessage_->Clear(); + } + if (cached_has_bits & 0x00002000u) { + GOOGLE_DCHECK(highlystructuredmessage_ != nullptr); + highlystructuredmessage_->Clear(); + } + if (cached_has_bits & 0x00004000u) { + GOOGLE_DCHECK(fastratchetkeysenderkeydistributionmessage_ != nullptr); + fastratchetkeysenderkeydistributionmessage_->Clear(); + } + if (cached_has_bits & 0x00008000u) { + GOOGLE_DCHECK(sendpaymentmessage_ != nullptr); + sendpaymentmessage_->Clear(); + } + } + if (cached_has_bits & 0x00ff0000u) { + if (cached_has_bits & 0x00010000u) { + GOOGLE_DCHECK(livelocationmessage_ != nullptr); + livelocationmessage_->Clear(); + } + if (cached_has_bits & 0x00020000u) { + GOOGLE_DCHECK(requestpaymentmessage_ != nullptr); + requestpaymentmessage_->Clear(); + } + if (cached_has_bits & 0x00040000u) { + GOOGLE_DCHECK(declinepaymentrequestmessage_ != nullptr); + declinepaymentrequestmessage_->Clear(); + } + if (cached_has_bits & 0x00080000u) { + GOOGLE_DCHECK(cancelpaymentrequestmessage_ != nullptr); + cancelpaymentrequestmessage_->Clear(); + } + if (cached_has_bits & 0x00100000u) { + GOOGLE_DCHECK(templatemessage_ != nullptr); + templatemessage_->Clear(); + } + if (cached_has_bits & 0x00200000u) { + GOOGLE_DCHECK(stickermessage_ != nullptr); + stickermessage_->Clear(); + } + if (cached_has_bits & 0x00400000u) { + GOOGLE_DCHECK(groupinvitemessage_ != nullptr); + groupinvitemessage_->Clear(); + } + if (cached_has_bits & 0x00800000u) { + GOOGLE_DCHECK(templatebuttonreplymessage_ != nullptr); + templatebuttonreplymessage_->Clear(); + } + } + if (cached_has_bits & 0xff000000u) { + if (cached_has_bits & 0x01000000u) { + GOOGLE_DCHECK(productmessage_ != nullptr); + productmessage_->Clear(); + } + if (cached_has_bits & 0x02000000u) { + GOOGLE_DCHECK(devicesentmessage_ != nullptr); + devicesentmessage_->Clear(); + } + if (cached_has_bits & 0x04000000u) { + GOOGLE_DCHECK(messagecontextinfo_ != nullptr); + messagecontextinfo_->Clear(); + } + if (cached_has_bits & 0x08000000u) { + GOOGLE_DCHECK(listmessage_ != nullptr); + listmessage_->Clear(); + } + if (cached_has_bits & 0x10000000u) { + GOOGLE_DCHECK(viewoncemessage_ != nullptr); + viewoncemessage_->Clear(); + } + if (cached_has_bits & 0x20000000u) { + GOOGLE_DCHECK(ordermessage_ != nullptr); + ordermessage_->Clear(); + } + if (cached_has_bits & 0x40000000u) { + GOOGLE_DCHECK(listresponsemessage_ != nullptr); + listresponsemessage_->Clear(); + } + if (cached_has_bits & 0x80000000u) { + GOOGLE_DCHECK(ephemeralmessage_ != nullptr); + ephemeralmessage_->Clear(); + } + } + cached_has_bits = _has_bits_[1]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + GOOGLE_DCHECK(invoicemessage_ != nullptr); + invoicemessage_->Clear(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(buttonsmessage_ != nullptr); + buttonsmessage_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(buttonsresponsemessage_ != nullptr); + buttonsresponsemessage_->Clear(); + } + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* Message::_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) { + // optional string conversation = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_conversation(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Message.conversation"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.SenderKeyDistributionMessage senderKeyDistributionMessage = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_senderkeydistributionmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .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; + // optional .proto.ContactMessage contactMessage = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_contactmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .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.ExtendedTextMessage extendedTextMessage = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_extendedtextmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.DocumentMessage documentMessage = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_documentmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.AudioMessage audioMessage = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_audiomessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.VideoMessage videoMessage = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_videomessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.Call call = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_call(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.Chat chat = 11; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_chat(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.ProtocolMessage protocolMessage = 12; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_protocolmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.ContactsArrayMessage contactsArrayMessage = 13; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_contactsarraymessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.HighlyStructuredMessage highlyStructuredMessage = 14; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) { + ptr = ctx->ParseMessage(_internal_mutable_highlystructuredmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.SenderKeyDistributionMessage fastRatchetKeySenderKeyDistributionMessage = 15; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) { + ptr = ctx->ParseMessage(_internal_mutable_fastratchetkeysenderkeydistributionmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.SendPaymentMessage sendPaymentMessage = 16; + case 16: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { + ptr = ctx->ParseMessage(_internal_mutable_sendpaymentmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.LiveLocationMessage liveLocationMessage = 18; + case 18: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 146)) { + ptr = ctx->ParseMessage(_internal_mutable_livelocationmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.RequestPaymentMessage requestPaymentMessage = 22; + case 22: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 178)) { + ptr = ctx->ParseMessage(_internal_mutable_requestpaymentmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.DeclinePaymentRequestMessage declinePaymentRequestMessage = 23; + case 23: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 186)) { + ptr = ctx->ParseMessage(_internal_mutable_declinepaymentrequestmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.CancelPaymentRequestMessage cancelPaymentRequestMessage = 24; + case 24: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 194)) { + ptr = ctx->ParseMessage(_internal_mutable_cancelpaymentrequestmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.TemplateMessage templateMessage = 25; + case 25: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 202)) { + ptr = ctx->ParseMessage(_internal_mutable_templatemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.StickerMessage stickerMessage = 26; + case 26: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 210)) { + ptr = ctx->ParseMessage(_internal_mutable_stickermessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.GroupInviteMessage groupInviteMessage = 28; + case 28: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 226)) { + ptr = ctx->ParseMessage(_internal_mutable_groupinvitemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.TemplateButtonReplyMessage templateButtonReplyMessage = 29; + case 29: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 234)) { + ptr = ctx->ParseMessage(_internal_mutable_templatebuttonreplymessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.ProductMessage productMessage = 30; + case 30: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 242)) { + ptr = ctx->ParseMessage(_internal_mutable_productmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.DeviceSentMessage deviceSentMessage = 31; + case 31: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 250)) { + ptr = ctx->ParseMessage(_internal_mutable_devicesentmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.MessageContextInfo messageContextInfo = 35; + case 35: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_messagecontextinfo(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.ListMessage listMessage = 36; + case 36: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_listmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.FutureProofMessage viewOnceMessage = 37; + case 37: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_viewoncemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.OrderMessage orderMessage = 38; + case 38: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_ordermessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.ListResponseMessage listResponseMessage = 39; + case 39: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_listresponsemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.FutureProofMessage ephemeralMessage = 40; + case 40: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_ephemeralmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.InvoiceMessage invoiceMessage = 41; + case 41: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_invoicemessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.ButtonsMessage buttonsMessage = 42; + case 42: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_buttonsmessage(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.ButtonsResponseMessage buttonsResponseMessage = 43; + case 43: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_buttonsresponsemessage(), 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* Message::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:proto.Message) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string conversation = 1; + if (cached_has_bits & 0x00000001u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_conversation().data(), static_cast<int>(this->_internal_conversation().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.Message.conversation"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_conversation(), target); + } + + // optional .proto.SenderKeyDistributionMessage senderKeyDistributionMessage = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::senderkeydistributionmessage(this), target, stream); + } + + // optional .proto.ImageMessage imageMessage = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 3, _Internal::imagemessage(this), target, stream); + } + + // optional .proto.ContactMessage contactMessage = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 4, _Internal::contactmessage(this), target, stream); + } + + // optional .proto.LocationMessage locationMessage = 5; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 5, _Internal::locationmessage(this), target, stream); + } + + // optional .proto.ExtendedTextMessage extendedTextMessage = 6; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 6, _Internal::extendedtextmessage(this), target, stream); + } + + // optional .proto.DocumentMessage documentMessage = 7; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 7, _Internal::documentmessage(this), target, stream); + } + + // optional .proto.AudioMessage audioMessage = 8; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 8, _Internal::audiomessage(this), target, stream); + } + + // optional .proto.VideoMessage videoMessage = 9; + if (cached_has_bits & 0x00000100u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 9, _Internal::videomessage(this), target, stream); + } + + // optional .proto.Call call = 10; + if (cached_has_bits & 0x00000200u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 10, _Internal::call(this), target, stream); + } + + // optional .proto.Chat chat = 11; + if (cached_has_bits & 0x00000400u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 11, _Internal::chat(this), target, stream); + } + + // optional .proto.ProtocolMessage protocolMessage = 12; + if (cached_has_bits & 0x00000800u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 12, _Internal::protocolmessage(this), target, stream); + } + + // optional .proto.ContactsArrayMessage contactsArrayMessage = 13; + if (cached_has_bits & 0x00001000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 13, _Internal::contactsarraymessage(this), target, stream); + } + + // optional .proto.HighlyStructuredMessage highlyStructuredMessage = 14; + if (cached_has_bits & 0x00002000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 14, _Internal::highlystructuredmessage(this), target, stream); + } + + // optional .proto.SenderKeyDistributionMessage fastRatchetKeySenderKeyDistributionMessage = 15; + if (cached_has_bits & 0x00004000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 15, _Internal::fastratchetkeysenderkeydistributionmessage(this), target, stream); + } + + // optional .proto.SendPaymentMessage sendPaymentMessage = 16; + if (cached_has_bits & 0x00008000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 16, _Internal::sendpaymentmessage(this), target, stream); + } + + // optional .proto.LiveLocationMessage liveLocationMessage = 18; + if (cached_has_bits & 0x00010000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 18, _Internal::livelocationmessage(this), target, stream); + } + + // optional .proto.RequestPaymentMessage requestPaymentMessage = 22; + if (cached_has_bits & 0x00020000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 22, _Internal::requestpaymentmessage(this), target, stream); + } + + // optional .proto.DeclinePaymentRequestMessage declinePaymentRequestMessage = 23; + if (cached_has_bits & 0x00040000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 23, _Internal::declinepaymentrequestmessage(this), target, stream); + } + + // optional .proto.CancelPaymentRequestMessage cancelPaymentRequestMessage = 24; + if (cached_has_bits & 0x00080000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 24, _Internal::cancelpaymentrequestmessage(this), target, stream); + } + + // optional .proto.TemplateMessage templateMessage = 25; + if (cached_has_bits & 0x00100000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 25, _Internal::templatemessage(this), target, stream); + } + + // optional .proto.StickerMessage stickerMessage = 26; + if (cached_has_bits & 0x00200000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 26, _Internal::stickermessage(this), target, stream); + } + + // optional .proto.GroupInviteMessage groupInviteMessage = 28; + if (cached_has_bits & 0x00400000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 28, _Internal::groupinvitemessage(this), target, stream); + } + + // optional .proto.TemplateButtonReplyMessage templateButtonReplyMessage = 29; + if (cached_has_bits & 0x00800000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 29, _Internal::templatebuttonreplymessage(this), target, stream); + } + + // optional .proto.ProductMessage productMessage = 30; + if (cached_has_bits & 0x01000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 30, _Internal::productmessage(this), target, stream); + } + + // optional .proto.DeviceSentMessage deviceSentMessage = 31; + if (cached_has_bits & 0x02000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 31, _Internal::devicesentmessage(this), target, stream); + } + + // optional .proto.MessageContextInfo messageContextInfo = 35; + if (cached_has_bits & 0x04000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 35, _Internal::messagecontextinfo(this), target, stream); + } + + // optional .proto.ListMessage listMessage = 36; + if (cached_has_bits & 0x08000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 36, _Internal::listmessage(this), target, stream); + } + + // optional .proto.FutureProofMessage viewOnceMessage = 37; + if (cached_has_bits & 0x10000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 37, _Internal::viewoncemessage(this), target, stream); + } + + // optional .proto.OrderMessage orderMessage = 38; + if (cached_has_bits & 0x20000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 38, _Internal::ordermessage(this), target, stream); + } + + // optional .proto.ListResponseMessage listResponseMessage = 39; + if (cached_has_bits & 0x40000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 39, _Internal::listresponsemessage(this), target, stream); + } + + // optional .proto.FutureProofMessage ephemeralMessage = 40; + if (cached_has_bits & 0x80000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 40, _Internal::ephemeralmessage(this), target, stream); + } + + cached_has_bits = _has_bits_[1]; + // optional .proto.InvoiceMessage invoiceMessage = 41; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 41, _Internal::invoicemessage(this), target, stream); + } + + // optional .proto.ButtonsMessage buttonsMessage = 42; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 42, _Internal::buttonsmessage(this), target, stream); + } + + // optional .proto.ButtonsResponseMessage buttonsResponseMessage = 43; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 43, _Internal::buttonsresponsemessage(this), target, stream); + } + + 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.Message) + return target; +} + +size_t Message::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:proto.Message) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // 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 conversation = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_conversation()); + } + + // optional .proto.SenderKeyDistributionMessage senderKeyDistributionMessage = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *senderkeydistributionmessage_); + } + + // optional .proto.ImageMessage imageMessage = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *imagemessage_); + } + + // optional .proto.ContactMessage contactMessage = 4; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *contactmessage_); + } + + // optional .proto.LocationMessage locationMessage = 5; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *locationmessage_); + } + + // optional .proto.ExtendedTextMessage extendedTextMessage = 6; + if (cached_has_bits & 0x00000020u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *extendedtextmessage_); + } + + // optional .proto.DocumentMessage documentMessage = 7; + if (cached_has_bits & 0x00000040u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *documentmessage_); + } + + // optional .proto.AudioMessage audioMessage = 8; + if (cached_has_bits & 0x00000080u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *audiomessage_); + } + + } + if (cached_has_bits & 0x0000ff00u) { + // optional .proto.VideoMessage videoMessage = 9; + if (cached_has_bits & 0x00000100u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *videomessage_); + } + + // optional .proto.Call call = 10; + if (cached_has_bits & 0x00000200u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *call_); + } + + // optional .proto.Chat chat = 11; + if (cached_has_bits & 0x00000400u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *chat_); + } + + // optional .proto.ProtocolMessage protocolMessage = 12; + if (cached_has_bits & 0x00000800u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *protocolmessage_); + } + + // optional .proto.ContactsArrayMessage contactsArrayMessage = 13; + if (cached_has_bits & 0x00001000u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *contactsarraymessage_); + } + + // optional .proto.HighlyStructuredMessage highlyStructuredMessage = 14; + if (cached_has_bits & 0x00002000u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *highlystructuredmessage_); + } + + // optional .proto.SenderKeyDistributionMessage fastRatchetKeySenderKeyDistributionMessage = 15; + if (cached_has_bits & 0x00004000u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *fastratchetkeysenderkeydistributionmessage_); + } + + // optional .proto.SendPaymentMessage sendPaymentMessage = 16; + if (cached_has_bits & 0x00008000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *sendpaymentmessage_); + } + + } + if (cached_has_bits & 0x00ff0000u) { + // optional .proto.LiveLocationMessage liveLocationMessage = 18; + if (cached_has_bits & 0x00010000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *livelocationmessage_); + } + + // optional .proto.RequestPaymentMessage requestPaymentMessage = 22; + if (cached_has_bits & 0x00020000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *requestpaymentmessage_); + } + + // optional .proto.DeclinePaymentRequestMessage declinePaymentRequestMessage = 23; + if (cached_has_bits & 0x00040000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *declinepaymentrequestmessage_); + } + + // optional .proto.CancelPaymentRequestMessage cancelPaymentRequestMessage = 24; + if (cached_has_bits & 0x00080000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *cancelpaymentrequestmessage_); + } + + // optional .proto.TemplateMessage templateMessage = 25; + if (cached_has_bits & 0x00100000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *templatemessage_); + } + + // optional .proto.StickerMessage stickerMessage = 26; + if (cached_has_bits & 0x00200000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *stickermessage_); + } + + // optional .proto.GroupInviteMessage groupInviteMessage = 28; + if (cached_has_bits & 0x00400000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *groupinvitemessage_); + } + + // optional .proto.TemplateButtonReplyMessage templateButtonReplyMessage = 29; + if (cached_has_bits & 0x00800000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *templatebuttonreplymessage_); + } + + } + if (cached_has_bits & 0xff000000u) { + // optional .proto.ProductMessage productMessage = 30; + if (cached_has_bits & 0x01000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *productmessage_); + } + + // optional .proto.DeviceSentMessage deviceSentMessage = 31; + if (cached_has_bits & 0x02000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *devicesentmessage_); + } + + // optional .proto.MessageContextInfo messageContextInfo = 35; + if (cached_has_bits & 0x04000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *messagecontextinfo_); + } + + // optional .proto.ListMessage listMessage = 36; + if (cached_has_bits & 0x08000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *listmessage_); + } + + // optional .proto.FutureProofMessage viewOnceMessage = 37; + if (cached_has_bits & 0x10000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *viewoncemessage_); + } + + // optional .proto.OrderMessage orderMessage = 38; + if (cached_has_bits & 0x20000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *ordermessage_); + } + + // optional .proto.ListResponseMessage listResponseMessage = 39; + if (cached_has_bits & 0x40000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *listresponsemessage_); + } + + // optional .proto.FutureProofMessage ephemeralMessage = 40; + if (cached_has_bits & 0x80000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *ephemeralmessage_); + } + + } + cached_has_bits = _has_bits_[1]; + if (cached_has_bits & 0x00000007u) { + // optional .proto.InvoiceMessage invoiceMessage = 41; + if (cached_has_bits & 0x00000001u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *invoicemessage_); + } + + // optional .proto.ButtonsMessage buttonsMessage = 42; + if (cached_has_bits & 0x00000002u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *buttonsmessage_); + } + + // optional .proto.ButtonsResponseMessage buttonsResponseMessage = 43; + if (cached_has_bits & 0x00000004u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *buttonsresponsemessage_); + } + + } + 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 Message::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:proto.Message) + GOOGLE_DCHECK_NE(&from, this); + const Message* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Message>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.Message) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.Message) + MergeFrom(*source); + } +} + +void Message::MergeFrom(const Message& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.Message) + 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_conversation(from._internal_conversation()); + } + if (cached_has_bits & 0x00000002u) { + _internal_mutable_senderkeydistributionmessage()->::proto::SenderKeyDistributionMessage::MergeFrom(from._internal_senderkeydistributionmessage()); + } + if (cached_has_bits & 0x00000004u) { + _internal_mutable_imagemessage()->::proto::ImageMessage::MergeFrom(from._internal_imagemessage()); + } + if (cached_has_bits & 0x00000008u) { + _internal_mutable_contactmessage()->::proto::ContactMessage::MergeFrom(from._internal_contactmessage()); + } + if (cached_has_bits & 0x00000010u) { + _internal_mutable_locationmessage()->::proto::LocationMessage::MergeFrom(from._internal_locationmessage()); + } + if (cached_has_bits & 0x00000020u) { + _internal_mutable_extendedtextmessage()->::proto::ExtendedTextMessage::MergeFrom(from._internal_extendedtextmessage()); + } + if (cached_has_bits & 0x00000040u) { + _internal_mutable_documentmessage()->::proto::DocumentMessage::MergeFrom(from._internal_documentmessage()); + } + if (cached_has_bits & 0x00000080u) { + _internal_mutable_audiomessage()->::proto::AudioMessage::MergeFrom(from._internal_audiomessage()); + } + } + if (cached_has_bits & 0x0000ff00u) { + if (cached_has_bits & 0x00000100u) { + _internal_mutable_videomessage()->::proto::VideoMessage::MergeFrom(from._internal_videomessage()); + } + if (cached_has_bits & 0x00000200u) { + _internal_mutable_call()->::proto::Call::MergeFrom(from._internal_call()); + } + if (cached_has_bits & 0x00000400u) { + _internal_mutable_chat()->::proto::Chat::MergeFrom(from._internal_chat()); + } + if (cached_has_bits & 0x00000800u) { + _internal_mutable_protocolmessage()->::proto::ProtocolMessage::MergeFrom(from._internal_protocolmessage()); + } + if (cached_has_bits & 0x00001000u) { + _internal_mutable_contactsarraymessage()->::proto::ContactsArrayMessage::MergeFrom(from._internal_contactsarraymessage()); + } + if (cached_has_bits & 0x00002000u) { + _internal_mutable_highlystructuredmessage()->::proto::HighlyStructuredMessage::MergeFrom(from._internal_highlystructuredmessage()); + } + if (cached_has_bits & 0x00004000u) { + _internal_mutable_fastratchetkeysenderkeydistributionmessage()->::proto::SenderKeyDistributionMessage::MergeFrom(from._internal_fastratchetkeysenderkeydistributionmessage()); + } + if (cached_has_bits & 0x00008000u) { + _internal_mutable_sendpaymentmessage()->::proto::SendPaymentMessage::MergeFrom(from._internal_sendpaymentmessage()); + } + } + if (cached_has_bits & 0x00ff0000u) { + if (cached_has_bits & 0x00010000u) { + _internal_mutable_livelocationmessage()->::proto::LiveLocationMessage::MergeFrom(from._internal_livelocationmessage()); + } + if (cached_has_bits & 0x00020000u) { + _internal_mutable_requestpaymentmessage()->::proto::RequestPaymentMessage::MergeFrom(from._internal_requestpaymentmessage()); + } + if (cached_has_bits & 0x00040000u) { + _internal_mutable_declinepaymentrequestmessage()->::proto::DeclinePaymentRequestMessage::MergeFrom(from._internal_declinepaymentrequestmessage()); + } + if (cached_has_bits & 0x00080000u) { + _internal_mutable_cancelpaymentrequestmessage()->::proto::CancelPaymentRequestMessage::MergeFrom(from._internal_cancelpaymentrequestmessage()); + } + if (cached_has_bits & 0x00100000u) { + _internal_mutable_templatemessage()->::proto::TemplateMessage::MergeFrom(from._internal_templatemessage()); + } + if (cached_has_bits & 0x00200000u) { + _internal_mutable_stickermessage()->::proto::StickerMessage::MergeFrom(from._internal_stickermessage()); + } + if (cached_has_bits & 0x00400000u) { + _internal_mutable_groupinvitemessage()->::proto::GroupInviteMessage::MergeFrom(from._internal_groupinvitemessage()); + } + if (cached_has_bits & 0x00800000u) { + _internal_mutable_templatebuttonreplymessage()->::proto::TemplateButtonReplyMessage::MergeFrom(from._internal_templatebuttonreplymessage()); + } + } + if (cached_has_bits & 0xff000000u) { + if (cached_has_bits & 0x01000000u) { + _internal_mutable_productmessage()->::proto::ProductMessage::MergeFrom(from._internal_productmessage()); + } + if (cached_has_bits & 0x02000000u) { + _internal_mutable_devicesentmessage()->::proto::DeviceSentMessage::MergeFrom(from._internal_devicesentmessage()); + } + if (cached_has_bits & 0x04000000u) { + _internal_mutable_messagecontextinfo()->::proto::MessageContextInfo::MergeFrom(from._internal_messagecontextinfo()); + } + if (cached_has_bits & 0x08000000u) { + _internal_mutable_listmessage()->::proto::ListMessage::MergeFrom(from._internal_listmessage()); + } + if (cached_has_bits & 0x10000000u) { + _internal_mutable_viewoncemessage()->::proto::FutureProofMessage::MergeFrom(from._internal_viewoncemessage()); + } + if (cached_has_bits & 0x20000000u) { + _internal_mutable_ordermessage()->::proto::OrderMessage::MergeFrom(from._internal_ordermessage()); + } + if (cached_has_bits & 0x40000000u) { + _internal_mutable_listresponsemessage()->::proto::ListResponseMessage::MergeFrom(from._internal_listresponsemessage()); + } + if (cached_has_bits & 0x80000000u) { + _internal_mutable_ephemeralmessage()->::proto::FutureProofMessage::MergeFrom(from._internal_ephemeralmessage()); + } + } + cached_has_bits = from._has_bits_[1]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + _internal_mutable_invoicemessage()->::proto::InvoiceMessage::MergeFrom(from._internal_invoicemessage()); + } + if (cached_has_bits & 0x00000002u) { + _internal_mutable_buttonsmessage()->::proto::ButtonsMessage::MergeFrom(from._internal_buttonsmessage()); + } + if (cached_has_bits & 0x00000004u) { + _internal_mutable_buttonsresponsemessage()->::proto::ButtonsResponseMessage::MergeFrom(from._internal_buttonsresponsemessage()); + } + } +} + +void Message::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:proto.Message) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Message::CopyFrom(const Message& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:proto.Message) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Message::IsInitialized() const { + return true; +} + +void Message::InternalSwap(Message* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(_has_bits_[1], other->_has_bits_[1]); + conversation_.Swap(&other->conversation_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Message, buttonsresponsemessage_) + + sizeof(Message::buttonsresponsemessage_) + - PROTOBUF_FIELD_OFFSET(Message, senderkeydistributionmessage_)>( + reinterpret_cast<char*>(&senderkeydistributionmessage_), + reinterpret_cast<char*>(&other->senderkeydistributionmessage_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Message::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class MessageKey::_Internal { + public: + using HasBits = decltype(std::declval<MessageKey>()._has_bits_); + static void set_has_remotejid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_fromme(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_id(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_participant(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } +}; + +MessageKey::MessageKey(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:proto.MessageKey) +} +MessageKey::MessageKey(const MessageKey& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + remotejid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_remotejid()) { + remotejid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_remotejid(), + 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()); + } + participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_participant()) { + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_participant(), + GetArena()); + } + fromme_ = from.fromme_; + // @@protoc_insertion_point(copy_constructor:proto.MessageKey) +} + +void MessageKey::SharedCtor() { +remotejid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +fromme_ = false; +} + +MessageKey::~MessageKey() { + // @@protoc_insertion_point(destructor:proto.MessageKey) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void MessageKey::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + remotejid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + participant_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void MessageKey::ArenaDtor(void* object) { + MessageKey* _this = reinterpret_cast< MessageKey* >(object); + (void)_this; +} +void MessageKey::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void MessageKey::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void MessageKey::Clear() { +// @@protoc_insertion_point(message_clear_start:proto.MessageKey) + ::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) { + remotejid_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + id_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000004u) { + participant_.ClearNonDefaultToEmpty(); + } + } + fromme_ = false; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MessageKey::_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 remoteJid = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + auto str = _internal_mutable_remotejid(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.MessageKey.remoteJid"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bool fromMe = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_fromme(&has_bits); + fromme_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional string id = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_id(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.MessageKey.id"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional string participant = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_participant(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.MessageKey.participant"); + #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* MessageKey::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:proto.MessageKey) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional string remoteJid = 1; + if (cached_has_bits & 0x00000001u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_remotejid().data(), static_cast<int>(this->_internal_remotejid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.MessageKey.remoteJid"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_remotejid(), target); + } + + // optional bool fromMe = 2; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_fromme(), target); + } + + // optional string id = 3; + if (cached_has_bits & 0x00000002u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_id().data(), static_cast<int>(this->_internal_id().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.MessageKey.id"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_id(), target); + } + + // optional string participant = 4; + if (cached_has_bits & 0x00000004u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_participant().data(), static_cast<int>(this->_internal_participant().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.MessageKey.participant"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_participant(), 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.MessageKey) + return target; +} + +size_t MessageKey::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:proto.MessageKey) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // 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 remoteJid = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_remotejid()); + } + + // optional string id = 3; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_id()); + } + + // optional string participant = 4; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_participant()); + } + + // optional bool fromMe = 2; + if (cached_has_bits & 0x00000008u) { + 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 MessageKey::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:proto.MessageKey) + GOOGLE_DCHECK_NE(&from, this); + const MessageKey* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MessageKey>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.MessageKey) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.MessageKey) + MergeFrom(*source); + } +} + +void MessageKey::MergeFrom(const MessageKey& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.MessageKey) + 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_remotejid(from._internal_remotejid()); + } + if (cached_has_bits & 0x00000002u) { + _internal_set_id(from._internal_id()); + } + if (cached_has_bits & 0x00000004u) { + _internal_set_participant(from._internal_participant()); + } + if (cached_has_bits & 0x00000008u) { + fromme_ = from.fromme_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void MessageKey::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:proto.MessageKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MessageKey::CopyFrom(const MessageKey& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:proto.MessageKey) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MessageKey::IsInitialized() const { + return true; +} + +void MessageKey::InternalSwap(MessageKey* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + remotejid_.Swap(&other->remotejid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + participant_.Swap(&other->participant_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(fromme_, other->fromme_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MessageKey::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class WebFeatures::_Internal { + public: + using HasBits = decltype(std::declval<WebFeatures>()._has_bits_); + static void set_has_labelsdisplay(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_voipindividualoutgoing(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_groupsv3(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_groupsv3create(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_changenumberv2(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static void set_has_querystatusv3thumbnail(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } + static void set_has_livelocations(HasBits* has_bits) { + (*has_bits)[0] |= 64u; + } + static void set_has_queryvname(HasBits* has_bits) { + (*has_bits)[0] |= 128u; + } + static void set_has_voipindividualincoming(HasBits* has_bits) { + (*has_bits)[0] |= 256u; + } + static void set_has_quickrepliesquery(HasBits* has_bits) { + (*has_bits)[0] |= 512u; + } + static void set_has_payments(HasBits* has_bits) { + (*has_bits)[0] |= 1024u; + } + static void set_has_stickerpackquery(HasBits* has_bits) { + (*has_bits)[0] |= 2048u; + } + static void set_has_livelocationsfinal(HasBits* has_bits) { + (*has_bits)[0] |= 4096u; + } + static void set_has_labelsedit(HasBits* has_bits) { + (*has_bits)[0] |= 8192u; + } + static void set_has_mediaupload(HasBits* has_bits) { + (*has_bits)[0] |= 16384u; + } + static void set_has_mediauploadrichquickreplies(HasBits* has_bits) { + (*has_bits)[0] |= 32768u; + } + static void set_has_vnamev2(HasBits* has_bits) { + (*has_bits)[0] |= 65536u; + } + static void set_has_videoplaybackurl(HasBits* has_bits) { + (*has_bits)[0] |= 131072u; + } + static void set_has_statusranking(HasBits* has_bits) { + (*has_bits)[0] |= 262144u; + } + static void set_has_voipindividualvideo(HasBits* has_bits) { + (*has_bits)[0] |= 524288u; + } + static void set_has_thirdpartystickers(HasBits* has_bits) { + (*has_bits)[0] |= 1048576u; + } + static void set_has_frequentlyforwardedsetting(HasBits* has_bits) { + (*has_bits)[0] |= 2097152u; + } + static void set_has_groupsv4joinpermission(HasBits* has_bits) { + (*has_bits)[0] |= 4194304u; + } + static void set_has_recentstickers(HasBits* has_bits) { + (*has_bits)[0] |= 8388608u; + } + static void set_has_catalog(HasBits* has_bits) { + (*has_bits)[0] |= 16777216u; + } + static void set_has_starredstickers(HasBits* has_bits) { + (*has_bits)[0] |= 33554432u; + } + static void set_has_voipgroupcall(HasBits* has_bits) { + (*has_bits)[0] |= 67108864u; + } + static void set_has_templatemessage(HasBits* has_bits) { + (*has_bits)[0] |= 134217728u; + } + static void set_has_templatemessageinteractivity(HasBits* has_bits) { + (*has_bits)[0] |= 268435456u; + } + static void set_has_ephemeralmessages(HasBits* has_bits) { + (*has_bits)[0] |= 536870912u; + } + static void set_has_e2enotificationsync(HasBits* has_bits) { + (*has_bits)[0] |= 1073741824u; + } + static void set_has_recentstickersv2(HasBits* has_bits) { + (*has_bits)[0] |= 2147483648u; + } + static void set_has_syncdrelease1(HasBits* has_bits) { + (*has_bits)[1] |= 1u; + } + static void set_has_recentstickersv3(HasBits* has_bits) { + (*has_bits)[1] |= 2u; + } + static void set_has_usernotice(HasBits* has_bits) { + (*has_bits)[1] |= 4u; + } + static void set_has_syncdrelease11(HasBits* has_bits) { + (*has_bits)[1] |= 8u; + } + static void set_has_support(HasBits* has_bits) { + (*has_bits)[1] |= 16u; + } + static void set_has_groupuiicleanup(HasBits* has_bits) { + (*has_bits)[1] |= 32u; + } + static void set_has_groupdogfoodinginternalonly(HasBits* has_bits) { + (*has_bits)[1] |= 64u; + } + static void set_has_settingssync(HasBits* has_bits) { + (*has_bits)[1] |= 128u; + } +}; + +WebFeatures::WebFeatures(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:proto.WebFeatures) +} +WebFeatures::WebFeatures(const WebFeatures& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&labelsdisplay_, &from.labelsdisplay_, + static_cast<size_t>(reinterpret_cast<char*>(&settingssync_) - + reinterpret_cast<char*>(&labelsdisplay_)) + sizeof(settingssync_)); + // @@protoc_insertion_point(copy_constructor:proto.WebFeatures) +} + +void WebFeatures::SharedCtor() { +::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&labelsdisplay_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&settingssync_) - + reinterpret_cast<char*>(&labelsdisplay_)) + sizeof(settingssync_)); +} + +WebFeatures::~WebFeatures() { + // @@protoc_insertion_point(destructor:proto.WebFeatures) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void WebFeatures::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void WebFeatures::ArenaDtor(void* object) { + WebFeatures* _this = reinterpret_cast< WebFeatures* >(object); + (void)_this; +} +void WebFeatures::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void WebFeatures::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void WebFeatures::Clear() { +// @@protoc_insertion_point(message_clear_start:proto.WebFeatures) + ::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) { + ::memset(&labelsdisplay_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&queryvname_) - + reinterpret_cast<char*>(&labelsdisplay_)) + sizeof(queryvname_)); + } + if (cached_has_bits & 0x0000ff00u) { + ::memset(&voipindividualincoming_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&mediauploadrichquickreplies_) - + reinterpret_cast<char*>(&voipindividualincoming_)) + sizeof(mediauploadrichquickreplies_)); + } + if (cached_has_bits & 0x00ff0000u) { + ::memset(&vnamev2_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&recentstickers_) - + reinterpret_cast<char*>(&vnamev2_)) + sizeof(recentstickers_)); + } + if (cached_has_bits & 0xff000000u) { + ::memset(&catalog_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&recentstickersv2_) - + reinterpret_cast<char*>(&catalog_)) + sizeof(recentstickersv2_)); + } + cached_has_bits = _has_bits_[1]; + if (cached_has_bits & 0x000000ffu) { + ::memset(&syncdrelease1_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&settingssync_) - + reinterpret_cast<char*>(&syncdrelease1_)) + sizeof(settingssync_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* WebFeatures::_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) { + // optional .proto.WebFeatures.WebFeaturesFlag labelsDisplay = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_labelsdisplay(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualOutgoing = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_voipindividualoutgoing(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag groupsV3 = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_groupsv3(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag groupsV3Create = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_groupsv3create(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag changeNumberV2 = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_changenumberv2(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag queryStatusV3Thumbnail = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_querystatusv3thumbnail(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(6, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag liveLocations = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_livelocations(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(7, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag queryVname = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_queryvname(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(8, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualIncoming = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_voipindividualincoming(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(9, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag quickRepliesQuery = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_quickrepliesquery(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(10, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag payments = 11; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_payments(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(11, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag stickerPackQuery = 12; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_stickerpackquery(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(12, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag liveLocationsFinal = 13; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_livelocationsfinal(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(13, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag labelsEdit = 14; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 112)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_labelsedit(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(14, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag mediaUpload = 15; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 120)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_mediaupload(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(15, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag mediaUploadRichQuickReplies = 18; + case 18: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_mediauploadrichquickreplies(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(18, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag vnameV2 = 19; + case 19: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 152)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_vnamev2(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(19, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag videoPlaybackUrl = 20; + case 20: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 160)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_videoplaybackurl(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(20, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag statusRanking = 21; + case 21: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 168)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_statusranking(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(21, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualVideo = 22; + case 22: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 176)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_voipindividualvideo(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(22, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag thirdPartyStickers = 23; + case 23: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 184)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_thirdpartystickers(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(23, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag frequentlyForwardedSetting = 24; + case 24: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 192)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_frequentlyforwardedsetting(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(24, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag groupsV4JoinPermission = 25; + case 25: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 200)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_groupsv4joinpermission(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(25, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag recentStickers = 26; + case 26: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 208)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_recentstickers(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(26, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag catalog = 27; + case 27: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 216)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_catalog(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(27, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag starredStickers = 28; + case 28: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 224)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_starredstickers(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(28, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag voipGroupCall = 29; + case 29: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 232)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_voipgroupcall(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(29, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag templateMessage = 30; + case 30: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 240)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_templatemessage(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(30, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag templateMessageInteractivity = 31; + case 31: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 248)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_templatemessageinteractivity(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(31, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag ephemeralMessages = 32; + case 32: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 0)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_ephemeralmessages(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(32, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag e2ENotificationSync = 33; + case 33: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_e2enotificationsync(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(33, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag recentStickersV2 = 34; + case 34: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_recentstickersv2(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(34, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag syncdRelease1 = 35; + case 35: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_syncdrelease1(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(35, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag recentStickersV3 = 36; + case 36: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_recentstickersv3(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(36, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag userNotice = 37; + case 37: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_usernotice(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(37, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag syncdRelease11 = 38; + case 38: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_syncdrelease11(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(38, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag support = 39; + case 39: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_support(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(39, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag groupUiiCleanup = 40; + case 40: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_groupuiicleanup(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(40, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag groupDogfoodingInternalOnly = 41; + case 41: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_groupdogfoodinginternalonly(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(41, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional .proto.WebFeatures.WebFeaturesFlag settingsSync = 42; + case 42: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebFeatures_WebFeaturesFlag_IsValid(val))) { + _internal_set_settingssync(static_cast<::proto::WebFeatures_WebFeaturesFlag>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(42, 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: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} + +::PROTOBUF_NAMESPACE_ID::uint8* WebFeatures::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:proto.WebFeatures) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .proto.WebFeatures.WebFeaturesFlag labelsDisplay = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->_internal_labelsdisplay(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualOutgoing = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_voipindividualoutgoing(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag groupsV3 = 3; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->_internal_groupsv3(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag groupsV3Create = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 4, this->_internal_groupsv3create(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag changeNumberV2 = 5; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 5, this->_internal_changenumberv2(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag queryStatusV3Thumbnail = 6; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 6, this->_internal_querystatusv3thumbnail(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag liveLocations = 7; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 7, this->_internal_livelocations(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag queryVname = 8; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 8, this->_internal_queryvname(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualIncoming = 9; + if (cached_has_bits & 0x00000100u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 9, this->_internal_voipindividualincoming(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag quickRepliesQuery = 10; + if (cached_has_bits & 0x00000200u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 10, this->_internal_quickrepliesquery(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag payments = 11; + if (cached_has_bits & 0x00000400u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 11, this->_internal_payments(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag stickerPackQuery = 12; + if (cached_has_bits & 0x00000800u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 12, this->_internal_stickerpackquery(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag liveLocationsFinal = 13; + if (cached_has_bits & 0x00001000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 13, this->_internal_livelocationsfinal(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag labelsEdit = 14; + if (cached_has_bits & 0x00002000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 14, this->_internal_labelsedit(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag mediaUpload = 15; + if (cached_has_bits & 0x00004000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 15, this->_internal_mediaupload(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag mediaUploadRichQuickReplies = 18; + if (cached_has_bits & 0x00008000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 18, this->_internal_mediauploadrichquickreplies(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag vnameV2 = 19; + if (cached_has_bits & 0x00010000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 19, this->_internal_vnamev2(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag videoPlaybackUrl = 20; + if (cached_has_bits & 0x00020000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 20, this->_internal_videoplaybackurl(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag statusRanking = 21; + if (cached_has_bits & 0x00040000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 21, this->_internal_statusranking(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualVideo = 22; + if (cached_has_bits & 0x00080000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 22, this->_internal_voipindividualvideo(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag thirdPartyStickers = 23; + if (cached_has_bits & 0x00100000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 23, this->_internal_thirdpartystickers(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag frequentlyForwardedSetting = 24; + if (cached_has_bits & 0x00200000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 24, this->_internal_frequentlyforwardedsetting(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag groupsV4JoinPermission = 25; + if (cached_has_bits & 0x00400000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 25, this->_internal_groupsv4joinpermission(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag recentStickers = 26; + if (cached_has_bits & 0x00800000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 26, this->_internal_recentstickers(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag catalog = 27; + if (cached_has_bits & 0x01000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 27, this->_internal_catalog(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag starredStickers = 28; + if (cached_has_bits & 0x02000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 28, this->_internal_starredstickers(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag voipGroupCall = 29; + if (cached_has_bits & 0x04000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 29, this->_internal_voipgroupcall(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag templateMessage = 30; + if (cached_has_bits & 0x08000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 30, this->_internal_templatemessage(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag templateMessageInteractivity = 31; + if (cached_has_bits & 0x10000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 31, this->_internal_templatemessageinteractivity(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag ephemeralMessages = 32; + if (cached_has_bits & 0x20000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 32, this->_internal_ephemeralmessages(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag e2ENotificationSync = 33; + if (cached_has_bits & 0x40000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 33, this->_internal_e2enotificationsync(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag recentStickersV2 = 34; + if (cached_has_bits & 0x80000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 34, this->_internal_recentstickersv2(), target); + } + + cached_has_bits = _has_bits_[1]; + // optional .proto.WebFeatures.WebFeaturesFlag syncdRelease1 = 35; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 35, this->_internal_syncdrelease1(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag recentStickersV3 = 36; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 36, this->_internal_recentstickersv3(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag userNotice = 37; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 37, this->_internal_usernotice(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag syncdRelease11 = 38; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 38, this->_internal_syncdrelease11(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag support = 39; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 39, this->_internal_support(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag groupUiiCleanup = 40; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 40, this->_internal_groupuiicleanup(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag groupDogfoodingInternalOnly = 41; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 41, this->_internal_groupdogfoodinginternalonly(), target); + } + + // optional .proto.WebFeatures.WebFeaturesFlag settingsSync = 42; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 42, this->_internal_settingssync(), 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.WebFeatures) + return target; +} + +size_t WebFeatures::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:proto.WebFeatures) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // 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.WebFeatures.WebFeaturesFlag labelsDisplay = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_labelsdisplay()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualOutgoing = 2; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_voipindividualoutgoing()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag groupsV3 = 3; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_groupsv3()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag groupsV3Create = 4; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_groupsv3create()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag changeNumberV2 = 5; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_changenumberv2()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag queryStatusV3Thumbnail = 6; + if (cached_has_bits & 0x00000020u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_querystatusv3thumbnail()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag liveLocations = 7; + if (cached_has_bits & 0x00000040u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_livelocations()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag queryVname = 8; + if (cached_has_bits & 0x00000080u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_queryvname()); + } + + } + if (cached_has_bits & 0x0000ff00u) { + // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualIncoming = 9; + if (cached_has_bits & 0x00000100u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_voipindividualincoming()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag quickRepliesQuery = 10; + if (cached_has_bits & 0x00000200u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_quickrepliesquery()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag payments = 11; + if (cached_has_bits & 0x00000400u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_payments()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag stickerPackQuery = 12; + if (cached_has_bits & 0x00000800u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_stickerpackquery()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag liveLocationsFinal = 13; + if (cached_has_bits & 0x00001000u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_livelocationsfinal()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag labelsEdit = 14; + if (cached_has_bits & 0x00002000u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_labelsedit()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag mediaUpload = 15; + if (cached_has_bits & 0x00004000u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_mediaupload()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag mediaUploadRichQuickReplies = 18; + if (cached_has_bits & 0x00008000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_mediauploadrichquickreplies()); + } + + } + if (cached_has_bits & 0x00ff0000u) { + // optional .proto.WebFeatures.WebFeaturesFlag vnameV2 = 19; + if (cached_has_bits & 0x00010000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_vnamev2()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag videoPlaybackUrl = 20; + if (cached_has_bits & 0x00020000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_videoplaybackurl()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag statusRanking = 21; + if (cached_has_bits & 0x00040000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_statusranking()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualVideo = 22; + if (cached_has_bits & 0x00080000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_voipindividualvideo()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag thirdPartyStickers = 23; + if (cached_has_bits & 0x00100000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_thirdpartystickers()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag frequentlyForwardedSetting = 24; + if (cached_has_bits & 0x00200000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_frequentlyforwardedsetting()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag groupsV4JoinPermission = 25; + if (cached_has_bits & 0x00400000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_groupsv4joinpermission()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag recentStickers = 26; + if (cached_has_bits & 0x00800000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_recentstickers()); + } + + } + if (cached_has_bits & 0xff000000u) { + // optional .proto.WebFeatures.WebFeaturesFlag catalog = 27; + if (cached_has_bits & 0x01000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_catalog()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag starredStickers = 28; + if (cached_has_bits & 0x02000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_starredstickers()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag voipGroupCall = 29; + if (cached_has_bits & 0x04000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_voipgroupcall()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag templateMessage = 30; + if (cached_has_bits & 0x08000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_templatemessage()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag templateMessageInteractivity = 31; + if (cached_has_bits & 0x10000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_templatemessageinteractivity()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag ephemeralMessages = 32; + if (cached_has_bits & 0x20000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_ephemeralmessages()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag e2ENotificationSync = 33; + if (cached_has_bits & 0x40000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_e2enotificationsync()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag recentStickersV2 = 34; + if (cached_has_bits & 0x80000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_recentstickersv2()); + } + + } + cached_has_bits = _has_bits_[1]; + if (cached_has_bits & 0x000000ffu) { + // optional .proto.WebFeatures.WebFeaturesFlag syncdRelease1 = 35; + if (cached_has_bits & 0x00000001u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_syncdrelease1()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag recentStickersV3 = 36; + if (cached_has_bits & 0x00000002u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_recentstickersv3()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag userNotice = 37; + if (cached_has_bits & 0x00000004u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_usernotice()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag syncdRelease11 = 38; + if (cached_has_bits & 0x00000008u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_syncdrelease11()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag support = 39; + if (cached_has_bits & 0x00000010u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_support()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag groupUiiCleanup = 40; + if (cached_has_bits & 0x00000020u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_groupuiicleanup()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag groupDogfoodingInternalOnly = 41; + if (cached_has_bits & 0x00000040u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_groupdogfoodinginternalonly()); + } + + // optional .proto.WebFeatures.WebFeaturesFlag settingsSync = 42; + if (cached_has_bits & 0x00000080u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_settingssync()); + } + + } + 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 WebFeatures::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:proto.WebFeatures) + GOOGLE_DCHECK_NE(&from, this); + const WebFeatures* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<WebFeatures>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.WebFeatures) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.WebFeatures) + MergeFrom(*source); + } +} + +void WebFeatures::MergeFrom(const WebFeatures& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.WebFeatures) + 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) { + labelsdisplay_ = from.labelsdisplay_; + } + if (cached_has_bits & 0x00000002u) { + voipindividualoutgoing_ = from.voipindividualoutgoing_; + } + if (cached_has_bits & 0x00000004u) { + groupsv3_ = from.groupsv3_; + } + if (cached_has_bits & 0x00000008u) { + groupsv3create_ = from.groupsv3create_; + } + if (cached_has_bits & 0x00000010u) { + changenumberv2_ = from.changenumberv2_; + } + if (cached_has_bits & 0x00000020u) { + querystatusv3thumbnail_ = from.querystatusv3thumbnail_; + } + if (cached_has_bits & 0x00000040u) { + livelocations_ = from.livelocations_; + } + if (cached_has_bits & 0x00000080u) { + queryvname_ = from.queryvname_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 0x0000ff00u) { + if (cached_has_bits & 0x00000100u) { + voipindividualincoming_ = from.voipindividualincoming_; + } + if (cached_has_bits & 0x00000200u) { + quickrepliesquery_ = from.quickrepliesquery_; + } + if (cached_has_bits & 0x00000400u) { + payments_ = from.payments_; + } + if (cached_has_bits & 0x00000800u) { + stickerpackquery_ = from.stickerpackquery_; + } + if (cached_has_bits & 0x00001000u) { + livelocationsfinal_ = from.livelocationsfinal_; + } + if (cached_has_bits & 0x00002000u) { + labelsedit_ = from.labelsedit_; + } + if (cached_has_bits & 0x00004000u) { + mediaupload_ = from.mediaupload_; + } + if (cached_has_bits & 0x00008000u) { + mediauploadrichquickreplies_ = from.mediauploadrichquickreplies_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 0x00ff0000u) { + if (cached_has_bits & 0x00010000u) { + vnamev2_ = from.vnamev2_; + } + if (cached_has_bits & 0x00020000u) { + videoplaybackurl_ = from.videoplaybackurl_; + } + if (cached_has_bits & 0x00040000u) { + statusranking_ = from.statusranking_; + } + if (cached_has_bits & 0x00080000u) { + voipindividualvideo_ = from.voipindividualvideo_; + } + if (cached_has_bits & 0x00100000u) { + thirdpartystickers_ = from.thirdpartystickers_; + } + if (cached_has_bits & 0x00200000u) { + frequentlyforwardedsetting_ = from.frequentlyforwardedsetting_; + } + if (cached_has_bits & 0x00400000u) { + groupsv4joinpermission_ = from.groupsv4joinpermission_; + } + if (cached_has_bits & 0x00800000u) { + recentstickers_ = from.recentstickers_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 0xff000000u) { + if (cached_has_bits & 0x01000000u) { + catalog_ = from.catalog_; + } + if (cached_has_bits & 0x02000000u) { + starredstickers_ = from.starredstickers_; + } + if (cached_has_bits & 0x04000000u) { + voipgroupcall_ = from.voipgroupcall_; + } + if (cached_has_bits & 0x08000000u) { + templatemessage_ = from.templatemessage_; + } + if (cached_has_bits & 0x10000000u) { + templatemessageinteractivity_ = from.templatemessageinteractivity_; + } + if (cached_has_bits & 0x20000000u) { + ephemeralmessages_ = from.ephemeralmessages_; + } + if (cached_has_bits & 0x40000000u) { + e2enotificationsync_ = from.e2enotificationsync_; + } + if (cached_has_bits & 0x80000000u) { + recentstickersv2_ = from.recentstickersv2_; + } + _has_bits_[0] |= cached_has_bits; + } + cached_has_bits = from._has_bits_[1]; + if (cached_has_bits & 0x000000ffu) { + if (cached_has_bits & 0x00000001u) { + syncdrelease1_ = from.syncdrelease1_; + } + if (cached_has_bits & 0x00000002u) { + recentstickersv3_ = from.recentstickersv3_; + } + if (cached_has_bits & 0x00000004u) { + usernotice_ = from.usernotice_; + } + if (cached_has_bits & 0x00000008u) { + syncdrelease11_ = from.syncdrelease11_; + } + if (cached_has_bits & 0x00000010u) { + support_ = from.support_; + } + if (cached_has_bits & 0x00000020u) { + groupuiicleanup_ = from.groupuiicleanup_; + } + if (cached_has_bits & 0x00000040u) { + groupdogfoodinginternalonly_ = from.groupdogfoodinginternalonly_; + } + if (cached_has_bits & 0x00000080u) { + settingssync_ = from.settingssync_; + } + _has_bits_[1] |= cached_has_bits; + } +} + +void WebFeatures::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:proto.WebFeatures) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WebFeatures::CopyFrom(const WebFeatures& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:proto.WebFeatures) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WebFeatures::IsInitialized() const { + return true; +} + +void WebFeatures::InternalSwap(WebFeatures* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(_has_bits_[1], other->_has_bits_[1]); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(WebFeatures, settingssync_) + + sizeof(WebFeatures::settingssync_) + - PROTOBUF_FIELD_OFFSET(WebFeatures, labelsdisplay_)>( + reinterpret_cast<char*>(&labelsdisplay_), + reinterpret_cast<char*>(&other->labelsdisplay_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata WebFeatures::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class NotificationMessageInfo::_Internal { + public: + using HasBits = decltype(std::declval<NotificationMessageInfo>()._has_bits_); + static const ::proto::MessageKey& key(const NotificationMessageInfo* msg); + static void set_has_key(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static const ::proto::Message& message(const NotificationMessageInfo* msg); + static void set_has_message(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_messagetimestamp(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_participant(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::proto::MessageKey& +NotificationMessageInfo::_Internal::key(const NotificationMessageInfo* msg) { + return *msg->key_; +} +const ::proto::Message& +NotificationMessageInfo::_Internal::message(const NotificationMessageInfo* msg) { + return *msg->message_; +} +NotificationMessageInfo::NotificationMessageInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:proto.NotificationMessageInfo) +} +NotificationMessageInfo::NotificationMessageInfo(const NotificationMessageInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_participant()) { + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_participant(), + GetArena()); + } + if (from._internal_has_key()) { + key_ = new ::proto::MessageKey(*from.key_); + } else { + key_ = nullptr; + } + if (from._internal_has_message()) { + message_ = new ::proto::Message(*from.message_); + } else { + message_ = nullptr; + } + messagetimestamp_ = from.messagetimestamp_; + // @@protoc_insertion_point(copy_constructor:proto.NotificationMessageInfo) +} + +void NotificationMessageInfo::SharedCtor() { +participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&key_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&messagetimestamp_) - + reinterpret_cast<char*>(&key_)) + sizeof(messagetimestamp_)); +} + +NotificationMessageInfo::~NotificationMessageInfo() { + // @@protoc_insertion_point(destructor:proto.NotificationMessageInfo) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void NotificationMessageInfo::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + participant_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete key_; + if (this != internal_default_instance()) delete message_; +} + +void NotificationMessageInfo::ArenaDtor(void* object) { + NotificationMessageInfo* _this = reinterpret_cast< NotificationMessageInfo* >(object); + (void)_this; +} +void NotificationMessageInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void NotificationMessageInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void NotificationMessageInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:proto.NotificationMessageInfo) + ::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) { + participant_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + GOOGLE_DCHECK(key_ != nullptr); + key_->Clear(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(message_ != nullptr); + message_->Clear(); + } + } + messagetimestamp_ = PROTOBUF_ULONGLONG(0); + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* NotificationMessageInfo::_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.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 uint64 messageTimestamp = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_messagetimestamp(&has_bits); + messagetimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional string participant = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + auto str = _internal_mutable_participant(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.NotificationMessageInfo.participant"); + #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* NotificationMessageInfo::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:proto.NotificationMessageInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .proto.MessageKey key = 1; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::key(this), target, stream); + } + + // 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 uint64 messageTimestamp = 3; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_messagetimestamp(), target); + } + + // optional string participant = 4; + if (cached_has_bits & 0x00000001u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_participant().data(), static_cast<int>(this->_internal_participant().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.NotificationMessageInfo.participant"); + target = stream->WriteStringMaybeAliased( + 4, this->_internal_participant(), 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.NotificationMessageInfo) + return target; +} + +size_t NotificationMessageInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:proto.NotificationMessageInfo) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // 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 participant = 4; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_participant()); + } + + // optional .proto.MessageKey key = 1; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *key_); + } + + // optional .proto.Message message = 2; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *message_); + } + + // optional uint64 messageTimestamp = 3; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_messagetimestamp()); + } + + } + 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 NotificationMessageInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:proto.NotificationMessageInfo) + GOOGLE_DCHECK_NE(&from, this); + const NotificationMessageInfo* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<NotificationMessageInfo>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.NotificationMessageInfo) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.NotificationMessageInfo) + MergeFrom(*source); + } +} + +void NotificationMessageInfo::MergeFrom(const NotificationMessageInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.NotificationMessageInfo) + 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_participant(from._internal_participant()); + } + if (cached_has_bits & 0x00000002u) { + _internal_mutable_key()->::proto::MessageKey::MergeFrom(from._internal_key()); + } + if (cached_has_bits & 0x00000004u) { + _internal_mutable_message()->::proto::Message::MergeFrom(from._internal_message()); + } + if (cached_has_bits & 0x00000008u) { + messagetimestamp_ = from.messagetimestamp_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void NotificationMessageInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:proto.NotificationMessageInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NotificationMessageInfo::CopyFrom(const NotificationMessageInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:proto.NotificationMessageInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NotificationMessageInfo::IsInitialized() const { + return true; +} + +void NotificationMessageInfo::InternalSwap(NotificationMessageInfo* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + participant_.Swap(&other->participant_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(NotificationMessageInfo, messagetimestamp_) + + sizeof(NotificationMessageInfo::messagetimestamp_) + - PROTOBUF_FIELD_OFFSET(NotificationMessageInfo, key_)>( + reinterpret_cast<char*>(&key_), + reinterpret_cast<char*>(&other->key_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata NotificationMessageInfo::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class WebNotificationsInfo::_Internal { + public: + using HasBits = decltype(std::declval<WebNotificationsInfo>()._has_bits_); + static void set_has_timestamp(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_unreadchats(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_notifymessagecount(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } +}; + +WebNotificationsInfo::WebNotificationsInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + notifymessages_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:proto.WebNotificationsInfo) +} +WebNotificationsInfo::WebNotificationsInfo(const WebNotificationsInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + notifymessages_(from.notifymessages_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(×tamp_, &from.timestamp_, + static_cast<size_t>(reinterpret_cast<char*>(¬ifymessagecount_) - + reinterpret_cast<char*>(×tamp_)) + sizeof(notifymessagecount_)); + // @@protoc_insertion_point(copy_constructor:proto.WebNotificationsInfo) +} + +void WebNotificationsInfo::SharedCtor() { +::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(×tamp_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(¬ifymessagecount_) - + reinterpret_cast<char*>(×tamp_)) + sizeof(notifymessagecount_)); +} + +WebNotificationsInfo::~WebNotificationsInfo() { + // @@protoc_insertion_point(destructor:proto.WebNotificationsInfo) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void WebNotificationsInfo::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); +} + +void WebNotificationsInfo::ArenaDtor(void* object) { + WebNotificationsInfo* _this = reinterpret_cast< WebNotificationsInfo* >(object); + (void)_this; +} +void WebNotificationsInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void WebNotificationsInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void WebNotificationsInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:proto.WebNotificationsInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + notifymessages_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + ::memset(×tamp_, 0, static_cast<size_t>( + reinterpret_cast<char*>(¬ifymessagecount_) - + reinterpret_cast<char*>(×tamp_)) + sizeof(notifymessagecount_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* WebNotificationsInfo::_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 uint64 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; + // optional uint32 unreadChats = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_unreadchats(&has_bits); + unreadchats_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional uint32 notifyMessageCount = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + _Internal::set_has_notifymessagecount(&has_bits); + notifymessagecount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .proto.WebMessageInfo notifyMessages = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_notifymessages(), 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* WebNotificationsInfo::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:proto.WebNotificationsInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional uint64 timestamp = 2; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_timestamp(), target); + } + + // optional uint32 unreadChats = 3; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_unreadchats(), target); + } + + // optional uint32 notifyMessageCount = 4; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_notifymessagecount(), target); + } + + // repeated .proto.WebMessageInfo notifyMessages = 5; + for (unsigned int i = 0, + n = static_cast<unsigned int>(this->_internal_notifymessages_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, this->_internal_notifymessages(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.WebNotificationsInfo) + return target; +} + +size_t WebNotificationsInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:proto.WebNotificationsInfo) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .proto.WebMessageInfo notifyMessages = 5; + total_size += 1UL * this->_internal_notifymessages_size(); + for (const auto& msg : this->notifymessages_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + // optional uint64 timestamp = 2; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_timestamp()); + } + + // optional uint32 unreadChats = 3; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_unreadchats()); + } + + // optional uint32 notifyMessageCount = 4; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_notifymessagecount()); + } + + } + 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 WebNotificationsInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:proto.WebNotificationsInfo) + GOOGLE_DCHECK_NE(&from, this); + const WebNotificationsInfo* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<WebNotificationsInfo>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.WebNotificationsInfo) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.WebNotificationsInfo) + MergeFrom(*source); + } +} + +void WebNotificationsInfo::MergeFrom(const WebNotificationsInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.WebNotificationsInfo) + 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; + + notifymessages_.MergeFrom(from.notifymessages_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x00000001u) { + timestamp_ = from.timestamp_; + } + if (cached_has_bits & 0x00000002u) { + unreadchats_ = from.unreadchats_; + } + if (cached_has_bits & 0x00000004u) { + notifymessagecount_ = from.notifymessagecount_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void WebNotificationsInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:proto.WebNotificationsInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WebNotificationsInfo::CopyFrom(const WebNotificationsInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:proto.WebNotificationsInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WebNotificationsInfo::IsInitialized() const { + if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(notifymessages_)) return false; + return true; +} + +void WebNotificationsInfo::InternalSwap(WebNotificationsInfo* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + notifymessages_.InternalSwap(&other->notifymessages_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(WebNotificationsInfo, notifymessagecount_) + + sizeof(WebNotificationsInfo::notifymessagecount_) + - PROTOBUF_FIELD_OFFSET(WebNotificationsInfo, timestamp_)>( + reinterpret_cast<char*>(×tamp_), + reinterpret_cast<char*>(&other->timestamp_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata WebNotificationsInfo::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class PaymentInfo::_Internal { + public: + using HasBits = decltype(std::declval<PaymentInfo>()._has_bits_); + static void set_has_currencydeprecated(HasBits* has_bits) { + (*has_bits)[0] |= 64u; + } + static void set_has_amount1000(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } + static void set_has_receiverjid(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_status(HasBits* has_bits) { + (*has_bits)[0] |= 128u; + } + static void set_has_transactiontimestamp(HasBits* has_bits) { + (*has_bits)[0] |= 256u; + } + static const ::proto::MessageKey& requestmessagekey(const PaymentInfo* msg); + static void set_has_requestmessagekey(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_expirytimestamp(HasBits* has_bits) { + (*has_bits)[0] |= 512u; + } + static void set_has_futureproofed(HasBits* has_bits) { + (*has_bits)[0] |= 1024u; + } + static void set_has_currency(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_txnstatus(HasBits* has_bits) { + (*has_bits)[0] |= 4096u; + } + static void set_has_usenovifiatformat(HasBits* has_bits) { + (*has_bits)[0] |= 2048u; + } + static const ::proto::PaymentMoney& primaryamount(const PaymentInfo* msg); + static void set_has_primaryamount(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static const ::proto::PaymentMoney& exchangeamount(const PaymentInfo* msg); + static void set_has_exchangeamount(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } +}; + +const ::proto::MessageKey& +PaymentInfo::_Internal::requestmessagekey(const PaymentInfo* msg) { + return *msg->requestmessagekey_; +} +const ::proto::PaymentMoney& +PaymentInfo::_Internal::primaryamount(const PaymentInfo* msg) { + return *msg->primaryamount_; +} +const ::proto::PaymentMoney& +PaymentInfo::_Internal::exchangeamount(const PaymentInfo* msg) { + return *msg->exchangeamount_; +} +PaymentInfo::PaymentInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:proto.PaymentInfo) +} +PaymentInfo::PaymentInfo(const PaymentInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + receiverjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_receiverjid()) { + receiverjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_receiverjid(), + GetArena()); + } + currency_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_currency()) { + currency_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_currency(), + GetArena()); + } + if (from._internal_has_requestmessagekey()) { + requestmessagekey_ = new ::proto::MessageKey(*from.requestmessagekey_); + } else { + requestmessagekey_ = nullptr; + } + if (from._internal_has_primaryamount()) { + primaryamount_ = new ::proto::PaymentMoney(*from.primaryamount_); + } else { + primaryamount_ = nullptr; + } + if (from._internal_has_exchangeamount()) { + exchangeamount_ = new ::proto::PaymentMoney(*from.exchangeamount_); + } else { + exchangeamount_ = nullptr; + } + ::memcpy(&amount1000_, &from.amount1000_, + static_cast<size_t>(reinterpret_cast<char*>(&txnstatus_) - + reinterpret_cast<char*>(&amount1000_)) + sizeof(txnstatus_)); + // @@protoc_insertion_point(copy_constructor:proto.PaymentInfo) +} + +void PaymentInfo::SharedCtor() { +receiverjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +currency_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&requestmessagekey_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&txnstatus_) - + reinterpret_cast<char*>(&requestmessagekey_)) + sizeof(txnstatus_)); +} + +PaymentInfo::~PaymentInfo() { + // @@protoc_insertion_point(destructor:proto.PaymentInfo) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void PaymentInfo::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + receiverjid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + currency_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete requestmessagekey_; + if (this != internal_default_instance()) delete primaryamount_; + if (this != internal_default_instance()) delete exchangeamount_; +} + +void PaymentInfo::ArenaDtor(void* object) { + PaymentInfo* _this = reinterpret_cast< PaymentInfo* >(object); + (void)_this; +} +void PaymentInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PaymentInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PaymentInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:proto.PaymentInfo) + ::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) { + receiverjid_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + currency_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000004u) { + GOOGLE_DCHECK(requestmessagekey_ != nullptr); + requestmessagekey_->Clear(); + } + if (cached_has_bits & 0x00000008u) { + GOOGLE_DCHECK(primaryamount_ != nullptr); + primaryamount_->Clear(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(exchangeamount_ != nullptr); + exchangeamount_->Clear(); + } + } + if (cached_has_bits & 0x000000e0u) { + ::memset(&amount1000_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&status_) - + reinterpret_cast<char*>(&amount1000_)) + sizeof(status_)); + } + if (cached_has_bits & 0x00001f00u) { + ::memset(&transactiontimestamp_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&txnstatus_) - + reinterpret_cast<char*>(&transactiontimestamp_)) + sizeof(txnstatus_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PaymentInfo::_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.PaymentInfo.PaymentInfoCurrency currencyDeprecated = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::PaymentInfo_PaymentInfoCurrency_IsValid(val))) { + _internal_set_currencydeprecated(static_cast<::proto::PaymentInfo_PaymentInfoCurrency>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); + } + } 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 receiverJid = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + auto str = _internal_mutable_receiverjid(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.PaymentInfo.receiverJid"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.PaymentInfo.PaymentInfoStatus status = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::PaymentInfo_PaymentInfoStatus_IsValid(val))) { + _internal_set_status(static_cast<::proto::PaymentInfo_PaymentInfoStatus>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional uint64 transactionTimestamp = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + _Internal::set_has_transactiontimestamp(&has_bits); + transactiontimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.MessageKey requestMessageKey = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_requestmessagekey(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional uint64 expiryTimestamp = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { + _Internal::set_has_expirytimestamp(&has_bits); + expirytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bool futureproofed = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { + _Internal::set_has_futureproofed(&has_bits); + futureproofed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional string currency = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { + auto str = _internal_mutable_currency(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.PaymentInfo.currency"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.PaymentInfo.PaymentInfoTxnStatus txnStatus = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::PaymentInfo_PaymentInfoTxnStatus_IsValid(val))) { + _internal_set_txnstatus(static_cast<::proto::PaymentInfo_PaymentInfoTxnStatus>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(10, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional bool useNoviFiatFormat = 11; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { + _Internal::set_has_usenovifiatformat(&has_bits); + usenovifiatformat_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.PaymentMoney primaryAmount = 12; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_primaryamount(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.PaymentMoney exchangeAmount = 13; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_exchangeamount(), 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* PaymentInfo::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:proto.PaymentInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional .proto.PaymentInfo.PaymentInfoCurrency currencyDeprecated = 1; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->_internal_currencydeprecated(), target); + } + + // optional uint64 amount1000 = 2; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_amount1000(), target); + } + + // optional string receiverJid = 3; + if (cached_has_bits & 0x00000001u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_receiverjid().data(), static_cast<int>(this->_internal_receiverjid().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.PaymentInfo.receiverJid"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_receiverjid(), target); + } + + // optional .proto.PaymentInfo.PaymentInfoStatus status = 4; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 4, this->_internal_status(), target); + } + + // optional uint64 transactionTimestamp = 5; + if (cached_has_bits & 0x00000100u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_transactiontimestamp(), target); + } + + // optional .proto.MessageKey requestMessageKey = 6; + if (cached_has_bits & 0x00000004u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 6, _Internal::requestmessagekey(this), target, stream); + } + + // optional uint64 expiryTimestamp = 7; + if (cached_has_bits & 0x00000200u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(7, this->_internal_expirytimestamp(), target); + } + + // optional bool futureproofed = 8; + if (cached_has_bits & 0x00000400u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(8, this->_internal_futureproofed(), target); + } + + // optional string currency = 9; + if (cached_has_bits & 0x00000002u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_currency().data(), static_cast<int>(this->_internal_currency().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.PaymentInfo.currency"); + target = stream->WriteStringMaybeAliased( + 9, this->_internal_currency(), target); + } + + // optional .proto.PaymentInfo.PaymentInfoTxnStatus txnStatus = 10; + if (cached_has_bits & 0x00001000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 10, this->_internal_txnstatus(), target); + } + + // optional bool useNoviFiatFormat = 11; + if (cached_has_bits & 0x00000800u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->_internal_usenovifiatformat(), target); + } + + // optional .proto.PaymentMoney primaryAmount = 12; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 12, _Internal::primaryamount(this), target, stream); + } + + // optional .proto.PaymentMoney exchangeAmount = 13; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 13, _Internal::exchangeamount(this), target, stream); + } + + 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.PaymentInfo) + return target; +} + +size_t PaymentInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:proto.PaymentInfo) + size_t total_size = 0; + + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // 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 receiverJid = 3; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_receiverjid()); + } + + // optional string currency = 9; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_currency()); + } + + // optional .proto.MessageKey requestMessageKey = 6; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *requestmessagekey_); + } + + // optional .proto.PaymentMoney primaryAmount = 12; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *primaryamount_); + } + + // optional .proto.PaymentMoney exchangeAmount = 13; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *exchangeamount_); + } + + // optional uint64 amount1000 = 2; + if (cached_has_bits & 0x00000020u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_amount1000()); + } + + // optional .proto.PaymentInfo.PaymentInfoCurrency currencyDeprecated = 1; + if (cached_has_bits & 0x00000040u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_currencydeprecated()); + } + + // optional .proto.PaymentInfo.PaymentInfoStatus status = 4; + if (cached_has_bits & 0x00000080u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + } + + } + if (cached_has_bits & 0x00001f00u) { + // optional uint64 transactionTimestamp = 5; + if (cached_has_bits & 0x00000100u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_transactiontimestamp()); + } + + // optional uint64 expiryTimestamp = 7; + if (cached_has_bits & 0x00000200u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_expirytimestamp()); + } + + // optional bool futureproofed = 8; + if (cached_has_bits & 0x00000400u) { + total_size += 1 + 1; + } + + // optional bool useNoviFiatFormat = 11; + if (cached_has_bits & 0x00000800u) { + total_size += 1 + 1; + } + + // optional .proto.PaymentInfo.PaymentInfoTxnStatus txnStatus = 10; + if (cached_has_bits & 0x00001000u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_txnstatus()); + } + + } + 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 PaymentInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:proto.PaymentInfo) + GOOGLE_DCHECK_NE(&from, this); + const PaymentInfo* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<PaymentInfo>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.PaymentInfo) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.PaymentInfo) + MergeFrom(*source); + } +} + +void PaymentInfo::MergeFrom(const PaymentInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.PaymentInfo) + 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_receiverjid(from._internal_receiverjid()); + } + if (cached_has_bits & 0x00000002u) { + _internal_set_currency(from._internal_currency()); + } + if (cached_has_bits & 0x00000004u) { + _internal_mutable_requestmessagekey()->::proto::MessageKey::MergeFrom(from._internal_requestmessagekey()); + } + if (cached_has_bits & 0x00000008u) { + _internal_mutable_primaryamount()->::proto::PaymentMoney::MergeFrom(from._internal_primaryamount()); + } + if (cached_has_bits & 0x00000010u) { + _internal_mutable_exchangeamount()->::proto::PaymentMoney::MergeFrom(from._internal_exchangeamount()); + } + if (cached_has_bits & 0x00000020u) { + amount1000_ = from.amount1000_; + } + if (cached_has_bits & 0x00000040u) { + currencydeprecated_ = from.currencydeprecated_; + } + if (cached_has_bits & 0x00000080u) { + status_ = from.status_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 0x00001f00u) { + if (cached_has_bits & 0x00000100u) { + transactiontimestamp_ = from.transactiontimestamp_; + } + if (cached_has_bits & 0x00000200u) { + expirytimestamp_ = from.expirytimestamp_; + } + if (cached_has_bits & 0x00000400u) { + futureproofed_ = from.futureproofed_; + } + if (cached_has_bits & 0x00000800u) { + usenovifiatformat_ = from.usenovifiatformat_; + } + if (cached_has_bits & 0x00001000u) { + txnstatus_ = from.txnstatus_; + } + _has_bits_[0] |= cached_has_bits; + } +} + +void PaymentInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:proto.PaymentInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PaymentInfo::CopyFrom(const PaymentInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:proto.PaymentInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PaymentInfo::IsInitialized() const { + return true; +} + +void PaymentInfo::InternalSwap(PaymentInfo* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + receiverjid_.Swap(&other->receiverjid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + currency_.Swap(&other->currency_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PaymentInfo, txnstatus_) + + sizeof(PaymentInfo::txnstatus_) + - PROTOBUF_FIELD_OFFSET(PaymentInfo, requestmessagekey_)>( + reinterpret_cast<char*>(&requestmessagekey_), + reinterpret_cast<char*>(&other->requestmessagekey_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PaymentInfo::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +class WebMessageInfo::_Internal { + public: + using HasBits = decltype(std::declval<WebMessageInfo>()._has_bits_); + static const ::proto::MessageKey& key(const WebMessageInfo* msg); + static void set_has_key(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static const ::proto::Message& message(const WebMessageInfo* msg); + static void set_has_message(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } + static void set_has_messagetimestamp(HasBits* has_bits) { + (*has_bits)[0] |= 512u; + } + static void set_has_status(HasBits* has_bits) { + (*has_bits)[0] |= 1024u; + } + static void set_has_participant(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_ignore(HasBits* has_bits) { + (*has_bits)[0] |= 2048u; + } + static void set_has_starred(HasBits* has_bits) { + (*has_bits)[0] |= 4096u; + } + static void set_has_broadcast(HasBits* has_bits) { + (*has_bits)[0] |= 8192u; + } + static void set_has_pushname(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_mediaciphertextsha256(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_multicast(HasBits* has_bits) { + (*has_bits)[0] |= 16384u; + } + static void set_has_urltext(HasBits* has_bits) { + (*has_bits)[0] |= 65536u; + } + static void set_has_urlnumber(HasBits* has_bits) { + (*has_bits)[0] |= 131072u; + } + static void set_has_messagestubtype(HasBits* has_bits) { + (*has_bits)[0] |= 32768u; + } + static void set_has_clearmedia(HasBits* has_bits) { + (*has_bits)[0] |= 262144u; + } + static void set_has_duration(HasBits* has_bits) { + (*has_bits)[0] |= 1048576u; + } + static const ::proto::PaymentInfo& paymentinfo(const WebMessageInfo* msg); + static void set_has_paymentinfo(HasBits* has_bits) { + (*has_bits)[0] |= 64u; + } + static const ::proto::LiveLocationMessage& finallivelocation(const WebMessageInfo* msg); + static void set_has_finallivelocation(HasBits* has_bits) { + (*has_bits)[0] |= 128u; + } + static const ::proto::PaymentInfo& quotedpaymentinfo(const WebMessageInfo* msg); + static void set_has_quotedpaymentinfo(HasBits* has_bits) { + (*has_bits)[0] |= 256u; + } + static void set_has_ephemeralstarttimestamp(HasBits* has_bits) { + (*has_bits)[0] |= 4194304u; + } + static void set_has_ephemeralduration(HasBits* has_bits) { + (*has_bits)[0] |= 2097152u; + } + static void set_has_ephemeralofftoon(HasBits* has_bits) { + (*has_bits)[0] |= 524288u; + } + static void set_has_ephemeraloutofsync(HasBits* has_bits) { + (*has_bits)[0] |= 8388608u; + } + static void set_has_bizprivacystatus(HasBits* has_bits) { + (*has_bits)[0] |= 16777216u; + } + static void set_has_verifiedbizname(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static bool MissingRequiredFields(const HasBits& has_bits) { + return ((has_bits[0] & 0x00000010) ^ 0x00000010) != 0; + } +}; + +const ::proto::MessageKey& +WebMessageInfo::_Internal::key(const WebMessageInfo* msg) { + return *msg->key_; +} +const ::proto::Message& +WebMessageInfo::_Internal::message(const WebMessageInfo* msg) { + return *msg->message_; +} +const ::proto::PaymentInfo& +WebMessageInfo::_Internal::paymentinfo(const WebMessageInfo* msg) { + return *msg->paymentinfo_; +} +const ::proto::LiveLocationMessage& +WebMessageInfo::_Internal::finallivelocation(const WebMessageInfo* msg) { + return *msg->finallivelocation_; +} +const ::proto::PaymentInfo& +WebMessageInfo::_Internal::quotedpaymentinfo(const WebMessageInfo* msg) { + return *msg->quotedpaymentinfo_; +} +WebMessageInfo::WebMessageInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + messagestubparameters_(arena), + labels_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); + // @@protoc_insertion_point(arena_constructor:proto.WebMessageInfo) +} +WebMessageInfo::WebMessageInfo(const WebMessageInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _has_bits_(from._has_bits_), + messagestubparameters_(from.messagestubparameters_), + labels_(from.labels_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_participant()) { + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_participant(), + GetArena()); + } + pushname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_pushname()) { + pushname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pushname(), + GetArena()); + } + mediaciphertextsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_mediaciphertextsha256()) { + mediaciphertextsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediaciphertextsha256(), + GetArena()); + } + verifiedbizname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (from._internal_has_verifiedbizname()) { + verifiedbizname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_verifiedbizname(), + GetArena()); + } + if (from._internal_has_key()) { + key_ = new ::proto::MessageKey(*from.key_); + } else { + key_ = nullptr; + } + if (from._internal_has_message()) { + message_ = new ::proto::Message(*from.message_); + } else { + message_ = nullptr; + } + if (from._internal_has_paymentinfo()) { + paymentinfo_ = new ::proto::PaymentInfo(*from.paymentinfo_); + } else { + paymentinfo_ = nullptr; + } + if (from._internal_has_finallivelocation()) { + finallivelocation_ = new ::proto::LiveLocationMessage(*from.finallivelocation_); + } else { + finallivelocation_ = nullptr; + } + if (from._internal_has_quotedpaymentinfo()) { + quotedpaymentinfo_ = new ::proto::PaymentInfo(*from.quotedpaymentinfo_); + } else { + quotedpaymentinfo_ = nullptr; + } + ::memcpy(&messagetimestamp_, &from.messagetimestamp_, + static_cast<size_t>(reinterpret_cast<char*>(&bizprivacystatus_) - + reinterpret_cast<char*>(&messagetimestamp_)) + sizeof(bizprivacystatus_)); + // @@protoc_insertion_point(copy_constructor:proto.WebMessageInfo) +} + +void WebMessageInfo::SharedCtor() { +participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +pushname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +mediaciphertextsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +verifiedbizname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( + reinterpret_cast<char*>(&key_) - reinterpret_cast<char*>(this)), + 0, static_cast<size_t>(reinterpret_cast<char*>(&bizprivacystatus_) - + reinterpret_cast<char*>(&key_)) + sizeof(bizprivacystatus_)); +} + +WebMessageInfo::~WebMessageInfo() { + // @@protoc_insertion_point(destructor:proto.WebMessageInfo) + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +void WebMessageInfo::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + participant_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + pushname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + mediaciphertextsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + verifiedbizname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete key_; + if (this != internal_default_instance()) delete message_; + if (this != internal_default_instance()) delete paymentinfo_; + if (this != internal_default_instance()) delete finallivelocation_; + if (this != internal_default_instance()) delete quotedpaymentinfo_; +} + +void WebMessageInfo::ArenaDtor(void* object) { + WebMessageInfo* _this = reinterpret_cast< WebMessageInfo* >(object); + (void)_this; +} +void WebMessageInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void WebMessageInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void WebMessageInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:proto.WebMessageInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + messagestubparameters_.Clear(); + labels_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + if (cached_has_bits & 0x00000001u) { + participant_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + pushname_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000004u) { + mediaciphertextsha256_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000008u) { + verifiedbizname_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000010u) { + GOOGLE_DCHECK(key_ != nullptr); + key_->Clear(); + } + if (cached_has_bits & 0x00000020u) { + GOOGLE_DCHECK(message_ != nullptr); + message_->Clear(); + } + if (cached_has_bits & 0x00000040u) { + GOOGLE_DCHECK(paymentinfo_ != nullptr); + paymentinfo_->Clear(); + } + if (cached_has_bits & 0x00000080u) { + GOOGLE_DCHECK(finallivelocation_ != nullptr); + finallivelocation_->Clear(); + } + } + if (cached_has_bits & 0x00000100u) { + GOOGLE_DCHECK(quotedpaymentinfo_ != nullptr); + quotedpaymentinfo_->Clear(); + } + if (cached_has_bits & 0x0000fe00u) { + ::memset(&messagetimestamp_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&messagestubtype_) - + reinterpret_cast<char*>(&messagetimestamp_)) + sizeof(messagestubtype_)); + } + if (cached_has_bits & 0x00ff0000u) { + ::memset(&urltext_, 0, static_cast<size_t>( + reinterpret_cast<char*>(&ephemeraloutofsync_) - + reinterpret_cast<char*>(&urltext_)) + sizeof(ephemeraloutofsync_)); + } + bizprivacystatus_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* WebMessageInfo::_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) { + // required .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.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 uint64 messageTimestamp = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_messagetimestamp(&has_bits); + messagetimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.WebMessageInfo.WebMessageInfoStatus status = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebMessageInfo_WebMessageInfoStatus_IsValid(val))) { + _internal_set_status(static_cast<::proto::WebMessageInfo_WebMessageInfoStatus>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional string participant = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_participant(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.WebMessageInfo.participant"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bool ignore = 16; + case 16: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 128)) { + _Internal::set_has_ignore(&has_bits); + ignore_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bool starred = 17; + case 17: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) { + _Internal::set_has_starred(&has_bits); + starred_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bool broadcast = 18; + case 18: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) { + _Internal::set_has_broadcast(&has_bits); + broadcast_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional string pushName = 19; + case 19: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 154)) { + auto str = _internal_mutable_pushname(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.WebMessageInfo.pushName"); + #endif // !NDEBUG + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bytes mediaCiphertextSha256 = 20; + case 20: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 162)) { + auto str = _internal_mutable_mediaciphertextsha256(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bool multicast = 21; + case 21: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 168)) { + _Internal::set_has_multicast(&has_bits); + multicast_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bool urlText = 22; + case 22: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 176)) { + _Internal::set_has_urltext(&has_bits); + urltext_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bool urlNumber = 23; + case 23: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 184)) { + _Internal::set_has_urlnumber(&has_bits); + urlnumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.WebMessageInfo.WebMessageInfoStubType messageStubType = 24; + case 24: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 192)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebMessageInfo_WebMessageInfoStubType_IsValid(val))) { + _internal_set_messagestubtype(static_cast<::proto::WebMessageInfo_WebMessageInfoStubType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(24, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional bool clearMedia = 25; + case 25: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 200)) { + _Internal::set_has_clearmedia(&has_bits); + clearmedia_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string messageStubParameters = 26; + case 26: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 210)) { + ptr -= 2; + do { + ptr += 2; + auto str = _internal_add_messagestubparameters(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.WebMessageInfo.messageStubParameters"); + #endif // !NDEBUG + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<210>(ptr)); + } else goto handle_unusual; + continue; + // optional uint32 duration = 27; + case 27: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 216)) { + _Internal::set_has_duration(&has_bits); + duration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string labels = 28; + case 28: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 226)) { + ptr -= 2; + do { + ptr += 2; + auto str = _internal_add_labels(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.WebMessageInfo.labels"); + #endif // !NDEBUG + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<226>(ptr)); + } else goto handle_unusual; + continue; + // optional .proto.PaymentInfo paymentInfo = 29; + case 29: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 234)) { + ptr = ctx->ParseMessage(_internal_mutable_paymentinfo(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.LiveLocationMessage finalLiveLocation = 30; + case 30: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 242)) { + ptr = ctx->ParseMessage(_internal_mutable_finallivelocation(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.PaymentInfo quotedPaymentInfo = 31; + case 31: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 250)) { + ptr = ctx->ParseMessage(_internal_mutable_quotedpaymentinfo(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional uint64 ephemeralStartTimestamp = 32; + case 32: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 0)) { + _Internal::set_has_ephemeralstarttimestamp(&has_bits); + ephemeralstarttimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional uint32 ephemeralDuration = 33; + case 33: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + _Internal::set_has_ephemeralduration(&has_bits); + ephemeralduration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bool ephemeralOffToOn = 34; + case 34: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + _Internal::set_has_ephemeralofftoon(&has_bits); + ephemeralofftoon_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional bool ephemeralOutOfSync = 35; + case 35: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + _Internal::set_has_ephemeraloutofsync(&has_bits); + ephemeraloutofsync_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // optional .proto.WebMessageInfo.WebMessageInfoBizPrivacyStatus bizPrivacyStatus = 36; + case 36: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::proto::WebMessageInfo_WebMessageInfoBizPrivacyStatus_IsValid(val))) { + _internal_set_bizprivacystatus(static_cast<::proto::WebMessageInfo_WebMessageInfoBizPrivacyStatus>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(36, val, mutable_unknown_fields()); + } + } else goto handle_unusual; + continue; + // optional string verifiedBizName = 37; + case 37: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + auto str = _internal_mutable_verifiedbizname(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + #ifndef NDEBUG + ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.WebMessageInfo.verifiedBizName"); + #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* WebMessageInfo::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:proto.WebMessageInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // required .proto.MessageKey key = 1; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 1, _Internal::key(this), target, stream); + } + + // optional .proto.Message message = 2; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 2, _Internal::message(this), target, stream); + } + + // optional uint64 messageTimestamp = 3; + if (cached_has_bits & 0x00000200u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_messagetimestamp(), target); + } + + // optional .proto.WebMessageInfo.WebMessageInfoStatus status = 4; + if (cached_has_bits & 0x00000400u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 4, this->_internal_status(), target); + } + + // optional string participant = 5; + if (cached_has_bits & 0x00000001u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_participant().data(), static_cast<int>(this->_internal_participant().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.WebMessageInfo.participant"); + target = stream->WriteStringMaybeAliased( + 5, this->_internal_participant(), target); + } + + // optional bool ignore = 16; + if (cached_has_bits & 0x00000800u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->_internal_ignore(), target); + } + + // optional bool starred = 17; + if (cached_has_bits & 0x00001000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(17, this->_internal_starred(), target); + } + + // optional bool broadcast = 18; + if (cached_has_bits & 0x00002000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(18, this->_internal_broadcast(), target); + } + + // optional string pushName = 19; + if (cached_has_bits & 0x00000002u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_pushname().data(), static_cast<int>(this->_internal_pushname().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.WebMessageInfo.pushName"); + target = stream->WriteStringMaybeAliased( + 19, this->_internal_pushname(), target); + } + + // optional bytes mediaCiphertextSha256 = 20; + if (cached_has_bits & 0x00000004u) { + target = stream->WriteBytesMaybeAliased( + 20, this->_internal_mediaciphertextsha256(), target); + } + + // optional bool multicast = 21; + if (cached_has_bits & 0x00004000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(21, this->_internal_multicast(), target); + } + + // optional bool urlText = 22; + if (cached_has_bits & 0x00010000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(22, this->_internal_urltext(), target); + } + + // optional bool urlNumber = 23; + if (cached_has_bits & 0x00020000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(23, this->_internal_urlnumber(), target); + } + + // optional .proto.WebMessageInfo.WebMessageInfoStubType messageStubType = 24; + if (cached_has_bits & 0x00008000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 24, this->_internal_messagestubtype(), target); + } + + // optional bool clearMedia = 25; + if (cached_has_bits & 0x00040000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(25, this->_internal_clearmedia(), target); + } + + // repeated string messageStubParameters = 26; + for (int i = 0, n = this->_internal_messagestubparameters_size(); i < n; i++) { + const auto& s = this->_internal_messagestubparameters(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + s.data(), static_cast<int>(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.WebMessageInfo.messageStubParameters"); + target = stream->WriteString(26, s, target); + } + + // optional uint32 duration = 27; + if (cached_has_bits & 0x00100000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(27, this->_internal_duration(), target); + } + + // repeated string labels = 28; + for (int i = 0, n = this->_internal_labels_size(); i < n; i++) { + const auto& s = this->_internal_labels(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + s.data(), static_cast<int>(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.WebMessageInfo.labels"); + target = stream->WriteString(28, s, target); + } + + // optional .proto.PaymentInfo paymentInfo = 29; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 29, _Internal::paymentinfo(this), target, stream); + } + + // optional .proto.LiveLocationMessage finalLiveLocation = 30; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 30, _Internal::finallivelocation(this), target, stream); + } + + // optional .proto.PaymentInfo quotedPaymentInfo = 31; + if (cached_has_bits & 0x00000100u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 31, _Internal::quotedpaymentinfo(this), target, stream); + } + + // optional uint64 ephemeralStartTimestamp = 32; + if (cached_has_bits & 0x00400000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(32, this->_internal_ephemeralstarttimestamp(), target); + } + + // optional uint32 ephemeralDuration = 33; + if (cached_has_bits & 0x00200000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(33, this->_internal_ephemeralduration(), target); + } + + // optional bool ephemeralOffToOn = 34; + if (cached_has_bits & 0x00080000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(34, this->_internal_ephemeralofftoon(), target); + } + + // optional bool ephemeralOutOfSync = 35; + if (cached_has_bits & 0x00800000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(35, this->_internal_ephemeraloutofsync(), target); + } + + // optional .proto.WebMessageInfo.WebMessageInfoBizPrivacyStatus bizPrivacyStatus = 36; + if (cached_has_bits & 0x01000000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 36, this->_internal_bizprivacystatus(), target); + } + + // optional string verifiedBizName = 37; + if (cached_has_bits & 0x00000008u) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( + this->_internal_verifiedbizname().data(), static_cast<int>(this->_internal_verifiedbizname().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, + "proto.WebMessageInfo.verifiedBizName"); + target = stream->WriteStringMaybeAliased( + 37, this->_internal_verifiedbizname(), 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.WebMessageInfo) + return target; +} + +size_t WebMessageInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:proto.WebMessageInfo) + size_t total_size = 0; + + // required .proto.MessageKey key = 1; + if (_internal_has_key()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *key_); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string messageStubParameters = 26; + total_size += 2 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(messagestubparameters_.size()); + for (int i = 0, n = messagestubparameters_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + messagestubparameters_.Get(i)); + } + + // repeated string labels = 28; + total_size += 2 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(labels_.size()); + for (int i = 0, n = labels_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + labels_.Get(i)); + } + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + // optional string participant = 5; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_participant()); + } + + // optional string pushName = 19; + if (cached_has_bits & 0x00000002u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_pushname()); + } + + // optional bytes mediaCiphertextSha256 = 20; + if (cached_has_bits & 0x00000004u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_mediaciphertextsha256()); + } + + // optional string verifiedBizName = 37; + if (cached_has_bits & 0x00000008u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_verifiedbizname()); + } + + } + if (cached_has_bits & 0x000000e0u) { + // optional .proto.Message message = 2; + if (cached_has_bits & 0x00000020u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *message_); + } + + // optional .proto.PaymentInfo paymentInfo = 29; + if (cached_has_bits & 0x00000040u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *paymentinfo_); + } + + // optional .proto.LiveLocationMessage finalLiveLocation = 30; + if (cached_has_bits & 0x00000080u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *finallivelocation_); + } + + } + if (cached_has_bits & 0x0000ff00u) { + // optional .proto.PaymentInfo quotedPaymentInfo = 31; + if (cached_has_bits & 0x00000100u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *quotedpaymentinfo_); + } + + // optional uint64 messageTimestamp = 3; + if (cached_has_bits & 0x00000200u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_messagetimestamp()); + } + + // optional .proto.WebMessageInfo.WebMessageInfoStatus status = 4; + if (cached_has_bits & 0x00000400u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); + } + + // optional bool ignore = 16; + if (cached_has_bits & 0x00000800u) { + total_size += 2 + 1; + } + + // optional bool starred = 17; + if (cached_has_bits & 0x00001000u) { + total_size += 2 + 1; + } + + // optional bool broadcast = 18; + if (cached_has_bits & 0x00002000u) { + total_size += 2 + 1; + } + + // optional bool multicast = 21; + if (cached_has_bits & 0x00004000u) { + total_size += 2 + 1; + } + + // optional .proto.WebMessageInfo.WebMessageInfoStubType messageStubType = 24; + if (cached_has_bits & 0x00008000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_messagestubtype()); + } + + } + if (cached_has_bits & 0x00ff0000u) { + // optional bool urlText = 22; + if (cached_has_bits & 0x00010000u) { + total_size += 2 + 1; + } + + // optional bool urlNumber = 23; + if (cached_has_bits & 0x00020000u) { + total_size += 2 + 1; + } + + // optional bool clearMedia = 25; + if (cached_has_bits & 0x00040000u) { + total_size += 2 + 1; + } + + // optional bool ephemeralOffToOn = 34; + if (cached_has_bits & 0x00080000u) { + total_size += 2 + 1; + } + + // optional uint32 duration = 27; + if (cached_has_bits & 0x00100000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_duration()); + } + + // optional uint32 ephemeralDuration = 33; + if (cached_has_bits & 0x00200000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( + this->_internal_ephemeralduration()); + } + + // optional uint64 ephemeralStartTimestamp = 32; + if (cached_has_bits & 0x00400000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->_internal_ephemeralstarttimestamp()); + } + + // optional bool ephemeralOutOfSync = 35; + if (cached_has_bits & 0x00800000u) { + total_size += 2 + 1; + } + + } + // optional .proto.WebMessageInfo.WebMessageInfoBizPrivacyStatus bizPrivacyStatus = 36; + if (cached_has_bits & 0x01000000u) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_bizprivacystatus()); + } + + 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 WebMessageInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:proto.WebMessageInfo) + GOOGLE_DCHECK_NE(&from, this); + const WebMessageInfo* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<WebMessageInfo>( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.WebMessageInfo) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.WebMessageInfo) + MergeFrom(*source); + } +} + +void WebMessageInfo::MergeFrom(const WebMessageInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:proto.WebMessageInfo) + 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; + + messagestubparameters_.MergeFrom(from.messagestubparameters_); + labels_.MergeFrom(from.labels_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x000000ffu) { + if (cached_has_bits & 0x00000001u) { + _internal_set_participant(from._internal_participant()); + } + if (cached_has_bits & 0x00000002u) { + _internal_set_pushname(from._internal_pushname()); + } + if (cached_has_bits & 0x00000004u) { + _internal_set_mediaciphertextsha256(from._internal_mediaciphertextsha256()); + } + if (cached_has_bits & 0x00000008u) { + _internal_set_verifiedbizname(from._internal_verifiedbizname()); + } + if (cached_has_bits & 0x00000010u) { + _internal_mutable_key()->::proto::MessageKey::MergeFrom(from._internal_key()); + } + if (cached_has_bits & 0x00000020u) { + _internal_mutable_message()->::proto::Message::MergeFrom(from._internal_message()); + } + if (cached_has_bits & 0x00000040u) { + _internal_mutable_paymentinfo()->::proto::PaymentInfo::MergeFrom(from._internal_paymentinfo()); + } + if (cached_has_bits & 0x00000080u) { + _internal_mutable_finallivelocation()->::proto::LiveLocationMessage::MergeFrom(from._internal_finallivelocation()); + } + } + if (cached_has_bits & 0x0000ff00u) { + if (cached_has_bits & 0x00000100u) { + _internal_mutable_quotedpaymentinfo()->::proto::PaymentInfo::MergeFrom(from._internal_quotedpaymentinfo()); + } + if (cached_has_bits & 0x00000200u) { + messagetimestamp_ = from.messagetimestamp_; + } + if (cached_has_bits & 0x00000400u) { + status_ = from.status_; + } + if (cached_has_bits & 0x00000800u) { + ignore_ = from.ignore_; + } + if (cached_has_bits & 0x00001000u) { + starred_ = from.starred_; + } + if (cached_has_bits & 0x00002000u) { + broadcast_ = from.broadcast_; + } + if (cached_has_bits & 0x00004000u) { + multicast_ = from.multicast_; + } + if (cached_has_bits & 0x00008000u) { + messagestubtype_ = from.messagestubtype_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 0x00ff0000u) { + if (cached_has_bits & 0x00010000u) { + urltext_ = from.urltext_; + } + if (cached_has_bits & 0x00020000u) { + urlnumber_ = from.urlnumber_; + } + if (cached_has_bits & 0x00040000u) { + clearmedia_ = from.clearmedia_; + } + if (cached_has_bits & 0x00080000u) { + ephemeralofftoon_ = from.ephemeralofftoon_; + } + if (cached_has_bits & 0x00100000u) { + duration_ = from.duration_; + } + if (cached_has_bits & 0x00200000u) { + ephemeralduration_ = from.ephemeralduration_; + } + if (cached_has_bits & 0x00400000u) { + ephemeralstarttimestamp_ = from.ephemeralstarttimestamp_; + } + if (cached_has_bits & 0x00800000u) { + ephemeraloutofsync_ = from.ephemeraloutofsync_; + } + _has_bits_[0] |= cached_has_bits; + } + if (cached_has_bits & 0x01000000u) { + _internal_set_bizprivacystatus(from._internal_bizprivacystatus()); + } +} + +void WebMessageInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:proto.WebMessageInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WebMessageInfo::CopyFrom(const WebMessageInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:proto.WebMessageInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WebMessageInfo::IsInitialized() const { + if (_Internal::MissingRequiredFields(_has_bits_)) return false; + return true; +} + +void WebMessageInfo::InternalSwap(WebMessageInfo* other) { + using std::swap; + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + messagestubparameters_.InternalSwap(&other->messagestubparameters_); + labels_.InternalSwap(&other->labels_); + participant_.Swap(&other->participant_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + pushname_.Swap(&other->pushname_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + mediaciphertextsha256_.Swap(&other->mediaciphertextsha256_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + verifiedbizname_.Swap(&other->verifiedbizname_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(WebMessageInfo, bizprivacystatus_) + + sizeof(WebMessageInfo::bizprivacystatus_) + - PROTOBUF_FIELD_OFFSET(WebMessageInfo, key_)>( + reinterpret_cast<char*>(&key_), + reinterpret_cast<char*>(&other->key_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata WebMessageInfo::GetMetadata() const { + return GetMetadataStatic(); +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace proto +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::proto::PaymentMoney* Arena::CreateMaybeMessage< ::proto::PaymentMoney >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::PaymentMoney >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::HydratedQuickReplyButton* Arena::CreateMaybeMessage< ::proto::HydratedQuickReplyButton >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::HydratedQuickReplyButton >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::HydratedURLButton* Arena::CreateMaybeMessage< ::proto::HydratedURLButton >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::HydratedURLButton >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::HydratedCallButton* Arena::CreateMaybeMessage< ::proto::HydratedCallButton >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::HydratedCallButton >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::HydratedTemplateButton* Arena::CreateMaybeMessage< ::proto::HydratedTemplateButton >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::HydratedTemplateButton >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::QuickReplyButton* Arena::CreateMaybeMessage< ::proto::QuickReplyButton >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::QuickReplyButton >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::URLButton* Arena::CreateMaybeMessage< ::proto::URLButton >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::URLButton >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::CallButton* Arena::CreateMaybeMessage< ::proto::CallButton >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::CallButton >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::TemplateButton* Arena::CreateMaybeMessage< ::proto::TemplateButton >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::TemplateButton >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::Location* Arena::CreateMaybeMessage< ::proto::Location >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::Location >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::Point* Arena::CreateMaybeMessage< ::proto::Point >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::Point >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::InteractiveAnnotation* Arena::CreateMaybeMessage< ::proto::InteractiveAnnotation >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::InteractiveAnnotation >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::DeviceListMetadata* Arena::CreateMaybeMessage< ::proto::DeviceListMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::DeviceListMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::MessageContextInfo* Arena::CreateMaybeMessage< ::proto::MessageContextInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::MessageContextInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::AdReplyInfo* Arena::CreateMaybeMessage< ::proto::AdReplyInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::AdReplyInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::ExternalAdReplyInfo* Arena::CreateMaybeMessage< ::proto::ExternalAdReplyInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::ExternalAdReplyInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::ContextInfo* Arena::CreateMaybeMessage< ::proto::ContextInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::ContextInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::SenderKeyDistributionMessage* Arena::CreateMaybeMessage< ::proto::SenderKeyDistributionMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::SenderKeyDistributionMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::ImageMessage* Arena::CreateMaybeMessage< ::proto::ImageMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::ImageMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::InvoiceMessage* Arena::CreateMaybeMessage< ::proto::InvoiceMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::InvoiceMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::ContactMessage* Arena::CreateMaybeMessage< ::proto::ContactMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::ContactMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::LocationMessage* Arena::CreateMaybeMessage< ::proto::LocationMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::LocationMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::ExtendedTextMessage* Arena::CreateMaybeMessage< ::proto::ExtendedTextMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::ExtendedTextMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::DocumentMessage* Arena::CreateMaybeMessage< ::proto::DocumentMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::DocumentMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::AudioMessage* Arena::CreateMaybeMessage< ::proto::AudioMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::AudioMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::VideoMessage* Arena::CreateMaybeMessage< ::proto::VideoMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::VideoMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::Call* Arena::CreateMaybeMessage< ::proto::Call >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::Call >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::Chat* Arena::CreateMaybeMessage< ::proto::Chat >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::Chat >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::ProtocolMessage* Arena::CreateMaybeMessage< ::proto::ProtocolMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::ProtocolMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::HistorySyncNotification* Arena::CreateMaybeMessage< ::proto::HistorySyncNotification >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::HistorySyncNotification >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKey* Arena::CreateMaybeMessage< ::proto::AppStateSyncKey >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::AppStateSyncKey >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKeyId* Arena::CreateMaybeMessage< ::proto::AppStateSyncKeyId >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::AppStateSyncKeyId >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKeyFingerprint* Arena::CreateMaybeMessage< ::proto::AppStateSyncKeyFingerprint >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::AppStateSyncKeyFingerprint >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKeyData* Arena::CreateMaybeMessage< ::proto::AppStateSyncKeyData >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::AppStateSyncKeyData >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKeyShare* Arena::CreateMaybeMessage< ::proto::AppStateSyncKeyShare >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::AppStateSyncKeyShare >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::AppStateSyncKeyRequest* Arena::CreateMaybeMessage< ::proto::AppStateSyncKeyRequest >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::AppStateSyncKeyRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::AppStateFatalExceptionNotification* Arena::CreateMaybeMessage< ::proto::AppStateFatalExceptionNotification >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::AppStateFatalExceptionNotification >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::InitialSecurityNotificationSettingSync* Arena::CreateMaybeMessage< ::proto::InitialSecurityNotificationSettingSync >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::InitialSecurityNotificationSettingSync >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::ContactsArrayMessage* Arena::CreateMaybeMessage< ::proto::ContactsArrayMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::ContactsArrayMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::HSMCurrency* Arena::CreateMaybeMessage< ::proto::HSMCurrency >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::HSMCurrency >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::HSMDateTimeComponent* Arena::CreateMaybeMessage< ::proto::HSMDateTimeComponent >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::HSMDateTimeComponent >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::HSMDateTimeUnixEpoch* Arena::CreateMaybeMessage< ::proto::HSMDateTimeUnixEpoch >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::HSMDateTimeUnixEpoch >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::HSMDateTime* Arena::CreateMaybeMessage< ::proto::HSMDateTime >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::HSMDateTime >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::HSMLocalizableParameter* Arena::CreateMaybeMessage< ::proto::HSMLocalizableParameter >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::HSMLocalizableParameter >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::HighlyStructuredMessage* Arena::CreateMaybeMessage< ::proto::HighlyStructuredMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::HighlyStructuredMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::SendPaymentMessage* Arena::CreateMaybeMessage< ::proto::SendPaymentMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::SendPaymentMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::RequestPaymentMessage* Arena::CreateMaybeMessage< ::proto::RequestPaymentMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::RequestPaymentMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::DeclinePaymentRequestMessage* Arena::CreateMaybeMessage< ::proto::DeclinePaymentRequestMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::DeclinePaymentRequestMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::CancelPaymentRequestMessage* Arena::CreateMaybeMessage< ::proto::CancelPaymentRequestMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::CancelPaymentRequestMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::LiveLocationMessage* Arena::CreateMaybeMessage< ::proto::LiveLocationMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::LiveLocationMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::StickerMessage* Arena::CreateMaybeMessage< ::proto::StickerMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::StickerMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::FourRowTemplate* Arena::CreateMaybeMessage< ::proto::FourRowTemplate >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::FourRowTemplate >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::HydratedFourRowTemplate* Arena::CreateMaybeMessage< ::proto::HydratedFourRowTemplate >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::HydratedFourRowTemplate >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::TemplateMessage* Arena::CreateMaybeMessage< ::proto::TemplateMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::TemplateMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::TemplateButtonReplyMessage* Arena::CreateMaybeMessage< ::proto::TemplateButtonReplyMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::TemplateButtonReplyMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::CatalogSnapshot* Arena::CreateMaybeMessage< ::proto::CatalogSnapshot >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::CatalogSnapshot >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::ProductSnapshot* Arena::CreateMaybeMessage< ::proto::ProductSnapshot >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::ProductSnapshot >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::ProductMessage* Arena::CreateMaybeMessage< ::proto::ProductMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::ProductMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::OrderMessage* Arena::CreateMaybeMessage< ::proto::OrderMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::OrderMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::Row* Arena::CreateMaybeMessage< ::proto::Row >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::Row >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::Section* Arena::CreateMaybeMessage< ::proto::Section >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::Section >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::ListMessage* Arena::CreateMaybeMessage< ::proto::ListMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::ListMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::SingleSelectReply* Arena::CreateMaybeMessage< ::proto::SingleSelectReply >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::SingleSelectReply >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::ListResponseMessage* Arena::CreateMaybeMessage< ::proto::ListResponseMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::ListResponseMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::GroupInviteMessage* Arena::CreateMaybeMessage< ::proto::GroupInviteMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::GroupInviteMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::EphemeralSetting* Arena::CreateMaybeMessage< ::proto::EphemeralSetting >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::EphemeralSetting >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::DeviceSentMessage* Arena::CreateMaybeMessage< ::proto::DeviceSentMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::DeviceSentMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::FutureProofMessage* Arena::CreateMaybeMessage< ::proto::FutureProofMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::FutureProofMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::ButtonText* Arena::CreateMaybeMessage< ::proto::ButtonText >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::ButtonText >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::Button* Arena::CreateMaybeMessage< ::proto::Button >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::Button >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::ButtonsMessage* Arena::CreateMaybeMessage< ::proto::ButtonsMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::ButtonsMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::ButtonsResponseMessage* Arena::CreateMaybeMessage< ::proto::ButtonsResponseMessage >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::ButtonsResponseMessage >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::Message* Arena::CreateMaybeMessage< ::proto::Message >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::Message >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::MessageKey* Arena::CreateMaybeMessage< ::proto::MessageKey >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::MessageKey >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::WebFeatures* Arena::CreateMaybeMessage< ::proto::WebFeatures >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::WebFeatures >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::NotificationMessageInfo* Arena::CreateMaybeMessage< ::proto::NotificationMessageInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::NotificationMessageInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::WebNotificationsInfo* Arena::CreateMaybeMessage< ::proto::WebNotificationsInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::WebNotificationsInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::PaymentInfo* Arena::CreateMaybeMessage< ::proto::PaymentInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::PaymentInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::proto::WebMessageInfo* Arena::CreateMaybeMessage< ::proto::WebMessageInfo >(Arena* arena) { + return Arena::CreateMessageInternal< ::proto::WebMessageInfo >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include <google/protobuf/port_undef.inc> diff --git a/protocols/WhatsAppWeb/src/pmsg.pb.h b/protocols/WhatsAppWeb/src/pmsg.pb.h new file mode 100644 index 0000000000..a61095f954 --- /dev/null +++ b/protocols/WhatsAppWeb/src/pmsg.pb.h @@ -0,0 +1,53296 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: pmsg.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_pmsg_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_pmsg_2eproto + +#include <limits> +#include <string> + +#include <google/protobuf/port_def.inc> +#if PROTOBUF_VERSION < 3015000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3015008 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include <google/protobuf/port_undef.inc> +#include <google/protobuf/io/coded_stream.h> +#include <google/protobuf/arena.h> +#include <google/protobuf/arenastring.h> +#include <google/protobuf/generated_message_table_driven.h> +#include <google/protobuf/generated_message_util.h> +#include <google/protobuf/metadata_lite.h> +#include <google/protobuf/generated_message_reflection.h> +#include <google/protobuf/message.h> +#include <google/protobuf/repeated_field.h> // IWYU pragma: export +#include <google/protobuf/extension_set.h> // IWYU pragma: export +#include <google/protobuf/generated_enum_reflection.h> +#include <google/protobuf/unknown_field_set.h> +// @@protoc_insertion_point(includes) +#include <google/protobuf/port_def.inc> +#define PROTOBUF_INTERNAL_EXPORT_pmsg_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_pmsg_2eproto { + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[79] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_pmsg_2eproto; +::PROTOBUF_NAMESPACE_ID::Metadata descriptor_table_pmsg_2eproto_metadata_getter(int index); +namespace proto { +class AdReplyInfo; +struct AdReplyInfoDefaultTypeInternal; +extern AdReplyInfoDefaultTypeInternal _AdReplyInfo_default_instance_; +class AppStateFatalExceptionNotification; +struct AppStateFatalExceptionNotificationDefaultTypeInternal; +extern AppStateFatalExceptionNotificationDefaultTypeInternal _AppStateFatalExceptionNotification_default_instance_; +class AppStateSyncKey; +struct AppStateSyncKeyDefaultTypeInternal; +extern AppStateSyncKeyDefaultTypeInternal _AppStateSyncKey_default_instance_; +class AppStateSyncKeyData; +struct AppStateSyncKeyDataDefaultTypeInternal; +extern AppStateSyncKeyDataDefaultTypeInternal _AppStateSyncKeyData_default_instance_; +class AppStateSyncKeyFingerprint; +struct AppStateSyncKeyFingerprintDefaultTypeInternal; +extern AppStateSyncKeyFingerprintDefaultTypeInternal _AppStateSyncKeyFingerprint_default_instance_; +class AppStateSyncKeyId; +struct AppStateSyncKeyIdDefaultTypeInternal; +extern AppStateSyncKeyIdDefaultTypeInternal _AppStateSyncKeyId_default_instance_; +class AppStateSyncKeyRequest; +struct AppStateSyncKeyRequestDefaultTypeInternal; +extern AppStateSyncKeyRequestDefaultTypeInternal _AppStateSyncKeyRequest_default_instance_; +class AppStateSyncKeyShare; +struct AppStateSyncKeyShareDefaultTypeInternal; +extern AppStateSyncKeyShareDefaultTypeInternal _AppStateSyncKeyShare_default_instance_; +class AudioMessage; +struct AudioMessageDefaultTypeInternal; +extern AudioMessageDefaultTypeInternal _AudioMessage_default_instance_; +class Button; +struct ButtonDefaultTypeInternal; +extern ButtonDefaultTypeInternal _Button_default_instance_; +class ButtonText; +struct ButtonTextDefaultTypeInternal; +extern ButtonTextDefaultTypeInternal _ButtonText_default_instance_; +class ButtonsMessage; +struct ButtonsMessageDefaultTypeInternal; +extern ButtonsMessageDefaultTypeInternal _ButtonsMessage_default_instance_; +class ButtonsResponseMessage; +struct ButtonsResponseMessageDefaultTypeInternal; +extern ButtonsResponseMessageDefaultTypeInternal _ButtonsResponseMessage_default_instance_; +class Call; +struct CallDefaultTypeInternal; +extern CallDefaultTypeInternal _Call_default_instance_; +class CallButton; +struct CallButtonDefaultTypeInternal; +extern CallButtonDefaultTypeInternal _CallButton_default_instance_; +class CancelPaymentRequestMessage; +struct CancelPaymentRequestMessageDefaultTypeInternal; +extern CancelPaymentRequestMessageDefaultTypeInternal _CancelPaymentRequestMessage_default_instance_; +class CatalogSnapshot; +struct CatalogSnapshotDefaultTypeInternal; +extern CatalogSnapshotDefaultTypeInternal _CatalogSnapshot_default_instance_; +class Chat; +struct ChatDefaultTypeInternal; +extern ChatDefaultTypeInternal _Chat_default_instance_; +class ContactMessage; +struct ContactMessageDefaultTypeInternal; +extern ContactMessageDefaultTypeInternal _ContactMessage_default_instance_; +class ContactsArrayMessage; +struct ContactsArrayMessageDefaultTypeInternal; +extern ContactsArrayMessageDefaultTypeInternal _ContactsArrayMessage_default_instance_; +class ContextInfo; +struct ContextInfoDefaultTypeInternal; +extern ContextInfoDefaultTypeInternal _ContextInfo_default_instance_; +class DeclinePaymentRequestMessage; +struct DeclinePaymentRequestMessageDefaultTypeInternal; +extern DeclinePaymentRequestMessageDefaultTypeInternal _DeclinePaymentRequestMessage_default_instance_; +class DeviceListMetadata; +struct DeviceListMetadataDefaultTypeInternal; +extern DeviceListMetadataDefaultTypeInternal _DeviceListMetadata_default_instance_; +class DeviceSentMessage; +struct DeviceSentMessageDefaultTypeInternal; +extern DeviceSentMessageDefaultTypeInternal _DeviceSentMessage_default_instance_; +class DocumentMessage; +struct DocumentMessageDefaultTypeInternal; +extern DocumentMessageDefaultTypeInternal _DocumentMessage_default_instance_; +class EphemeralSetting; +struct EphemeralSettingDefaultTypeInternal; +extern EphemeralSettingDefaultTypeInternal _EphemeralSetting_default_instance_; +class ExtendedTextMessage; +struct ExtendedTextMessageDefaultTypeInternal; +extern ExtendedTextMessageDefaultTypeInternal _ExtendedTextMessage_default_instance_; +class ExternalAdReplyInfo; +struct ExternalAdReplyInfoDefaultTypeInternal; +extern ExternalAdReplyInfoDefaultTypeInternal _ExternalAdReplyInfo_default_instance_; +class FourRowTemplate; +struct FourRowTemplateDefaultTypeInternal; +extern FourRowTemplateDefaultTypeInternal _FourRowTemplate_default_instance_; +class FutureProofMessage; +struct FutureProofMessageDefaultTypeInternal; +extern FutureProofMessageDefaultTypeInternal _FutureProofMessage_default_instance_; +class GroupInviteMessage; +struct GroupInviteMessageDefaultTypeInternal; +extern GroupInviteMessageDefaultTypeInternal _GroupInviteMessage_default_instance_; +class HSMCurrency; +struct HSMCurrencyDefaultTypeInternal; +extern HSMCurrencyDefaultTypeInternal _HSMCurrency_default_instance_; +class HSMDateTime; +struct HSMDateTimeDefaultTypeInternal; +extern HSMDateTimeDefaultTypeInternal _HSMDateTime_default_instance_; +class HSMDateTimeComponent; +struct HSMDateTimeComponentDefaultTypeInternal; +extern HSMDateTimeComponentDefaultTypeInternal _HSMDateTimeComponent_default_instance_; +class HSMDateTimeUnixEpoch; +struct HSMDateTimeUnixEpochDefaultTypeInternal; +extern HSMDateTimeUnixEpochDefaultTypeInternal _HSMDateTimeUnixEpoch_default_instance_; +class HSMLocalizableParameter; +struct HSMLocalizableParameterDefaultTypeInternal; +extern HSMLocalizableParameterDefaultTypeInternal _HSMLocalizableParameter_default_instance_; +class HighlyStructuredMessage; +struct HighlyStructuredMessageDefaultTypeInternal; +extern HighlyStructuredMessageDefaultTypeInternal _HighlyStructuredMessage_default_instance_; +class HistorySyncNotification; +struct HistorySyncNotificationDefaultTypeInternal; +extern HistorySyncNotificationDefaultTypeInternal _HistorySyncNotification_default_instance_; +class HydratedCallButton; +struct HydratedCallButtonDefaultTypeInternal; +extern HydratedCallButtonDefaultTypeInternal _HydratedCallButton_default_instance_; +class HydratedFourRowTemplate; +struct HydratedFourRowTemplateDefaultTypeInternal; +extern HydratedFourRowTemplateDefaultTypeInternal _HydratedFourRowTemplate_default_instance_; +class HydratedQuickReplyButton; +struct HydratedQuickReplyButtonDefaultTypeInternal; +extern HydratedQuickReplyButtonDefaultTypeInternal _HydratedQuickReplyButton_default_instance_; +class HydratedTemplateButton; +struct HydratedTemplateButtonDefaultTypeInternal; +extern HydratedTemplateButtonDefaultTypeInternal _HydratedTemplateButton_default_instance_; +class HydratedURLButton; +struct HydratedURLButtonDefaultTypeInternal; +extern HydratedURLButtonDefaultTypeInternal _HydratedURLButton_default_instance_; +class ImageMessage; +struct ImageMessageDefaultTypeInternal; +extern ImageMessageDefaultTypeInternal _ImageMessage_default_instance_; +class InitialSecurityNotificationSettingSync; +struct InitialSecurityNotificationSettingSyncDefaultTypeInternal; +extern InitialSecurityNotificationSettingSyncDefaultTypeInternal _InitialSecurityNotificationSettingSync_default_instance_; +class InteractiveAnnotation; +struct InteractiveAnnotationDefaultTypeInternal; +extern InteractiveAnnotationDefaultTypeInternal _InteractiveAnnotation_default_instance_; +class InvoiceMessage; +struct InvoiceMessageDefaultTypeInternal; +extern InvoiceMessageDefaultTypeInternal _InvoiceMessage_default_instance_; +class ListMessage; +struct ListMessageDefaultTypeInternal; +extern ListMessageDefaultTypeInternal _ListMessage_default_instance_; +class ListResponseMessage; +struct ListResponseMessageDefaultTypeInternal; +extern ListResponseMessageDefaultTypeInternal _ListResponseMessage_default_instance_; +class LiveLocationMessage; +struct LiveLocationMessageDefaultTypeInternal; +extern LiveLocationMessageDefaultTypeInternal _LiveLocationMessage_default_instance_; +class Location; +struct LocationDefaultTypeInternal; +extern LocationDefaultTypeInternal _Location_default_instance_; +class LocationMessage; +struct LocationMessageDefaultTypeInternal; +extern LocationMessageDefaultTypeInternal _LocationMessage_default_instance_; +class Message; +struct MessageDefaultTypeInternal; +extern MessageDefaultTypeInternal _Message_default_instance_; +class MessageContextInfo; +struct MessageContextInfoDefaultTypeInternal; +extern MessageContextInfoDefaultTypeInternal _MessageContextInfo_default_instance_; +class MessageKey; +struct MessageKeyDefaultTypeInternal; +extern MessageKeyDefaultTypeInternal _MessageKey_default_instance_; +class NotificationMessageInfo; +struct NotificationMessageInfoDefaultTypeInternal; +extern NotificationMessageInfoDefaultTypeInternal _NotificationMessageInfo_default_instance_; +class OrderMessage; +struct OrderMessageDefaultTypeInternal; +extern OrderMessageDefaultTypeInternal _OrderMessage_default_instance_; +class PaymentInfo; +struct PaymentInfoDefaultTypeInternal; +extern PaymentInfoDefaultTypeInternal _PaymentInfo_default_instance_; +class PaymentMoney; +struct PaymentMoneyDefaultTypeInternal; +extern PaymentMoneyDefaultTypeInternal _PaymentMoney_default_instance_; +class Point; +struct PointDefaultTypeInternal; +extern PointDefaultTypeInternal _Point_default_instance_; +class ProductMessage; +struct ProductMessageDefaultTypeInternal; +extern ProductMessageDefaultTypeInternal _ProductMessage_default_instance_; +class ProductSnapshot; +struct ProductSnapshotDefaultTypeInternal; +extern ProductSnapshotDefaultTypeInternal _ProductSnapshot_default_instance_; +class ProtocolMessage; +struct ProtocolMessageDefaultTypeInternal; +extern ProtocolMessageDefaultTypeInternal _ProtocolMessage_default_instance_; +class QuickReplyButton; +struct QuickReplyButtonDefaultTypeInternal; +extern QuickReplyButtonDefaultTypeInternal _QuickReplyButton_default_instance_; +class RequestPaymentMessage; +struct RequestPaymentMessageDefaultTypeInternal; +extern RequestPaymentMessageDefaultTypeInternal _RequestPaymentMessage_default_instance_; +class Row; +struct RowDefaultTypeInternal; +extern RowDefaultTypeInternal _Row_default_instance_; +class Section; +struct SectionDefaultTypeInternal; +extern SectionDefaultTypeInternal _Section_default_instance_; +class SendPaymentMessage; +struct SendPaymentMessageDefaultTypeInternal; +extern SendPaymentMessageDefaultTypeInternal _SendPaymentMessage_default_instance_; +class SenderKeyDistributionMessage; +struct SenderKeyDistributionMessageDefaultTypeInternal; +extern SenderKeyDistributionMessageDefaultTypeInternal _SenderKeyDistributionMessage_default_instance_; +class SingleSelectReply; +struct SingleSelectReplyDefaultTypeInternal; +extern SingleSelectReplyDefaultTypeInternal _SingleSelectReply_default_instance_; +class StickerMessage; +struct StickerMessageDefaultTypeInternal; +extern StickerMessageDefaultTypeInternal _StickerMessage_default_instance_; +class TemplateButton; +struct TemplateButtonDefaultTypeInternal; +extern TemplateButtonDefaultTypeInternal _TemplateButton_default_instance_; +class TemplateButtonReplyMessage; +struct TemplateButtonReplyMessageDefaultTypeInternal; +extern TemplateButtonReplyMessageDefaultTypeInternal _TemplateButtonReplyMessage_default_instance_; +class TemplateMessage; +struct TemplateMessageDefaultTypeInternal; +extern TemplateMessageDefaultTypeInternal _TemplateMessage_default_instance_; +class URLButton; +struct URLButtonDefaultTypeInternal; +extern URLButtonDefaultTypeInternal _URLButton_default_instance_; +class VideoMessage; +struct VideoMessageDefaultTypeInternal; +extern VideoMessageDefaultTypeInternal _VideoMessage_default_instance_; +class WebFeatures; +struct WebFeaturesDefaultTypeInternal; +extern WebFeaturesDefaultTypeInternal _WebFeatures_default_instance_; +class WebMessageInfo; +struct WebMessageInfoDefaultTypeInternal; +extern WebMessageInfoDefaultTypeInternal _WebMessageInfo_default_instance_; +class WebNotificationsInfo; +struct WebNotificationsInfoDefaultTypeInternal; +extern WebNotificationsInfoDefaultTypeInternal _WebNotificationsInfo_default_instance_; +} // namespace proto +PROTOBUF_NAMESPACE_OPEN +template<> ::proto::AdReplyInfo* Arena::CreateMaybeMessage<::proto::AdReplyInfo>(Arena*); +template<> ::proto::AppStateFatalExceptionNotification* Arena::CreateMaybeMessage<::proto::AppStateFatalExceptionNotification>(Arena*); +template<> ::proto::AppStateSyncKey* Arena::CreateMaybeMessage<::proto::AppStateSyncKey>(Arena*); +template<> ::proto::AppStateSyncKeyData* Arena::CreateMaybeMessage<::proto::AppStateSyncKeyData>(Arena*); +template<> ::proto::AppStateSyncKeyFingerprint* Arena::CreateMaybeMessage<::proto::AppStateSyncKeyFingerprint>(Arena*); +template<> ::proto::AppStateSyncKeyId* Arena::CreateMaybeMessage<::proto::AppStateSyncKeyId>(Arena*); +template<> ::proto::AppStateSyncKeyRequest* Arena::CreateMaybeMessage<::proto::AppStateSyncKeyRequest>(Arena*); +template<> ::proto::AppStateSyncKeyShare* Arena::CreateMaybeMessage<::proto::AppStateSyncKeyShare>(Arena*); +template<> ::proto::AudioMessage* Arena::CreateMaybeMessage<::proto::AudioMessage>(Arena*); +template<> ::proto::Button* Arena::CreateMaybeMessage<::proto::Button>(Arena*); +template<> ::proto::ButtonText* Arena::CreateMaybeMessage<::proto::ButtonText>(Arena*); +template<> ::proto::ButtonsMessage* Arena::CreateMaybeMessage<::proto::ButtonsMessage>(Arena*); +template<> ::proto::ButtonsResponseMessage* Arena::CreateMaybeMessage<::proto::ButtonsResponseMessage>(Arena*); +template<> ::proto::Call* Arena::CreateMaybeMessage<::proto::Call>(Arena*); +template<> ::proto::CallButton* Arena::CreateMaybeMessage<::proto::CallButton>(Arena*); +template<> ::proto::CancelPaymentRequestMessage* Arena::CreateMaybeMessage<::proto::CancelPaymentRequestMessage>(Arena*); +template<> ::proto::CatalogSnapshot* Arena::CreateMaybeMessage<::proto::CatalogSnapshot>(Arena*); +template<> ::proto::Chat* Arena::CreateMaybeMessage<::proto::Chat>(Arena*); +template<> ::proto::ContactMessage* Arena::CreateMaybeMessage<::proto::ContactMessage>(Arena*); +template<> ::proto::ContactsArrayMessage* Arena::CreateMaybeMessage<::proto::ContactsArrayMessage>(Arena*); +template<> ::proto::ContextInfo* Arena::CreateMaybeMessage<::proto::ContextInfo>(Arena*); +template<> ::proto::DeclinePaymentRequestMessage* Arena::CreateMaybeMessage<::proto::DeclinePaymentRequestMessage>(Arena*); +template<> ::proto::DeviceListMetadata* Arena::CreateMaybeMessage<::proto::DeviceListMetadata>(Arena*); +template<> ::proto::DeviceSentMessage* Arena::CreateMaybeMessage<::proto::DeviceSentMessage>(Arena*); +template<> ::proto::DocumentMessage* Arena::CreateMaybeMessage<::proto::DocumentMessage>(Arena*); +template<> ::proto::EphemeralSetting* Arena::CreateMaybeMessage<::proto::EphemeralSetting>(Arena*); +template<> ::proto::ExtendedTextMessage* Arena::CreateMaybeMessage<::proto::ExtendedTextMessage>(Arena*); +template<> ::proto::ExternalAdReplyInfo* Arena::CreateMaybeMessage<::proto::ExternalAdReplyInfo>(Arena*); +template<> ::proto::FourRowTemplate* Arena::CreateMaybeMessage<::proto::FourRowTemplate>(Arena*); +template<> ::proto::FutureProofMessage* Arena::CreateMaybeMessage<::proto::FutureProofMessage>(Arena*); +template<> ::proto::GroupInviteMessage* Arena::CreateMaybeMessage<::proto::GroupInviteMessage>(Arena*); +template<> ::proto::HSMCurrency* Arena::CreateMaybeMessage<::proto::HSMCurrency>(Arena*); +template<> ::proto::HSMDateTime* Arena::CreateMaybeMessage<::proto::HSMDateTime>(Arena*); +template<> ::proto::HSMDateTimeComponent* Arena::CreateMaybeMessage<::proto::HSMDateTimeComponent>(Arena*); +template<> ::proto::HSMDateTimeUnixEpoch* Arena::CreateMaybeMessage<::proto::HSMDateTimeUnixEpoch>(Arena*); +template<> ::proto::HSMLocalizableParameter* Arena::CreateMaybeMessage<::proto::HSMLocalizableParameter>(Arena*); +template<> ::proto::HighlyStructuredMessage* Arena::CreateMaybeMessage<::proto::HighlyStructuredMessage>(Arena*); +template<> ::proto::HistorySyncNotification* Arena::CreateMaybeMessage<::proto::HistorySyncNotification>(Arena*); +template<> ::proto::HydratedCallButton* Arena::CreateMaybeMessage<::proto::HydratedCallButton>(Arena*); +template<> ::proto::HydratedFourRowTemplate* Arena::CreateMaybeMessage<::proto::HydratedFourRowTemplate>(Arena*); +template<> ::proto::HydratedQuickReplyButton* Arena::CreateMaybeMessage<::proto::HydratedQuickReplyButton>(Arena*); +template<> ::proto::HydratedTemplateButton* Arena::CreateMaybeMessage<::proto::HydratedTemplateButton>(Arena*); +template<> ::proto::HydratedURLButton* Arena::CreateMaybeMessage<::proto::HydratedURLButton>(Arena*); +template<> ::proto::ImageMessage* Arena::CreateMaybeMessage<::proto::ImageMessage>(Arena*); +template<> ::proto::InitialSecurityNotificationSettingSync* Arena::CreateMaybeMessage<::proto::InitialSecurityNotificationSettingSync>(Arena*); +template<> ::proto::InteractiveAnnotation* Arena::CreateMaybeMessage<::proto::InteractiveAnnotation>(Arena*); +template<> ::proto::InvoiceMessage* Arena::CreateMaybeMessage<::proto::InvoiceMessage>(Arena*); +template<> ::proto::ListMessage* Arena::CreateMaybeMessage<::proto::ListMessage>(Arena*); +template<> ::proto::ListResponseMessage* Arena::CreateMaybeMessage<::proto::ListResponseMessage>(Arena*); +template<> ::proto::LiveLocationMessage* Arena::CreateMaybeMessage<::proto::LiveLocationMessage>(Arena*); +template<> ::proto::Location* Arena::CreateMaybeMessage<::proto::Location>(Arena*); +template<> ::proto::LocationMessage* Arena::CreateMaybeMessage<::proto::LocationMessage>(Arena*); +template<> ::proto::Message* Arena::CreateMaybeMessage<::proto::Message>(Arena*); +template<> ::proto::MessageContextInfo* Arena::CreateMaybeMessage<::proto::MessageContextInfo>(Arena*); +template<> ::proto::MessageKey* Arena::CreateMaybeMessage<::proto::MessageKey>(Arena*); +template<> ::proto::NotificationMessageInfo* Arena::CreateMaybeMessage<::proto::NotificationMessageInfo>(Arena*); +template<> ::proto::OrderMessage* Arena::CreateMaybeMessage<::proto::OrderMessage>(Arena*); +template<> ::proto::PaymentInfo* Arena::CreateMaybeMessage<::proto::PaymentInfo>(Arena*); +template<> ::proto::PaymentMoney* Arena::CreateMaybeMessage<::proto::PaymentMoney>(Arena*); +template<> ::proto::Point* Arena::CreateMaybeMessage<::proto::Point>(Arena*); +template<> ::proto::ProductMessage* Arena::CreateMaybeMessage<::proto::ProductMessage>(Arena*); +template<> ::proto::ProductSnapshot* Arena::CreateMaybeMessage<::proto::ProductSnapshot>(Arena*); +template<> ::proto::ProtocolMessage* Arena::CreateMaybeMessage<::proto::ProtocolMessage>(Arena*); +template<> ::proto::QuickReplyButton* Arena::CreateMaybeMessage<::proto::QuickReplyButton>(Arena*); +template<> ::proto::RequestPaymentMessage* Arena::CreateMaybeMessage<::proto::RequestPaymentMessage>(Arena*); +template<> ::proto::Row* Arena::CreateMaybeMessage<::proto::Row>(Arena*); +template<> ::proto::Section* Arena::CreateMaybeMessage<::proto::Section>(Arena*); +template<> ::proto::SendPaymentMessage* Arena::CreateMaybeMessage<::proto::SendPaymentMessage>(Arena*); +template<> ::proto::SenderKeyDistributionMessage* Arena::CreateMaybeMessage<::proto::SenderKeyDistributionMessage>(Arena*); +template<> ::proto::SingleSelectReply* Arena::CreateMaybeMessage<::proto::SingleSelectReply>(Arena*); +template<> ::proto::StickerMessage* Arena::CreateMaybeMessage<::proto::StickerMessage>(Arena*); +template<> ::proto::TemplateButton* Arena::CreateMaybeMessage<::proto::TemplateButton>(Arena*); +template<> ::proto::TemplateButtonReplyMessage* Arena::CreateMaybeMessage<::proto::TemplateButtonReplyMessage>(Arena*); +template<> ::proto::TemplateMessage* Arena::CreateMaybeMessage<::proto::TemplateMessage>(Arena*); +template<> ::proto::URLButton* Arena::CreateMaybeMessage<::proto::URLButton>(Arena*); +template<> ::proto::VideoMessage* Arena::CreateMaybeMessage<::proto::VideoMessage>(Arena*); +template<> ::proto::WebFeatures* Arena::CreateMaybeMessage<::proto::WebFeatures>(Arena*); +template<> ::proto::WebMessageInfo* Arena::CreateMaybeMessage<::proto::WebMessageInfo>(Arena*); +template<> ::proto::WebNotificationsInfo* Arena::CreateMaybeMessage<::proto::WebNotificationsInfo>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace proto { + +enum AdReplyInfo_AdReplyInfoMediaType : int { + AdReplyInfo_AdReplyInfoMediaType_NONE = 0, + AdReplyInfo_AdReplyInfoMediaType_IMAGE = 1, + AdReplyInfo_AdReplyInfoMediaType_VIDEO = 2 +}; +bool AdReplyInfo_AdReplyInfoMediaType_IsValid(int value); +constexpr AdReplyInfo_AdReplyInfoMediaType AdReplyInfo_AdReplyInfoMediaType_AdReplyInfoMediaType_MIN = AdReplyInfo_AdReplyInfoMediaType_NONE; +constexpr AdReplyInfo_AdReplyInfoMediaType AdReplyInfo_AdReplyInfoMediaType_AdReplyInfoMediaType_MAX = AdReplyInfo_AdReplyInfoMediaType_VIDEO; +constexpr int AdReplyInfo_AdReplyInfoMediaType_AdReplyInfoMediaType_ARRAYSIZE = AdReplyInfo_AdReplyInfoMediaType_AdReplyInfoMediaType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AdReplyInfo_AdReplyInfoMediaType_descriptor(); +template<typename T> +inline const std::string& AdReplyInfo_AdReplyInfoMediaType_Name(T enum_t_value) { + static_assert(::std::is_same<T, AdReplyInfo_AdReplyInfoMediaType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function AdReplyInfo_AdReplyInfoMediaType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + AdReplyInfo_AdReplyInfoMediaType_descriptor(), enum_t_value); +} +inline bool AdReplyInfo_AdReplyInfoMediaType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AdReplyInfo_AdReplyInfoMediaType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<AdReplyInfo_AdReplyInfoMediaType>( + AdReplyInfo_AdReplyInfoMediaType_descriptor(), name, value); +} +enum ExternalAdReplyInfo_ExternalAdReplyInfoMediaType : int { + ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_NONE = 0, + ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_IMAGE = 1, + ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_VIDEO = 2 +}; +bool ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_IsValid(int value); +constexpr ExternalAdReplyInfo_ExternalAdReplyInfoMediaType ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_ExternalAdReplyInfoMediaType_MIN = ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_NONE; +constexpr ExternalAdReplyInfo_ExternalAdReplyInfoMediaType ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_ExternalAdReplyInfoMediaType_MAX = ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_VIDEO; +constexpr int ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_ExternalAdReplyInfoMediaType_ARRAYSIZE = ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_ExternalAdReplyInfoMediaType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_descriptor(); +template<typename T> +inline const std::string& ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_Name(T enum_t_value) { + static_assert(::std::is_same<T, ExternalAdReplyInfo_ExternalAdReplyInfoMediaType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_descriptor(), enum_t_value); +} +inline bool ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ExternalAdReplyInfo_ExternalAdReplyInfoMediaType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ExternalAdReplyInfo_ExternalAdReplyInfoMediaType>( + ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_descriptor(), name, value); +} +enum InvoiceMessage_InvoiceMessageAttachmentType : int { + InvoiceMessage_InvoiceMessageAttachmentType_IMAGE = 0, + InvoiceMessage_InvoiceMessageAttachmentType_PDF = 1 +}; +bool InvoiceMessage_InvoiceMessageAttachmentType_IsValid(int value); +constexpr InvoiceMessage_InvoiceMessageAttachmentType InvoiceMessage_InvoiceMessageAttachmentType_InvoiceMessageAttachmentType_MIN = InvoiceMessage_InvoiceMessageAttachmentType_IMAGE; +constexpr InvoiceMessage_InvoiceMessageAttachmentType InvoiceMessage_InvoiceMessageAttachmentType_InvoiceMessageAttachmentType_MAX = InvoiceMessage_InvoiceMessageAttachmentType_PDF; +constexpr int InvoiceMessage_InvoiceMessageAttachmentType_InvoiceMessageAttachmentType_ARRAYSIZE = InvoiceMessage_InvoiceMessageAttachmentType_InvoiceMessageAttachmentType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* InvoiceMessage_InvoiceMessageAttachmentType_descriptor(); +template<typename T> +inline const std::string& InvoiceMessage_InvoiceMessageAttachmentType_Name(T enum_t_value) { + static_assert(::std::is_same<T, InvoiceMessage_InvoiceMessageAttachmentType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function InvoiceMessage_InvoiceMessageAttachmentType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + InvoiceMessage_InvoiceMessageAttachmentType_descriptor(), enum_t_value); +} +inline bool InvoiceMessage_InvoiceMessageAttachmentType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, InvoiceMessage_InvoiceMessageAttachmentType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<InvoiceMessage_InvoiceMessageAttachmentType>( + InvoiceMessage_InvoiceMessageAttachmentType_descriptor(), name, value); +} +enum ExtendedTextMessage_ExtendedTextMessageFontType : int { + ExtendedTextMessage_ExtendedTextMessageFontType_SANS_SERIF = 0, + ExtendedTextMessage_ExtendedTextMessageFontType_SERIF = 1, + ExtendedTextMessage_ExtendedTextMessageFontType_NORICAN_REGULAR = 2, + ExtendedTextMessage_ExtendedTextMessageFontType_BRYNDAN_WRITE = 3, + ExtendedTextMessage_ExtendedTextMessageFontType_BEBASNEUE_REGULAR = 4, + ExtendedTextMessage_ExtendedTextMessageFontType_OSWALD_HEAVY = 5 +}; +bool ExtendedTextMessage_ExtendedTextMessageFontType_IsValid(int value); +constexpr ExtendedTextMessage_ExtendedTextMessageFontType ExtendedTextMessage_ExtendedTextMessageFontType_ExtendedTextMessageFontType_MIN = ExtendedTextMessage_ExtendedTextMessageFontType_SANS_SERIF; +constexpr ExtendedTextMessage_ExtendedTextMessageFontType ExtendedTextMessage_ExtendedTextMessageFontType_ExtendedTextMessageFontType_MAX = ExtendedTextMessage_ExtendedTextMessageFontType_OSWALD_HEAVY; +constexpr int ExtendedTextMessage_ExtendedTextMessageFontType_ExtendedTextMessageFontType_ARRAYSIZE = ExtendedTextMessage_ExtendedTextMessageFontType_ExtendedTextMessageFontType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ExtendedTextMessage_ExtendedTextMessageFontType_descriptor(); +template<typename T> +inline const std::string& ExtendedTextMessage_ExtendedTextMessageFontType_Name(T enum_t_value) { + static_assert(::std::is_same<T, ExtendedTextMessage_ExtendedTextMessageFontType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function ExtendedTextMessage_ExtendedTextMessageFontType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ExtendedTextMessage_ExtendedTextMessageFontType_descriptor(), enum_t_value); +} +inline bool ExtendedTextMessage_ExtendedTextMessageFontType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ExtendedTextMessage_ExtendedTextMessageFontType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ExtendedTextMessage_ExtendedTextMessageFontType>( + ExtendedTextMessage_ExtendedTextMessageFontType_descriptor(), name, value); +} +enum ExtendedTextMessage_ExtendedTextMessagePreviewType : int { + ExtendedTextMessage_ExtendedTextMessagePreviewType_NONE = 0, + ExtendedTextMessage_ExtendedTextMessagePreviewType_VIDEO = 1 +}; +bool ExtendedTextMessage_ExtendedTextMessagePreviewType_IsValid(int value); +constexpr ExtendedTextMessage_ExtendedTextMessagePreviewType ExtendedTextMessage_ExtendedTextMessagePreviewType_ExtendedTextMessagePreviewType_MIN = ExtendedTextMessage_ExtendedTextMessagePreviewType_NONE; +constexpr ExtendedTextMessage_ExtendedTextMessagePreviewType ExtendedTextMessage_ExtendedTextMessagePreviewType_ExtendedTextMessagePreviewType_MAX = ExtendedTextMessage_ExtendedTextMessagePreviewType_VIDEO; +constexpr int ExtendedTextMessage_ExtendedTextMessagePreviewType_ExtendedTextMessagePreviewType_ARRAYSIZE = ExtendedTextMessage_ExtendedTextMessagePreviewType_ExtendedTextMessagePreviewType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ExtendedTextMessage_ExtendedTextMessagePreviewType_descriptor(); +template<typename T> +inline const std::string& ExtendedTextMessage_ExtendedTextMessagePreviewType_Name(T enum_t_value) { + static_assert(::std::is_same<T, ExtendedTextMessage_ExtendedTextMessagePreviewType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function ExtendedTextMessage_ExtendedTextMessagePreviewType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ExtendedTextMessage_ExtendedTextMessagePreviewType_descriptor(), enum_t_value); +} +inline bool ExtendedTextMessage_ExtendedTextMessagePreviewType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ExtendedTextMessage_ExtendedTextMessagePreviewType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ExtendedTextMessage_ExtendedTextMessagePreviewType>( + ExtendedTextMessage_ExtendedTextMessagePreviewType_descriptor(), name, value); +} +enum VideoMessage_VideoMessageAttribution : int { + VideoMessage_VideoMessageAttribution_NONE = 0, + VideoMessage_VideoMessageAttribution_GIPHY = 1, + VideoMessage_VideoMessageAttribution_TENOR = 2 +}; +bool VideoMessage_VideoMessageAttribution_IsValid(int value); +constexpr VideoMessage_VideoMessageAttribution VideoMessage_VideoMessageAttribution_VideoMessageAttribution_MIN = VideoMessage_VideoMessageAttribution_NONE; +constexpr VideoMessage_VideoMessageAttribution VideoMessage_VideoMessageAttribution_VideoMessageAttribution_MAX = VideoMessage_VideoMessageAttribution_TENOR; +constexpr int VideoMessage_VideoMessageAttribution_VideoMessageAttribution_ARRAYSIZE = VideoMessage_VideoMessageAttribution_VideoMessageAttribution_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VideoMessage_VideoMessageAttribution_descriptor(); +template<typename T> +inline const std::string& VideoMessage_VideoMessageAttribution_Name(T enum_t_value) { + static_assert(::std::is_same<T, VideoMessage_VideoMessageAttribution>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function VideoMessage_VideoMessageAttribution_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + VideoMessage_VideoMessageAttribution_descriptor(), enum_t_value); +} +inline bool VideoMessage_VideoMessageAttribution_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, VideoMessage_VideoMessageAttribution* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<VideoMessage_VideoMessageAttribution>( + VideoMessage_VideoMessageAttribution_descriptor(), name, value); +} +enum ProtocolMessage_ProtocolMessageType : int { + ProtocolMessage_ProtocolMessageType_REVOKE = 0, + ProtocolMessage_ProtocolMessageType_EPHEMERAL_SETTING = 3, + ProtocolMessage_ProtocolMessageType_EPHEMERAL_SYNC_RESPONSE = 4, + ProtocolMessage_ProtocolMessageType_HISTORY_SYNC_NOTIFICATION = 5, + ProtocolMessage_ProtocolMessageType_APP_STATE_SYNC_KEY_SHARE = 6, + ProtocolMessage_ProtocolMessageType_APP_STATE_SYNC_KEY_REQUEST = 7, + ProtocolMessage_ProtocolMessageType_MSG_FANOUT_BACKFILL_REQUEST = 8, + ProtocolMessage_ProtocolMessageType_INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC = 9, + ProtocolMessage_ProtocolMessageType_APP_STATE_FATAL_EXCEPTION_NOTIFICATION = 10 +}; +bool ProtocolMessage_ProtocolMessageType_IsValid(int value); +constexpr ProtocolMessage_ProtocolMessageType ProtocolMessage_ProtocolMessageType_ProtocolMessageType_MIN = ProtocolMessage_ProtocolMessageType_REVOKE; +constexpr ProtocolMessage_ProtocolMessageType ProtocolMessage_ProtocolMessageType_ProtocolMessageType_MAX = ProtocolMessage_ProtocolMessageType_APP_STATE_FATAL_EXCEPTION_NOTIFICATION; +constexpr int ProtocolMessage_ProtocolMessageType_ProtocolMessageType_ARRAYSIZE = ProtocolMessage_ProtocolMessageType_ProtocolMessageType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ProtocolMessage_ProtocolMessageType_descriptor(); +template<typename T> +inline const std::string& ProtocolMessage_ProtocolMessageType_Name(T enum_t_value) { + static_assert(::std::is_same<T, ProtocolMessage_ProtocolMessageType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function ProtocolMessage_ProtocolMessageType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ProtocolMessage_ProtocolMessageType_descriptor(), enum_t_value); +} +inline bool ProtocolMessage_ProtocolMessageType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ProtocolMessage_ProtocolMessageType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ProtocolMessage_ProtocolMessageType>( + ProtocolMessage_ProtocolMessageType_descriptor(), name, value); +} +enum HistorySyncNotification_HistorySyncNotificationHistorySyncType : int { + HistorySyncNotification_HistorySyncNotificationHistorySyncType_INITIAL_BOOTSTRAP = 0, + HistorySyncNotification_HistorySyncNotificationHistorySyncType_INITIAL_STATUS_V3 = 1, + HistorySyncNotification_HistorySyncNotificationHistorySyncType_FULL = 2, + HistorySyncNotification_HistorySyncNotificationHistorySyncType_RECENT = 3, + HistorySyncNotification_HistorySyncNotificationHistorySyncType_PUSH_NAME = 4 +}; +bool HistorySyncNotification_HistorySyncNotificationHistorySyncType_IsValid(int value); +constexpr HistorySyncNotification_HistorySyncNotificationHistorySyncType HistorySyncNotification_HistorySyncNotificationHistorySyncType_HistorySyncNotificationHistorySyncType_MIN = HistorySyncNotification_HistorySyncNotificationHistorySyncType_INITIAL_BOOTSTRAP; +constexpr HistorySyncNotification_HistorySyncNotificationHistorySyncType HistorySyncNotification_HistorySyncNotificationHistorySyncType_HistorySyncNotificationHistorySyncType_MAX = HistorySyncNotification_HistorySyncNotificationHistorySyncType_PUSH_NAME; +constexpr int HistorySyncNotification_HistorySyncNotificationHistorySyncType_HistorySyncNotificationHistorySyncType_ARRAYSIZE = HistorySyncNotification_HistorySyncNotificationHistorySyncType_HistorySyncNotificationHistorySyncType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HistorySyncNotification_HistorySyncNotificationHistorySyncType_descriptor(); +template<typename T> +inline const std::string& HistorySyncNotification_HistorySyncNotificationHistorySyncType_Name(T enum_t_value) { + static_assert(::std::is_same<T, HistorySyncNotification_HistorySyncNotificationHistorySyncType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function HistorySyncNotification_HistorySyncNotificationHistorySyncType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + HistorySyncNotification_HistorySyncNotificationHistorySyncType_descriptor(), enum_t_value); +} +inline bool HistorySyncNotification_HistorySyncNotificationHistorySyncType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, HistorySyncNotification_HistorySyncNotificationHistorySyncType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<HistorySyncNotification_HistorySyncNotificationHistorySyncType>( + HistorySyncNotification_HistorySyncNotificationHistorySyncType_descriptor(), name, value); +} +enum HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType : int { + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_MONDAY = 1, + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_TUESDAY = 2, + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_WEDNESDAY = 3, + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_THURSDAY = 4, + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_FRIDAY = 5, + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_SATURDAY = 6, + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_SUNDAY = 7 +}; +bool HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_IsValid(int value); +constexpr HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_HSMDateTimeComponentDayOfWeekType_MIN = HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_MONDAY; +constexpr HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_HSMDateTimeComponentDayOfWeekType_MAX = HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_SUNDAY; +constexpr int HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_HSMDateTimeComponentDayOfWeekType_ARRAYSIZE = HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_HSMDateTimeComponentDayOfWeekType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_descriptor(); +template<typename T> +inline const std::string& HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_Name(T enum_t_value) { + static_assert(::std::is_same<T, HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_descriptor(), enum_t_value); +} +inline bool HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType>( + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_descriptor(), name, value); +} +enum HSMDateTimeComponent_HSMDateTimeComponentCalendarType : int { + HSMDateTimeComponent_HSMDateTimeComponentCalendarType_GREGORIAN = 1, + HSMDateTimeComponent_HSMDateTimeComponentCalendarType_SOLAR_HIJRI = 2 +}; +bool HSMDateTimeComponent_HSMDateTimeComponentCalendarType_IsValid(int value); +constexpr HSMDateTimeComponent_HSMDateTimeComponentCalendarType HSMDateTimeComponent_HSMDateTimeComponentCalendarType_HSMDateTimeComponentCalendarType_MIN = HSMDateTimeComponent_HSMDateTimeComponentCalendarType_GREGORIAN; +constexpr HSMDateTimeComponent_HSMDateTimeComponentCalendarType HSMDateTimeComponent_HSMDateTimeComponentCalendarType_HSMDateTimeComponentCalendarType_MAX = HSMDateTimeComponent_HSMDateTimeComponentCalendarType_SOLAR_HIJRI; +constexpr int HSMDateTimeComponent_HSMDateTimeComponentCalendarType_HSMDateTimeComponentCalendarType_ARRAYSIZE = HSMDateTimeComponent_HSMDateTimeComponentCalendarType_HSMDateTimeComponentCalendarType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HSMDateTimeComponent_HSMDateTimeComponentCalendarType_descriptor(); +template<typename T> +inline const std::string& HSMDateTimeComponent_HSMDateTimeComponentCalendarType_Name(T enum_t_value) { + static_assert(::std::is_same<T, HSMDateTimeComponent_HSMDateTimeComponentCalendarType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function HSMDateTimeComponent_HSMDateTimeComponentCalendarType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + HSMDateTimeComponent_HSMDateTimeComponentCalendarType_descriptor(), enum_t_value); +} +inline bool HSMDateTimeComponent_HSMDateTimeComponentCalendarType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, HSMDateTimeComponent_HSMDateTimeComponentCalendarType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<HSMDateTimeComponent_HSMDateTimeComponentCalendarType>( + HSMDateTimeComponent_HSMDateTimeComponentCalendarType_descriptor(), name, value); +} +enum OrderMessage_OrderMessageOrderStatus : int { + OrderMessage_OrderMessageOrderStatus_INQUIRY = 1 +}; +bool OrderMessage_OrderMessageOrderStatus_IsValid(int value); +constexpr OrderMessage_OrderMessageOrderStatus OrderMessage_OrderMessageOrderStatus_OrderMessageOrderStatus_MIN = OrderMessage_OrderMessageOrderStatus_INQUIRY; +constexpr OrderMessage_OrderMessageOrderStatus OrderMessage_OrderMessageOrderStatus_OrderMessageOrderStatus_MAX = OrderMessage_OrderMessageOrderStatus_INQUIRY; +constexpr int OrderMessage_OrderMessageOrderStatus_OrderMessageOrderStatus_ARRAYSIZE = OrderMessage_OrderMessageOrderStatus_OrderMessageOrderStatus_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OrderMessage_OrderMessageOrderStatus_descriptor(); +template<typename T> +inline const std::string& OrderMessage_OrderMessageOrderStatus_Name(T enum_t_value) { + static_assert(::std::is_same<T, OrderMessage_OrderMessageOrderStatus>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function OrderMessage_OrderMessageOrderStatus_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + OrderMessage_OrderMessageOrderStatus_descriptor(), enum_t_value); +} +inline bool OrderMessage_OrderMessageOrderStatus_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OrderMessage_OrderMessageOrderStatus* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<OrderMessage_OrderMessageOrderStatus>( + OrderMessage_OrderMessageOrderStatus_descriptor(), name, value); +} +enum OrderMessage_OrderMessageOrderSurface : int { + OrderMessage_OrderMessageOrderSurface_CATALOG = 1 +}; +bool OrderMessage_OrderMessageOrderSurface_IsValid(int value); +constexpr OrderMessage_OrderMessageOrderSurface OrderMessage_OrderMessageOrderSurface_OrderMessageOrderSurface_MIN = OrderMessage_OrderMessageOrderSurface_CATALOG; +constexpr OrderMessage_OrderMessageOrderSurface OrderMessage_OrderMessageOrderSurface_OrderMessageOrderSurface_MAX = OrderMessage_OrderMessageOrderSurface_CATALOG; +constexpr int OrderMessage_OrderMessageOrderSurface_OrderMessageOrderSurface_ARRAYSIZE = OrderMessage_OrderMessageOrderSurface_OrderMessageOrderSurface_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OrderMessage_OrderMessageOrderSurface_descriptor(); +template<typename T> +inline const std::string& OrderMessage_OrderMessageOrderSurface_Name(T enum_t_value) { + static_assert(::std::is_same<T, OrderMessage_OrderMessageOrderSurface>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function OrderMessage_OrderMessageOrderSurface_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + OrderMessage_OrderMessageOrderSurface_descriptor(), enum_t_value); +} +inline bool OrderMessage_OrderMessageOrderSurface_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OrderMessage_OrderMessageOrderSurface* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<OrderMessage_OrderMessageOrderSurface>( + OrderMessage_OrderMessageOrderSurface_descriptor(), name, value); +} +enum ListMessage_ListMessageListType : int { + ListMessage_ListMessageListType_UNKNOWN = 0, + ListMessage_ListMessageListType_SINGLE_SELECT = 1 +}; +bool ListMessage_ListMessageListType_IsValid(int value); +constexpr ListMessage_ListMessageListType ListMessage_ListMessageListType_ListMessageListType_MIN = ListMessage_ListMessageListType_UNKNOWN; +constexpr ListMessage_ListMessageListType ListMessage_ListMessageListType_ListMessageListType_MAX = ListMessage_ListMessageListType_SINGLE_SELECT; +constexpr int ListMessage_ListMessageListType_ListMessageListType_ARRAYSIZE = ListMessage_ListMessageListType_ListMessageListType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ListMessage_ListMessageListType_descriptor(); +template<typename T> +inline const std::string& ListMessage_ListMessageListType_Name(T enum_t_value) { + static_assert(::std::is_same<T, ListMessage_ListMessageListType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function ListMessage_ListMessageListType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ListMessage_ListMessageListType_descriptor(), enum_t_value); +} +inline bool ListMessage_ListMessageListType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ListMessage_ListMessageListType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ListMessage_ListMessageListType>( + ListMessage_ListMessageListType_descriptor(), name, value); +} +enum ListResponseMessage_ListResponseMessageListType : int { + ListResponseMessage_ListResponseMessageListType_UNKNOWN = 0, + ListResponseMessage_ListResponseMessageListType_SINGLE_SELECT = 1 +}; +bool ListResponseMessage_ListResponseMessageListType_IsValid(int value); +constexpr ListResponseMessage_ListResponseMessageListType ListResponseMessage_ListResponseMessageListType_ListResponseMessageListType_MIN = ListResponseMessage_ListResponseMessageListType_UNKNOWN; +constexpr ListResponseMessage_ListResponseMessageListType ListResponseMessage_ListResponseMessageListType_ListResponseMessageListType_MAX = ListResponseMessage_ListResponseMessageListType_SINGLE_SELECT; +constexpr int ListResponseMessage_ListResponseMessageListType_ListResponseMessageListType_ARRAYSIZE = ListResponseMessage_ListResponseMessageListType_ListResponseMessageListType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ListResponseMessage_ListResponseMessageListType_descriptor(); +template<typename T> +inline const std::string& ListResponseMessage_ListResponseMessageListType_Name(T enum_t_value) { + static_assert(::std::is_same<T, ListResponseMessage_ListResponseMessageListType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function ListResponseMessage_ListResponseMessageListType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ListResponseMessage_ListResponseMessageListType_descriptor(), enum_t_value); +} +inline bool ListResponseMessage_ListResponseMessageListType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ListResponseMessage_ListResponseMessageListType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ListResponseMessage_ListResponseMessageListType>( + ListResponseMessage_ListResponseMessageListType_descriptor(), name, value); +} +enum Button_ButtonType : int { + Button_ButtonType_UNKNOWN = 0, + Button_ButtonType_RESPONSE = 1 +}; +bool Button_ButtonType_IsValid(int value); +constexpr Button_ButtonType Button_ButtonType_ButtonType_MIN = Button_ButtonType_UNKNOWN; +constexpr Button_ButtonType Button_ButtonType_ButtonType_MAX = Button_ButtonType_RESPONSE; +constexpr int Button_ButtonType_ButtonType_ARRAYSIZE = Button_ButtonType_ButtonType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Button_ButtonType_descriptor(); +template<typename T> +inline const std::string& Button_ButtonType_Name(T enum_t_value) { + static_assert(::std::is_same<T, Button_ButtonType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function Button_ButtonType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + Button_ButtonType_descriptor(), enum_t_value); +} +inline bool Button_ButtonType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Button_ButtonType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Button_ButtonType>( + Button_ButtonType_descriptor(), name, value); +} +enum ButtonsMessage_ButtonsMessageHeaderType : int { + ButtonsMessage_ButtonsMessageHeaderType_UNKNOWN = 0, + ButtonsMessage_ButtonsMessageHeaderType_EMPTY = 1, + ButtonsMessage_ButtonsMessageHeaderType_TEXT = 2, + ButtonsMessage_ButtonsMessageHeaderType_DOCUMENT = 3, + ButtonsMessage_ButtonsMessageHeaderType_IMAGE = 4, + ButtonsMessage_ButtonsMessageHeaderType_VIDEO = 5, + ButtonsMessage_ButtonsMessageHeaderType_LOCATION = 6 +}; +bool ButtonsMessage_ButtonsMessageHeaderType_IsValid(int value); +constexpr ButtonsMessage_ButtonsMessageHeaderType ButtonsMessage_ButtonsMessageHeaderType_ButtonsMessageHeaderType_MIN = ButtonsMessage_ButtonsMessageHeaderType_UNKNOWN; +constexpr ButtonsMessage_ButtonsMessageHeaderType ButtonsMessage_ButtonsMessageHeaderType_ButtonsMessageHeaderType_MAX = ButtonsMessage_ButtonsMessageHeaderType_LOCATION; +constexpr int ButtonsMessage_ButtonsMessageHeaderType_ButtonsMessageHeaderType_ARRAYSIZE = ButtonsMessage_ButtonsMessageHeaderType_ButtonsMessageHeaderType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ButtonsMessage_ButtonsMessageHeaderType_descriptor(); +template<typename T> +inline const std::string& ButtonsMessage_ButtonsMessageHeaderType_Name(T enum_t_value) { + static_assert(::std::is_same<T, ButtonsMessage_ButtonsMessageHeaderType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function ButtonsMessage_ButtonsMessageHeaderType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ButtonsMessage_ButtonsMessageHeaderType_descriptor(), enum_t_value); +} +inline bool ButtonsMessage_ButtonsMessageHeaderType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ButtonsMessage_ButtonsMessageHeaderType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ButtonsMessage_ButtonsMessageHeaderType>( + ButtonsMessage_ButtonsMessageHeaderType_descriptor(), name, value); +} +enum ButtonsResponseMessage_ButtonsResponseMessageType : int { + ButtonsResponseMessage_ButtonsResponseMessageType_UNKNOWN = 0, + ButtonsResponseMessage_ButtonsResponseMessageType_DISPLAY_TEXT = 1 +}; +bool ButtonsResponseMessage_ButtonsResponseMessageType_IsValid(int value); +constexpr ButtonsResponseMessage_ButtonsResponseMessageType ButtonsResponseMessage_ButtonsResponseMessageType_ButtonsResponseMessageType_MIN = ButtonsResponseMessage_ButtonsResponseMessageType_UNKNOWN; +constexpr ButtonsResponseMessage_ButtonsResponseMessageType ButtonsResponseMessage_ButtonsResponseMessageType_ButtonsResponseMessageType_MAX = ButtonsResponseMessage_ButtonsResponseMessageType_DISPLAY_TEXT; +constexpr int ButtonsResponseMessage_ButtonsResponseMessageType_ButtonsResponseMessageType_ARRAYSIZE = ButtonsResponseMessage_ButtonsResponseMessageType_ButtonsResponseMessageType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ButtonsResponseMessage_ButtonsResponseMessageType_descriptor(); +template<typename T> +inline const std::string& ButtonsResponseMessage_ButtonsResponseMessageType_Name(T enum_t_value) { + static_assert(::std::is_same<T, ButtonsResponseMessage_ButtonsResponseMessageType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function ButtonsResponseMessage_ButtonsResponseMessageType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ButtonsResponseMessage_ButtonsResponseMessageType_descriptor(), enum_t_value); +} +inline bool ButtonsResponseMessage_ButtonsResponseMessageType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ButtonsResponseMessage_ButtonsResponseMessageType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ButtonsResponseMessage_ButtonsResponseMessageType>( + ButtonsResponseMessage_ButtonsResponseMessageType_descriptor(), name, value); +} +enum WebFeatures_WebFeaturesFlag : int { + WebFeatures_WebFeaturesFlag_NOT_STARTED = 0, + WebFeatures_WebFeaturesFlag_FORCE_UPGRADE = 1, + WebFeatures_WebFeaturesFlag_DEVELOPMENT = 2, + WebFeatures_WebFeaturesFlag_PRODUCTION = 3 +}; +bool WebFeatures_WebFeaturesFlag_IsValid(int value); +constexpr WebFeatures_WebFeaturesFlag WebFeatures_WebFeaturesFlag_WebFeaturesFlag_MIN = WebFeatures_WebFeaturesFlag_NOT_STARTED; +constexpr WebFeatures_WebFeaturesFlag WebFeatures_WebFeaturesFlag_WebFeaturesFlag_MAX = WebFeatures_WebFeaturesFlag_PRODUCTION; +constexpr int WebFeatures_WebFeaturesFlag_WebFeaturesFlag_ARRAYSIZE = WebFeatures_WebFeaturesFlag_WebFeaturesFlag_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* WebFeatures_WebFeaturesFlag_descriptor(); +template<typename T> +inline const std::string& WebFeatures_WebFeaturesFlag_Name(T enum_t_value) { + static_assert(::std::is_same<T, WebFeatures_WebFeaturesFlag>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function WebFeatures_WebFeaturesFlag_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + WebFeatures_WebFeaturesFlag_descriptor(), enum_t_value); +} +inline bool WebFeatures_WebFeaturesFlag_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, WebFeatures_WebFeaturesFlag* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<WebFeatures_WebFeaturesFlag>( + WebFeatures_WebFeaturesFlag_descriptor(), name, value); +} +enum PaymentInfo_PaymentInfoCurrency : int { + PaymentInfo_PaymentInfoCurrency_UNKNOWN_CURRENCY = 0, + PaymentInfo_PaymentInfoCurrency_INR = 1 +}; +bool PaymentInfo_PaymentInfoCurrency_IsValid(int value); +constexpr PaymentInfo_PaymentInfoCurrency PaymentInfo_PaymentInfoCurrency_PaymentInfoCurrency_MIN = PaymentInfo_PaymentInfoCurrency_UNKNOWN_CURRENCY; +constexpr PaymentInfo_PaymentInfoCurrency PaymentInfo_PaymentInfoCurrency_PaymentInfoCurrency_MAX = PaymentInfo_PaymentInfoCurrency_INR; +constexpr int PaymentInfo_PaymentInfoCurrency_PaymentInfoCurrency_ARRAYSIZE = PaymentInfo_PaymentInfoCurrency_PaymentInfoCurrency_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PaymentInfo_PaymentInfoCurrency_descriptor(); +template<typename T> +inline const std::string& PaymentInfo_PaymentInfoCurrency_Name(T enum_t_value) { + static_assert(::std::is_same<T, PaymentInfo_PaymentInfoCurrency>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function PaymentInfo_PaymentInfoCurrency_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PaymentInfo_PaymentInfoCurrency_descriptor(), enum_t_value); +} +inline bool PaymentInfo_PaymentInfoCurrency_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PaymentInfo_PaymentInfoCurrency* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<PaymentInfo_PaymentInfoCurrency>( + PaymentInfo_PaymentInfoCurrency_descriptor(), name, value); +} +enum PaymentInfo_PaymentInfoStatus : int { + PaymentInfo_PaymentInfoStatus_UNKNOWN_STATUS = 0, + PaymentInfo_PaymentInfoStatus_PROCESSING = 1, + PaymentInfo_PaymentInfoStatus_SENT = 2, + PaymentInfo_PaymentInfoStatus_NEED_TO_ACCEPT = 3, + PaymentInfo_PaymentInfoStatus_COMPLETE = 4, + PaymentInfo_PaymentInfoStatus_COULD_NOT_COMPLETE = 5, + PaymentInfo_PaymentInfoStatus_REFUNDED = 6, + PaymentInfo_PaymentInfoStatus_EXPIRED = 7, + PaymentInfo_PaymentInfoStatus_REJECTED = 8, + PaymentInfo_PaymentInfoStatus_CANCELLED = 9, + PaymentInfo_PaymentInfoStatus_WAITING_FOR_PAYER = 10, + PaymentInfo_PaymentInfoStatus_WAITING = 11 +}; +bool PaymentInfo_PaymentInfoStatus_IsValid(int value); +constexpr PaymentInfo_PaymentInfoStatus PaymentInfo_PaymentInfoStatus_PaymentInfoStatus_MIN = PaymentInfo_PaymentInfoStatus_UNKNOWN_STATUS; +constexpr PaymentInfo_PaymentInfoStatus PaymentInfo_PaymentInfoStatus_PaymentInfoStatus_MAX = PaymentInfo_PaymentInfoStatus_WAITING; +constexpr int PaymentInfo_PaymentInfoStatus_PaymentInfoStatus_ARRAYSIZE = PaymentInfo_PaymentInfoStatus_PaymentInfoStatus_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PaymentInfo_PaymentInfoStatus_descriptor(); +template<typename T> +inline const std::string& PaymentInfo_PaymentInfoStatus_Name(T enum_t_value) { + static_assert(::std::is_same<T, PaymentInfo_PaymentInfoStatus>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function PaymentInfo_PaymentInfoStatus_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PaymentInfo_PaymentInfoStatus_descriptor(), enum_t_value); +} +inline bool PaymentInfo_PaymentInfoStatus_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PaymentInfo_PaymentInfoStatus* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<PaymentInfo_PaymentInfoStatus>( + PaymentInfo_PaymentInfoStatus_descriptor(), name, value); +} +enum PaymentInfo_PaymentInfoTxnStatus : int { + PaymentInfo_PaymentInfoTxnStatus_UNKNOWN = 0, + PaymentInfo_PaymentInfoTxnStatus_PENDING_SETUP = 1, + PaymentInfo_PaymentInfoTxnStatus_PENDING_RECEIVER_SETUP = 2, + PaymentInfo_PaymentInfoTxnStatus_INIT = 3, + PaymentInfo_PaymentInfoTxnStatus_SUCCESS = 4, + PaymentInfo_PaymentInfoTxnStatus_COMPLETED = 5, + PaymentInfo_PaymentInfoTxnStatus_FAILED = 6, + PaymentInfo_PaymentInfoTxnStatus_FAILED_RISK = 7, + PaymentInfo_PaymentInfoTxnStatus_FAILED_PROCESSING = 8, + PaymentInfo_PaymentInfoTxnStatus_FAILED_RECEIVER_PROCESSING = 9, + PaymentInfo_PaymentInfoTxnStatus_FAILED_DA = 10, + PaymentInfo_PaymentInfoTxnStatus_FAILED_DA_FINAL = 11, + PaymentInfo_PaymentInfoTxnStatus_REFUNDED_TXN = 12, + PaymentInfo_PaymentInfoTxnStatus_REFUND_FAILED = 13, + PaymentInfo_PaymentInfoTxnStatus_REFUND_FAILED_PROCESSING = 14, + PaymentInfo_PaymentInfoTxnStatus_REFUND_FAILED_DA = 15, + PaymentInfo_PaymentInfoTxnStatus_EXPIRED_TXN = 16, + PaymentInfo_PaymentInfoTxnStatus_AUTH_CANCELED = 17, + PaymentInfo_PaymentInfoTxnStatus_AUTH_CANCEL_FAILED_PROCESSING = 18, + PaymentInfo_PaymentInfoTxnStatus_AUTH_CANCEL_FAILED = 19, + PaymentInfo_PaymentInfoTxnStatus_COLLECT_INIT = 20, + PaymentInfo_PaymentInfoTxnStatus_COLLECT_SUCCESS = 21, + PaymentInfo_PaymentInfoTxnStatus_COLLECT_FAILED = 22, + PaymentInfo_PaymentInfoTxnStatus_COLLECT_FAILED_RISK = 23, + PaymentInfo_PaymentInfoTxnStatus_COLLECT_REJECTED = 24, + PaymentInfo_PaymentInfoTxnStatus_COLLECT_EXPIRED = 25, + PaymentInfo_PaymentInfoTxnStatus_COLLECT_CANCELED = 26, + PaymentInfo_PaymentInfoTxnStatus_COLLECT_CANCELLING = 27 +}; +bool PaymentInfo_PaymentInfoTxnStatus_IsValid(int value); +constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo_PaymentInfoTxnStatus_PaymentInfoTxnStatus_MIN = PaymentInfo_PaymentInfoTxnStatus_UNKNOWN; +constexpr PaymentInfo_PaymentInfoTxnStatus PaymentInfo_PaymentInfoTxnStatus_PaymentInfoTxnStatus_MAX = PaymentInfo_PaymentInfoTxnStatus_COLLECT_CANCELLING; +constexpr int PaymentInfo_PaymentInfoTxnStatus_PaymentInfoTxnStatus_ARRAYSIZE = PaymentInfo_PaymentInfoTxnStatus_PaymentInfoTxnStatus_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PaymentInfo_PaymentInfoTxnStatus_descriptor(); +template<typename T> +inline const std::string& PaymentInfo_PaymentInfoTxnStatus_Name(T enum_t_value) { + static_assert(::std::is_same<T, PaymentInfo_PaymentInfoTxnStatus>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function PaymentInfo_PaymentInfoTxnStatus_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PaymentInfo_PaymentInfoTxnStatus_descriptor(), enum_t_value); +} +inline bool PaymentInfo_PaymentInfoTxnStatus_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PaymentInfo_PaymentInfoTxnStatus* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<PaymentInfo_PaymentInfoTxnStatus>( + PaymentInfo_PaymentInfoTxnStatus_descriptor(), name, value); +} +enum WebMessageInfo_WebMessageInfoStatus : int { + WebMessageInfo_WebMessageInfoStatus_ERROR = 0, + WebMessageInfo_WebMessageInfoStatus_PENDING = 1, + WebMessageInfo_WebMessageInfoStatus_SERVER_ACK = 2, + WebMessageInfo_WebMessageInfoStatus_DELIVERY_ACK = 3, + WebMessageInfo_WebMessageInfoStatus_READ = 4, + WebMessageInfo_WebMessageInfoStatus_PLAYED = 5 +}; +bool WebMessageInfo_WebMessageInfoStatus_IsValid(int value); +constexpr WebMessageInfo_WebMessageInfoStatus WebMessageInfo_WebMessageInfoStatus_WebMessageInfoStatus_MIN = WebMessageInfo_WebMessageInfoStatus_ERROR; +constexpr WebMessageInfo_WebMessageInfoStatus WebMessageInfo_WebMessageInfoStatus_WebMessageInfoStatus_MAX = WebMessageInfo_WebMessageInfoStatus_PLAYED; +constexpr int WebMessageInfo_WebMessageInfoStatus_WebMessageInfoStatus_ARRAYSIZE = WebMessageInfo_WebMessageInfoStatus_WebMessageInfoStatus_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* WebMessageInfo_WebMessageInfoStatus_descriptor(); +template<typename T> +inline const std::string& WebMessageInfo_WebMessageInfoStatus_Name(T enum_t_value) { + static_assert(::std::is_same<T, WebMessageInfo_WebMessageInfoStatus>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function WebMessageInfo_WebMessageInfoStatus_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + WebMessageInfo_WebMessageInfoStatus_descriptor(), enum_t_value); +} +inline bool WebMessageInfo_WebMessageInfoStatus_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, WebMessageInfo_WebMessageInfoStatus* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<WebMessageInfo_WebMessageInfoStatus>( + WebMessageInfo_WebMessageInfoStatus_descriptor(), name, value); +} +enum WebMessageInfo_WebMessageInfoStubType : int { + WebMessageInfo_WebMessageInfoStubType_UNKNOWN = 0, + WebMessageInfo_WebMessageInfoStubType_REVOKE = 1, + WebMessageInfo_WebMessageInfoStubType_CIPHERTEXT = 2, + WebMessageInfo_WebMessageInfoStubType_FUTUREPROOF = 3, + WebMessageInfo_WebMessageInfoStubType_NON_VERIFIED_TRANSITION = 4, + WebMessageInfo_WebMessageInfoStubType_UNVERIFIED_TRANSITION = 5, + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION = 6, + WebMessageInfo_WebMessageInfoStubType_VERIFIED_LOW_UNKNOWN = 7, + WebMessageInfo_WebMessageInfoStubType_VERIFIED_HIGH = 8, + WebMessageInfo_WebMessageInfoStubType_VERIFIED_INITIAL_UNKNOWN = 9, + WebMessageInfo_WebMessageInfoStubType_VERIFIED_INITIAL_LOW = 10, + WebMessageInfo_WebMessageInfoStubType_VERIFIED_INITIAL_HIGH = 11, + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION_ANY_TO_NONE = 12, + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION_ANY_TO_HIGH = 13, + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION_HIGH_TO_LOW = 14, + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION_HIGH_TO_UNKNOWN = 15, + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION_UNKNOWN_TO_LOW = 16, + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION_LOW_TO_UNKNOWN = 17, + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION_NONE_TO_LOW = 18, + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION_NONE_TO_UNKNOWN = 19, + WebMessageInfo_WebMessageInfoStubType_GROUP_CREATE = 20, + WebMessageInfo_WebMessageInfoStubType_GROUP_CHANGE_SUBJECT = 21, + WebMessageInfo_WebMessageInfoStubType_GROUP_CHANGE_ICON = 22, + WebMessageInfo_WebMessageInfoStubType_GROUP_CHANGE_INVITE_LINK = 23, + WebMessageInfo_WebMessageInfoStubType_GROUP_CHANGE_DESCRIPTION = 24, + WebMessageInfo_WebMessageInfoStubType_GROUP_CHANGE_RESTRICT = 25, + WebMessageInfo_WebMessageInfoStubType_GROUP_CHANGE_ANNOUNCE = 26, + WebMessageInfo_WebMessageInfoStubType_GROUP_PARTICIPANT_ADD = 27, + WebMessageInfo_WebMessageInfoStubType_GROUP_PARTICIPANT_REMOVE = 28, + WebMessageInfo_WebMessageInfoStubType_GROUP_PARTICIPANT_PROMOTE = 29, + WebMessageInfo_WebMessageInfoStubType_GROUP_PARTICIPANT_DEMOTE = 30, + WebMessageInfo_WebMessageInfoStubType_GROUP_PARTICIPANT_INVITE = 31, + WebMessageInfo_WebMessageInfoStubType_GROUP_PARTICIPANT_LEAVE = 32, + WebMessageInfo_WebMessageInfoStubType_GROUP_PARTICIPANT_CHANGE_NUMBER = 33, + WebMessageInfo_WebMessageInfoStubType_BROADCAST_CREATE = 34, + WebMessageInfo_WebMessageInfoStubType_BROADCAST_ADD = 35, + WebMessageInfo_WebMessageInfoStubType_BROADCAST_REMOVE = 36, + WebMessageInfo_WebMessageInfoStubType_GENERIC_NOTIFICATION = 37, + WebMessageInfo_WebMessageInfoStubType_E2E_IDENTITY_CHANGED = 38, + WebMessageInfo_WebMessageInfoStubType_E2E_ENCRYPTED = 39, + WebMessageInfo_WebMessageInfoStubType_CALL_MISSED_VOICE = 40, + WebMessageInfo_WebMessageInfoStubType_CALL_MISSED_VIDEO = 41, + WebMessageInfo_WebMessageInfoStubType_INDIVIDUAL_CHANGE_NUMBER = 42, + WebMessageInfo_WebMessageInfoStubType_GROUP_DELETE = 43, + WebMessageInfo_WebMessageInfoStubType_GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE = 44, + WebMessageInfo_WebMessageInfoStubType_CALL_MISSED_GROUP_VOICE = 45, + WebMessageInfo_WebMessageInfoStubType_CALL_MISSED_GROUP_VIDEO = 46, + WebMessageInfo_WebMessageInfoStubType_PAYMENT_CIPHERTEXT = 47, + WebMessageInfo_WebMessageInfoStubType_PAYMENT_FUTUREPROOF = 48, + WebMessageInfo_WebMessageInfoStubType_PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED = 49, + WebMessageInfo_WebMessageInfoStubType_PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED = 50, + WebMessageInfo_WebMessageInfoStubType_PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED = 51, + WebMessageInfo_WebMessageInfoStubType_PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP = 52, + WebMessageInfo_WebMessageInfoStubType_PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP = 53, + WebMessageInfo_WebMessageInfoStubType_PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER = 54, + WebMessageInfo_WebMessageInfoStubType_PAYMENT_ACTION_SEND_PAYMENT_REMINDER = 55, + WebMessageInfo_WebMessageInfoStubType_PAYMENT_ACTION_SEND_PAYMENT_INVITATION = 56, + WebMessageInfo_WebMessageInfoStubType_PAYMENT_ACTION_REQUEST_DECLINED = 57, + WebMessageInfo_WebMessageInfoStubType_PAYMENT_ACTION_REQUEST_EXPIRED = 58, + WebMessageInfo_WebMessageInfoStubType_PAYMENT_ACTION_REQUEST_CANCELLED = 59, + WebMessageInfo_WebMessageInfoStubType_BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM = 60, + WebMessageInfo_WebMessageInfoStubType_BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP = 61, + WebMessageInfo_WebMessageInfoStubType_BIZ_INTRO_TOP = 62, + WebMessageInfo_WebMessageInfoStubType_BIZ_INTRO_BOTTOM = 63, + WebMessageInfo_WebMessageInfoStubType_BIZ_NAME_CHANGE = 64, + WebMessageInfo_WebMessageInfoStubType_BIZ_MOVE_TO_CONSUMER_APP = 65, + WebMessageInfo_WebMessageInfoStubType_BIZ_TWO_TIER_MIGRATION_TOP = 66, + WebMessageInfo_WebMessageInfoStubType_BIZ_TWO_TIER_MIGRATION_BOTTOM = 67, + WebMessageInfo_WebMessageInfoStubType_OVERSIZED = 68, + WebMessageInfo_WebMessageInfoStubType_GROUP_CHANGE_NO_FREQUENTLY_FORWARDED = 69, + WebMessageInfo_WebMessageInfoStubType_GROUP_V4_ADD_INVITE_SENT = 70, + WebMessageInfo_WebMessageInfoStubType_GROUP_PARTICIPANT_ADD_REQUEST_JOIN = 71, + WebMessageInfo_WebMessageInfoStubType_CHANGE_EPHEMERAL_SETTING = 72, + WebMessageInfo_WebMessageInfoStubType_E2E_DEVICE_CHANGED = 73, + WebMessageInfo_WebMessageInfoStubType_VIEWED_ONCE = 74, + WebMessageInfo_WebMessageInfoStubType_E2E_ENCRYPTED_NOW = 75, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_TO_BSP_PREMISE = 76, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_TO_SELF_FB = 77, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_TO_SELF_PREMISE = 78, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_UNVERIFIED = 79, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED = 80, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_VERIFIED = 81, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED = 82, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE = 83, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_PREMISE_UNVERIFIED = 84, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED = 85, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_PREMISE_VERIFIED = 86, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED = 87, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED = 88, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED = 89, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED = 90, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED = 91, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_FB_TO_BSP_PREMISE = 92, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_FB_TO_SELF_PREMISE = 93, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_FB_UNVERIFIED = 94, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED = 95, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_FB_VERIFIED = 96, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED = 97, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE = 98, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_PREMISE_UNVERIFIED = 99, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_PREMISE_VERIFIED = 100, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_TO_BSP_FB = 101, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_TO_CONSUMER = 102, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_TO_SELF_FB = 103, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED = 104, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED = 105, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED = 106, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_UNVERIFIED_TO_VERIFIED = 107, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED = 108, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED = 109, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED = 110, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_VERIFIED_TO_UNVERIFIED = 111, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED = 112, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED = 113, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED = 114, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED = 115, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED = 116, + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED = 117, + WebMessageInfo_WebMessageInfoStubType_E2E_IDENTITY_UNAVAILABLE = 118 +}; +bool WebMessageInfo_WebMessageInfoStubType_IsValid(int value); +constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo_WebMessageInfoStubType_WebMessageInfoStubType_MIN = WebMessageInfo_WebMessageInfoStubType_UNKNOWN; +constexpr WebMessageInfo_WebMessageInfoStubType WebMessageInfo_WebMessageInfoStubType_WebMessageInfoStubType_MAX = WebMessageInfo_WebMessageInfoStubType_E2E_IDENTITY_UNAVAILABLE; +constexpr int WebMessageInfo_WebMessageInfoStubType_WebMessageInfoStubType_ARRAYSIZE = WebMessageInfo_WebMessageInfoStubType_WebMessageInfoStubType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* WebMessageInfo_WebMessageInfoStubType_descriptor(); +template<typename T> +inline const std::string& WebMessageInfo_WebMessageInfoStubType_Name(T enum_t_value) { + static_assert(::std::is_same<T, WebMessageInfo_WebMessageInfoStubType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function WebMessageInfo_WebMessageInfoStubType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + WebMessageInfo_WebMessageInfoStubType_descriptor(), enum_t_value); +} +inline bool WebMessageInfo_WebMessageInfoStubType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, WebMessageInfo_WebMessageInfoStubType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<WebMessageInfo_WebMessageInfoStubType>( + WebMessageInfo_WebMessageInfoStubType_descriptor(), name, value); +} +enum WebMessageInfo_WebMessageInfoBizPrivacyStatus : int { + WebMessageInfo_WebMessageInfoBizPrivacyStatus_E2EE = 0, + WebMessageInfo_WebMessageInfoBizPrivacyStatus_FB = 2, + WebMessageInfo_WebMessageInfoBizPrivacyStatus_BSP = 1, + WebMessageInfo_WebMessageInfoBizPrivacyStatus_BSP_AND_FB = 3 +}; +bool WebMessageInfo_WebMessageInfoBizPrivacyStatus_IsValid(int value); +constexpr WebMessageInfo_WebMessageInfoBizPrivacyStatus WebMessageInfo_WebMessageInfoBizPrivacyStatus_WebMessageInfoBizPrivacyStatus_MIN = WebMessageInfo_WebMessageInfoBizPrivacyStatus_E2EE; +constexpr WebMessageInfo_WebMessageInfoBizPrivacyStatus WebMessageInfo_WebMessageInfoBizPrivacyStatus_WebMessageInfoBizPrivacyStatus_MAX = WebMessageInfo_WebMessageInfoBizPrivacyStatus_BSP_AND_FB; +constexpr int WebMessageInfo_WebMessageInfoBizPrivacyStatus_WebMessageInfoBizPrivacyStatus_ARRAYSIZE = WebMessageInfo_WebMessageInfoBizPrivacyStatus_WebMessageInfoBizPrivacyStatus_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* WebMessageInfo_WebMessageInfoBizPrivacyStatus_descriptor(); +template<typename T> +inline const std::string& WebMessageInfo_WebMessageInfoBizPrivacyStatus_Name(T enum_t_value) { + static_assert(::std::is_same<T, WebMessageInfo_WebMessageInfoBizPrivacyStatus>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function WebMessageInfo_WebMessageInfoBizPrivacyStatus_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + WebMessageInfo_WebMessageInfoBizPrivacyStatus_descriptor(), enum_t_value); +} +inline bool WebMessageInfo_WebMessageInfoBizPrivacyStatus_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, WebMessageInfo_WebMessageInfoBizPrivacyStatus* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<WebMessageInfo_WebMessageInfoBizPrivacyStatus>( + WebMessageInfo_WebMessageInfoBizPrivacyStatus_descriptor(), name, value); +} +// =================================================================== + +class PaymentMoney PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.PaymentMoney) */ { + public: + inline PaymentMoney() : PaymentMoney(nullptr) {} + virtual ~PaymentMoney(); + explicit constexpr PaymentMoney(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PaymentMoney(const PaymentMoney& from); + PaymentMoney(PaymentMoney&& from) noexcept + : PaymentMoney() { + *this = ::std::move(from); + } + + inline PaymentMoney& operator=(const PaymentMoney& from) { + CopyFrom(from); + return *this; + } + inline PaymentMoney& operator=(PaymentMoney&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const PaymentMoney& default_instance() { + return *internal_default_instance(); + } + static inline const PaymentMoney* internal_default_instance() { + return reinterpret_cast<const PaymentMoney*>( + &_PaymentMoney_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(PaymentMoney& a, PaymentMoney& b) { + a.Swap(&b); + } + inline void Swap(PaymentMoney* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PaymentMoney* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline PaymentMoney* New() const final { + return CreateMaybeMessage<PaymentMoney>(nullptr); + } + + PaymentMoney* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<PaymentMoney>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const PaymentMoney& from); + void MergeFrom(const PaymentMoney& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PaymentMoney* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.PaymentMoney"; + } + protected: + explicit PaymentMoney(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCurrencyCodeFieldNumber = 3, + kValueFieldNumber = 1, + kOffsetFieldNumber = 2, + }; + // optional string currencyCode = 3; + bool has_currencycode() const; + private: + bool _internal_has_currencycode() const; + public: + void clear_currencycode(); + const std::string& currencycode() const; + void set_currencycode(const std::string& value); + void set_currencycode(std::string&& value); + void set_currencycode(const char* value); + void set_currencycode(const char* value, size_t size); + std::string* mutable_currencycode(); + std::string* release_currencycode(); + void set_allocated_currencycode(std::string* currencycode); + private: + const std::string& _internal_currencycode() const; + void _internal_set_currencycode(const std::string& value); + std::string* _internal_mutable_currencycode(); + public: + + // optional int64 value = 1; + bool has_value() const; + private: + bool _internal_has_value() const; + public: + void clear_value(); + ::PROTOBUF_NAMESPACE_ID::int64 value() const; + void set_value(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_value() const; + void _internal_set_value(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // optional uint32 offset = 2; + bool has_offset() const; + private: + bool _internal_has_offset() const; + public: + void clear_offset(); + ::PROTOBUF_NAMESPACE_ID::uint32 offset() const; + void set_offset(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_offset() const; + void _internal_set_offset(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // @@protoc_insertion_point(class_scope:proto.PaymentMoney) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr currencycode_; + ::PROTOBUF_NAMESPACE_ID::int64 value_; + ::PROTOBUF_NAMESPACE_ID::uint32 offset_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class HydratedQuickReplyButton PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HydratedQuickReplyButton) */ { + public: + inline HydratedQuickReplyButton() : HydratedQuickReplyButton(nullptr) {} + virtual ~HydratedQuickReplyButton(); + explicit constexpr HydratedQuickReplyButton(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + HydratedQuickReplyButton(const HydratedQuickReplyButton& from); + HydratedQuickReplyButton(HydratedQuickReplyButton&& from) noexcept + : HydratedQuickReplyButton() { + *this = ::std::move(from); + } + + inline HydratedQuickReplyButton& operator=(const HydratedQuickReplyButton& from) { + CopyFrom(from); + return *this; + } + inline HydratedQuickReplyButton& operator=(HydratedQuickReplyButton&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const HydratedQuickReplyButton& default_instance() { + return *internal_default_instance(); + } + static inline const HydratedQuickReplyButton* internal_default_instance() { + return reinterpret_cast<const HydratedQuickReplyButton*>( + &_HydratedQuickReplyButton_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(HydratedQuickReplyButton& a, HydratedQuickReplyButton& b) { + a.Swap(&b); + } + inline void Swap(HydratedQuickReplyButton* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HydratedQuickReplyButton* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline HydratedQuickReplyButton* New() const final { + return CreateMaybeMessage<HydratedQuickReplyButton>(nullptr); + } + + HydratedQuickReplyButton* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<HydratedQuickReplyButton>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const HydratedQuickReplyButton& from); + void MergeFrom(const HydratedQuickReplyButton& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HydratedQuickReplyButton* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.HydratedQuickReplyButton"; + } + protected: + explicit HydratedQuickReplyButton(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDisplayTextFieldNumber = 1, + kIdFieldNumber = 2, + }; + // optional string displayText = 1; + bool has_displaytext() const; + private: + bool _internal_has_displaytext() const; + public: + void clear_displaytext(); + const std::string& displaytext() const; + void set_displaytext(const std::string& value); + void set_displaytext(std::string&& value); + void set_displaytext(const char* value); + void set_displaytext(const char* value, size_t size); + std::string* mutable_displaytext(); + std::string* release_displaytext(); + void set_allocated_displaytext(std::string* displaytext); + private: + const std::string& _internal_displaytext() const; + void _internal_set_displaytext(const std::string& value); + std::string* _internal_mutable_displaytext(); + public: + + // optional string id = 2; + bool has_id() const; + private: + bool _internal_has_id() const; + public: + void clear_id(); + const std::string& id() const; + void set_id(const std::string& value); + void set_id(std::string&& value); + void set_id(const char* value); + void set_id(const char* value, size_t size); + std::string* mutable_id(); + std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:proto.HydratedQuickReplyButton) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr displaytext_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class HydratedURLButton PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HydratedURLButton) */ { + public: + inline HydratedURLButton() : HydratedURLButton(nullptr) {} + virtual ~HydratedURLButton(); + explicit constexpr HydratedURLButton(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + HydratedURLButton(const HydratedURLButton& from); + HydratedURLButton(HydratedURLButton&& from) noexcept + : HydratedURLButton() { + *this = ::std::move(from); + } + + inline HydratedURLButton& operator=(const HydratedURLButton& from) { + CopyFrom(from); + return *this; + } + inline HydratedURLButton& operator=(HydratedURLButton&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const HydratedURLButton& default_instance() { + return *internal_default_instance(); + } + static inline const HydratedURLButton* internal_default_instance() { + return reinterpret_cast<const HydratedURLButton*>( + &_HydratedURLButton_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(HydratedURLButton& a, HydratedURLButton& b) { + a.Swap(&b); + } + inline void Swap(HydratedURLButton* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HydratedURLButton* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline HydratedURLButton* New() const final { + return CreateMaybeMessage<HydratedURLButton>(nullptr); + } + + HydratedURLButton* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<HydratedURLButton>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const HydratedURLButton& from); + void MergeFrom(const HydratedURLButton& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HydratedURLButton* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.HydratedURLButton"; + } + protected: + explicit HydratedURLButton(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDisplayTextFieldNumber = 1, + kUrlFieldNumber = 2, + }; + // optional string displayText = 1; + bool has_displaytext() const; + private: + bool _internal_has_displaytext() const; + public: + void clear_displaytext(); + const std::string& displaytext() const; + void set_displaytext(const std::string& value); + void set_displaytext(std::string&& value); + void set_displaytext(const char* value); + void set_displaytext(const char* value, size_t size); + std::string* mutable_displaytext(); + std::string* release_displaytext(); + void set_allocated_displaytext(std::string* displaytext); + private: + const std::string& _internal_displaytext() const; + void _internal_set_displaytext(const std::string& value); + std::string* _internal_mutable_displaytext(); + public: + + // optional string url = 2; + bool has_url() const; + private: + bool _internal_has_url() const; + public: + void clear_url(); + const std::string& url() const; + void set_url(const std::string& value); + void set_url(std::string&& value); + void set_url(const char* value); + void set_url(const char* value, size_t size); + std::string* mutable_url(); + std::string* release_url(); + void set_allocated_url(std::string* url); + private: + const std::string& _internal_url() const; + void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); + public: + + // @@protoc_insertion_point(class_scope:proto.HydratedURLButton) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr displaytext_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class HydratedCallButton PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HydratedCallButton) */ { + public: + inline HydratedCallButton() : HydratedCallButton(nullptr) {} + virtual ~HydratedCallButton(); + explicit constexpr HydratedCallButton(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + HydratedCallButton(const HydratedCallButton& from); + HydratedCallButton(HydratedCallButton&& from) noexcept + : HydratedCallButton() { + *this = ::std::move(from); + } + + inline HydratedCallButton& operator=(const HydratedCallButton& from) { + CopyFrom(from); + return *this; + } + inline HydratedCallButton& operator=(HydratedCallButton&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const HydratedCallButton& default_instance() { + return *internal_default_instance(); + } + static inline const HydratedCallButton* internal_default_instance() { + return reinterpret_cast<const HydratedCallButton*>( + &_HydratedCallButton_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(HydratedCallButton& a, HydratedCallButton& b) { + a.Swap(&b); + } + inline void Swap(HydratedCallButton* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HydratedCallButton* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline HydratedCallButton* New() const final { + return CreateMaybeMessage<HydratedCallButton>(nullptr); + } + + HydratedCallButton* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<HydratedCallButton>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const HydratedCallButton& from); + void MergeFrom(const HydratedCallButton& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HydratedCallButton* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.HydratedCallButton"; + } + protected: + explicit HydratedCallButton(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDisplayTextFieldNumber = 1, + kPhoneNumberFieldNumber = 2, + }; + // optional string displayText = 1; + bool has_displaytext() const; + private: + bool _internal_has_displaytext() const; + public: + void clear_displaytext(); + const std::string& displaytext() const; + void set_displaytext(const std::string& value); + void set_displaytext(std::string&& value); + void set_displaytext(const char* value); + void set_displaytext(const char* value, size_t size); + std::string* mutable_displaytext(); + std::string* release_displaytext(); + void set_allocated_displaytext(std::string* displaytext); + private: + const std::string& _internal_displaytext() const; + void _internal_set_displaytext(const std::string& value); + std::string* _internal_mutable_displaytext(); + public: + + // optional string phoneNumber = 2; + bool has_phonenumber() const; + private: + bool _internal_has_phonenumber() const; + public: + void clear_phonenumber(); + const std::string& phonenumber() const; + void set_phonenumber(const std::string& value); + void set_phonenumber(std::string&& value); + void set_phonenumber(const char* value); + void set_phonenumber(const char* value, size_t size); + std::string* mutable_phonenumber(); + std::string* release_phonenumber(); + void set_allocated_phonenumber(std::string* phonenumber); + private: + const std::string& _internal_phonenumber() const; + void _internal_set_phonenumber(const std::string& value); + std::string* _internal_mutable_phonenumber(); + public: + + // @@protoc_insertion_point(class_scope:proto.HydratedCallButton) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr displaytext_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr phonenumber_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class HydratedTemplateButton PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HydratedTemplateButton) */ { + public: + inline HydratedTemplateButton() : HydratedTemplateButton(nullptr) {} + virtual ~HydratedTemplateButton(); + explicit constexpr HydratedTemplateButton(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + HydratedTemplateButton(const HydratedTemplateButton& from); + HydratedTemplateButton(HydratedTemplateButton&& from) noexcept + : HydratedTemplateButton() { + *this = ::std::move(from); + } + + inline HydratedTemplateButton& operator=(const HydratedTemplateButton& from) { + CopyFrom(from); + return *this; + } + inline HydratedTemplateButton& operator=(HydratedTemplateButton&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const HydratedTemplateButton& default_instance() { + return *internal_default_instance(); + } + enum HydratedButtonCase { + kQuickReplyButton = 1, + kUrlButton = 2, + kCallButton = 3, + HYDRATEDBUTTON_NOT_SET = 0, + }; + + static inline const HydratedTemplateButton* internal_default_instance() { + return reinterpret_cast<const HydratedTemplateButton*>( + &_HydratedTemplateButton_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(HydratedTemplateButton& a, HydratedTemplateButton& b) { + a.Swap(&b); + } + inline void Swap(HydratedTemplateButton* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HydratedTemplateButton* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline HydratedTemplateButton* New() const final { + return CreateMaybeMessage<HydratedTemplateButton>(nullptr); + } + + HydratedTemplateButton* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<HydratedTemplateButton>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const HydratedTemplateButton& from); + void MergeFrom(const HydratedTemplateButton& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HydratedTemplateButton* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.HydratedTemplateButton"; + } + protected: + explicit HydratedTemplateButton(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIndexFieldNumber = 4, + kQuickReplyButtonFieldNumber = 1, + kUrlButtonFieldNumber = 2, + kCallButtonFieldNumber = 3, + }; + // optional uint32 index = 4; + bool has_index() const; + private: + bool _internal_has_index() const; + public: + void clear_index(); + ::PROTOBUF_NAMESPACE_ID::uint32 index() const; + void set_index(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_index() const; + void _internal_set_index(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // .proto.HydratedQuickReplyButton quickReplyButton = 1; + bool has_quickreplybutton() const; + private: + bool _internal_has_quickreplybutton() const; + public: + void clear_quickreplybutton(); + const ::proto::HydratedQuickReplyButton& quickreplybutton() const; + ::proto::HydratedQuickReplyButton* release_quickreplybutton(); + ::proto::HydratedQuickReplyButton* mutable_quickreplybutton(); + void set_allocated_quickreplybutton(::proto::HydratedQuickReplyButton* quickreplybutton); + private: + const ::proto::HydratedQuickReplyButton& _internal_quickreplybutton() const; + ::proto::HydratedQuickReplyButton* _internal_mutable_quickreplybutton(); + public: + void unsafe_arena_set_allocated_quickreplybutton( + ::proto::HydratedQuickReplyButton* quickreplybutton); + ::proto::HydratedQuickReplyButton* unsafe_arena_release_quickreplybutton(); + + // .proto.HydratedURLButton urlButton = 2; + bool has_urlbutton() const; + private: + bool _internal_has_urlbutton() const; + public: + void clear_urlbutton(); + const ::proto::HydratedURLButton& urlbutton() const; + ::proto::HydratedURLButton* release_urlbutton(); + ::proto::HydratedURLButton* mutable_urlbutton(); + void set_allocated_urlbutton(::proto::HydratedURLButton* urlbutton); + private: + const ::proto::HydratedURLButton& _internal_urlbutton() const; + ::proto::HydratedURLButton* _internal_mutable_urlbutton(); + public: + void unsafe_arena_set_allocated_urlbutton( + ::proto::HydratedURLButton* urlbutton); + ::proto::HydratedURLButton* unsafe_arena_release_urlbutton(); + + // .proto.HydratedCallButton callButton = 3; + bool has_callbutton() const; + private: + bool _internal_has_callbutton() const; + public: + void clear_callbutton(); + const ::proto::HydratedCallButton& callbutton() const; + ::proto::HydratedCallButton* release_callbutton(); + ::proto::HydratedCallButton* mutable_callbutton(); + void set_allocated_callbutton(::proto::HydratedCallButton* callbutton); + private: + const ::proto::HydratedCallButton& _internal_callbutton() const; + ::proto::HydratedCallButton* _internal_mutable_callbutton(); + public: + void unsafe_arena_set_allocated_callbutton( + ::proto::HydratedCallButton* callbutton); + ::proto::HydratedCallButton* unsafe_arena_release_callbutton(); + + void clear_hydratedButton(); + HydratedButtonCase hydratedButton_case() const; + // @@protoc_insertion_point(class_scope:proto.HydratedTemplateButton) + private: + class _Internal; + void set_has_quickreplybutton(); + void set_has_urlbutton(); + void set_has_callbutton(); + + inline bool has_hydratedButton() const; + inline void clear_has_hydratedButton(); + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 index_; + union HydratedButtonUnion { + constexpr HydratedButtonUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::proto::HydratedQuickReplyButton* quickreplybutton_; + ::proto::HydratedURLButton* urlbutton_; + ::proto::HydratedCallButton* callbutton_; + } hydratedButton_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class QuickReplyButton PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.QuickReplyButton) */ { + public: + inline QuickReplyButton() : QuickReplyButton(nullptr) {} + virtual ~QuickReplyButton(); + explicit constexpr QuickReplyButton(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + QuickReplyButton(const QuickReplyButton& from); + QuickReplyButton(QuickReplyButton&& from) noexcept + : QuickReplyButton() { + *this = ::std::move(from); + } + + inline QuickReplyButton& operator=(const QuickReplyButton& from) { + CopyFrom(from); + return *this; + } + inline QuickReplyButton& operator=(QuickReplyButton&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const QuickReplyButton& default_instance() { + return *internal_default_instance(); + } + static inline const QuickReplyButton* internal_default_instance() { + return reinterpret_cast<const QuickReplyButton*>( + &_QuickReplyButton_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(QuickReplyButton& a, QuickReplyButton& b) { + a.Swap(&b); + } + inline void Swap(QuickReplyButton* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(QuickReplyButton* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline QuickReplyButton* New() const final { + return CreateMaybeMessage<QuickReplyButton>(nullptr); + } + + QuickReplyButton* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<QuickReplyButton>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const QuickReplyButton& from); + void MergeFrom(const QuickReplyButton& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(QuickReplyButton* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.QuickReplyButton"; + } + protected: + explicit QuickReplyButton(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIdFieldNumber = 2, + kDisplayTextFieldNumber = 1, + }; + // optional string id = 2; + bool has_id() const; + private: + bool _internal_has_id() const; + public: + void clear_id(); + const std::string& id() const; + void set_id(const std::string& value); + void set_id(std::string&& value); + void set_id(const char* value); + void set_id(const char* value, size_t size); + std::string* mutable_id(); + std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // optional .proto.HighlyStructuredMessage displayText = 1; + bool has_displaytext() const; + private: + bool _internal_has_displaytext() const; + public: + void clear_displaytext(); + const ::proto::HighlyStructuredMessage& displaytext() const; + ::proto::HighlyStructuredMessage* release_displaytext(); + ::proto::HighlyStructuredMessage* mutable_displaytext(); + void set_allocated_displaytext(::proto::HighlyStructuredMessage* displaytext); + private: + const ::proto::HighlyStructuredMessage& _internal_displaytext() const; + ::proto::HighlyStructuredMessage* _internal_mutable_displaytext(); + public: + void unsafe_arena_set_allocated_displaytext( + ::proto::HighlyStructuredMessage* displaytext); + ::proto::HighlyStructuredMessage* unsafe_arena_release_displaytext(); + + // @@protoc_insertion_point(class_scope:proto.QuickReplyButton) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::proto::HighlyStructuredMessage* displaytext_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class URLButton PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.URLButton) */ { + public: + inline URLButton() : URLButton(nullptr) {} + virtual ~URLButton(); + explicit constexpr URLButton(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + URLButton(const URLButton& from); + URLButton(URLButton&& from) noexcept + : URLButton() { + *this = ::std::move(from); + } + + inline URLButton& operator=(const URLButton& from) { + CopyFrom(from); + return *this; + } + inline URLButton& operator=(URLButton&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const URLButton& default_instance() { + return *internal_default_instance(); + } + static inline const URLButton* internal_default_instance() { + return reinterpret_cast<const URLButton*>( + &_URLButton_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(URLButton& a, URLButton& b) { + a.Swap(&b); + } + inline void Swap(URLButton* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(URLButton* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline URLButton* New() const final { + return CreateMaybeMessage<URLButton>(nullptr); + } + + URLButton* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<URLButton>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const URLButton& from); + void MergeFrom(const URLButton& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(URLButton* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.URLButton"; + } + protected: + explicit URLButton(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDisplayTextFieldNumber = 1, + kUrlFieldNumber = 2, + }; + // optional .proto.HighlyStructuredMessage displayText = 1; + bool has_displaytext() const; + private: + bool _internal_has_displaytext() const; + public: + void clear_displaytext(); + const ::proto::HighlyStructuredMessage& displaytext() const; + ::proto::HighlyStructuredMessage* release_displaytext(); + ::proto::HighlyStructuredMessage* mutable_displaytext(); + void set_allocated_displaytext(::proto::HighlyStructuredMessage* displaytext); + private: + const ::proto::HighlyStructuredMessage& _internal_displaytext() const; + ::proto::HighlyStructuredMessage* _internal_mutable_displaytext(); + public: + void unsafe_arena_set_allocated_displaytext( + ::proto::HighlyStructuredMessage* displaytext); + ::proto::HighlyStructuredMessage* unsafe_arena_release_displaytext(); + + // optional .proto.HighlyStructuredMessage url = 2; + bool has_url() const; + private: + bool _internal_has_url() const; + public: + void clear_url(); + const ::proto::HighlyStructuredMessage& url() const; + ::proto::HighlyStructuredMessage* release_url(); + ::proto::HighlyStructuredMessage* mutable_url(); + void set_allocated_url(::proto::HighlyStructuredMessage* url); + private: + const ::proto::HighlyStructuredMessage& _internal_url() const; + ::proto::HighlyStructuredMessage* _internal_mutable_url(); + public: + void unsafe_arena_set_allocated_url( + ::proto::HighlyStructuredMessage* url); + ::proto::HighlyStructuredMessage* unsafe_arena_release_url(); + + // @@protoc_insertion_point(class_scope:proto.URLButton) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::proto::HighlyStructuredMessage* displaytext_; + ::proto::HighlyStructuredMessage* url_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class CallButton PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.CallButton) */ { + public: + inline CallButton() : CallButton(nullptr) {} + virtual ~CallButton(); + explicit constexpr CallButton(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CallButton(const CallButton& from); + CallButton(CallButton&& from) noexcept + : CallButton() { + *this = ::std::move(from); + } + + inline CallButton& operator=(const CallButton& from) { + CopyFrom(from); + return *this; + } + inline CallButton& operator=(CallButton&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const CallButton& default_instance() { + return *internal_default_instance(); + } + static inline const CallButton* internal_default_instance() { + return reinterpret_cast<const CallButton*>( + &_CallButton_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(CallButton& a, CallButton& b) { + a.Swap(&b); + } + inline void Swap(CallButton* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CallButton* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline CallButton* New() const final { + return CreateMaybeMessage<CallButton>(nullptr); + } + + CallButton* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<CallButton>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const CallButton& from); + void MergeFrom(const CallButton& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CallButton* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.CallButton"; + } + protected: + explicit CallButton(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDisplayTextFieldNumber = 1, + kPhoneNumberFieldNumber = 2, + }; + // optional .proto.HighlyStructuredMessage displayText = 1; + bool has_displaytext() const; + private: + bool _internal_has_displaytext() const; + public: + void clear_displaytext(); + const ::proto::HighlyStructuredMessage& displaytext() const; + ::proto::HighlyStructuredMessage* release_displaytext(); + ::proto::HighlyStructuredMessage* mutable_displaytext(); + void set_allocated_displaytext(::proto::HighlyStructuredMessage* displaytext); + private: + const ::proto::HighlyStructuredMessage& _internal_displaytext() const; + ::proto::HighlyStructuredMessage* _internal_mutable_displaytext(); + public: + void unsafe_arena_set_allocated_displaytext( + ::proto::HighlyStructuredMessage* displaytext); + ::proto::HighlyStructuredMessage* unsafe_arena_release_displaytext(); + + // optional .proto.HighlyStructuredMessage phoneNumber = 2; + bool has_phonenumber() const; + private: + bool _internal_has_phonenumber() const; + public: + void clear_phonenumber(); + const ::proto::HighlyStructuredMessage& phonenumber() const; + ::proto::HighlyStructuredMessage* release_phonenumber(); + ::proto::HighlyStructuredMessage* mutable_phonenumber(); + void set_allocated_phonenumber(::proto::HighlyStructuredMessage* phonenumber); + private: + const ::proto::HighlyStructuredMessage& _internal_phonenumber() const; + ::proto::HighlyStructuredMessage* _internal_mutable_phonenumber(); + public: + void unsafe_arena_set_allocated_phonenumber( + ::proto::HighlyStructuredMessage* phonenumber); + ::proto::HighlyStructuredMessage* unsafe_arena_release_phonenumber(); + + // @@protoc_insertion_point(class_scope:proto.CallButton) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::proto::HighlyStructuredMessage* displaytext_; + ::proto::HighlyStructuredMessage* phonenumber_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class TemplateButton PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.TemplateButton) */ { + public: + inline TemplateButton() : TemplateButton(nullptr) {} + virtual ~TemplateButton(); + explicit constexpr TemplateButton(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TemplateButton(const TemplateButton& from); + TemplateButton(TemplateButton&& from) noexcept + : TemplateButton() { + *this = ::std::move(from); + } + + inline TemplateButton& operator=(const TemplateButton& from) { + CopyFrom(from); + return *this; + } + inline TemplateButton& operator=(TemplateButton&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const TemplateButton& default_instance() { + return *internal_default_instance(); + } + enum ButtonCase { + kQuickReplyButton = 1, + kUrlButton = 2, + kCallButton = 3, + BUTTON_NOT_SET = 0, + }; + + static inline const TemplateButton* internal_default_instance() { + return reinterpret_cast<const TemplateButton*>( + &_TemplateButton_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(TemplateButton& a, TemplateButton& b) { + a.Swap(&b); + } + inline void Swap(TemplateButton* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TemplateButton* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline TemplateButton* New() const final { + return CreateMaybeMessage<TemplateButton>(nullptr); + } + + TemplateButton* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<TemplateButton>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const TemplateButton& from); + void MergeFrom(const TemplateButton& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TemplateButton* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.TemplateButton"; + } + protected: + explicit TemplateButton(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIndexFieldNumber = 4, + kQuickReplyButtonFieldNumber = 1, + kUrlButtonFieldNumber = 2, + kCallButtonFieldNumber = 3, + }; + // optional uint32 index = 4; + bool has_index() const; + private: + bool _internal_has_index() const; + public: + void clear_index(); + ::PROTOBUF_NAMESPACE_ID::uint32 index() const; + void set_index(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_index() const; + void _internal_set_index(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // .proto.QuickReplyButton quickReplyButton = 1; + bool has_quickreplybutton() const; + private: + bool _internal_has_quickreplybutton() const; + public: + void clear_quickreplybutton(); + const ::proto::QuickReplyButton& quickreplybutton() const; + ::proto::QuickReplyButton* release_quickreplybutton(); + ::proto::QuickReplyButton* mutable_quickreplybutton(); + void set_allocated_quickreplybutton(::proto::QuickReplyButton* quickreplybutton); + private: + const ::proto::QuickReplyButton& _internal_quickreplybutton() const; + ::proto::QuickReplyButton* _internal_mutable_quickreplybutton(); + public: + void unsafe_arena_set_allocated_quickreplybutton( + ::proto::QuickReplyButton* quickreplybutton); + ::proto::QuickReplyButton* unsafe_arena_release_quickreplybutton(); + + // .proto.URLButton urlButton = 2; + bool has_urlbutton() const; + private: + bool _internal_has_urlbutton() const; + public: + void clear_urlbutton(); + const ::proto::URLButton& urlbutton() const; + ::proto::URLButton* release_urlbutton(); + ::proto::URLButton* mutable_urlbutton(); + void set_allocated_urlbutton(::proto::URLButton* urlbutton); + private: + const ::proto::URLButton& _internal_urlbutton() const; + ::proto::URLButton* _internal_mutable_urlbutton(); + public: + void unsafe_arena_set_allocated_urlbutton( + ::proto::URLButton* urlbutton); + ::proto::URLButton* unsafe_arena_release_urlbutton(); + + // .proto.CallButton callButton = 3; + bool has_callbutton() const; + private: + bool _internal_has_callbutton() const; + public: + void clear_callbutton(); + const ::proto::CallButton& callbutton() const; + ::proto::CallButton* release_callbutton(); + ::proto::CallButton* mutable_callbutton(); + void set_allocated_callbutton(::proto::CallButton* callbutton); + private: + const ::proto::CallButton& _internal_callbutton() const; + ::proto::CallButton* _internal_mutable_callbutton(); + public: + void unsafe_arena_set_allocated_callbutton( + ::proto::CallButton* callbutton); + ::proto::CallButton* unsafe_arena_release_callbutton(); + + void clear_button(); + ButtonCase button_case() const; + // @@protoc_insertion_point(class_scope:proto.TemplateButton) + private: + class _Internal; + void set_has_quickreplybutton(); + void set_has_urlbutton(); + void set_has_callbutton(); + + inline bool has_button() const; + inline void clear_has_button(); + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 index_; + union ButtonUnion { + constexpr ButtonUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::proto::QuickReplyButton* quickreplybutton_; + ::proto::URLButton* urlbutton_; + ::proto::CallButton* callbutton_; + } button_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class Location PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Location) */ { + public: + inline Location() : Location(nullptr) {} + virtual ~Location(); + explicit constexpr Location(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Location(const Location& from); + Location(Location&& from) noexcept + : Location() { + *this = ::std::move(from); + } + + inline Location& operator=(const Location& from) { + CopyFrom(from); + return *this; + } + inline Location& operator=(Location&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Location& default_instance() { + return *internal_default_instance(); + } + static inline const Location* internal_default_instance() { + return reinterpret_cast<const Location*>( + &_Location_default_instance_); + } + static constexpr int kIndexInFileMessages = + 9; + + friend void swap(Location& a, Location& b) { + a.Swap(&b); + } + inline void Swap(Location* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Location* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Location* New() const final { + return CreateMaybeMessage<Location>(nullptr); + } + + Location* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<Location>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Location& from); + void MergeFrom(const Location& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Location* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.Location"; + } + protected: + explicit Location(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 3, + kDegreesLatitudeFieldNumber = 1, + kDegreesLongitudeFieldNumber = 2, + }; + // optional string name = 3; + bool has_name() const; + private: + bool _internal_has_name() const; + public: + void clear_name(); + const std::string& name() const; + void set_name(const std::string& value); + void set_name(std::string&& value); + void set_name(const char* value); + void set_name(const char* value, size_t size); + std::string* mutable_name(); + std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // optional double degreesLatitude = 1; + bool has_degreeslatitude() const; + private: + bool _internal_has_degreeslatitude() const; + public: + void clear_degreeslatitude(); + double degreeslatitude() const; + void set_degreeslatitude(double value); + private: + double _internal_degreeslatitude() const; + void _internal_set_degreeslatitude(double value); + public: + + // optional double degreesLongitude = 2; + bool has_degreeslongitude() const; + private: + bool _internal_has_degreeslongitude() const; + public: + void clear_degreeslongitude(); + double degreeslongitude() const; + void set_degreeslongitude(double value); + private: + double _internal_degreeslongitude() const; + void _internal_set_degreeslongitude(double value); + public: + + // @@protoc_insertion_point(class_scope:proto.Location) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + double degreeslatitude_; + double degreeslongitude_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class Point PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Point) */ { + public: + inline Point() : Point(nullptr) {} + virtual ~Point(); + explicit constexpr Point(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Point(const Point& from); + Point(Point&& from) noexcept + : Point() { + *this = ::std::move(from); + } + + inline Point& operator=(const Point& from) { + CopyFrom(from); + return *this; + } + inline Point& operator=(Point&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Point& default_instance() { + return *internal_default_instance(); + } + static inline const Point* internal_default_instance() { + return reinterpret_cast<const Point*>( + &_Point_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(Point& a, Point& b) { + a.Swap(&b); + } + inline void Swap(Point* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Point* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Point* New() const final { + return CreateMaybeMessage<Point>(nullptr); + } + + Point* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<Point>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Point& from); + void MergeFrom(const Point& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Point* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.Point"; + } + protected: + explicit Point(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kXDeprecatedFieldNumber = 1, + kYDeprecatedFieldNumber = 2, + kXFieldNumber = 3, + kYFieldNumber = 4, + }; + // optional int32 xDeprecated = 1; + bool has_xdeprecated() const; + private: + bool _internal_has_xdeprecated() const; + public: + void clear_xdeprecated(); + ::PROTOBUF_NAMESPACE_ID::int32 xdeprecated() const; + void set_xdeprecated(::PROTOBUF_NAMESPACE_ID::int32 value); + private: + ::PROTOBUF_NAMESPACE_ID::int32 _internal_xdeprecated() const; + void _internal_set_xdeprecated(::PROTOBUF_NAMESPACE_ID::int32 value); + public: + + // optional int32 yDeprecated = 2; + bool has_ydeprecated() const; + private: + bool _internal_has_ydeprecated() const; + public: + void clear_ydeprecated(); + ::PROTOBUF_NAMESPACE_ID::int32 ydeprecated() const; + void set_ydeprecated(::PROTOBUF_NAMESPACE_ID::int32 value); + private: + ::PROTOBUF_NAMESPACE_ID::int32 _internal_ydeprecated() const; + void _internal_set_ydeprecated(::PROTOBUF_NAMESPACE_ID::int32 value); + public: + + // optional double x = 3; + bool has_x() const; + private: + bool _internal_has_x() const; + public: + void clear_x(); + double x() const; + void set_x(double value); + private: + double _internal_x() const; + void _internal_set_x(double value); + public: + + // optional double y = 4; + bool has_y() const; + private: + bool _internal_has_y() const; + public: + void clear_y(); + double y() const; + void set_y(double value); + private: + double _internal_y() const; + void _internal_set_y(double value); + public: + + // @@protoc_insertion_point(class_scope:proto.Point) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::int32 xdeprecated_; + ::PROTOBUF_NAMESPACE_ID::int32 ydeprecated_; + double x_; + double y_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class InteractiveAnnotation PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.InteractiveAnnotation) */ { + public: + inline InteractiveAnnotation() : InteractiveAnnotation(nullptr) {} + virtual ~InteractiveAnnotation(); + explicit constexpr InteractiveAnnotation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + InteractiveAnnotation(const InteractiveAnnotation& from); + InteractiveAnnotation(InteractiveAnnotation&& from) noexcept + : InteractiveAnnotation() { + *this = ::std::move(from); + } + + inline InteractiveAnnotation& operator=(const InteractiveAnnotation& from) { + CopyFrom(from); + return *this; + } + inline InteractiveAnnotation& operator=(InteractiveAnnotation&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const InteractiveAnnotation& default_instance() { + return *internal_default_instance(); + } + enum ActionCase { + kLocation = 2, + ACTION_NOT_SET = 0, + }; + + static inline const InteractiveAnnotation* internal_default_instance() { + return reinterpret_cast<const InteractiveAnnotation*>( + &_InteractiveAnnotation_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(InteractiveAnnotation& a, InteractiveAnnotation& b) { + a.Swap(&b); + } + inline void Swap(InteractiveAnnotation* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(InteractiveAnnotation* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline InteractiveAnnotation* New() const final { + return CreateMaybeMessage<InteractiveAnnotation>(nullptr); + } + + InteractiveAnnotation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<InteractiveAnnotation>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const InteractiveAnnotation& from); + void MergeFrom(const InteractiveAnnotation& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(InteractiveAnnotation* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.InteractiveAnnotation"; + } + protected: + explicit InteractiveAnnotation(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPolygonVerticesFieldNumber = 1, + kLocationFieldNumber = 2, + }; + // repeated .proto.Point polygonVertices = 1; + int polygonvertices_size() const; + private: + int _internal_polygonvertices_size() const; + public: + void clear_polygonvertices(); + ::proto::Point* mutable_polygonvertices(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Point >* + mutable_polygonvertices(); + private: + const ::proto::Point& _internal_polygonvertices(int index) const; + ::proto::Point* _internal_add_polygonvertices(); + public: + const ::proto::Point& polygonvertices(int index) const; + ::proto::Point* add_polygonvertices(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Point >& + polygonvertices() const; + + // .proto.Location location = 2; + bool has_location() const; + private: + bool _internal_has_location() const; + public: + void clear_location(); + const ::proto::Location& location() const; + ::proto::Location* release_location(); + ::proto::Location* mutable_location(); + void set_allocated_location(::proto::Location* location); + private: + const ::proto::Location& _internal_location() const; + ::proto::Location* _internal_mutable_location(); + public: + void unsafe_arena_set_allocated_location( + ::proto::Location* location); + ::proto::Location* unsafe_arena_release_location(); + + void clear_action(); + ActionCase action_case() const; + // @@protoc_insertion_point(class_scope:proto.InteractiveAnnotation) + private: + class _Internal; + void set_has_location(); + + inline bool has_action() const; + inline void clear_has_action(); + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Point > polygonvertices_; + union ActionUnion { + constexpr ActionUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::proto::Location* location_; + } action_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class DeviceListMetadata PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.DeviceListMetadata) */ { + public: + inline DeviceListMetadata() : DeviceListMetadata(nullptr) {} + virtual ~DeviceListMetadata(); + explicit constexpr DeviceListMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeviceListMetadata(const DeviceListMetadata& from); + DeviceListMetadata(DeviceListMetadata&& from) noexcept + : DeviceListMetadata() { + *this = ::std::move(from); + } + + inline DeviceListMetadata& operator=(const DeviceListMetadata& from) { + CopyFrom(from); + return *this; + } + inline DeviceListMetadata& operator=(DeviceListMetadata&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const DeviceListMetadata& default_instance() { + return *internal_default_instance(); + } + static inline const DeviceListMetadata* internal_default_instance() { + return reinterpret_cast<const DeviceListMetadata*>( + &_DeviceListMetadata_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(DeviceListMetadata& a, DeviceListMetadata& b) { + a.Swap(&b); + } + inline void Swap(DeviceListMetadata* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DeviceListMetadata* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DeviceListMetadata* New() const final { + return CreateMaybeMessage<DeviceListMetadata>(nullptr); + } + + DeviceListMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<DeviceListMetadata>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DeviceListMetadata& from); + void MergeFrom(const DeviceListMetadata& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeviceListMetadata* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.DeviceListMetadata"; + } + protected: + explicit DeviceListMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kSenderKeyHashFieldNumber = 1, + kRecipientKeyHashFieldNumber = 8, + kSenderTimestampFieldNumber = 2, + kRecipientTimestampFieldNumber = 9, + }; + // optional bytes senderKeyHash = 1; + bool has_senderkeyhash() const; + private: + bool _internal_has_senderkeyhash() const; + public: + void clear_senderkeyhash(); + const std::string& senderkeyhash() const; + void set_senderkeyhash(const std::string& value); + void set_senderkeyhash(std::string&& value); + void set_senderkeyhash(const char* value); + void set_senderkeyhash(const void* value, size_t size); + std::string* mutable_senderkeyhash(); + std::string* release_senderkeyhash(); + void set_allocated_senderkeyhash(std::string* senderkeyhash); + private: + const std::string& _internal_senderkeyhash() const; + void _internal_set_senderkeyhash(const std::string& value); + std::string* _internal_mutable_senderkeyhash(); + public: + + // optional bytes recipientKeyHash = 8; + bool has_recipientkeyhash() const; + private: + bool _internal_has_recipientkeyhash() const; + public: + void clear_recipientkeyhash(); + const std::string& recipientkeyhash() const; + void set_recipientkeyhash(const std::string& value); + void set_recipientkeyhash(std::string&& value); + void set_recipientkeyhash(const char* value); + void set_recipientkeyhash(const void* value, size_t size); + std::string* mutable_recipientkeyhash(); + std::string* release_recipientkeyhash(); + void set_allocated_recipientkeyhash(std::string* recipientkeyhash); + private: + const std::string& _internal_recipientkeyhash() const; + void _internal_set_recipientkeyhash(const std::string& value); + std::string* _internal_mutable_recipientkeyhash(); + public: + + // optional uint64 senderTimestamp = 2; + bool has_sendertimestamp() const; + private: + bool _internal_has_sendertimestamp() const; + public: + void clear_sendertimestamp(); + ::PROTOBUF_NAMESPACE_ID::uint64 sendertimestamp() const; + void set_sendertimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_sendertimestamp() const; + void _internal_set_sendertimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // optional uint64 recipientTimestamp = 9; + bool has_recipienttimestamp() const; + private: + bool _internal_has_recipienttimestamp() const; + public: + void clear_recipienttimestamp(); + ::PROTOBUF_NAMESPACE_ID::uint64 recipienttimestamp() const; + void set_recipienttimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_recipienttimestamp() const; + void _internal_set_recipienttimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:proto.DeviceListMetadata) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr senderkeyhash_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr recipientkeyhash_; + ::PROTOBUF_NAMESPACE_ID::uint64 sendertimestamp_; + ::PROTOBUF_NAMESPACE_ID::uint64 recipienttimestamp_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class MessageContextInfo PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.MessageContextInfo) */ { + public: + inline MessageContextInfo() : MessageContextInfo(nullptr) {} + virtual ~MessageContextInfo(); + explicit constexpr MessageContextInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MessageContextInfo(const MessageContextInfo& from); + MessageContextInfo(MessageContextInfo&& from) noexcept + : MessageContextInfo() { + *this = ::std::move(from); + } + + inline MessageContextInfo& operator=(const MessageContextInfo& from) { + CopyFrom(from); + return *this; + } + inline MessageContextInfo& operator=(MessageContextInfo&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const MessageContextInfo& default_instance() { + return *internal_default_instance(); + } + static inline const MessageContextInfo* internal_default_instance() { + return reinterpret_cast<const MessageContextInfo*>( + &_MessageContextInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 13; + + friend void swap(MessageContextInfo& a, MessageContextInfo& b) { + a.Swap(&b); + } + inline void Swap(MessageContextInfo* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MessageContextInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline MessageContextInfo* New() const final { + return CreateMaybeMessage<MessageContextInfo>(nullptr); + } + + MessageContextInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<MessageContextInfo>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const MessageContextInfo& from); + void MergeFrom(const MessageContextInfo& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MessageContextInfo* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.MessageContextInfo"; + } + protected: + explicit MessageContextInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDeviceListMetadataFieldNumber = 1, + }; + // optional .proto.DeviceListMetadata deviceListMetadata = 1; + bool has_devicelistmetadata() const; + private: + bool _internal_has_devicelistmetadata() const; + public: + void clear_devicelistmetadata(); + const ::proto::DeviceListMetadata& devicelistmetadata() const; + ::proto::DeviceListMetadata* release_devicelistmetadata(); + ::proto::DeviceListMetadata* mutable_devicelistmetadata(); + void set_allocated_devicelistmetadata(::proto::DeviceListMetadata* devicelistmetadata); + private: + const ::proto::DeviceListMetadata& _internal_devicelistmetadata() const; + ::proto::DeviceListMetadata* _internal_mutable_devicelistmetadata(); + public: + void unsafe_arena_set_allocated_devicelistmetadata( + ::proto::DeviceListMetadata* devicelistmetadata); + ::proto::DeviceListMetadata* unsafe_arena_release_devicelistmetadata(); + + // @@protoc_insertion_point(class_scope:proto.MessageContextInfo) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::proto::DeviceListMetadata* devicelistmetadata_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class AdReplyInfo PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AdReplyInfo) */ { + public: + inline AdReplyInfo() : AdReplyInfo(nullptr) {} + virtual ~AdReplyInfo(); + explicit constexpr AdReplyInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AdReplyInfo(const AdReplyInfo& from); + AdReplyInfo(AdReplyInfo&& from) noexcept + : AdReplyInfo() { + *this = ::std::move(from); + } + + inline AdReplyInfo& operator=(const AdReplyInfo& from) { + CopyFrom(from); + return *this; + } + inline AdReplyInfo& operator=(AdReplyInfo&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const AdReplyInfo& default_instance() { + return *internal_default_instance(); + } + static inline const AdReplyInfo* internal_default_instance() { + return reinterpret_cast<const AdReplyInfo*>( + &_AdReplyInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 14; + + friend void swap(AdReplyInfo& a, AdReplyInfo& b) { + a.Swap(&b); + } + inline void Swap(AdReplyInfo* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AdReplyInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline AdReplyInfo* New() const final { + return CreateMaybeMessage<AdReplyInfo>(nullptr); + } + + AdReplyInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<AdReplyInfo>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const AdReplyInfo& from); + void MergeFrom(const AdReplyInfo& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AdReplyInfo* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.AdReplyInfo"; + } + protected: + explicit AdReplyInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + typedef AdReplyInfo_AdReplyInfoMediaType AdReplyInfoMediaType; + static constexpr AdReplyInfoMediaType NONE = + AdReplyInfo_AdReplyInfoMediaType_NONE; + static constexpr AdReplyInfoMediaType IMAGE = + AdReplyInfo_AdReplyInfoMediaType_IMAGE; + static constexpr AdReplyInfoMediaType VIDEO = + AdReplyInfo_AdReplyInfoMediaType_VIDEO; + static inline bool AdReplyInfoMediaType_IsValid(int value) { + return AdReplyInfo_AdReplyInfoMediaType_IsValid(value); + } + static constexpr AdReplyInfoMediaType AdReplyInfoMediaType_MIN = + AdReplyInfo_AdReplyInfoMediaType_AdReplyInfoMediaType_MIN; + static constexpr AdReplyInfoMediaType AdReplyInfoMediaType_MAX = + AdReplyInfo_AdReplyInfoMediaType_AdReplyInfoMediaType_MAX; + static constexpr int AdReplyInfoMediaType_ARRAYSIZE = + AdReplyInfo_AdReplyInfoMediaType_AdReplyInfoMediaType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + AdReplyInfoMediaType_descriptor() { + return AdReplyInfo_AdReplyInfoMediaType_descriptor(); + } + template<typename T> + static inline const std::string& AdReplyInfoMediaType_Name(T enum_t_value) { + static_assert(::std::is_same<T, AdReplyInfoMediaType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function AdReplyInfoMediaType_Name."); + return AdReplyInfo_AdReplyInfoMediaType_Name(enum_t_value); + } + static inline bool AdReplyInfoMediaType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + AdReplyInfoMediaType* value) { + return AdReplyInfo_AdReplyInfoMediaType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kAdvertiserNameFieldNumber = 1, + kJpegThumbnailFieldNumber = 16, + kCaptionFieldNumber = 17, + kMediaTypeFieldNumber = 2, + }; + // optional string advertiserName = 1; + bool has_advertisername() const; + private: + bool _internal_has_advertisername() const; + public: + void clear_advertisername(); + const std::string& advertisername() const; + void set_advertisername(const std::string& value); + void set_advertisername(std::string&& value); + void set_advertisername(const char* value); + void set_advertisername(const char* value, size_t size); + std::string* mutable_advertisername(); + std::string* release_advertisername(); + void set_allocated_advertisername(std::string* advertisername); + private: + const std::string& _internal_advertisername() const; + void _internal_set_advertisername(const std::string& value); + std::string* _internal_mutable_advertisername(); + public: + + // optional bytes jpegThumbnail = 16; + bool has_jpegthumbnail() const; + private: + bool _internal_has_jpegthumbnail() const; + public: + void clear_jpegthumbnail(); + const std::string& jpegthumbnail() const; + void set_jpegthumbnail(const std::string& value); + void set_jpegthumbnail(std::string&& value); + void set_jpegthumbnail(const char* value); + void set_jpegthumbnail(const void* value, size_t size); + std::string* mutable_jpegthumbnail(); + std::string* release_jpegthumbnail(); + void set_allocated_jpegthumbnail(std::string* jpegthumbnail); + private: + const std::string& _internal_jpegthumbnail() const; + void _internal_set_jpegthumbnail(const std::string& value); + std::string* _internal_mutable_jpegthumbnail(); + public: + + // optional string caption = 17; + bool has_caption() const; + private: + bool _internal_has_caption() const; + public: + void clear_caption(); + const std::string& caption() const; + void set_caption(const std::string& value); + void set_caption(std::string&& value); + void set_caption(const char* value); + void set_caption(const char* value, size_t size); + std::string* mutable_caption(); + std::string* release_caption(); + void set_allocated_caption(std::string* caption); + private: + const std::string& _internal_caption() const; + void _internal_set_caption(const std::string& value); + std::string* _internal_mutable_caption(); + public: + + // optional .proto.AdReplyInfo.AdReplyInfoMediaType mediaType = 2; + bool has_mediatype() const; + private: + bool _internal_has_mediatype() const; + public: + void clear_mediatype(); + ::proto::AdReplyInfo_AdReplyInfoMediaType mediatype() const; + void set_mediatype(::proto::AdReplyInfo_AdReplyInfoMediaType value); + private: + ::proto::AdReplyInfo_AdReplyInfoMediaType _internal_mediatype() const; + void _internal_set_mediatype(::proto::AdReplyInfo_AdReplyInfoMediaType value); + public: + + // @@protoc_insertion_point(class_scope:proto.AdReplyInfo) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr advertisername_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr jpegthumbnail_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr caption_; + int mediatype_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class ExternalAdReplyInfo PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ExternalAdReplyInfo) */ { + public: + inline ExternalAdReplyInfo() : ExternalAdReplyInfo(nullptr) {} + virtual ~ExternalAdReplyInfo(); + explicit constexpr ExternalAdReplyInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ExternalAdReplyInfo(const ExternalAdReplyInfo& from); + ExternalAdReplyInfo(ExternalAdReplyInfo&& from) noexcept + : ExternalAdReplyInfo() { + *this = ::std::move(from); + } + + inline ExternalAdReplyInfo& operator=(const ExternalAdReplyInfo& from) { + CopyFrom(from); + return *this; + } + inline ExternalAdReplyInfo& operator=(ExternalAdReplyInfo&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ExternalAdReplyInfo& default_instance() { + return *internal_default_instance(); + } + static inline const ExternalAdReplyInfo* internal_default_instance() { + return reinterpret_cast<const ExternalAdReplyInfo*>( + &_ExternalAdReplyInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(ExternalAdReplyInfo& a, ExternalAdReplyInfo& b) { + a.Swap(&b); + } + inline void Swap(ExternalAdReplyInfo* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ExternalAdReplyInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ExternalAdReplyInfo* New() const final { + return CreateMaybeMessage<ExternalAdReplyInfo>(nullptr); + } + + ExternalAdReplyInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ExternalAdReplyInfo>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ExternalAdReplyInfo& from); + void MergeFrom(const ExternalAdReplyInfo& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExternalAdReplyInfo* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.ExternalAdReplyInfo"; + } + protected: + explicit ExternalAdReplyInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + typedef ExternalAdReplyInfo_ExternalAdReplyInfoMediaType ExternalAdReplyInfoMediaType; + static constexpr ExternalAdReplyInfoMediaType NONE = + ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_NONE; + static constexpr ExternalAdReplyInfoMediaType IMAGE = + ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_IMAGE; + static constexpr ExternalAdReplyInfoMediaType VIDEO = + ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_VIDEO; + static inline bool ExternalAdReplyInfoMediaType_IsValid(int value) { + return ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_IsValid(value); + } + static constexpr ExternalAdReplyInfoMediaType ExternalAdReplyInfoMediaType_MIN = + ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_ExternalAdReplyInfoMediaType_MIN; + static constexpr ExternalAdReplyInfoMediaType ExternalAdReplyInfoMediaType_MAX = + ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_ExternalAdReplyInfoMediaType_MAX; + static constexpr int ExternalAdReplyInfoMediaType_ARRAYSIZE = + ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_ExternalAdReplyInfoMediaType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + ExternalAdReplyInfoMediaType_descriptor() { + return ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_descriptor(); + } + template<typename T> + static inline const std::string& ExternalAdReplyInfoMediaType_Name(T enum_t_value) { + static_assert(::std::is_same<T, ExternalAdReplyInfoMediaType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function ExternalAdReplyInfoMediaType_Name."); + return ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_Name(enum_t_value); + } + static inline bool ExternalAdReplyInfoMediaType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + ExternalAdReplyInfoMediaType* value) { + return ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kTitleFieldNumber = 1, + kBodyFieldNumber = 2, + kThumbnailUrlFieldNumber = 4, + kMediaUrlFieldNumber = 5, + kThumbnailFieldNumber = 6, + kSourceTypeFieldNumber = 7, + kSourceIdFieldNumber = 8, + kSourceUrlFieldNumber = 9, + kMediaTypeFieldNumber = 3, + }; + // optional string title = 1; + bool has_title() const; + private: + bool _internal_has_title() const; + public: + void clear_title(); + const std::string& title() const; + void set_title(const std::string& value); + void set_title(std::string&& value); + void set_title(const char* value); + void set_title(const char* value, size_t size); + std::string* mutable_title(); + std::string* release_title(); + void set_allocated_title(std::string* title); + private: + const std::string& _internal_title() const; + void _internal_set_title(const std::string& value); + std::string* _internal_mutable_title(); + public: + + // optional string body = 2; + bool has_body() const; + private: + bool _internal_has_body() const; + public: + void clear_body(); + const std::string& body() const; + void set_body(const std::string& value); + void set_body(std::string&& value); + void set_body(const char* value); + void set_body(const char* value, size_t size); + std::string* mutable_body(); + std::string* release_body(); + void set_allocated_body(std::string* body); + private: + const std::string& _internal_body() const; + void _internal_set_body(const std::string& value); + std::string* _internal_mutable_body(); + public: + + // optional string thumbnailUrl = 4; + bool has_thumbnailurl() const; + private: + bool _internal_has_thumbnailurl() const; + public: + void clear_thumbnailurl(); + const std::string& thumbnailurl() const; + void set_thumbnailurl(const std::string& value); + void set_thumbnailurl(std::string&& value); + void set_thumbnailurl(const char* value); + void set_thumbnailurl(const char* value, size_t size); + std::string* mutable_thumbnailurl(); + std::string* release_thumbnailurl(); + void set_allocated_thumbnailurl(std::string* thumbnailurl); + private: + const std::string& _internal_thumbnailurl() const; + void _internal_set_thumbnailurl(const std::string& value); + std::string* _internal_mutable_thumbnailurl(); + public: + + // optional string mediaUrl = 5; + bool has_mediaurl() const; + private: + bool _internal_has_mediaurl() const; + public: + void clear_mediaurl(); + const std::string& mediaurl() const; + void set_mediaurl(const std::string& value); + void set_mediaurl(std::string&& value); + void set_mediaurl(const char* value); + void set_mediaurl(const char* value, size_t size); + std::string* mutable_mediaurl(); + std::string* release_mediaurl(); + void set_allocated_mediaurl(std::string* mediaurl); + private: + const std::string& _internal_mediaurl() const; + void _internal_set_mediaurl(const std::string& value); + std::string* _internal_mutable_mediaurl(); + public: + + // optional bytes thumbnail = 6; + bool has_thumbnail() const; + private: + bool _internal_has_thumbnail() const; + public: + void clear_thumbnail(); + const std::string& thumbnail() const; + void set_thumbnail(const std::string& value); + void set_thumbnail(std::string&& value); + void set_thumbnail(const char* value); + void set_thumbnail(const void* value, size_t size); + std::string* mutable_thumbnail(); + std::string* release_thumbnail(); + void set_allocated_thumbnail(std::string* thumbnail); + private: + const std::string& _internal_thumbnail() const; + void _internal_set_thumbnail(const std::string& value); + std::string* _internal_mutable_thumbnail(); + public: + + // optional string sourceType = 7; + bool has_sourcetype() const; + private: + bool _internal_has_sourcetype() const; + public: + void clear_sourcetype(); + const std::string& sourcetype() const; + void set_sourcetype(const std::string& value); + void set_sourcetype(std::string&& value); + void set_sourcetype(const char* value); + void set_sourcetype(const char* value, size_t size); + std::string* mutable_sourcetype(); + std::string* release_sourcetype(); + void set_allocated_sourcetype(std::string* sourcetype); + private: + const std::string& _internal_sourcetype() const; + void _internal_set_sourcetype(const std::string& value); + std::string* _internal_mutable_sourcetype(); + public: + + // optional string sourceId = 8; + bool has_sourceid() const; + private: + bool _internal_has_sourceid() const; + public: + void clear_sourceid(); + const std::string& sourceid() const; + void set_sourceid(const std::string& value); + void set_sourceid(std::string&& value); + void set_sourceid(const char* value); + void set_sourceid(const char* value, size_t size); + std::string* mutable_sourceid(); + std::string* release_sourceid(); + void set_allocated_sourceid(std::string* sourceid); + private: + const std::string& _internal_sourceid() const; + void _internal_set_sourceid(const std::string& value); + std::string* _internal_mutable_sourceid(); + public: + + // optional string sourceUrl = 9; + bool has_sourceurl() const; + private: + bool _internal_has_sourceurl() const; + public: + void clear_sourceurl(); + const std::string& sourceurl() const; + void set_sourceurl(const std::string& value); + void set_sourceurl(std::string&& value); + void set_sourceurl(const char* value); + void set_sourceurl(const char* value, size_t size); + std::string* mutable_sourceurl(); + std::string* release_sourceurl(); + void set_allocated_sourceurl(std::string* sourceurl); + private: + const std::string& _internal_sourceurl() const; + void _internal_set_sourceurl(const std::string& value); + std::string* _internal_mutable_sourceurl(); + public: + + // optional .proto.ExternalAdReplyInfo.ExternalAdReplyInfoMediaType mediaType = 3; + bool has_mediatype() const; + private: + bool _internal_has_mediatype() const; + public: + void clear_mediatype(); + ::proto::ExternalAdReplyInfo_ExternalAdReplyInfoMediaType mediatype() const; + void set_mediatype(::proto::ExternalAdReplyInfo_ExternalAdReplyInfoMediaType value); + private: + ::proto::ExternalAdReplyInfo_ExternalAdReplyInfoMediaType _internal_mediatype() const; + void _internal_set_mediatype(::proto::ExternalAdReplyInfo_ExternalAdReplyInfoMediaType value); + public: + + // @@protoc_insertion_point(class_scope:proto.ExternalAdReplyInfo) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr title_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr body_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr thumbnailurl_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mediaurl_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr thumbnail_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sourcetype_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sourceid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sourceurl_; + int mediatype_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class ContextInfo PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ContextInfo) */ { + public: + inline ContextInfo() : ContextInfo(nullptr) {} + virtual ~ContextInfo(); + explicit constexpr ContextInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ContextInfo(const ContextInfo& from); + ContextInfo(ContextInfo&& from) noexcept + : ContextInfo() { + *this = ::std::move(from); + } + + inline ContextInfo& operator=(const ContextInfo& from) { + CopyFrom(from); + return *this; + } + inline ContextInfo& operator=(ContextInfo&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ContextInfo& default_instance() { + return *internal_default_instance(); + } + static inline const ContextInfo* internal_default_instance() { + return reinterpret_cast<const ContextInfo*>( + &_ContextInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(ContextInfo& a, ContextInfo& b) { + a.Swap(&b); + } + inline void Swap(ContextInfo* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ContextInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ContextInfo* New() const final { + return CreateMaybeMessage<ContextInfo>(nullptr); + } + + ContextInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ContextInfo>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ContextInfo& from); + void MergeFrom(const ContextInfo& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ContextInfo* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.ContextInfo"; + } + protected: + explicit ContextInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kMentionedJidFieldNumber = 15, + kStanzaIdFieldNumber = 1, + kParticipantFieldNumber = 2, + kRemoteJidFieldNumber = 4, + kConversionSourceFieldNumber = 18, + kConversionDataFieldNumber = 19, + kEphemeralSharedSecretFieldNumber = 27, + kQuotedMessageFieldNumber = 3, + kQuotedAdFieldNumber = 23, + kPlaceholderKeyFieldNumber = 24, + kExternalAdReplyFieldNumber = 28, + kConversionDelaySecondsFieldNumber = 20, + kForwardingScoreFieldNumber = 21, + kIsForwardedFieldNumber = 22, + kExpirationFieldNumber = 25, + kEphemeralSettingTimestampFieldNumber = 26, + }; + // repeated string mentionedJid = 15; + int mentionedjid_size() const; + private: + int _internal_mentionedjid_size() const; + public: + void clear_mentionedjid(); + const std::string& mentionedjid(int index) const; + std::string* mutable_mentionedjid(int index); + void set_mentionedjid(int index, const std::string& value); + void set_mentionedjid(int index, std::string&& value); + void set_mentionedjid(int index, const char* value); + void set_mentionedjid(int index, const char* value, size_t size); + std::string* add_mentionedjid(); + void add_mentionedjid(const std::string& value); + void add_mentionedjid(std::string&& value); + void add_mentionedjid(const char* value); + void add_mentionedjid(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& mentionedjid() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_mentionedjid(); + private: + const std::string& _internal_mentionedjid(int index) const; + std::string* _internal_add_mentionedjid(); + public: + + // optional string stanzaId = 1; + bool has_stanzaid() const; + private: + bool _internal_has_stanzaid() const; + public: + void clear_stanzaid(); + const std::string& stanzaid() const; + void set_stanzaid(const std::string& value); + void set_stanzaid(std::string&& value); + void set_stanzaid(const char* value); + void set_stanzaid(const char* value, size_t size); + std::string* mutable_stanzaid(); + std::string* release_stanzaid(); + void set_allocated_stanzaid(std::string* stanzaid); + private: + const std::string& _internal_stanzaid() const; + void _internal_set_stanzaid(const std::string& value); + std::string* _internal_mutable_stanzaid(); + public: + + // optional string participant = 2; + bool has_participant() const; + private: + bool _internal_has_participant() const; + public: + void clear_participant(); + const std::string& participant() const; + void set_participant(const std::string& value); + void set_participant(std::string&& value); + void set_participant(const char* value); + void set_participant(const char* value, size_t size); + std::string* mutable_participant(); + std::string* release_participant(); + void set_allocated_participant(std::string* participant); + private: + const std::string& _internal_participant() const; + void _internal_set_participant(const std::string& value); + std::string* _internal_mutable_participant(); + public: + + // optional string remoteJid = 4; + bool has_remotejid() const; + private: + bool _internal_has_remotejid() const; + public: + void clear_remotejid(); + const std::string& remotejid() const; + void set_remotejid(const std::string& value); + void set_remotejid(std::string&& value); + void set_remotejid(const char* value); + void set_remotejid(const char* value, size_t size); + std::string* mutable_remotejid(); + std::string* release_remotejid(); + void set_allocated_remotejid(std::string* remotejid); + private: + const std::string& _internal_remotejid() const; + void _internal_set_remotejid(const std::string& value); + std::string* _internal_mutable_remotejid(); + public: + + // optional string conversionSource = 18; + bool has_conversionsource() const; + private: + bool _internal_has_conversionsource() const; + public: + void clear_conversionsource(); + const std::string& conversionsource() const; + void set_conversionsource(const std::string& value); + void set_conversionsource(std::string&& value); + void set_conversionsource(const char* value); + void set_conversionsource(const char* value, size_t size); + std::string* mutable_conversionsource(); + std::string* release_conversionsource(); + void set_allocated_conversionsource(std::string* conversionsource); + private: + const std::string& _internal_conversionsource() const; + void _internal_set_conversionsource(const std::string& value); + std::string* _internal_mutable_conversionsource(); + public: + + // optional bytes conversionData = 19; + bool has_conversiondata() const; + private: + bool _internal_has_conversiondata() const; + public: + void clear_conversiondata(); + const std::string& conversiondata() const; + void set_conversiondata(const std::string& value); + void set_conversiondata(std::string&& value); + void set_conversiondata(const char* value); + void set_conversiondata(const void* value, size_t size); + std::string* mutable_conversiondata(); + std::string* release_conversiondata(); + void set_allocated_conversiondata(std::string* conversiondata); + private: + const std::string& _internal_conversiondata() const; + void _internal_set_conversiondata(const std::string& value); + std::string* _internal_mutable_conversiondata(); + public: + + // optional bytes ephemeralSharedSecret = 27; + bool has_ephemeralsharedsecret() const; + private: + bool _internal_has_ephemeralsharedsecret() const; + public: + void clear_ephemeralsharedsecret(); + const std::string& ephemeralsharedsecret() const; + void set_ephemeralsharedsecret(const std::string& value); + void set_ephemeralsharedsecret(std::string&& value); + void set_ephemeralsharedsecret(const char* value); + void set_ephemeralsharedsecret(const void* value, size_t size); + std::string* mutable_ephemeralsharedsecret(); + std::string* release_ephemeralsharedsecret(); + void set_allocated_ephemeralsharedsecret(std::string* ephemeralsharedsecret); + private: + const std::string& _internal_ephemeralsharedsecret() const; + void _internal_set_ephemeralsharedsecret(const std::string& value); + std::string* _internal_mutable_ephemeralsharedsecret(); + public: + + // optional .proto.Message quotedMessage = 3; + bool has_quotedmessage() const; + private: + bool _internal_has_quotedmessage() const; + public: + void clear_quotedmessage(); + const ::proto::Message& quotedmessage() const; + ::proto::Message* release_quotedmessage(); + ::proto::Message* mutable_quotedmessage(); + void set_allocated_quotedmessage(::proto::Message* quotedmessage); + private: + const ::proto::Message& _internal_quotedmessage() const; + ::proto::Message* _internal_mutable_quotedmessage(); + public: + void unsafe_arena_set_allocated_quotedmessage( + ::proto::Message* quotedmessage); + ::proto::Message* unsafe_arena_release_quotedmessage(); + + // optional .proto.AdReplyInfo quotedAd = 23; + bool has_quotedad() const; + private: + bool _internal_has_quotedad() const; + public: + void clear_quotedad(); + const ::proto::AdReplyInfo& quotedad() const; + ::proto::AdReplyInfo* release_quotedad(); + ::proto::AdReplyInfo* mutable_quotedad(); + void set_allocated_quotedad(::proto::AdReplyInfo* quotedad); + private: + const ::proto::AdReplyInfo& _internal_quotedad() const; + ::proto::AdReplyInfo* _internal_mutable_quotedad(); + public: + void unsafe_arena_set_allocated_quotedad( + ::proto::AdReplyInfo* quotedad); + ::proto::AdReplyInfo* unsafe_arena_release_quotedad(); + + // optional .proto.MessageKey placeholderKey = 24; + bool has_placeholderkey() const; + private: + bool _internal_has_placeholderkey() const; + public: + void clear_placeholderkey(); + const ::proto::MessageKey& placeholderkey() const; + ::proto::MessageKey* release_placeholderkey(); + ::proto::MessageKey* mutable_placeholderkey(); + void set_allocated_placeholderkey(::proto::MessageKey* placeholderkey); + private: + const ::proto::MessageKey& _internal_placeholderkey() const; + ::proto::MessageKey* _internal_mutable_placeholderkey(); + public: + void unsafe_arena_set_allocated_placeholderkey( + ::proto::MessageKey* placeholderkey); + ::proto::MessageKey* unsafe_arena_release_placeholderkey(); + + // optional .proto.ExternalAdReplyInfo externalAdReply = 28; + bool has_externaladreply() const; + private: + bool _internal_has_externaladreply() const; + public: + void clear_externaladreply(); + const ::proto::ExternalAdReplyInfo& externaladreply() const; + ::proto::ExternalAdReplyInfo* release_externaladreply(); + ::proto::ExternalAdReplyInfo* mutable_externaladreply(); + void set_allocated_externaladreply(::proto::ExternalAdReplyInfo* externaladreply); + private: + const ::proto::ExternalAdReplyInfo& _internal_externaladreply() const; + ::proto::ExternalAdReplyInfo* _internal_mutable_externaladreply(); + public: + void unsafe_arena_set_allocated_externaladreply( + ::proto::ExternalAdReplyInfo* externaladreply); + ::proto::ExternalAdReplyInfo* unsafe_arena_release_externaladreply(); + + // optional uint32 conversionDelaySeconds = 20; + bool has_conversiondelayseconds() const; + private: + bool _internal_has_conversiondelayseconds() const; + public: + void clear_conversiondelayseconds(); + ::PROTOBUF_NAMESPACE_ID::uint32 conversiondelayseconds() const; + void set_conversiondelayseconds(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_conversiondelayseconds() const; + void _internal_set_conversiondelayseconds(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 forwardingScore = 21; + bool has_forwardingscore() const; + private: + bool _internal_has_forwardingscore() const; + public: + void clear_forwardingscore(); + ::PROTOBUF_NAMESPACE_ID::uint32 forwardingscore() const; + void set_forwardingscore(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_forwardingscore() const; + void _internal_set_forwardingscore(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional bool isForwarded = 22; + bool has_isforwarded() const; + private: + bool _internal_has_isforwarded() const; + public: + void clear_isforwarded(); + bool isforwarded() const; + void set_isforwarded(bool value); + private: + bool _internal_isforwarded() const; + void _internal_set_isforwarded(bool value); + public: + + // optional uint32 expiration = 25; + bool has_expiration() const; + private: + bool _internal_has_expiration() const; + public: + void clear_expiration(); + ::PROTOBUF_NAMESPACE_ID::uint32 expiration() const; + void set_expiration(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_expiration() const; + void _internal_set_expiration(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional int64 ephemeralSettingTimestamp = 26; + bool has_ephemeralsettingtimestamp() const; + private: + bool _internal_has_ephemeralsettingtimestamp() const; + public: + void clear_ephemeralsettingtimestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 ephemeralsettingtimestamp() const; + void set_ephemeralsettingtimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_ephemeralsettingtimestamp() const; + void _internal_set_ephemeralsettingtimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:proto.ContextInfo) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> mentionedjid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr stanzaid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr participant_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr remotejid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr conversionsource_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr conversiondata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ephemeralsharedsecret_; + ::proto::Message* quotedmessage_; + ::proto::AdReplyInfo* quotedad_; + ::proto::MessageKey* placeholderkey_; + ::proto::ExternalAdReplyInfo* externaladreply_; + ::PROTOBUF_NAMESPACE_ID::uint32 conversiondelayseconds_; + ::PROTOBUF_NAMESPACE_ID::uint32 forwardingscore_; + bool isforwarded_; + ::PROTOBUF_NAMESPACE_ID::uint32 expiration_; + ::PROTOBUF_NAMESPACE_ID::int64 ephemeralsettingtimestamp_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class SenderKeyDistributionMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.SenderKeyDistributionMessage) */ { + public: + inline SenderKeyDistributionMessage() : SenderKeyDistributionMessage(nullptr) {} + virtual ~SenderKeyDistributionMessage(); + explicit constexpr SenderKeyDistributionMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SenderKeyDistributionMessage(const SenderKeyDistributionMessage& from); + SenderKeyDistributionMessage(SenderKeyDistributionMessage&& from) noexcept + : SenderKeyDistributionMessage() { + *this = ::std::move(from); + } + + inline SenderKeyDistributionMessage& operator=(const SenderKeyDistributionMessage& from) { + CopyFrom(from); + return *this; + } + inline SenderKeyDistributionMessage& operator=(SenderKeyDistributionMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const SenderKeyDistributionMessage& default_instance() { + return *internal_default_instance(); + } + static inline const SenderKeyDistributionMessage* internal_default_instance() { + return reinterpret_cast<const SenderKeyDistributionMessage*>( + &_SenderKeyDistributionMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(SenderKeyDistributionMessage& a, SenderKeyDistributionMessage& b) { + a.Swap(&b); + } + inline void Swap(SenderKeyDistributionMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SenderKeyDistributionMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline SenderKeyDistributionMessage* New() const final { + return CreateMaybeMessage<SenderKeyDistributionMessage>(nullptr); + } + + SenderKeyDistributionMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<SenderKeyDistributionMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const SenderKeyDistributionMessage& from); + void MergeFrom(const SenderKeyDistributionMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SenderKeyDistributionMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.SenderKeyDistributionMessage"; + } + protected: + explicit SenderKeyDistributionMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kGroupIdFieldNumber = 1, + kAxolotlSenderKeyDistributionMessageFieldNumber = 2, + }; + // optional string groupId = 1; + bool has_groupid() const; + private: + bool _internal_has_groupid() const; + public: + void clear_groupid(); + const std::string& groupid() const; + void set_groupid(const std::string& value); + void set_groupid(std::string&& value); + void set_groupid(const char* value); + void set_groupid(const char* value, size_t size); + std::string* mutable_groupid(); + std::string* release_groupid(); + void set_allocated_groupid(std::string* groupid); + private: + const std::string& _internal_groupid() const; + void _internal_set_groupid(const std::string& value); + std::string* _internal_mutable_groupid(); + public: + + // optional bytes axolotlSenderKeyDistributionMessage = 2; + bool has_axolotlsenderkeydistributionmessage() const; + private: + bool _internal_has_axolotlsenderkeydistributionmessage() const; + public: + void clear_axolotlsenderkeydistributionmessage(); + const std::string& axolotlsenderkeydistributionmessage() const; + void set_axolotlsenderkeydistributionmessage(const std::string& value); + void set_axolotlsenderkeydistributionmessage(std::string&& value); + void set_axolotlsenderkeydistributionmessage(const char* value); + void set_axolotlsenderkeydistributionmessage(const void* value, size_t size); + std::string* mutable_axolotlsenderkeydistributionmessage(); + std::string* release_axolotlsenderkeydistributionmessage(); + void set_allocated_axolotlsenderkeydistributionmessage(std::string* axolotlsenderkeydistributionmessage); + private: + const std::string& _internal_axolotlsenderkeydistributionmessage() const; + void _internal_set_axolotlsenderkeydistributionmessage(const std::string& value); + std::string* _internal_mutable_axolotlsenderkeydistributionmessage(); + public: + + // @@protoc_insertion_point(class_scope:proto.SenderKeyDistributionMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr groupid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr axolotlsenderkeydistributionmessage_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class ImageMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ImageMessage) */ { + public: + inline ImageMessage() : ImageMessage(nullptr) {} + virtual ~ImageMessage(); + explicit constexpr ImageMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ImageMessage(const ImageMessage& from); + ImageMessage(ImageMessage&& from) noexcept + : ImageMessage() { + *this = ::std::move(from); + } + + inline ImageMessage& operator=(const ImageMessage& from) { + CopyFrom(from); + return *this; + } + inline ImageMessage& operator=(ImageMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ImageMessage& default_instance() { + return *internal_default_instance(); + } + static inline const ImageMessage* internal_default_instance() { + return reinterpret_cast<const ImageMessage*>( + &_ImageMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + friend void swap(ImageMessage& a, ImageMessage& b) { + a.Swap(&b); + } + inline void Swap(ImageMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ImageMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ImageMessage* New() const final { + return CreateMaybeMessage<ImageMessage>(nullptr); + } + + ImageMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ImageMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ImageMessage& from); + void MergeFrom(const ImageMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ImageMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.ImageMessage"; + } + protected: + explicit ImageMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kInteractiveAnnotationsFieldNumber = 10, + kScanLengthsFieldNumber = 22, + kUrlFieldNumber = 1, + kMimetypeFieldNumber = 2, + kCaptionFieldNumber = 3, + kFileSha256FieldNumber = 4, + kMediaKeyFieldNumber = 8, + kFileEncSha256FieldNumber = 9, + kDirectPathFieldNumber = 11, + kJpegThumbnailFieldNumber = 16, + kFirstScanSidecarFieldNumber = 18, + kScansSidecarFieldNumber = 21, + kMidQualityFileSha256FieldNumber = 23, + kMidQualityFileEncSha256FieldNumber = 24, + kThumbnailDirectPathFieldNumber = 26, + kThumbnailSha256FieldNumber = 27, + kThumbnailEncSha256FieldNumber = 28, + kContextInfoFieldNumber = 17, + kFileLengthFieldNumber = 5, + kHeightFieldNumber = 6, + kWidthFieldNumber = 7, + kMediaKeyTimestampFieldNumber = 12, + kFirstScanLengthFieldNumber = 19, + kExperimentGroupIdFieldNumber = 20, + kViewOnceFieldNumber = 25, + }; + // repeated .proto.InteractiveAnnotation interactiveAnnotations = 10; + int interactiveannotations_size() const; + private: + int _internal_interactiveannotations_size() const; + public: + void clear_interactiveannotations(); + ::proto::InteractiveAnnotation* mutable_interactiveannotations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::InteractiveAnnotation >* + mutable_interactiveannotations(); + private: + const ::proto::InteractiveAnnotation& _internal_interactiveannotations(int index) const; + ::proto::InteractiveAnnotation* _internal_add_interactiveannotations(); + public: + const ::proto::InteractiveAnnotation& interactiveannotations(int index) const; + ::proto::InteractiveAnnotation* add_interactiveannotations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::InteractiveAnnotation >& + interactiveannotations() const; + + // repeated uint32 scanLengths = 22; + int scanlengths_size() const; + private: + int _internal_scanlengths_size() const; + public: + void clear_scanlengths(); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_scanlengths(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& + _internal_scanlengths() const; + void _internal_add_scanlengths(::PROTOBUF_NAMESPACE_ID::uint32 value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* + _internal_mutable_scanlengths(); + public: + ::PROTOBUF_NAMESPACE_ID::uint32 scanlengths(int index) const; + void set_scanlengths(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value); + void add_scanlengths(::PROTOBUF_NAMESPACE_ID::uint32 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& + scanlengths() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* + mutable_scanlengths(); + + // optional string url = 1; + bool has_url() const; + private: + bool _internal_has_url() const; + public: + void clear_url(); + const std::string& url() const; + void set_url(const std::string& value); + void set_url(std::string&& value); + void set_url(const char* value); + void set_url(const char* value, size_t size); + std::string* mutable_url(); + std::string* release_url(); + void set_allocated_url(std::string* url); + private: + const std::string& _internal_url() const; + void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); + public: + + // optional string mimetype = 2; + bool has_mimetype() const; + private: + bool _internal_has_mimetype() const; + public: + void clear_mimetype(); + const std::string& mimetype() const; + void set_mimetype(const std::string& value); + void set_mimetype(std::string&& value); + void set_mimetype(const char* value); + void set_mimetype(const char* value, size_t size); + std::string* mutable_mimetype(); + std::string* release_mimetype(); + void set_allocated_mimetype(std::string* mimetype); + private: + const std::string& _internal_mimetype() const; + void _internal_set_mimetype(const std::string& value); + std::string* _internal_mutable_mimetype(); + public: + + // optional string caption = 3; + bool has_caption() const; + private: + bool _internal_has_caption() const; + public: + void clear_caption(); + const std::string& caption() const; + void set_caption(const std::string& value); + void set_caption(std::string&& value); + void set_caption(const char* value); + void set_caption(const char* value, size_t size); + std::string* mutable_caption(); + std::string* release_caption(); + void set_allocated_caption(std::string* caption); + private: + const std::string& _internal_caption() const; + void _internal_set_caption(const std::string& value); + std::string* _internal_mutable_caption(); + public: + + // optional bytes fileSha256 = 4; + bool has_filesha256() const; + private: + bool _internal_has_filesha256() const; + public: + void clear_filesha256(); + const std::string& filesha256() const; + void set_filesha256(const std::string& value); + void set_filesha256(std::string&& value); + void set_filesha256(const char* value); + void set_filesha256(const void* value, size_t size); + std::string* mutable_filesha256(); + std::string* release_filesha256(); + void set_allocated_filesha256(std::string* filesha256); + private: + const std::string& _internal_filesha256() const; + void _internal_set_filesha256(const std::string& value); + std::string* _internal_mutable_filesha256(); + public: + + // optional bytes mediaKey = 8; + bool has_mediakey() const; + private: + bool _internal_has_mediakey() const; + public: + void clear_mediakey(); + const std::string& mediakey() const; + void set_mediakey(const std::string& value); + void set_mediakey(std::string&& value); + void set_mediakey(const char* value); + void set_mediakey(const void* value, size_t size); + std::string* mutable_mediakey(); + std::string* release_mediakey(); + void set_allocated_mediakey(std::string* mediakey); + private: + const std::string& _internal_mediakey() const; + void _internal_set_mediakey(const std::string& value); + std::string* _internal_mutable_mediakey(); + public: + + // optional bytes fileEncSha256 = 9; + bool has_fileencsha256() const; + private: + bool _internal_has_fileencsha256() const; + public: + void clear_fileencsha256(); + const std::string& fileencsha256() const; + void set_fileencsha256(const std::string& value); + void set_fileencsha256(std::string&& value); + void set_fileencsha256(const char* value); + void set_fileencsha256(const void* value, size_t size); + std::string* mutable_fileencsha256(); + std::string* release_fileencsha256(); + void set_allocated_fileencsha256(std::string* fileencsha256); + private: + const std::string& _internal_fileencsha256() const; + void _internal_set_fileencsha256(const std::string& value); + std::string* _internal_mutable_fileencsha256(); + public: + + // optional string directPath = 11; + bool has_directpath() const; + private: + bool _internal_has_directpath() const; + public: + void clear_directpath(); + const std::string& directpath() const; + void set_directpath(const std::string& value); + void set_directpath(std::string&& value); + void set_directpath(const char* value); + void set_directpath(const char* value, size_t size); + std::string* mutable_directpath(); + std::string* release_directpath(); + void set_allocated_directpath(std::string* directpath); + private: + const std::string& _internal_directpath() const; + void _internal_set_directpath(const std::string& value); + std::string* _internal_mutable_directpath(); + public: + + // optional bytes jpegThumbnail = 16; + bool has_jpegthumbnail() const; + private: + bool _internal_has_jpegthumbnail() const; + public: + void clear_jpegthumbnail(); + const std::string& jpegthumbnail() const; + void set_jpegthumbnail(const std::string& value); + void set_jpegthumbnail(std::string&& value); + void set_jpegthumbnail(const char* value); + void set_jpegthumbnail(const void* value, size_t size); + std::string* mutable_jpegthumbnail(); + std::string* release_jpegthumbnail(); + void set_allocated_jpegthumbnail(std::string* jpegthumbnail); + private: + const std::string& _internal_jpegthumbnail() const; + void _internal_set_jpegthumbnail(const std::string& value); + std::string* _internal_mutable_jpegthumbnail(); + public: + + // optional bytes firstScanSidecar = 18; + bool has_firstscansidecar() const; + private: + bool _internal_has_firstscansidecar() const; + public: + void clear_firstscansidecar(); + const std::string& firstscansidecar() const; + void set_firstscansidecar(const std::string& value); + void set_firstscansidecar(std::string&& value); + void set_firstscansidecar(const char* value); + void set_firstscansidecar(const void* value, size_t size); + std::string* mutable_firstscansidecar(); + std::string* release_firstscansidecar(); + void set_allocated_firstscansidecar(std::string* firstscansidecar); + private: + const std::string& _internal_firstscansidecar() const; + void _internal_set_firstscansidecar(const std::string& value); + std::string* _internal_mutable_firstscansidecar(); + public: + + // optional bytes scansSidecar = 21; + bool has_scanssidecar() const; + private: + bool _internal_has_scanssidecar() const; + public: + void clear_scanssidecar(); + const std::string& scanssidecar() const; + void set_scanssidecar(const std::string& value); + void set_scanssidecar(std::string&& value); + void set_scanssidecar(const char* value); + void set_scanssidecar(const void* value, size_t size); + std::string* mutable_scanssidecar(); + std::string* release_scanssidecar(); + void set_allocated_scanssidecar(std::string* scanssidecar); + private: + const std::string& _internal_scanssidecar() const; + void _internal_set_scanssidecar(const std::string& value); + std::string* _internal_mutable_scanssidecar(); + public: + + // optional bytes midQualityFileSha256 = 23; + bool has_midqualityfilesha256() const; + private: + bool _internal_has_midqualityfilesha256() const; + public: + void clear_midqualityfilesha256(); + const std::string& midqualityfilesha256() const; + void set_midqualityfilesha256(const std::string& value); + void set_midqualityfilesha256(std::string&& value); + void set_midqualityfilesha256(const char* value); + void set_midqualityfilesha256(const void* value, size_t size); + std::string* mutable_midqualityfilesha256(); + std::string* release_midqualityfilesha256(); + void set_allocated_midqualityfilesha256(std::string* midqualityfilesha256); + private: + const std::string& _internal_midqualityfilesha256() const; + void _internal_set_midqualityfilesha256(const std::string& value); + std::string* _internal_mutable_midqualityfilesha256(); + public: + + // optional bytes midQualityFileEncSha256 = 24; + bool has_midqualityfileencsha256() const; + private: + bool _internal_has_midqualityfileencsha256() const; + public: + void clear_midqualityfileencsha256(); + const std::string& midqualityfileencsha256() const; + void set_midqualityfileencsha256(const std::string& value); + void set_midqualityfileencsha256(std::string&& value); + void set_midqualityfileencsha256(const char* value); + void set_midqualityfileencsha256(const void* value, size_t size); + std::string* mutable_midqualityfileencsha256(); + std::string* release_midqualityfileencsha256(); + void set_allocated_midqualityfileencsha256(std::string* midqualityfileencsha256); + private: + const std::string& _internal_midqualityfileencsha256() const; + void _internal_set_midqualityfileencsha256(const std::string& value); + std::string* _internal_mutable_midqualityfileencsha256(); + public: + + // optional string thumbnailDirectPath = 26; + bool has_thumbnaildirectpath() const; + private: + bool _internal_has_thumbnaildirectpath() const; + public: + void clear_thumbnaildirectpath(); + const std::string& thumbnaildirectpath() const; + void set_thumbnaildirectpath(const std::string& value); + void set_thumbnaildirectpath(std::string&& value); + void set_thumbnaildirectpath(const char* value); + void set_thumbnaildirectpath(const char* value, size_t size); + std::string* mutable_thumbnaildirectpath(); + std::string* release_thumbnaildirectpath(); + void set_allocated_thumbnaildirectpath(std::string* thumbnaildirectpath); + private: + const std::string& _internal_thumbnaildirectpath() const; + void _internal_set_thumbnaildirectpath(const std::string& value); + std::string* _internal_mutable_thumbnaildirectpath(); + public: + + // optional bytes thumbnailSha256 = 27; + bool has_thumbnailsha256() const; + private: + bool _internal_has_thumbnailsha256() const; + public: + void clear_thumbnailsha256(); + const std::string& thumbnailsha256() const; + void set_thumbnailsha256(const std::string& value); + void set_thumbnailsha256(std::string&& value); + void set_thumbnailsha256(const char* value); + void set_thumbnailsha256(const void* value, size_t size); + std::string* mutable_thumbnailsha256(); + std::string* release_thumbnailsha256(); + void set_allocated_thumbnailsha256(std::string* thumbnailsha256); + private: + const std::string& _internal_thumbnailsha256() const; + void _internal_set_thumbnailsha256(const std::string& value); + std::string* _internal_mutable_thumbnailsha256(); + public: + + // optional bytes thumbnailEncSha256 = 28; + bool has_thumbnailencsha256() const; + private: + bool _internal_has_thumbnailencsha256() const; + public: + void clear_thumbnailencsha256(); + const std::string& thumbnailencsha256() const; + void set_thumbnailencsha256(const std::string& value); + void set_thumbnailencsha256(std::string&& value); + void set_thumbnailencsha256(const char* value); + void set_thumbnailencsha256(const void* value, size_t size); + std::string* mutable_thumbnailencsha256(); + std::string* release_thumbnailencsha256(); + void set_allocated_thumbnailencsha256(std::string* thumbnailencsha256); + private: + const std::string& _internal_thumbnailencsha256() const; + void _internal_set_thumbnailencsha256(const std::string& value); + std::string* _internal_mutable_thumbnailencsha256(); + public: + + // optional .proto.ContextInfo contextInfo = 17; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // optional uint64 fileLength = 5; + bool has_filelength() const; + private: + bool _internal_has_filelength() const; + public: + void clear_filelength(); + ::PROTOBUF_NAMESPACE_ID::uint64 filelength() const; + void set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_filelength() const; + void _internal_set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // optional uint32 height = 6; + bool has_height() const; + private: + bool _internal_has_height() const; + public: + void clear_height(); + ::PROTOBUF_NAMESPACE_ID::uint32 height() const; + void set_height(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_height() const; + void _internal_set_height(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 width = 7; + bool has_width() const; + private: + bool _internal_has_width() const; + public: + void clear_width(); + ::PROTOBUF_NAMESPACE_ID::uint32 width() const; + void set_width(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_width() const; + void _internal_set_width(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional int64 mediaKeyTimestamp = 12; + bool has_mediakeytimestamp() const; + private: + bool _internal_has_mediakeytimestamp() const; + public: + void clear_mediakeytimestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 mediakeytimestamp() const; + void set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_mediakeytimestamp() const; + void _internal_set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // optional uint32 firstScanLength = 19; + bool has_firstscanlength() const; + private: + bool _internal_has_firstscanlength() const; + public: + void clear_firstscanlength(); + ::PROTOBUF_NAMESPACE_ID::uint32 firstscanlength() const; + void set_firstscanlength(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_firstscanlength() const; + void _internal_set_firstscanlength(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 experimentGroupId = 20; + bool has_experimentgroupid() const; + private: + bool _internal_has_experimentgroupid() const; + public: + void clear_experimentgroupid(); + ::PROTOBUF_NAMESPACE_ID::uint32 experimentgroupid() const; + void set_experimentgroupid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_experimentgroupid() const; + void _internal_set_experimentgroupid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional bool viewOnce = 25; + bool has_viewonce() const; + private: + bool _internal_has_viewonce() const; + public: + void clear_viewonce(); + bool viewonce() const; + void set_viewonce(bool value); + private: + bool _internal_viewonce() const; + void _internal_set_viewonce(bool value); + public: + + // @@protoc_insertion_point(class_scope:proto.ImageMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::InteractiveAnnotation > interactiveannotations_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 > scanlengths_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mimetype_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr caption_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filesha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mediakey_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fileencsha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr directpath_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr jpegthumbnail_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr firstscansidecar_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr scanssidecar_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr midqualityfilesha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr midqualityfileencsha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr thumbnaildirectpath_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr thumbnailsha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr thumbnailencsha256_; + ::proto::ContextInfo* contextinfo_; + ::PROTOBUF_NAMESPACE_ID::uint64 filelength_; + ::PROTOBUF_NAMESPACE_ID::uint32 height_; + ::PROTOBUF_NAMESPACE_ID::uint32 width_; + ::PROTOBUF_NAMESPACE_ID::int64 mediakeytimestamp_; + ::PROTOBUF_NAMESPACE_ID::uint32 firstscanlength_; + ::PROTOBUF_NAMESPACE_ID::uint32 experimentgroupid_; + bool viewonce_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class InvoiceMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.InvoiceMessage) */ { + public: + inline InvoiceMessage() : InvoiceMessage(nullptr) {} + virtual ~InvoiceMessage(); + explicit constexpr InvoiceMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + InvoiceMessage(const InvoiceMessage& from); + InvoiceMessage(InvoiceMessage&& from) noexcept + : InvoiceMessage() { + *this = ::std::move(from); + } + + inline InvoiceMessage& operator=(const InvoiceMessage& from) { + CopyFrom(from); + return *this; + } + inline InvoiceMessage& operator=(InvoiceMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const InvoiceMessage& default_instance() { + return *internal_default_instance(); + } + static inline const InvoiceMessage* internal_default_instance() { + return reinterpret_cast<const InvoiceMessage*>( + &_InvoiceMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + friend void swap(InvoiceMessage& a, InvoiceMessage& b) { + a.Swap(&b); + } + inline void Swap(InvoiceMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(InvoiceMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline InvoiceMessage* New() const final { + return CreateMaybeMessage<InvoiceMessage>(nullptr); + } + + InvoiceMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<InvoiceMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const InvoiceMessage& from); + void MergeFrom(const InvoiceMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(InvoiceMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.InvoiceMessage"; + } + protected: + explicit InvoiceMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + typedef InvoiceMessage_InvoiceMessageAttachmentType InvoiceMessageAttachmentType; + static constexpr InvoiceMessageAttachmentType IMAGE = + InvoiceMessage_InvoiceMessageAttachmentType_IMAGE; + static constexpr InvoiceMessageAttachmentType PDF = + InvoiceMessage_InvoiceMessageAttachmentType_PDF; + static inline bool InvoiceMessageAttachmentType_IsValid(int value) { + return InvoiceMessage_InvoiceMessageAttachmentType_IsValid(value); + } + static constexpr InvoiceMessageAttachmentType InvoiceMessageAttachmentType_MIN = + InvoiceMessage_InvoiceMessageAttachmentType_InvoiceMessageAttachmentType_MIN; + static constexpr InvoiceMessageAttachmentType InvoiceMessageAttachmentType_MAX = + InvoiceMessage_InvoiceMessageAttachmentType_InvoiceMessageAttachmentType_MAX; + static constexpr int InvoiceMessageAttachmentType_ARRAYSIZE = + InvoiceMessage_InvoiceMessageAttachmentType_InvoiceMessageAttachmentType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + InvoiceMessageAttachmentType_descriptor() { + return InvoiceMessage_InvoiceMessageAttachmentType_descriptor(); + } + template<typename T> + static inline const std::string& InvoiceMessageAttachmentType_Name(T enum_t_value) { + static_assert(::std::is_same<T, InvoiceMessageAttachmentType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function InvoiceMessageAttachmentType_Name."); + return InvoiceMessage_InvoiceMessageAttachmentType_Name(enum_t_value); + } + static inline bool InvoiceMessageAttachmentType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + InvoiceMessageAttachmentType* value) { + return InvoiceMessage_InvoiceMessageAttachmentType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kNoteFieldNumber = 1, + kTokenFieldNumber = 2, + kAttachmentMimetypeFieldNumber = 4, + kAttachmentMediaKeyFieldNumber = 5, + kAttachmentFileSha256FieldNumber = 7, + kAttachmentFileEncSha256FieldNumber = 8, + kAttachmentDirectPathFieldNumber = 9, + kAttachmentJpegThumbnailFieldNumber = 10, + kAttachmentMediaKeyTimestampFieldNumber = 6, + kAttachmentTypeFieldNumber = 3, + }; + // optional string note = 1; + bool has_note() const; + private: + bool _internal_has_note() const; + public: + void clear_note(); + const std::string& note() const; + void set_note(const std::string& value); + void set_note(std::string&& value); + void set_note(const char* value); + void set_note(const char* value, size_t size); + std::string* mutable_note(); + std::string* release_note(); + void set_allocated_note(std::string* note); + private: + const std::string& _internal_note() const; + void _internal_set_note(const std::string& value); + std::string* _internal_mutable_note(); + public: + + // optional string token = 2; + bool has_token() const; + private: + bool _internal_has_token() const; + public: + void clear_token(); + const std::string& token() const; + void set_token(const std::string& value); + void set_token(std::string&& value); + void set_token(const char* value); + void set_token(const char* value, size_t size); + std::string* mutable_token(); + std::string* release_token(); + void set_allocated_token(std::string* token); + private: + const std::string& _internal_token() const; + void _internal_set_token(const std::string& value); + std::string* _internal_mutable_token(); + public: + + // optional string attachmentMimetype = 4; + bool has_attachmentmimetype() const; + private: + bool _internal_has_attachmentmimetype() const; + public: + void clear_attachmentmimetype(); + const std::string& attachmentmimetype() const; + void set_attachmentmimetype(const std::string& value); + void set_attachmentmimetype(std::string&& value); + void set_attachmentmimetype(const char* value); + void set_attachmentmimetype(const char* value, size_t size); + std::string* mutable_attachmentmimetype(); + std::string* release_attachmentmimetype(); + void set_allocated_attachmentmimetype(std::string* attachmentmimetype); + private: + const std::string& _internal_attachmentmimetype() const; + void _internal_set_attachmentmimetype(const std::string& value); + std::string* _internal_mutable_attachmentmimetype(); + public: + + // optional bytes attachmentMediaKey = 5; + bool has_attachmentmediakey() const; + private: + bool _internal_has_attachmentmediakey() const; + public: + void clear_attachmentmediakey(); + const std::string& attachmentmediakey() const; + void set_attachmentmediakey(const std::string& value); + void set_attachmentmediakey(std::string&& value); + void set_attachmentmediakey(const char* value); + void set_attachmentmediakey(const void* value, size_t size); + std::string* mutable_attachmentmediakey(); + std::string* release_attachmentmediakey(); + void set_allocated_attachmentmediakey(std::string* attachmentmediakey); + private: + const std::string& _internal_attachmentmediakey() const; + void _internal_set_attachmentmediakey(const std::string& value); + std::string* _internal_mutable_attachmentmediakey(); + public: + + // optional bytes attachmentFileSha256 = 7; + bool has_attachmentfilesha256() const; + private: + bool _internal_has_attachmentfilesha256() const; + public: + void clear_attachmentfilesha256(); + const std::string& attachmentfilesha256() const; + void set_attachmentfilesha256(const std::string& value); + void set_attachmentfilesha256(std::string&& value); + void set_attachmentfilesha256(const char* value); + void set_attachmentfilesha256(const void* value, size_t size); + std::string* mutable_attachmentfilesha256(); + std::string* release_attachmentfilesha256(); + void set_allocated_attachmentfilesha256(std::string* attachmentfilesha256); + private: + const std::string& _internal_attachmentfilesha256() const; + void _internal_set_attachmentfilesha256(const std::string& value); + std::string* _internal_mutable_attachmentfilesha256(); + public: + + // optional bytes attachmentFileEncSha256 = 8; + bool has_attachmentfileencsha256() const; + private: + bool _internal_has_attachmentfileencsha256() const; + public: + void clear_attachmentfileencsha256(); + const std::string& attachmentfileencsha256() const; + void set_attachmentfileencsha256(const std::string& value); + void set_attachmentfileencsha256(std::string&& value); + void set_attachmentfileencsha256(const char* value); + void set_attachmentfileencsha256(const void* value, size_t size); + std::string* mutable_attachmentfileencsha256(); + std::string* release_attachmentfileencsha256(); + void set_allocated_attachmentfileencsha256(std::string* attachmentfileencsha256); + private: + const std::string& _internal_attachmentfileencsha256() const; + void _internal_set_attachmentfileencsha256(const std::string& value); + std::string* _internal_mutable_attachmentfileencsha256(); + public: + + // optional string attachmentDirectPath = 9; + bool has_attachmentdirectpath() const; + private: + bool _internal_has_attachmentdirectpath() const; + public: + void clear_attachmentdirectpath(); + const std::string& attachmentdirectpath() const; + void set_attachmentdirectpath(const std::string& value); + void set_attachmentdirectpath(std::string&& value); + void set_attachmentdirectpath(const char* value); + void set_attachmentdirectpath(const char* value, size_t size); + std::string* mutable_attachmentdirectpath(); + std::string* release_attachmentdirectpath(); + void set_allocated_attachmentdirectpath(std::string* attachmentdirectpath); + private: + const std::string& _internal_attachmentdirectpath() const; + void _internal_set_attachmentdirectpath(const std::string& value); + std::string* _internal_mutable_attachmentdirectpath(); + public: + + // optional bytes attachmentJpegThumbnail = 10; + bool has_attachmentjpegthumbnail() const; + private: + bool _internal_has_attachmentjpegthumbnail() const; + public: + void clear_attachmentjpegthumbnail(); + const std::string& attachmentjpegthumbnail() const; + void set_attachmentjpegthumbnail(const std::string& value); + void set_attachmentjpegthumbnail(std::string&& value); + void set_attachmentjpegthumbnail(const char* value); + void set_attachmentjpegthumbnail(const void* value, size_t size); + std::string* mutable_attachmentjpegthumbnail(); + std::string* release_attachmentjpegthumbnail(); + void set_allocated_attachmentjpegthumbnail(std::string* attachmentjpegthumbnail); + private: + const std::string& _internal_attachmentjpegthumbnail() const; + void _internal_set_attachmentjpegthumbnail(const std::string& value); + std::string* _internal_mutable_attachmentjpegthumbnail(); + public: + + // optional int64 attachmentMediaKeyTimestamp = 6; + bool has_attachmentmediakeytimestamp() const; + private: + bool _internal_has_attachmentmediakeytimestamp() const; + public: + void clear_attachmentmediakeytimestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 attachmentmediakeytimestamp() const; + void set_attachmentmediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_attachmentmediakeytimestamp() const; + void _internal_set_attachmentmediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // optional .proto.InvoiceMessage.InvoiceMessageAttachmentType attachmentType = 3; + bool has_attachmenttype() const; + private: + bool _internal_has_attachmenttype() const; + public: + void clear_attachmenttype(); + ::proto::InvoiceMessage_InvoiceMessageAttachmentType attachmenttype() const; + void set_attachmenttype(::proto::InvoiceMessage_InvoiceMessageAttachmentType value); + private: + ::proto::InvoiceMessage_InvoiceMessageAttachmentType _internal_attachmenttype() const; + void _internal_set_attachmenttype(::proto::InvoiceMessage_InvoiceMessageAttachmentType value); + public: + + // @@protoc_insertion_point(class_scope:proto.InvoiceMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr note_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr token_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr attachmentmimetype_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr attachmentmediakey_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr attachmentfilesha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr attachmentfileencsha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr attachmentdirectpath_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr attachmentjpegthumbnail_; + ::PROTOBUF_NAMESPACE_ID::int64 attachmentmediakeytimestamp_; + int attachmenttype_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class ContactMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ContactMessage) */ { + public: + inline ContactMessage() : ContactMessage(nullptr) {} + virtual ~ContactMessage(); + explicit constexpr ContactMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ContactMessage(const ContactMessage& from); + ContactMessage(ContactMessage&& from) noexcept + : ContactMessage() { + *this = ::std::move(from); + } + + inline ContactMessage& operator=(const ContactMessage& from) { + CopyFrom(from); + return *this; + } + inline ContactMessage& operator=(ContactMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ContactMessage& default_instance() { + return *internal_default_instance(); + } + static inline const ContactMessage* internal_default_instance() { + return reinterpret_cast<const ContactMessage*>( + &_ContactMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 20; + + friend void swap(ContactMessage& a, ContactMessage& b) { + a.Swap(&b); + } + inline void Swap(ContactMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ContactMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ContactMessage* New() const final { + return CreateMaybeMessage<ContactMessage>(nullptr); + } + + ContactMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ContactMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ContactMessage& from); + void MergeFrom(const ContactMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ContactMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.ContactMessage"; + } + protected: + explicit ContactMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDisplayNameFieldNumber = 1, + kVcardFieldNumber = 16, + kContextInfoFieldNumber = 17, + }; + // optional string displayName = 1; + bool has_displayname() const; + private: + bool _internal_has_displayname() const; + public: + void clear_displayname(); + const std::string& displayname() const; + void set_displayname(const std::string& value); + void set_displayname(std::string&& value); + void set_displayname(const char* value); + void set_displayname(const char* value, size_t size); + std::string* mutable_displayname(); + std::string* release_displayname(); + void set_allocated_displayname(std::string* displayname); + private: + const std::string& _internal_displayname() const; + void _internal_set_displayname(const std::string& value); + std::string* _internal_mutable_displayname(); + public: + + // optional string vcard = 16; + bool has_vcard() const; + private: + bool _internal_has_vcard() const; + public: + void clear_vcard(); + const std::string& vcard() const; + void set_vcard(const std::string& value); + void set_vcard(std::string&& value); + void set_vcard(const char* value); + void set_vcard(const char* value, size_t size); + std::string* mutable_vcard(); + std::string* release_vcard(); + void set_allocated_vcard(std::string* vcard); + private: + const std::string& _internal_vcard() const; + void _internal_set_vcard(const std::string& value); + std::string* _internal_mutable_vcard(); + public: + + // optional .proto.ContextInfo contextInfo = 17; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // @@protoc_insertion_point(class_scope:proto.ContactMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr displayname_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vcard_; + ::proto::ContextInfo* contextinfo_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class LocationMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.LocationMessage) */ { + public: + inline LocationMessage() : LocationMessage(nullptr) {} + virtual ~LocationMessage(); + explicit constexpr LocationMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + LocationMessage(const LocationMessage& from); + LocationMessage(LocationMessage&& from) noexcept + : LocationMessage() { + *this = ::std::move(from); + } + + inline LocationMessage& operator=(const LocationMessage& from) { + CopyFrom(from); + return *this; + } + inline LocationMessage& operator=(LocationMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const LocationMessage& default_instance() { + return *internal_default_instance(); + } + static inline const LocationMessage* internal_default_instance() { + return reinterpret_cast<const LocationMessage*>( + &_LocationMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + friend void swap(LocationMessage& a, LocationMessage& b) { + a.Swap(&b); + } + inline void Swap(LocationMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(LocationMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline LocationMessage* New() const final { + return CreateMaybeMessage<LocationMessage>(nullptr); + } + + LocationMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<LocationMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const LocationMessage& from); + void MergeFrom(const LocationMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LocationMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.LocationMessage"; + } + protected: + explicit LocationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNameFieldNumber = 3, + kAddressFieldNumber = 4, + kUrlFieldNumber = 5, + kCommentFieldNumber = 11, + kJpegThumbnailFieldNumber = 16, + kContextInfoFieldNumber = 17, + kDegreesLatitudeFieldNumber = 1, + kDegreesLongitudeFieldNumber = 2, + kIsLiveFieldNumber = 6, + kAccuracyInMetersFieldNumber = 7, + kSpeedInMpsFieldNumber = 8, + kDegreesClockwiseFromMagneticNorthFieldNumber = 9, + }; + // optional string name = 3; + bool has_name() const; + private: + bool _internal_has_name() const; + public: + void clear_name(); + const std::string& name() const; + void set_name(const std::string& value); + void set_name(std::string&& value); + void set_name(const char* value); + void set_name(const char* value, size_t size); + std::string* mutable_name(); + std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // optional string address = 4; + bool has_address() const; + private: + bool _internal_has_address() const; + public: + void clear_address(); + const std::string& address() const; + void set_address(const std::string& value); + void set_address(std::string&& value); + void set_address(const char* value); + void set_address(const char* value, size_t size); + std::string* mutable_address(); + std::string* release_address(); + void set_allocated_address(std::string* address); + private: + const std::string& _internal_address() const; + void _internal_set_address(const std::string& value); + std::string* _internal_mutable_address(); + public: + + // optional string url = 5; + bool has_url() const; + private: + bool _internal_has_url() const; + public: + void clear_url(); + const std::string& url() const; + void set_url(const std::string& value); + void set_url(std::string&& value); + void set_url(const char* value); + void set_url(const char* value, size_t size); + std::string* mutable_url(); + std::string* release_url(); + void set_allocated_url(std::string* url); + private: + const std::string& _internal_url() const; + void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); + public: + + // optional string comment = 11; + bool has_comment() const; + private: + bool _internal_has_comment() const; + public: + void clear_comment(); + const std::string& comment() const; + void set_comment(const std::string& value); + void set_comment(std::string&& value); + void set_comment(const char* value); + void set_comment(const char* value, size_t size); + std::string* mutable_comment(); + std::string* release_comment(); + void set_allocated_comment(std::string* comment); + private: + const std::string& _internal_comment() const; + void _internal_set_comment(const std::string& value); + std::string* _internal_mutable_comment(); + public: + + // optional bytes jpegThumbnail = 16; + bool has_jpegthumbnail() const; + private: + bool _internal_has_jpegthumbnail() const; + public: + void clear_jpegthumbnail(); + const std::string& jpegthumbnail() const; + void set_jpegthumbnail(const std::string& value); + void set_jpegthumbnail(std::string&& value); + void set_jpegthumbnail(const char* value); + void set_jpegthumbnail(const void* value, size_t size); + std::string* mutable_jpegthumbnail(); + std::string* release_jpegthumbnail(); + void set_allocated_jpegthumbnail(std::string* jpegthumbnail); + private: + const std::string& _internal_jpegthumbnail() const; + void _internal_set_jpegthumbnail(const std::string& value); + std::string* _internal_mutable_jpegthumbnail(); + public: + + // optional .proto.ContextInfo contextInfo = 17; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // optional double degreesLatitude = 1; + bool has_degreeslatitude() const; + private: + bool _internal_has_degreeslatitude() const; + public: + void clear_degreeslatitude(); + double degreeslatitude() const; + void set_degreeslatitude(double value); + private: + double _internal_degreeslatitude() const; + void _internal_set_degreeslatitude(double value); + public: + + // optional double degreesLongitude = 2; + bool has_degreeslongitude() const; + private: + bool _internal_has_degreeslongitude() const; + public: + void clear_degreeslongitude(); + double degreeslongitude() const; + void set_degreeslongitude(double value); + private: + double _internal_degreeslongitude() const; + void _internal_set_degreeslongitude(double value); + public: + + // optional bool isLive = 6; + bool has_islive() const; + private: + bool _internal_has_islive() const; + public: + void clear_islive(); + bool islive() const; + void set_islive(bool value); + private: + bool _internal_islive() const; + void _internal_set_islive(bool value); + public: + + // optional uint32 accuracyInMeters = 7; + bool has_accuracyinmeters() const; + private: + bool _internal_has_accuracyinmeters() const; + public: + void clear_accuracyinmeters(); + ::PROTOBUF_NAMESPACE_ID::uint32 accuracyinmeters() const; + void set_accuracyinmeters(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_accuracyinmeters() const; + void _internal_set_accuracyinmeters(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional float speedInMps = 8; + bool has_speedinmps() const; + private: + bool _internal_has_speedinmps() const; + public: + void clear_speedinmps(); + float speedinmps() const; + void set_speedinmps(float value); + private: + float _internal_speedinmps() const; + void _internal_set_speedinmps(float value); + public: + + // optional uint32 degreesClockwiseFromMagneticNorth = 9; + bool has_degreesclockwisefrommagneticnorth() const; + private: + bool _internal_has_degreesclockwisefrommagneticnorth() const; + public: + void clear_degreesclockwisefrommagneticnorth(); + ::PROTOBUF_NAMESPACE_ID::uint32 degreesclockwisefrommagneticnorth() const; + void set_degreesclockwisefrommagneticnorth(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_degreesclockwisefrommagneticnorth() const; + void _internal_set_degreesclockwisefrommagneticnorth(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // @@protoc_insertion_point(class_scope:proto.LocationMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr address_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr jpegthumbnail_; + ::proto::ContextInfo* contextinfo_; + double degreeslatitude_; + double degreeslongitude_; + bool islive_; + ::PROTOBUF_NAMESPACE_ID::uint32 accuracyinmeters_; + float speedinmps_; + ::PROTOBUF_NAMESPACE_ID::uint32 degreesclockwisefrommagneticnorth_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class ExtendedTextMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ExtendedTextMessage) */ { + public: + inline ExtendedTextMessage() : ExtendedTextMessage(nullptr) {} + virtual ~ExtendedTextMessage(); + explicit constexpr ExtendedTextMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ExtendedTextMessage(const ExtendedTextMessage& from); + ExtendedTextMessage(ExtendedTextMessage&& from) noexcept + : ExtendedTextMessage() { + *this = ::std::move(from); + } + + inline ExtendedTextMessage& operator=(const ExtendedTextMessage& from) { + CopyFrom(from); + return *this; + } + inline ExtendedTextMessage& operator=(ExtendedTextMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ExtendedTextMessage& default_instance() { + return *internal_default_instance(); + } + static inline const ExtendedTextMessage* internal_default_instance() { + return reinterpret_cast<const ExtendedTextMessage*>( + &_ExtendedTextMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + friend void swap(ExtendedTextMessage& a, ExtendedTextMessage& b) { + a.Swap(&b); + } + inline void Swap(ExtendedTextMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ExtendedTextMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ExtendedTextMessage* New() const final { + return CreateMaybeMessage<ExtendedTextMessage>(nullptr); + } + + ExtendedTextMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ExtendedTextMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ExtendedTextMessage& from); + void MergeFrom(const ExtendedTextMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ExtendedTextMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.ExtendedTextMessage"; + } + protected: + explicit ExtendedTextMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + typedef ExtendedTextMessage_ExtendedTextMessageFontType ExtendedTextMessageFontType; + static constexpr ExtendedTextMessageFontType SANS_SERIF = + ExtendedTextMessage_ExtendedTextMessageFontType_SANS_SERIF; + static constexpr ExtendedTextMessageFontType SERIF = + ExtendedTextMessage_ExtendedTextMessageFontType_SERIF; + static constexpr ExtendedTextMessageFontType NORICAN_REGULAR = + ExtendedTextMessage_ExtendedTextMessageFontType_NORICAN_REGULAR; + static constexpr ExtendedTextMessageFontType BRYNDAN_WRITE = + ExtendedTextMessage_ExtendedTextMessageFontType_BRYNDAN_WRITE; + static constexpr ExtendedTextMessageFontType BEBASNEUE_REGULAR = + ExtendedTextMessage_ExtendedTextMessageFontType_BEBASNEUE_REGULAR; + static constexpr ExtendedTextMessageFontType OSWALD_HEAVY = + ExtendedTextMessage_ExtendedTextMessageFontType_OSWALD_HEAVY; + static inline bool ExtendedTextMessageFontType_IsValid(int value) { + return ExtendedTextMessage_ExtendedTextMessageFontType_IsValid(value); + } + static constexpr ExtendedTextMessageFontType ExtendedTextMessageFontType_MIN = + ExtendedTextMessage_ExtendedTextMessageFontType_ExtendedTextMessageFontType_MIN; + static constexpr ExtendedTextMessageFontType ExtendedTextMessageFontType_MAX = + ExtendedTextMessage_ExtendedTextMessageFontType_ExtendedTextMessageFontType_MAX; + static constexpr int ExtendedTextMessageFontType_ARRAYSIZE = + ExtendedTextMessage_ExtendedTextMessageFontType_ExtendedTextMessageFontType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + ExtendedTextMessageFontType_descriptor() { + return ExtendedTextMessage_ExtendedTextMessageFontType_descriptor(); + } + template<typename T> + static inline const std::string& ExtendedTextMessageFontType_Name(T enum_t_value) { + static_assert(::std::is_same<T, ExtendedTextMessageFontType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function ExtendedTextMessageFontType_Name."); + return ExtendedTextMessage_ExtendedTextMessageFontType_Name(enum_t_value); + } + static inline bool ExtendedTextMessageFontType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + ExtendedTextMessageFontType* value) { + return ExtendedTextMessage_ExtendedTextMessageFontType_Parse(name, value); + } + + typedef ExtendedTextMessage_ExtendedTextMessagePreviewType ExtendedTextMessagePreviewType; + static constexpr ExtendedTextMessagePreviewType NONE = + ExtendedTextMessage_ExtendedTextMessagePreviewType_NONE; + static constexpr ExtendedTextMessagePreviewType VIDEO = + ExtendedTextMessage_ExtendedTextMessagePreviewType_VIDEO; + static inline bool ExtendedTextMessagePreviewType_IsValid(int value) { + return ExtendedTextMessage_ExtendedTextMessagePreviewType_IsValid(value); + } + static constexpr ExtendedTextMessagePreviewType ExtendedTextMessagePreviewType_MIN = + ExtendedTextMessage_ExtendedTextMessagePreviewType_ExtendedTextMessagePreviewType_MIN; + static constexpr ExtendedTextMessagePreviewType ExtendedTextMessagePreviewType_MAX = + ExtendedTextMessage_ExtendedTextMessagePreviewType_ExtendedTextMessagePreviewType_MAX; + static constexpr int ExtendedTextMessagePreviewType_ARRAYSIZE = + ExtendedTextMessage_ExtendedTextMessagePreviewType_ExtendedTextMessagePreviewType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + ExtendedTextMessagePreviewType_descriptor() { + return ExtendedTextMessage_ExtendedTextMessagePreviewType_descriptor(); + } + template<typename T> + static inline const std::string& ExtendedTextMessagePreviewType_Name(T enum_t_value) { + static_assert(::std::is_same<T, ExtendedTextMessagePreviewType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function ExtendedTextMessagePreviewType_Name."); + return ExtendedTextMessage_ExtendedTextMessagePreviewType_Name(enum_t_value); + } + static inline bool ExtendedTextMessagePreviewType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + ExtendedTextMessagePreviewType* value) { + return ExtendedTextMessage_ExtendedTextMessagePreviewType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kTextFieldNumber = 1, + kMatchedTextFieldNumber = 2, + kCanonicalUrlFieldNumber = 4, + kDescriptionFieldNumber = 5, + kTitleFieldNumber = 6, + kJpegThumbnailFieldNumber = 16, + kContextInfoFieldNumber = 17, + kTextArgbFieldNumber = 7, + kBackgroundArgbFieldNumber = 8, + kFontFieldNumber = 9, + kPreviewTypeFieldNumber = 10, + kDoNotPlayInlineFieldNumber = 18, + }; + // optional string text = 1; + bool has_text() const; + private: + bool _internal_has_text() const; + public: + void clear_text(); + const std::string& text() const; + void set_text(const std::string& value); + void set_text(std::string&& value); + void set_text(const char* value); + void set_text(const char* value, size_t size); + std::string* mutable_text(); + std::string* release_text(); + void set_allocated_text(std::string* text); + private: + const std::string& _internal_text() const; + void _internal_set_text(const std::string& value); + std::string* _internal_mutable_text(); + public: + + // optional string matchedText = 2; + bool has_matchedtext() const; + private: + bool _internal_has_matchedtext() const; + public: + void clear_matchedtext(); + const std::string& matchedtext() const; + void set_matchedtext(const std::string& value); + void set_matchedtext(std::string&& value); + void set_matchedtext(const char* value); + void set_matchedtext(const char* value, size_t size); + std::string* mutable_matchedtext(); + std::string* release_matchedtext(); + void set_allocated_matchedtext(std::string* matchedtext); + private: + const std::string& _internal_matchedtext() const; + void _internal_set_matchedtext(const std::string& value); + std::string* _internal_mutable_matchedtext(); + public: + + // optional string canonicalUrl = 4; + bool has_canonicalurl() const; + private: + bool _internal_has_canonicalurl() const; + public: + void clear_canonicalurl(); + const std::string& canonicalurl() const; + void set_canonicalurl(const std::string& value); + void set_canonicalurl(std::string&& value); + void set_canonicalurl(const char* value); + void set_canonicalurl(const char* value, size_t size); + std::string* mutable_canonicalurl(); + std::string* release_canonicalurl(); + void set_allocated_canonicalurl(std::string* canonicalurl); + private: + const std::string& _internal_canonicalurl() const; + void _internal_set_canonicalurl(const std::string& value); + std::string* _internal_mutable_canonicalurl(); + public: + + // optional string description = 5; + bool has_description() const; + private: + bool _internal_has_description() const; + public: + void clear_description(); + const std::string& description() const; + void set_description(const std::string& value); + void set_description(std::string&& value); + void set_description(const char* value); + void set_description(const char* value, size_t size); + std::string* mutable_description(); + std::string* release_description(); + void set_allocated_description(std::string* description); + private: + const std::string& _internal_description() const; + void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); + public: + + // optional string title = 6; + bool has_title() const; + private: + bool _internal_has_title() const; + public: + void clear_title(); + const std::string& title() const; + void set_title(const std::string& value); + void set_title(std::string&& value); + void set_title(const char* value); + void set_title(const char* value, size_t size); + std::string* mutable_title(); + std::string* release_title(); + void set_allocated_title(std::string* title); + private: + const std::string& _internal_title() const; + void _internal_set_title(const std::string& value); + std::string* _internal_mutable_title(); + public: + + // optional bytes jpegThumbnail = 16; + bool has_jpegthumbnail() const; + private: + bool _internal_has_jpegthumbnail() const; + public: + void clear_jpegthumbnail(); + const std::string& jpegthumbnail() const; + void set_jpegthumbnail(const std::string& value); + void set_jpegthumbnail(std::string&& value); + void set_jpegthumbnail(const char* value); + void set_jpegthumbnail(const void* value, size_t size); + std::string* mutable_jpegthumbnail(); + std::string* release_jpegthumbnail(); + void set_allocated_jpegthumbnail(std::string* jpegthumbnail); + private: + const std::string& _internal_jpegthumbnail() const; + void _internal_set_jpegthumbnail(const std::string& value); + std::string* _internal_mutable_jpegthumbnail(); + public: + + // optional .proto.ContextInfo contextInfo = 17; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // optional fixed32 textArgb = 7; + bool has_textargb() const; + private: + bool _internal_has_textargb() const; + public: + void clear_textargb(); + ::PROTOBUF_NAMESPACE_ID::uint32 textargb() const; + void set_textargb(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_textargb() const; + void _internal_set_textargb(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional fixed32 backgroundArgb = 8; + bool has_backgroundargb() const; + private: + bool _internal_has_backgroundargb() const; + public: + void clear_backgroundargb(); + ::PROTOBUF_NAMESPACE_ID::uint32 backgroundargb() const; + void set_backgroundargb(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_backgroundargb() const; + void _internal_set_backgroundargb(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional .proto.ExtendedTextMessage.ExtendedTextMessageFontType font = 9; + bool has_font() const; + private: + bool _internal_has_font() const; + public: + void clear_font(); + ::proto::ExtendedTextMessage_ExtendedTextMessageFontType font() const; + void set_font(::proto::ExtendedTextMessage_ExtendedTextMessageFontType value); + private: + ::proto::ExtendedTextMessage_ExtendedTextMessageFontType _internal_font() const; + void _internal_set_font(::proto::ExtendedTextMessage_ExtendedTextMessageFontType value); + public: + + // optional .proto.ExtendedTextMessage.ExtendedTextMessagePreviewType previewType = 10; + bool has_previewtype() const; + private: + bool _internal_has_previewtype() const; + public: + void clear_previewtype(); + ::proto::ExtendedTextMessage_ExtendedTextMessagePreviewType previewtype() const; + void set_previewtype(::proto::ExtendedTextMessage_ExtendedTextMessagePreviewType value); + private: + ::proto::ExtendedTextMessage_ExtendedTextMessagePreviewType _internal_previewtype() const; + void _internal_set_previewtype(::proto::ExtendedTextMessage_ExtendedTextMessagePreviewType value); + public: + + // optional bool doNotPlayInline = 18; + bool has_donotplayinline() const; + private: + bool _internal_has_donotplayinline() const; + public: + void clear_donotplayinline(); + bool donotplayinline() const; + void set_donotplayinline(bool value); + private: + bool _internal_donotplayinline() const; + void _internal_set_donotplayinline(bool value); + public: + + // @@protoc_insertion_point(class_scope:proto.ExtendedTextMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr text_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr matchedtext_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr canonicalurl_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr title_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr jpegthumbnail_; + ::proto::ContextInfo* contextinfo_; + ::PROTOBUF_NAMESPACE_ID::uint32 textargb_; + ::PROTOBUF_NAMESPACE_ID::uint32 backgroundargb_; + int font_; + int previewtype_; + bool donotplayinline_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class DocumentMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.DocumentMessage) */ { + public: + inline DocumentMessage() : DocumentMessage(nullptr) {} + virtual ~DocumentMessage(); + explicit constexpr DocumentMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DocumentMessage(const DocumentMessage& from); + DocumentMessage(DocumentMessage&& from) noexcept + : DocumentMessage() { + *this = ::std::move(from); + } + + inline DocumentMessage& operator=(const DocumentMessage& from) { + CopyFrom(from); + return *this; + } + inline DocumentMessage& operator=(DocumentMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const DocumentMessage& default_instance() { + return *internal_default_instance(); + } + static inline const DocumentMessage* internal_default_instance() { + return reinterpret_cast<const DocumentMessage*>( + &_DocumentMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 23; + + friend void swap(DocumentMessage& a, DocumentMessage& b) { + a.Swap(&b); + } + inline void Swap(DocumentMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DocumentMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DocumentMessage* New() const final { + return CreateMaybeMessage<DocumentMessage>(nullptr); + } + + DocumentMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<DocumentMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DocumentMessage& from); + void MergeFrom(const DocumentMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DocumentMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.DocumentMessage"; + } + protected: + explicit DocumentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kUrlFieldNumber = 1, + kMimetypeFieldNumber = 2, + kTitleFieldNumber = 3, + kFileSha256FieldNumber = 4, + kMediaKeyFieldNumber = 7, + kFileNameFieldNumber = 8, + kFileEncSha256FieldNumber = 9, + kDirectPathFieldNumber = 10, + kThumbnailDirectPathFieldNumber = 13, + kThumbnailSha256FieldNumber = 14, + kThumbnailEncSha256FieldNumber = 15, + kJpegThumbnailFieldNumber = 16, + kContextInfoFieldNumber = 17, + kFileLengthFieldNumber = 5, + kPageCountFieldNumber = 6, + kContactVcardFieldNumber = 12, + kMediaKeyTimestampFieldNumber = 11, + kThumbnailHeightFieldNumber = 18, + kThumbnailWidthFieldNumber = 19, + }; + // optional string url = 1; + bool has_url() const; + private: + bool _internal_has_url() const; + public: + void clear_url(); + const std::string& url() const; + void set_url(const std::string& value); + void set_url(std::string&& value); + void set_url(const char* value); + void set_url(const char* value, size_t size); + std::string* mutable_url(); + std::string* release_url(); + void set_allocated_url(std::string* url); + private: + const std::string& _internal_url() const; + void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); + public: + + // optional string mimetype = 2; + bool has_mimetype() const; + private: + bool _internal_has_mimetype() const; + public: + void clear_mimetype(); + const std::string& mimetype() const; + void set_mimetype(const std::string& value); + void set_mimetype(std::string&& value); + void set_mimetype(const char* value); + void set_mimetype(const char* value, size_t size); + std::string* mutable_mimetype(); + std::string* release_mimetype(); + void set_allocated_mimetype(std::string* mimetype); + private: + const std::string& _internal_mimetype() const; + void _internal_set_mimetype(const std::string& value); + std::string* _internal_mutable_mimetype(); + public: + + // optional string title = 3; + bool has_title() const; + private: + bool _internal_has_title() const; + public: + void clear_title(); + const std::string& title() const; + void set_title(const std::string& value); + void set_title(std::string&& value); + void set_title(const char* value); + void set_title(const char* value, size_t size); + std::string* mutable_title(); + std::string* release_title(); + void set_allocated_title(std::string* title); + private: + const std::string& _internal_title() const; + void _internal_set_title(const std::string& value); + std::string* _internal_mutable_title(); + public: + + // optional bytes fileSha256 = 4; + bool has_filesha256() const; + private: + bool _internal_has_filesha256() const; + public: + void clear_filesha256(); + const std::string& filesha256() const; + void set_filesha256(const std::string& value); + void set_filesha256(std::string&& value); + void set_filesha256(const char* value); + void set_filesha256(const void* value, size_t size); + std::string* mutable_filesha256(); + std::string* release_filesha256(); + void set_allocated_filesha256(std::string* filesha256); + private: + const std::string& _internal_filesha256() const; + void _internal_set_filesha256(const std::string& value); + std::string* _internal_mutable_filesha256(); + public: + + // optional bytes mediaKey = 7; + bool has_mediakey() const; + private: + bool _internal_has_mediakey() const; + public: + void clear_mediakey(); + const std::string& mediakey() const; + void set_mediakey(const std::string& value); + void set_mediakey(std::string&& value); + void set_mediakey(const char* value); + void set_mediakey(const void* value, size_t size); + std::string* mutable_mediakey(); + std::string* release_mediakey(); + void set_allocated_mediakey(std::string* mediakey); + private: + const std::string& _internal_mediakey() const; + void _internal_set_mediakey(const std::string& value); + std::string* _internal_mutable_mediakey(); + public: + + // optional string fileName = 8; + bool has_filename() const; + private: + bool _internal_has_filename() const; + public: + void clear_filename(); + const std::string& filename() const; + void set_filename(const std::string& value); + void set_filename(std::string&& value); + void set_filename(const char* value); + void set_filename(const char* value, size_t size); + std::string* mutable_filename(); + std::string* release_filename(); + void set_allocated_filename(std::string* filename); + private: + const std::string& _internal_filename() const; + void _internal_set_filename(const std::string& value); + std::string* _internal_mutable_filename(); + public: + + // optional bytes fileEncSha256 = 9; + bool has_fileencsha256() const; + private: + bool _internal_has_fileencsha256() const; + public: + void clear_fileencsha256(); + const std::string& fileencsha256() const; + void set_fileencsha256(const std::string& value); + void set_fileencsha256(std::string&& value); + void set_fileencsha256(const char* value); + void set_fileencsha256(const void* value, size_t size); + std::string* mutable_fileencsha256(); + std::string* release_fileencsha256(); + void set_allocated_fileencsha256(std::string* fileencsha256); + private: + const std::string& _internal_fileencsha256() const; + void _internal_set_fileencsha256(const std::string& value); + std::string* _internal_mutable_fileencsha256(); + public: + + // optional string directPath = 10; + bool has_directpath() const; + private: + bool _internal_has_directpath() const; + public: + void clear_directpath(); + const std::string& directpath() const; + void set_directpath(const std::string& value); + void set_directpath(std::string&& value); + void set_directpath(const char* value); + void set_directpath(const char* value, size_t size); + std::string* mutable_directpath(); + std::string* release_directpath(); + void set_allocated_directpath(std::string* directpath); + private: + const std::string& _internal_directpath() const; + void _internal_set_directpath(const std::string& value); + std::string* _internal_mutable_directpath(); + public: + + // optional string thumbnailDirectPath = 13; + bool has_thumbnaildirectpath() const; + private: + bool _internal_has_thumbnaildirectpath() const; + public: + void clear_thumbnaildirectpath(); + const std::string& thumbnaildirectpath() const; + void set_thumbnaildirectpath(const std::string& value); + void set_thumbnaildirectpath(std::string&& value); + void set_thumbnaildirectpath(const char* value); + void set_thumbnaildirectpath(const char* value, size_t size); + std::string* mutable_thumbnaildirectpath(); + std::string* release_thumbnaildirectpath(); + void set_allocated_thumbnaildirectpath(std::string* thumbnaildirectpath); + private: + const std::string& _internal_thumbnaildirectpath() const; + void _internal_set_thumbnaildirectpath(const std::string& value); + std::string* _internal_mutable_thumbnaildirectpath(); + public: + + // optional bytes thumbnailSha256 = 14; + bool has_thumbnailsha256() const; + private: + bool _internal_has_thumbnailsha256() const; + public: + void clear_thumbnailsha256(); + const std::string& thumbnailsha256() const; + void set_thumbnailsha256(const std::string& value); + void set_thumbnailsha256(std::string&& value); + void set_thumbnailsha256(const char* value); + void set_thumbnailsha256(const void* value, size_t size); + std::string* mutable_thumbnailsha256(); + std::string* release_thumbnailsha256(); + void set_allocated_thumbnailsha256(std::string* thumbnailsha256); + private: + const std::string& _internal_thumbnailsha256() const; + void _internal_set_thumbnailsha256(const std::string& value); + std::string* _internal_mutable_thumbnailsha256(); + public: + + // optional bytes thumbnailEncSha256 = 15; + bool has_thumbnailencsha256() const; + private: + bool _internal_has_thumbnailencsha256() const; + public: + void clear_thumbnailencsha256(); + const std::string& thumbnailencsha256() const; + void set_thumbnailencsha256(const std::string& value); + void set_thumbnailencsha256(std::string&& value); + void set_thumbnailencsha256(const char* value); + void set_thumbnailencsha256(const void* value, size_t size); + std::string* mutable_thumbnailencsha256(); + std::string* release_thumbnailencsha256(); + void set_allocated_thumbnailencsha256(std::string* thumbnailencsha256); + private: + const std::string& _internal_thumbnailencsha256() const; + void _internal_set_thumbnailencsha256(const std::string& value); + std::string* _internal_mutable_thumbnailencsha256(); + public: + + // optional bytes jpegThumbnail = 16; + bool has_jpegthumbnail() const; + private: + bool _internal_has_jpegthumbnail() const; + public: + void clear_jpegthumbnail(); + const std::string& jpegthumbnail() const; + void set_jpegthumbnail(const std::string& value); + void set_jpegthumbnail(std::string&& value); + void set_jpegthumbnail(const char* value); + void set_jpegthumbnail(const void* value, size_t size); + std::string* mutable_jpegthumbnail(); + std::string* release_jpegthumbnail(); + void set_allocated_jpegthumbnail(std::string* jpegthumbnail); + private: + const std::string& _internal_jpegthumbnail() const; + void _internal_set_jpegthumbnail(const std::string& value); + std::string* _internal_mutable_jpegthumbnail(); + public: + + // optional .proto.ContextInfo contextInfo = 17; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // optional uint64 fileLength = 5; + bool has_filelength() const; + private: + bool _internal_has_filelength() const; + public: + void clear_filelength(); + ::PROTOBUF_NAMESPACE_ID::uint64 filelength() const; + void set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_filelength() const; + void _internal_set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // optional uint32 pageCount = 6; + bool has_pagecount() const; + private: + bool _internal_has_pagecount() const; + public: + void clear_pagecount(); + ::PROTOBUF_NAMESPACE_ID::uint32 pagecount() const; + void set_pagecount(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_pagecount() const; + void _internal_set_pagecount(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional bool contactVcard = 12; + bool has_contactvcard() const; + private: + bool _internal_has_contactvcard() const; + public: + void clear_contactvcard(); + bool contactvcard() const; + void set_contactvcard(bool value); + private: + bool _internal_contactvcard() const; + void _internal_set_contactvcard(bool value); + public: + + // optional int64 mediaKeyTimestamp = 11; + bool has_mediakeytimestamp() const; + private: + bool _internal_has_mediakeytimestamp() const; + public: + void clear_mediakeytimestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 mediakeytimestamp() const; + void set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_mediakeytimestamp() const; + void _internal_set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // optional uint32 thumbnailHeight = 18; + bool has_thumbnailheight() const; + private: + bool _internal_has_thumbnailheight() const; + public: + void clear_thumbnailheight(); + ::PROTOBUF_NAMESPACE_ID::uint32 thumbnailheight() const; + void set_thumbnailheight(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_thumbnailheight() const; + void _internal_set_thumbnailheight(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 thumbnailWidth = 19; + bool has_thumbnailwidth() const; + private: + bool _internal_has_thumbnailwidth() const; + public: + void clear_thumbnailwidth(); + ::PROTOBUF_NAMESPACE_ID::uint32 thumbnailwidth() const; + void set_thumbnailwidth(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_thumbnailwidth() const; + void _internal_set_thumbnailwidth(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // @@protoc_insertion_point(class_scope:proto.DocumentMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mimetype_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr title_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filesha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mediakey_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filename_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fileencsha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr directpath_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr thumbnaildirectpath_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr thumbnailsha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr thumbnailencsha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr jpegthumbnail_; + ::proto::ContextInfo* contextinfo_; + ::PROTOBUF_NAMESPACE_ID::uint64 filelength_; + ::PROTOBUF_NAMESPACE_ID::uint32 pagecount_; + bool contactvcard_; + ::PROTOBUF_NAMESPACE_ID::int64 mediakeytimestamp_; + ::PROTOBUF_NAMESPACE_ID::uint32 thumbnailheight_; + ::PROTOBUF_NAMESPACE_ID::uint32 thumbnailwidth_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class AudioMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AudioMessage) */ { + public: + inline AudioMessage() : AudioMessage(nullptr) {} + virtual ~AudioMessage(); + explicit constexpr AudioMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AudioMessage(const AudioMessage& from); + AudioMessage(AudioMessage&& from) noexcept + : AudioMessage() { + *this = ::std::move(from); + } + + inline AudioMessage& operator=(const AudioMessage& from) { + CopyFrom(from); + return *this; + } + inline AudioMessage& operator=(AudioMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const AudioMessage& default_instance() { + return *internal_default_instance(); + } + static inline const AudioMessage* internal_default_instance() { + return reinterpret_cast<const AudioMessage*>( + &_AudioMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 24; + + friend void swap(AudioMessage& a, AudioMessage& b) { + a.Swap(&b); + } + inline void Swap(AudioMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AudioMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline AudioMessage* New() const final { + return CreateMaybeMessage<AudioMessage>(nullptr); + } + + AudioMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<AudioMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const AudioMessage& from); + void MergeFrom(const AudioMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AudioMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.AudioMessage"; + } + protected: + explicit AudioMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kUrlFieldNumber = 1, + kMimetypeFieldNumber = 2, + kFileSha256FieldNumber = 3, + kMediaKeyFieldNumber = 7, + kFileEncSha256FieldNumber = 8, + kDirectPathFieldNumber = 9, + kStreamingSidecarFieldNumber = 18, + kContextInfoFieldNumber = 17, + kFileLengthFieldNumber = 4, + kSecondsFieldNumber = 5, + kPttFieldNumber = 6, + kMediaKeyTimestampFieldNumber = 10, + }; + // optional string url = 1; + bool has_url() const; + private: + bool _internal_has_url() const; + public: + void clear_url(); + const std::string& url() const; + void set_url(const std::string& value); + void set_url(std::string&& value); + void set_url(const char* value); + void set_url(const char* value, size_t size); + std::string* mutable_url(); + std::string* release_url(); + void set_allocated_url(std::string* url); + private: + const std::string& _internal_url() const; + void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); + public: + + // optional string mimetype = 2; + bool has_mimetype() const; + private: + bool _internal_has_mimetype() const; + public: + void clear_mimetype(); + const std::string& mimetype() const; + void set_mimetype(const std::string& value); + void set_mimetype(std::string&& value); + void set_mimetype(const char* value); + void set_mimetype(const char* value, size_t size); + std::string* mutable_mimetype(); + std::string* release_mimetype(); + void set_allocated_mimetype(std::string* mimetype); + private: + const std::string& _internal_mimetype() const; + void _internal_set_mimetype(const std::string& value); + std::string* _internal_mutable_mimetype(); + public: + + // optional bytes fileSha256 = 3; + bool has_filesha256() const; + private: + bool _internal_has_filesha256() const; + public: + void clear_filesha256(); + const std::string& filesha256() const; + void set_filesha256(const std::string& value); + void set_filesha256(std::string&& value); + void set_filesha256(const char* value); + void set_filesha256(const void* value, size_t size); + std::string* mutable_filesha256(); + std::string* release_filesha256(); + void set_allocated_filesha256(std::string* filesha256); + private: + const std::string& _internal_filesha256() const; + void _internal_set_filesha256(const std::string& value); + std::string* _internal_mutable_filesha256(); + public: + + // optional bytes mediaKey = 7; + bool has_mediakey() const; + private: + bool _internal_has_mediakey() const; + public: + void clear_mediakey(); + const std::string& mediakey() const; + void set_mediakey(const std::string& value); + void set_mediakey(std::string&& value); + void set_mediakey(const char* value); + void set_mediakey(const void* value, size_t size); + std::string* mutable_mediakey(); + std::string* release_mediakey(); + void set_allocated_mediakey(std::string* mediakey); + private: + const std::string& _internal_mediakey() const; + void _internal_set_mediakey(const std::string& value); + std::string* _internal_mutable_mediakey(); + public: + + // optional bytes fileEncSha256 = 8; + bool has_fileencsha256() const; + private: + bool _internal_has_fileencsha256() const; + public: + void clear_fileencsha256(); + const std::string& fileencsha256() const; + void set_fileencsha256(const std::string& value); + void set_fileencsha256(std::string&& value); + void set_fileencsha256(const char* value); + void set_fileencsha256(const void* value, size_t size); + std::string* mutable_fileencsha256(); + std::string* release_fileencsha256(); + void set_allocated_fileencsha256(std::string* fileencsha256); + private: + const std::string& _internal_fileencsha256() const; + void _internal_set_fileencsha256(const std::string& value); + std::string* _internal_mutable_fileencsha256(); + public: + + // optional string directPath = 9; + bool has_directpath() const; + private: + bool _internal_has_directpath() const; + public: + void clear_directpath(); + const std::string& directpath() const; + void set_directpath(const std::string& value); + void set_directpath(std::string&& value); + void set_directpath(const char* value); + void set_directpath(const char* value, size_t size); + std::string* mutable_directpath(); + std::string* release_directpath(); + void set_allocated_directpath(std::string* directpath); + private: + const std::string& _internal_directpath() const; + void _internal_set_directpath(const std::string& value); + std::string* _internal_mutable_directpath(); + public: + + // optional bytes streamingSidecar = 18; + bool has_streamingsidecar() const; + private: + bool _internal_has_streamingsidecar() const; + public: + void clear_streamingsidecar(); + const std::string& streamingsidecar() const; + void set_streamingsidecar(const std::string& value); + void set_streamingsidecar(std::string&& value); + void set_streamingsidecar(const char* value); + void set_streamingsidecar(const void* value, size_t size); + std::string* mutable_streamingsidecar(); + std::string* release_streamingsidecar(); + void set_allocated_streamingsidecar(std::string* streamingsidecar); + private: + const std::string& _internal_streamingsidecar() const; + void _internal_set_streamingsidecar(const std::string& value); + std::string* _internal_mutable_streamingsidecar(); + public: + + // optional .proto.ContextInfo contextInfo = 17; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // optional uint64 fileLength = 4; + bool has_filelength() const; + private: + bool _internal_has_filelength() const; + public: + void clear_filelength(); + ::PROTOBUF_NAMESPACE_ID::uint64 filelength() const; + void set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_filelength() const; + void _internal_set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // optional uint32 seconds = 5; + bool has_seconds() const; + private: + bool _internal_has_seconds() const; + public: + void clear_seconds(); + ::PROTOBUF_NAMESPACE_ID::uint32 seconds() const; + void set_seconds(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_seconds() const; + void _internal_set_seconds(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional bool ptt = 6; + bool has_ptt() const; + private: + bool _internal_has_ptt() const; + public: + void clear_ptt(); + bool ptt() const; + void set_ptt(bool value); + private: + bool _internal_ptt() const; + void _internal_set_ptt(bool value); + public: + + // optional int64 mediaKeyTimestamp = 10; + bool has_mediakeytimestamp() const; + private: + bool _internal_has_mediakeytimestamp() const; + public: + void clear_mediakeytimestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 mediakeytimestamp() const; + void set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_mediakeytimestamp() const; + void _internal_set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:proto.AudioMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mimetype_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filesha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mediakey_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fileencsha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr directpath_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr streamingsidecar_; + ::proto::ContextInfo* contextinfo_; + ::PROTOBUF_NAMESPACE_ID::uint64 filelength_; + ::PROTOBUF_NAMESPACE_ID::uint32 seconds_; + bool ptt_; + ::PROTOBUF_NAMESPACE_ID::int64 mediakeytimestamp_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class VideoMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.VideoMessage) */ { + public: + inline VideoMessage() : VideoMessage(nullptr) {} + virtual ~VideoMessage(); + explicit constexpr VideoMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + VideoMessage(const VideoMessage& from); + VideoMessage(VideoMessage&& from) noexcept + : VideoMessage() { + *this = ::std::move(from); + } + + inline VideoMessage& operator=(const VideoMessage& from) { + CopyFrom(from); + return *this; + } + inline VideoMessage& operator=(VideoMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const VideoMessage& default_instance() { + return *internal_default_instance(); + } + static inline const VideoMessage* internal_default_instance() { + return reinterpret_cast<const VideoMessage*>( + &_VideoMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 25; + + friend void swap(VideoMessage& a, VideoMessage& b) { + a.Swap(&b); + } + inline void Swap(VideoMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(VideoMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline VideoMessage* New() const final { + return CreateMaybeMessage<VideoMessage>(nullptr); + } + + VideoMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<VideoMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const VideoMessage& from); + void MergeFrom(const VideoMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(VideoMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.VideoMessage"; + } + protected: + explicit VideoMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + typedef VideoMessage_VideoMessageAttribution VideoMessageAttribution; + static constexpr VideoMessageAttribution NONE = + VideoMessage_VideoMessageAttribution_NONE; + static constexpr VideoMessageAttribution GIPHY = + VideoMessage_VideoMessageAttribution_GIPHY; + static constexpr VideoMessageAttribution TENOR = + VideoMessage_VideoMessageAttribution_TENOR; + static inline bool VideoMessageAttribution_IsValid(int value) { + return VideoMessage_VideoMessageAttribution_IsValid(value); + } + static constexpr VideoMessageAttribution VideoMessageAttribution_MIN = + VideoMessage_VideoMessageAttribution_VideoMessageAttribution_MIN; + static constexpr VideoMessageAttribution VideoMessageAttribution_MAX = + VideoMessage_VideoMessageAttribution_VideoMessageAttribution_MAX; + static constexpr int VideoMessageAttribution_ARRAYSIZE = + VideoMessage_VideoMessageAttribution_VideoMessageAttribution_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + VideoMessageAttribution_descriptor() { + return VideoMessage_VideoMessageAttribution_descriptor(); + } + template<typename T> + static inline const std::string& VideoMessageAttribution_Name(T enum_t_value) { + static_assert(::std::is_same<T, VideoMessageAttribution>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function VideoMessageAttribution_Name."); + return VideoMessage_VideoMessageAttribution_Name(enum_t_value); + } + static inline bool VideoMessageAttribution_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + VideoMessageAttribution* value) { + return VideoMessage_VideoMessageAttribution_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kInteractiveAnnotationsFieldNumber = 12, + kUrlFieldNumber = 1, + kMimetypeFieldNumber = 2, + kFileSha256FieldNumber = 3, + kMediaKeyFieldNumber = 6, + kCaptionFieldNumber = 7, + kFileEncSha256FieldNumber = 11, + kDirectPathFieldNumber = 13, + kJpegThumbnailFieldNumber = 16, + kStreamingSidecarFieldNumber = 18, + kThumbnailDirectPathFieldNumber = 21, + kThumbnailSha256FieldNumber = 22, + kThumbnailEncSha256FieldNumber = 23, + kContextInfoFieldNumber = 17, + kFileLengthFieldNumber = 4, + kSecondsFieldNumber = 5, + kHeightFieldNumber = 9, + kWidthFieldNumber = 10, + kGifPlaybackFieldNumber = 8, + kViewOnceFieldNumber = 20, + kMediaKeyTimestampFieldNumber = 14, + kGifAttributionFieldNumber = 19, + }; + // repeated .proto.InteractiveAnnotation interactiveAnnotations = 12; + int interactiveannotations_size() const; + private: + int _internal_interactiveannotations_size() const; + public: + void clear_interactiveannotations(); + ::proto::InteractiveAnnotation* mutable_interactiveannotations(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::InteractiveAnnotation >* + mutable_interactiveannotations(); + private: + const ::proto::InteractiveAnnotation& _internal_interactiveannotations(int index) const; + ::proto::InteractiveAnnotation* _internal_add_interactiveannotations(); + public: + const ::proto::InteractiveAnnotation& interactiveannotations(int index) const; + ::proto::InteractiveAnnotation* add_interactiveannotations(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::InteractiveAnnotation >& + interactiveannotations() const; + + // optional string url = 1; + bool has_url() const; + private: + bool _internal_has_url() const; + public: + void clear_url(); + const std::string& url() const; + void set_url(const std::string& value); + void set_url(std::string&& value); + void set_url(const char* value); + void set_url(const char* value, size_t size); + std::string* mutable_url(); + std::string* release_url(); + void set_allocated_url(std::string* url); + private: + const std::string& _internal_url() const; + void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); + public: + + // optional string mimetype = 2; + bool has_mimetype() const; + private: + bool _internal_has_mimetype() const; + public: + void clear_mimetype(); + const std::string& mimetype() const; + void set_mimetype(const std::string& value); + void set_mimetype(std::string&& value); + void set_mimetype(const char* value); + void set_mimetype(const char* value, size_t size); + std::string* mutable_mimetype(); + std::string* release_mimetype(); + void set_allocated_mimetype(std::string* mimetype); + private: + const std::string& _internal_mimetype() const; + void _internal_set_mimetype(const std::string& value); + std::string* _internal_mutable_mimetype(); + public: + + // optional bytes fileSha256 = 3; + bool has_filesha256() const; + private: + bool _internal_has_filesha256() const; + public: + void clear_filesha256(); + const std::string& filesha256() const; + void set_filesha256(const std::string& value); + void set_filesha256(std::string&& value); + void set_filesha256(const char* value); + void set_filesha256(const void* value, size_t size); + std::string* mutable_filesha256(); + std::string* release_filesha256(); + void set_allocated_filesha256(std::string* filesha256); + private: + const std::string& _internal_filesha256() const; + void _internal_set_filesha256(const std::string& value); + std::string* _internal_mutable_filesha256(); + public: + + // optional bytes mediaKey = 6; + bool has_mediakey() const; + private: + bool _internal_has_mediakey() const; + public: + void clear_mediakey(); + const std::string& mediakey() const; + void set_mediakey(const std::string& value); + void set_mediakey(std::string&& value); + void set_mediakey(const char* value); + void set_mediakey(const void* value, size_t size); + std::string* mutable_mediakey(); + std::string* release_mediakey(); + void set_allocated_mediakey(std::string* mediakey); + private: + const std::string& _internal_mediakey() const; + void _internal_set_mediakey(const std::string& value); + std::string* _internal_mutable_mediakey(); + public: + + // optional string caption = 7; + bool has_caption() const; + private: + bool _internal_has_caption() const; + public: + void clear_caption(); + const std::string& caption() const; + void set_caption(const std::string& value); + void set_caption(std::string&& value); + void set_caption(const char* value); + void set_caption(const char* value, size_t size); + std::string* mutable_caption(); + std::string* release_caption(); + void set_allocated_caption(std::string* caption); + private: + const std::string& _internal_caption() const; + void _internal_set_caption(const std::string& value); + std::string* _internal_mutable_caption(); + public: + + // optional bytes fileEncSha256 = 11; + bool has_fileencsha256() const; + private: + bool _internal_has_fileencsha256() const; + public: + void clear_fileencsha256(); + const std::string& fileencsha256() const; + void set_fileencsha256(const std::string& value); + void set_fileencsha256(std::string&& value); + void set_fileencsha256(const char* value); + void set_fileencsha256(const void* value, size_t size); + std::string* mutable_fileencsha256(); + std::string* release_fileencsha256(); + void set_allocated_fileencsha256(std::string* fileencsha256); + private: + const std::string& _internal_fileencsha256() const; + void _internal_set_fileencsha256(const std::string& value); + std::string* _internal_mutable_fileencsha256(); + public: + + // optional string directPath = 13; + bool has_directpath() const; + private: + bool _internal_has_directpath() const; + public: + void clear_directpath(); + const std::string& directpath() const; + void set_directpath(const std::string& value); + void set_directpath(std::string&& value); + void set_directpath(const char* value); + void set_directpath(const char* value, size_t size); + std::string* mutable_directpath(); + std::string* release_directpath(); + void set_allocated_directpath(std::string* directpath); + private: + const std::string& _internal_directpath() const; + void _internal_set_directpath(const std::string& value); + std::string* _internal_mutable_directpath(); + public: + + // optional bytes jpegThumbnail = 16; + bool has_jpegthumbnail() const; + private: + bool _internal_has_jpegthumbnail() const; + public: + void clear_jpegthumbnail(); + const std::string& jpegthumbnail() const; + void set_jpegthumbnail(const std::string& value); + void set_jpegthumbnail(std::string&& value); + void set_jpegthumbnail(const char* value); + void set_jpegthumbnail(const void* value, size_t size); + std::string* mutable_jpegthumbnail(); + std::string* release_jpegthumbnail(); + void set_allocated_jpegthumbnail(std::string* jpegthumbnail); + private: + const std::string& _internal_jpegthumbnail() const; + void _internal_set_jpegthumbnail(const std::string& value); + std::string* _internal_mutable_jpegthumbnail(); + public: + + // optional bytes streamingSidecar = 18; + bool has_streamingsidecar() const; + private: + bool _internal_has_streamingsidecar() const; + public: + void clear_streamingsidecar(); + const std::string& streamingsidecar() const; + void set_streamingsidecar(const std::string& value); + void set_streamingsidecar(std::string&& value); + void set_streamingsidecar(const char* value); + void set_streamingsidecar(const void* value, size_t size); + std::string* mutable_streamingsidecar(); + std::string* release_streamingsidecar(); + void set_allocated_streamingsidecar(std::string* streamingsidecar); + private: + const std::string& _internal_streamingsidecar() const; + void _internal_set_streamingsidecar(const std::string& value); + std::string* _internal_mutable_streamingsidecar(); + public: + + // optional string thumbnailDirectPath = 21; + bool has_thumbnaildirectpath() const; + private: + bool _internal_has_thumbnaildirectpath() const; + public: + void clear_thumbnaildirectpath(); + const std::string& thumbnaildirectpath() const; + void set_thumbnaildirectpath(const std::string& value); + void set_thumbnaildirectpath(std::string&& value); + void set_thumbnaildirectpath(const char* value); + void set_thumbnaildirectpath(const char* value, size_t size); + std::string* mutable_thumbnaildirectpath(); + std::string* release_thumbnaildirectpath(); + void set_allocated_thumbnaildirectpath(std::string* thumbnaildirectpath); + private: + const std::string& _internal_thumbnaildirectpath() const; + void _internal_set_thumbnaildirectpath(const std::string& value); + std::string* _internal_mutable_thumbnaildirectpath(); + public: + + // optional bytes thumbnailSha256 = 22; + bool has_thumbnailsha256() const; + private: + bool _internal_has_thumbnailsha256() const; + public: + void clear_thumbnailsha256(); + const std::string& thumbnailsha256() const; + void set_thumbnailsha256(const std::string& value); + void set_thumbnailsha256(std::string&& value); + void set_thumbnailsha256(const char* value); + void set_thumbnailsha256(const void* value, size_t size); + std::string* mutable_thumbnailsha256(); + std::string* release_thumbnailsha256(); + void set_allocated_thumbnailsha256(std::string* thumbnailsha256); + private: + const std::string& _internal_thumbnailsha256() const; + void _internal_set_thumbnailsha256(const std::string& value); + std::string* _internal_mutable_thumbnailsha256(); + public: + + // optional bytes thumbnailEncSha256 = 23; + bool has_thumbnailencsha256() const; + private: + bool _internal_has_thumbnailencsha256() const; + public: + void clear_thumbnailencsha256(); + const std::string& thumbnailencsha256() const; + void set_thumbnailencsha256(const std::string& value); + void set_thumbnailencsha256(std::string&& value); + void set_thumbnailencsha256(const char* value); + void set_thumbnailencsha256(const void* value, size_t size); + std::string* mutable_thumbnailencsha256(); + std::string* release_thumbnailencsha256(); + void set_allocated_thumbnailencsha256(std::string* thumbnailencsha256); + private: + const std::string& _internal_thumbnailencsha256() const; + void _internal_set_thumbnailencsha256(const std::string& value); + std::string* _internal_mutable_thumbnailencsha256(); + public: + + // optional .proto.ContextInfo contextInfo = 17; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // optional uint64 fileLength = 4; + bool has_filelength() const; + private: + bool _internal_has_filelength() const; + public: + void clear_filelength(); + ::PROTOBUF_NAMESPACE_ID::uint64 filelength() const; + void set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_filelength() const; + void _internal_set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // optional uint32 seconds = 5; + bool has_seconds() const; + private: + bool _internal_has_seconds() const; + public: + void clear_seconds(); + ::PROTOBUF_NAMESPACE_ID::uint32 seconds() const; + void set_seconds(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_seconds() const; + void _internal_set_seconds(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 height = 9; + bool has_height() const; + private: + bool _internal_has_height() const; + public: + void clear_height(); + ::PROTOBUF_NAMESPACE_ID::uint32 height() const; + void set_height(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_height() const; + void _internal_set_height(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 width = 10; + bool has_width() const; + private: + bool _internal_has_width() const; + public: + void clear_width(); + ::PROTOBUF_NAMESPACE_ID::uint32 width() const; + void set_width(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_width() const; + void _internal_set_width(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional bool gifPlayback = 8; + bool has_gifplayback() const; + private: + bool _internal_has_gifplayback() const; + public: + void clear_gifplayback(); + bool gifplayback() const; + void set_gifplayback(bool value); + private: + bool _internal_gifplayback() const; + void _internal_set_gifplayback(bool value); + public: + + // optional bool viewOnce = 20; + bool has_viewonce() const; + private: + bool _internal_has_viewonce() const; + public: + void clear_viewonce(); + bool viewonce() const; + void set_viewonce(bool value); + private: + bool _internal_viewonce() const; + void _internal_set_viewonce(bool value); + public: + + // optional int64 mediaKeyTimestamp = 14; + bool has_mediakeytimestamp() const; + private: + bool _internal_has_mediakeytimestamp() const; + public: + void clear_mediakeytimestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 mediakeytimestamp() const; + void set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_mediakeytimestamp() const; + void _internal_set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // optional .proto.VideoMessage.VideoMessageAttribution gifAttribution = 19; + bool has_gifattribution() const; + private: + bool _internal_has_gifattribution() const; + public: + void clear_gifattribution(); + ::proto::VideoMessage_VideoMessageAttribution gifattribution() const; + void set_gifattribution(::proto::VideoMessage_VideoMessageAttribution value); + private: + ::proto::VideoMessage_VideoMessageAttribution _internal_gifattribution() const; + void _internal_set_gifattribution(::proto::VideoMessage_VideoMessageAttribution value); + public: + + // @@protoc_insertion_point(class_scope:proto.VideoMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::InteractiveAnnotation > interactiveannotations_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mimetype_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filesha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mediakey_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr caption_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fileencsha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr directpath_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr jpegthumbnail_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr streamingsidecar_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr thumbnaildirectpath_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr thumbnailsha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr thumbnailencsha256_; + ::proto::ContextInfo* contextinfo_; + ::PROTOBUF_NAMESPACE_ID::uint64 filelength_; + ::PROTOBUF_NAMESPACE_ID::uint32 seconds_; + ::PROTOBUF_NAMESPACE_ID::uint32 height_; + ::PROTOBUF_NAMESPACE_ID::uint32 width_; + bool gifplayback_; + bool viewonce_; + ::PROTOBUF_NAMESPACE_ID::int64 mediakeytimestamp_; + int gifattribution_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class Call PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Call) */ { + public: + inline Call() : Call(nullptr) {} + virtual ~Call(); + explicit constexpr Call(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Call(const Call& from); + Call(Call&& from) noexcept + : Call() { + *this = ::std::move(from); + } + + inline Call& operator=(const Call& from) { + CopyFrom(from); + return *this; + } + inline Call& operator=(Call&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Call& default_instance() { + return *internal_default_instance(); + } + static inline const Call* internal_default_instance() { + return reinterpret_cast<const Call*>( + &_Call_default_instance_); + } + static constexpr int kIndexInFileMessages = + 26; + + friend void swap(Call& a, Call& b) { + a.Swap(&b); + } + inline void Swap(Call* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Call* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Call* New() const final { + return CreateMaybeMessage<Call>(nullptr); + } + + Call* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<Call>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Call& from); + void MergeFrom(const Call& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Call* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.Call"; + } + protected: + explicit Call(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCallKeyFieldNumber = 1, + }; + // optional bytes callKey = 1; + bool has_callkey() const; + private: + bool _internal_has_callkey() const; + public: + void clear_callkey(); + const std::string& callkey() const; + void set_callkey(const std::string& value); + void set_callkey(std::string&& value); + void set_callkey(const char* value); + void set_callkey(const void* value, size_t size); + std::string* mutable_callkey(); + std::string* release_callkey(); + void set_allocated_callkey(std::string* callkey); + private: + const std::string& _internal_callkey() const; + void _internal_set_callkey(const std::string& value); + std::string* _internal_mutable_callkey(); + public: + + // @@protoc_insertion_point(class_scope:proto.Call) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr callkey_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class Chat PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Chat) */ { + public: + inline Chat() : Chat(nullptr) {} + virtual ~Chat(); + explicit constexpr Chat(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Chat(const Chat& from); + Chat(Chat&& from) noexcept + : Chat() { + *this = ::std::move(from); + } + + inline Chat& operator=(const Chat& from) { + CopyFrom(from); + return *this; + } + inline Chat& operator=(Chat&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Chat& default_instance() { + return *internal_default_instance(); + } + static inline const Chat* internal_default_instance() { + return reinterpret_cast<const Chat*>( + &_Chat_default_instance_); + } + static constexpr int kIndexInFileMessages = + 27; + + friend void swap(Chat& a, Chat& b) { + a.Swap(&b); + } + inline void Swap(Chat* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Chat* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Chat* New() const final { + return CreateMaybeMessage<Chat>(nullptr); + } + + Chat* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<Chat>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Chat& from); + void MergeFrom(const Chat& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Chat* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.Chat"; + } + protected: + explicit Chat(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDisplayNameFieldNumber = 1, + kIdFieldNumber = 2, + }; + // optional string displayName = 1; + bool has_displayname() const; + private: + bool _internal_has_displayname() const; + public: + void clear_displayname(); + const std::string& displayname() const; + void set_displayname(const std::string& value); + void set_displayname(std::string&& value); + void set_displayname(const char* value); + void set_displayname(const char* value, size_t size); + std::string* mutable_displayname(); + std::string* release_displayname(); + void set_allocated_displayname(std::string* displayname); + private: + const std::string& _internal_displayname() const; + void _internal_set_displayname(const std::string& value); + std::string* _internal_mutable_displayname(); + public: + + // optional string id = 2; + bool has_id() const; + private: + bool _internal_has_id() const; + public: + void clear_id(); + const std::string& id() const; + void set_id(const std::string& value); + void set_id(std::string&& value); + void set_id(const char* value); + void set_id(const char* value, size_t size); + std::string* mutable_id(); + std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // @@protoc_insertion_point(class_scope:proto.Chat) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr displayname_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class ProtocolMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ProtocolMessage) */ { + public: + inline ProtocolMessage() : ProtocolMessage(nullptr) {} + virtual ~ProtocolMessage(); + explicit constexpr ProtocolMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ProtocolMessage(const ProtocolMessage& from); + ProtocolMessage(ProtocolMessage&& from) noexcept + : ProtocolMessage() { + *this = ::std::move(from); + } + + inline ProtocolMessage& operator=(const ProtocolMessage& from) { + CopyFrom(from); + return *this; + } + inline ProtocolMessage& operator=(ProtocolMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ProtocolMessage& default_instance() { + return *internal_default_instance(); + } + static inline const ProtocolMessage* internal_default_instance() { + return reinterpret_cast<const ProtocolMessage*>( + &_ProtocolMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 28; + + friend void swap(ProtocolMessage& a, ProtocolMessage& b) { + a.Swap(&b); + } + inline void Swap(ProtocolMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ProtocolMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ProtocolMessage* New() const final { + return CreateMaybeMessage<ProtocolMessage>(nullptr); + } + + ProtocolMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ProtocolMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ProtocolMessage& from); + void MergeFrom(const ProtocolMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProtocolMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.ProtocolMessage"; + } + protected: + explicit ProtocolMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + typedef ProtocolMessage_ProtocolMessageType ProtocolMessageType; + static constexpr ProtocolMessageType REVOKE = + ProtocolMessage_ProtocolMessageType_REVOKE; + static constexpr ProtocolMessageType EPHEMERAL_SETTING = + ProtocolMessage_ProtocolMessageType_EPHEMERAL_SETTING; + static constexpr ProtocolMessageType EPHEMERAL_SYNC_RESPONSE = + ProtocolMessage_ProtocolMessageType_EPHEMERAL_SYNC_RESPONSE; + static constexpr ProtocolMessageType HISTORY_SYNC_NOTIFICATION = + ProtocolMessage_ProtocolMessageType_HISTORY_SYNC_NOTIFICATION; + static constexpr ProtocolMessageType APP_STATE_SYNC_KEY_SHARE = + ProtocolMessage_ProtocolMessageType_APP_STATE_SYNC_KEY_SHARE; + static constexpr ProtocolMessageType APP_STATE_SYNC_KEY_REQUEST = + ProtocolMessage_ProtocolMessageType_APP_STATE_SYNC_KEY_REQUEST; + static constexpr ProtocolMessageType MSG_FANOUT_BACKFILL_REQUEST = + ProtocolMessage_ProtocolMessageType_MSG_FANOUT_BACKFILL_REQUEST; + static constexpr ProtocolMessageType INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC = + ProtocolMessage_ProtocolMessageType_INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC; + static constexpr ProtocolMessageType APP_STATE_FATAL_EXCEPTION_NOTIFICATION = + ProtocolMessage_ProtocolMessageType_APP_STATE_FATAL_EXCEPTION_NOTIFICATION; + static inline bool ProtocolMessageType_IsValid(int value) { + return ProtocolMessage_ProtocolMessageType_IsValid(value); + } + static constexpr ProtocolMessageType ProtocolMessageType_MIN = + ProtocolMessage_ProtocolMessageType_ProtocolMessageType_MIN; + static constexpr ProtocolMessageType ProtocolMessageType_MAX = + ProtocolMessage_ProtocolMessageType_ProtocolMessageType_MAX; + static constexpr int ProtocolMessageType_ARRAYSIZE = + ProtocolMessage_ProtocolMessageType_ProtocolMessageType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + ProtocolMessageType_descriptor() { + return ProtocolMessage_ProtocolMessageType_descriptor(); + } + template<typename T> + static inline const std::string& ProtocolMessageType_Name(T enum_t_value) { + static_assert(::std::is_same<T, ProtocolMessageType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function ProtocolMessageType_Name."); + return ProtocolMessage_ProtocolMessageType_Name(enum_t_value); + } + static inline bool ProtocolMessageType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + ProtocolMessageType* value) { + return ProtocolMessage_ProtocolMessageType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kKeyFieldNumber = 1, + kHistorySyncNotificationFieldNumber = 6, + kAppStateSyncKeyShareFieldNumber = 7, + kAppStateSyncKeyRequestFieldNumber = 8, + kInitialSecurityNotificationSettingSyncFieldNumber = 9, + kAppStateFatalExceptionNotificationFieldNumber = 10, + kTypeFieldNumber = 2, + kEphemeralExpirationFieldNumber = 4, + kEphemeralSettingTimestampFieldNumber = 5, + }; + // optional .proto.MessageKey key = 1; + bool has_key() const; + private: + bool _internal_has_key() const; + public: + void clear_key(); + const ::proto::MessageKey& key() const; + ::proto::MessageKey* release_key(); + ::proto::MessageKey* mutable_key(); + void set_allocated_key(::proto::MessageKey* key); + private: + const ::proto::MessageKey& _internal_key() const; + ::proto::MessageKey* _internal_mutable_key(); + public: + void unsafe_arena_set_allocated_key( + ::proto::MessageKey* key); + ::proto::MessageKey* unsafe_arena_release_key(); + + // optional .proto.HistorySyncNotification historySyncNotification = 6; + bool has_historysyncnotification() const; + private: + bool _internal_has_historysyncnotification() const; + public: + void clear_historysyncnotification(); + const ::proto::HistorySyncNotification& historysyncnotification() const; + ::proto::HistorySyncNotification* release_historysyncnotification(); + ::proto::HistorySyncNotification* mutable_historysyncnotification(); + void set_allocated_historysyncnotification(::proto::HistorySyncNotification* historysyncnotification); + private: + const ::proto::HistorySyncNotification& _internal_historysyncnotification() const; + ::proto::HistorySyncNotification* _internal_mutable_historysyncnotification(); + public: + void unsafe_arena_set_allocated_historysyncnotification( + ::proto::HistorySyncNotification* historysyncnotification); + ::proto::HistorySyncNotification* unsafe_arena_release_historysyncnotification(); + + // optional .proto.AppStateSyncKeyShare appStateSyncKeyShare = 7; + bool has_appstatesynckeyshare() const; + private: + bool _internal_has_appstatesynckeyshare() const; + public: + void clear_appstatesynckeyshare(); + const ::proto::AppStateSyncKeyShare& appstatesynckeyshare() const; + ::proto::AppStateSyncKeyShare* release_appstatesynckeyshare(); + ::proto::AppStateSyncKeyShare* mutable_appstatesynckeyshare(); + void set_allocated_appstatesynckeyshare(::proto::AppStateSyncKeyShare* appstatesynckeyshare); + private: + const ::proto::AppStateSyncKeyShare& _internal_appstatesynckeyshare() const; + ::proto::AppStateSyncKeyShare* _internal_mutable_appstatesynckeyshare(); + public: + void unsafe_arena_set_allocated_appstatesynckeyshare( + ::proto::AppStateSyncKeyShare* appstatesynckeyshare); + ::proto::AppStateSyncKeyShare* unsafe_arena_release_appstatesynckeyshare(); + + // optional .proto.AppStateSyncKeyRequest appStateSyncKeyRequest = 8; + bool has_appstatesynckeyrequest() const; + private: + bool _internal_has_appstatesynckeyrequest() const; + public: + void clear_appstatesynckeyrequest(); + const ::proto::AppStateSyncKeyRequest& appstatesynckeyrequest() const; + ::proto::AppStateSyncKeyRequest* release_appstatesynckeyrequest(); + ::proto::AppStateSyncKeyRequest* mutable_appstatesynckeyrequest(); + void set_allocated_appstatesynckeyrequest(::proto::AppStateSyncKeyRequest* appstatesynckeyrequest); + private: + const ::proto::AppStateSyncKeyRequest& _internal_appstatesynckeyrequest() const; + ::proto::AppStateSyncKeyRequest* _internal_mutable_appstatesynckeyrequest(); + public: + void unsafe_arena_set_allocated_appstatesynckeyrequest( + ::proto::AppStateSyncKeyRequest* appstatesynckeyrequest); + ::proto::AppStateSyncKeyRequest* unsafe_arena_release_appstatesynckeyrequest(); + + // optional .proto.InitialSecurityNotificationSettingSync initialSecurityNotificationSettingSync = 9; + bool has_initialsecuritynotificationsettingsync() const; + private: + bool _internal_has_initialsecuritynotificationsettingsync() const; + public: + void clear_initialsecuritynotificationsettingsync(); + const ::proto::InitialSecurityNotificationSettingSync& initialsecuritynotificationsettingsync() const; + ::proto::InitialSecurityNotificationSettingSync* release_initialsecuritynotificationsettingsync(); + ::proto::InitialSecurityNotificationSettingSync* mutable_initialsecuritynotificationsettingsync(); + void set_allocated_initialsecuritynotificationsettingsync(::proto::InitialSecurityNotificationSettingSync* initialsecuritynotificationsettingsync); + private: + const ::proto::InitialSecurityNotificationSettingSync& _internal_initialsecuritynotificationsettingsync() const; + ::proto::InitialSecurityNotificationSettingSync* _internal_mutable_initialsecuritynotificationsettingsync(); + public: + void unsafe_arena_set_allocated_initialsecuritynotificationsettingsync( + ::proto::InitialSecurityNotificationSettingSync* initialsecuritynotificationsettingsync); + ::proto::InitialSecurityNotificationSettingSync* unsafe_arena_release_initialsecuritynotificationsettingsync(); + + // optional .proto.AppStateFatalExceptionNotification appStateFatalExceptionNotification = 10; + bool has_appstatefatalexceptionnotification() const; + private: + bool _internal_has_appstatefatalexceptionnotification() const; + public: + void clear_appstatefatalexceptionnotification(); + const ::proto::AppStateFatalExceptionNotification& appstatefatalexceptionnotification() const; + ::proto::AppStateFatalExceptionNotification* release_appstatefatalexceptionnotification(); + ::proto::AppStateFatalExceptionNotification* mutable_appstatefatalexceptionnotification(); + void set_allocated_appstatefatalexceptionnotification(::proto::AppStateFatalExceptionNotification* appstatefatalexceptionnotification); + private: + const ::proto::AppStateFatalExceptionNotification& _internal_appstatefatalexceptionnotification() const; + ::proto::AppStateFatalExceptionNotification* _internal_mutable_appstatefatalexceptionnotification(); + public: + void unsafe_arena_set_allocated_appstatefatalexceptionnotification( + ::proto::AppStateFatalExceptionNotification* appstatefatalexceptionnotification); + ::proto::AppStateFatalExceptionNotification* unsafe_arena_release_appstatefatalexceptionnotification(); + + // optional .proto.ProtocolMessage.ProtocolMessageType type = 2; + bool has_type() const; + private: + bool _internal_has_type() const; + public: + void clear_type(); + ::proto::ProtocolMessage_ProtocolMessageType type() const; + void set_type(::proto::ProtocolMessage_ProtocolMessageType value); + private: + ::proto::ProtocolMessage_ProtocolMessageType _internal_type() const; + void _internal_set_type(::proto::ProtocolMessage_ProtocolMessageType value); + public: + + // optional uint32 ephemeralExpiration = 4; + bool has_ephemeralexpiration() const; + private: + bool _internal_has_ephemeralexpiration() const; + public: + void clear_ephemeralexpiration(); + ::PROTOBUF_NAMESPACE_ID::uint32 ephemeralexpiration() const; + void set_ephemeralexpiration(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_ephemeralexpiration() const; + void _internal_set_ephemeralexpiration(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional int64 ephemeralSettingTimestamp = 5; + bool has_ephemeralsettingtimestamp() const; + private: + bool _internal_has_ephemeralsettingtimestamp() const; + public: + void clear_ephemeralsettingtimestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 ephemeralsettingtimestamp() const; + void set_ephemeralsettingtimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_ephemeralsettingtimestamp() const; + void _internal_set_ephemeralsettingtimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:proto.ProtocolMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::proto::MessageKey* key_; + ::proto::HistorySyncNotification* historysyncnotification_; + ::proto::AppStateSyncKeyShare* appstatesynckeyshare_; + ::proto::AppStateSyncKeyRequest* appstatesynckeyrequest_; + ::proto::InitialSecurityNotificationSettingSync* initialsecuritynotificationsettingsync_; + ::proto::AppStateFatalExceptionNotification* appstatefatalexceptionnotification_; + int type_; + ::PROTOBUF_NAMESPACE_ID::uint32 ephemeralexpiration_; + ::PROTOBUF_NAMESPACE_ID::int64 ephemeralsettingtimestamp_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class HistorySyncNotification PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HistorySyncNotification) */ { + public: + inline HistorySyncNotification() : HistorySyncNotification(nullptr) {} + virtual ~HistorySyncNotification(); + explicit constexpr HistorySyncNotification(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + HistorySyncNotification(const HistorySyncNotification& from); + HistorySyncNotification(HistorySyncNotification&& from) noexcept + : HistorySyncNotification() { + *this = ::std::move(from); + } + + inline HistorySyncNotification& operator=(const HistorySyncNotification& from) { + CopyFrom(from); + return *this; + } + inline HistorySyncNotification& operator=(HistorySyncNotification&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const HistorySyncNotification& default_instance() { + return *internal_default_instance(); + } + static inline const HistorySyncNotification* internal_default_instance() { + return reinterpret_cast<const HistorySyncNotification*>( + &_HistorySyncNotification_default_instance_); + } + static constexpr int kIndexInFileMessages = + 29; + + friend void swap(HistorySyncNotification& a, HistorySyncNotification& b) { + a.Swap(&b); + } + inline void Swap(HistorySyncNotification* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HistorySyncNotification* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline HistorySyncNotification* New() const final { + return CreateMaybeMessage<HistorySyncNotification>(nullptr); + } + + HistorySyncNotification* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<HistorySyncNotification>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const HistorySyncNotification& from); + void MergeFrom(const HistorySyncNotification& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HistorySyncNotification* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.HistorySyncNotification"; + } + protected: + explicit HistorySyncNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + typedef HistorySyncNotification_HistorySyncNotificationHistorySyncType HistorySyncNotificationHistorySyncType; + static constexpr HistorySyncNotificationHistorySyncType INITIAL_BOOTSTRAP = + HistorySyncNotification_HistorySyncNotificationHistorySyncType_INITIAL_BOOTSTRAP; + static constexpr HistorySyncNotificationHistorySyncType INITIAL_STATUS_V3 = + HistorySyncNotification_HistorySyncNotificationHistorySyncType_INITIAL_STATUS_V3; + static constexpr HistorySyncNotificationHistorySyncType FULL = + HistorySyncNotification_HistorySyncNotificationHistorySyncType_FULL; + static constexpr HistorySyncNotificationHistorySyncType RECENT = + HistorySyncNotification_HistorySyncNotificationHistorySyncType_RECENT; + static constexpr HistorySyncNotificationHistorySyncType PUSH_NAME = + HistorySyncNotification_HistorySyncNotificationHistorySyncType_PUSH_NAME; + static inline bool HistorySyncNotificationHistorySyncType_IsValid(int value) { + return HistorySyncNotification_HistorySyncNotificationHistorySyncType_IsValid(value); + } + static constexpr HistorySyncNotificationHistorySyncType HistorySyncNotificationHistorySyncType_MIN = + HistorySyncNotification_HistorySyncNotificationHistorySyncType_HistorySyncNotificationHistorySyncType_MIN; + static constexpr HistorySyncNotificationHistorySyncType HistorySyncNotificationHistorySyncType_MAX = + HistorySyncNotification_HistorySyncNotificationHistorySyncType_HistorySyncNotificationHistorySyncType_MAX; + static constexpr int HistorySyncNotificationHistorySyncType_ARRAYSIZE = + HistorySyncNotification_HistorySyncNotificationHistorySyncType_HistorySyncNotificationHistorySyncType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + HistorySyncNotificationHistorySyncType_descriptor() { + return HistorySyncNotification_HistorySyncNotificationHistorySyncType_descriptor(); + } + template<typename T> + static inline const std::string& HistorySyncNotificationHistorySyncType_Name(T enum_t_value) { + static_assert(::std::is_same<T, HistorySyncNotificationHistorySyncType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function HistorySyncNotificationHistorySyncType_Name."); + return HistorySyncNotification_HistorySyncNotificationHistorySyncType_Name(enum_t_value); + } + static inline bool HistorySyncNotificationHistorySyncType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + HistorySyncNotificationHistorySyncType* value) { + return HistorySyncNotification_HistorySyncNotificationHistorySyncType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kFileSha256FieldNumber = 1, + kMediaKeyFieldNumber = 3, + kFileEncSha256FieldNumber = 4, + kDirectPathFieldNumber = 5, + kOriginalMessageIdFieldNumber = 8, + kFileLengthFieldNumber = 2, + kSyncTypeFieldNumber = 6, + kChunkOrderFieldNumber = 7, + }; + // optional bytes fileSha256 = 1; + bool has_filesha256() const; + private: + bool _internal_has_filesha256() const; + public: + void clear_filesha256(); + const std::string& filesha256() const; + void set_filesha256(const std::string& value); + void set_filesha256(std::string&& value); + void set_filesha256(const char* value); + void set_filesha256(const void* value, size_t size); + std::string* mutable_filesha256(); + std::string* release_filesha256(); + void set_allocated_filesha256(std::string* filesha256); + private: + const std::string& _internal_filesha256() const; + void _internal_set_filesha256(const std::string& value); + std::string* _internal_mutable_filesha256(); + public: + + // optional bytes mediaKey = 3; + bool has_mediakey() const; + private: + bool _internal_has_mediakey() const; + public: + void clear_mediakey(); + const std::string& mediakey() const; + void set_mediakey(const std::string& value); + void set_mediakey(std::string&& value); + void set_mediakey(const char* value); + void set_mediakey(const void* value, size_t size); + std::string* mutable_mediakey(); + std::string* release_mediakey(); + void set_allocated_mediakey(std::string* mediakey); + private: + const std::string& _internal_mediakey() const; + void _internal_set_mediakey(const std::string& value); + std::string* _internal_mutable_mediakey(); + public: + + // optional bytes fileEncSha256 = 4; + bool has_fileencsha256() const; + private: + bool _internal_has_fileencsha256() const; + public: + void clear_fileencsha256(); + const std::string& fileencsha256() const; + void set_fileencsha256(const std::string& value); + void set_fileencsha256(std::string&& value); + void set_fileencsha256(const char* value); + void set_fileencsha256(const void* value, size_t size); + std::string* mutable_fileencsha256(); + std::string* release_fileencsha256(); + void set_allocated_fileencsha256(std::string* fileencsha256); + private: + const std::string& _internal_fileencsha256() const; + void _internal_set_fileencsha256(const std::string& value); + std::string* _internal_mutable_fileencsha256(); + public: + + // optional string directPath = 5; + bool has_directpath() const; + private: + bool _internal_has_directpath() const; + public: + void clear_directpath(); + const std::string& directpath() const; + void set_directpath(const std::string& value); + void set_directpath(std::string&& value); + void set_directpath(const char* value); + void set_directpath(const char* value, size_t size); + std::string* mutable_directpath(); + std::string* release_directpath(); + void set_allocated_directpath(std::string* directpath); + private: + const std::string& _internal_directpath() const; + void _internal_set_directpath(const std::string& value); + std::string* _internal_mutable_directpath(); + public: + + // optional string originalMessageId = 8; + bool has_originalmessageid() const; + private: + bool _internal_has_originalmessageid() const; + public: + void clear_originalmessageid(); + const std::string& originalmessageid() const; + void set_originalmessageid(const std::string& value); + void set_originalmessageid(std::string&& value); + void set_originalmessageid(const char* value); + void set_originalmessageid(const char* value, size_t size); + std::string* mutable_originalmessageid(); + std::string* release_originalmessageid(); + void set_allocated_originalmessageid(std::string* originalmessageid); + private: + const std::string& _internal_originalmessageid() const; + void _internal_set_originalmessageid(const std::string& value); + std::string* _internal_mutable_originalmessageid(); + public: + + // optional uint64 fileLength = 2; + bool has_filelength() const; + private: + bool _internal_has_filelength() const; + public: + void clear_filelength(); + ::PROTOBUF_NAMESPACE_ID::uint64 filelength() const; + void set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_filelength() const; + void _internal_set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // optional .proto.HistorySyncNotification.HistorySyncNotificationHistorySyncType syncType = 6; + bool has_synctype() const; + private: + bool _internal_has_synctype() const; + public: + void clear_synctype(); + ::proto::HistorySyncNotification_HistorySyncNotificationHistorySyncType synctype() const; + void set_synctype(::proto::HistorySyncNotification_HistorySyncNotificationHistorySyncType value); + private: + ::proto::HistorySyncNotification_HistorySyncNotificationHistorySyncType _internal_synctype() const; + void _internal_set_synctype(::proto::HistorySyncNotification_HistorySyncNotificationHistorySyncType value); + public: + + // optional uint32 chunkOrder = 7; + bool has_chunkorder() const; + private: + bool _internal_has_chunkorder() const; + public: + void clear_chunkorder(); + ::PROTOBUF_NAMESPACE_ID::uint32 chunkorder() const; + void set_chunkorder(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_chunkorder() const; + void _internal_set_chunkorder(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // @@protoc_insertion_point(class_scope:proto.HistorySyncNotification) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filesha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mediakey_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fileencsha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr directpath_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr originalmessageid_; + ::PROTOBUF_NAMESPACE_ID::uint64 filelength_; + int synctype_; + ::PROTOBUF_NAMESPACE_ID::uint32 chunkorder_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class AppStateSyncKey PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AppStateSyncKey) */ { + public: + inline AppStateSyncKey() : AppStateSyncKey(nullptr) {} + virtual ~AppStateSyncKey(); + explicit constexpr AppStateSyncKey(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AppStateSyncKey(const AppStateSyncKey& from); + AppStateSyncKey(AppStateSyncKey&& from) noexcept + : AppStateSyncKey() { + *this = ::std::move(from); + } + + inline AppStateSyncKey& operator=(const AppStateSyncKey& from) { + CopyFrom(from); + return *this; + } + inline AppStateSyncKey& operator=(AppStateSyncKey&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const AppStateSyncKey& default_instance() { + return *internal_default_instance(); + } + static inline const AppStateSyncKey* internal_default_instance() { + return reinterpret_cast<const AppStateSyncKey*>( + &_AppStateSyncKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 30; + + friend void swap(AppStateSyncKey& a, AppStateSyncKey& b) { + a.Swap(&b); + } + inline void Swap(AppStateSyncKey* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AppStateSyncKey* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline AppStateSyncKey* New() const final { + return CreateMaybeMessage<AppStateSyncKey>(nullptr); + } + + AppStateSyncKey* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<AppStateSyncKey>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const AppStateSyncKey& from); + void MergeFrom(const AppStateSyncKey& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AppStateSyncKey* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.AppStateSyncKey"; + } + protected: + explicit AppStateSyncKey(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kKeyIdFieldNumber = 1, + kKeyDataFieldNumber = 2, + }; + // optional .proto.AppStateSyncKeyId keyId = 1; + bool has_keyid() const; + private: + bool _internal_has_keyid() const; + public: + void clear_keyid(); + const ::proto::AppStateSyncKeyId& keyid() const; + ::proto::AppStateSyncKeyId* release_keyid(); + ::proto::AppStateSyncKeyId* mutable_keyid(); + void set_allocated_keyid(::proto::AppStateSyncKeyId* keyid); + private: + const ::proto::AppStateSyncKeyId& _internal_keyid() const; + ::proto::AppStateSyncKeyId* _internal_mutable_keyid(); + public: + void unsafe_arena_set_allocated_keyid( + ::proto::AppStateSyncKeyId* keyid); + ::proto::AppStateSyncKeyId* unsafe_arena_release_keyid(); + + // optional .proto.AppStateSyncKeyData keyData = 2; + bool has_keydata() const; + private: + bool _internal_has_keydata() const; + public: + void clear_keydata(); + const ::proto::AppStateSyncKeyData& keydata() const; + ::proto::AppStateSyncKeyData* release_keydata(); + ::proto::AppStateSyncKeyData* mutable_keydata(); + void set_allocated_keydata(::proto::AppStateSyncKeyData* keydata); + private: + const ::proto::AppStateSyncKeyData& _internal_keydata() const; + ::proto::AppStateSyncKeyData* _internal_mutable_keydata(); + public: + void unsafe_arena_set_allocated_keydata( + ::proto::AppStateSyncKeyData* keydata); + ::proto::AppStateSyncKeyData* unsafe_arena_release_keydata(); + + // @@protoc_insertion_point(class_scope:proto.AppStateSyncKey) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::proto::AppStateSyncKeyId* keyid_; + ::proto::AppStateSyncKeyData* keydata_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class AppStateSyncKeyId PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AppStateSyncKeyId) */ { + public: + inline AppStateSyncKeyId() : AppStateSyncKeyId(nullptr) {} + virtual ~AppStateSyncKeyId(); + explicit constexpr AppStateSyncKeyId(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AppStateSyncKeyId(const AppStateSyncKeyId& from); + AppStateSyncKeyId(AppStateSyncKeyId&& from) noexcept + : AppStateSyncKeyId() { + *this = ::std::move(from); + } + + inline AppStateSyncKeyId& operator=(const AppStateSyncKeyId& from) { + CopyFrom(from); + return *this; + } + inline AppStateSyncKeyId& operator=(AppStateSyncKeyId&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const AppStateSyncKeyId& default_instance() { + return *internal_default_instance(); + } + static inline const AppStateSyncKeyId* internal_default_instance() { + return reinterpret_cast<const AppStateSyncKeyId*>( + &_AppStateSyncKeyId_default_instance_); + } + static constexpr int kIndexInFileMessages = + 31; + + friend void swap(AppStateSyncKeyId& a, AppStateSyncKeyId& b) { + a.Swap(&b); + } + inline void Swap(AppStateSyncKeyId* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AppStateSyncKeyId* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline AppStateSyncKeyId* New() const final { + return CreateMaybeMessage<AppStateSyncKeyId>(nullptr); + } + + AppStateSyncKeyId* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<AppStateSyncKeyId>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const AppStateSyncKeyId& from); + void MergeFrom(const AppStateSyncKeyId& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AppStateSyncKeyId* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.AppStateSyncKeyId"; + } + protected: + explicit AppStateSyncKeyId(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kKeyIdFieldNumber = 1, + }; + // optional bytes keyId = 1; + bool has_keyid() const; + private: + bool _internal_has_keyid() const; + public: + void clear_keyid(); + const std::string& keyid() const; + void set_keyid(const std::string& value); + void set_keyid(std::string&& value); + void set_keyid(const char* value); + void set_keyid(const void* value, size_t size); + std::string* mutable_keyid(); + std::string* release_keyid(); + void set_allocated_keyid(std::string* keyid); + private: + const std::string& _internal_keyid() const; + void _internal_set_keyid(const std::string& value); + std::string* _internal_mutable_keyid(); + public: + + // @@protoc_insertion_point(class_scope:proto.AppStateSyncKeyId) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr keyid_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class AppStateSyncKeyFingerprint PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AppStateSyncKeyFingerprint) */ { + public: + inline AppStateSyncKeyFingerprint() : AppStateSyncKeyFingerprint(nullptr) {} + virtual ~AppStateSyncKeyFingerprint(); + explicit constexpr AppStateSyncKeyFingerprint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AppStateSyncKeyFingerprint(const AppStateSyncKeyFingerprint& from); + AppStateSyncKeyFingerprint(AppStateSyncKeyFingerprint&& from) noexcept + : AppStateSyncKeyFingerprint() { + *this = ::std::move(from); + } + + inline AppStateSyncKeyFingerprint& operator=(const AppStateSyncKeyFingerprint& from) { + CopyFrom(from); + return *this; + } + inline AppStateSyncKeyFingerprint& operator=(AppStateSyncKeyFingerprint&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const AppStateSyncKeyFingerprint& default_instance() { + return *internal_default_instance(); + } + static inline const AppStateSyncKeyFingerprint* internal_default_instance() { + return reinterpret_cast<const AppStateSyncKeyFingerprint*>( + &_AppStateSyncKeyFingerprint_default_instance_); + } + static constexpr int kIndexInFileMessages = + 32; + + friend void swap(AppStateSyncKeyFingerprint& a, AppStateSyncKeyFingerprint& b) { + a.Swap(&b); + } + inline void Swap(AppStateSyncKeyFingerprint* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AppStateSyncKeyFingerprint* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline AppStateSyncKeyFingerprint* New() const final { + return CreateMaybeMessage<AppStateSyncKeyFingerprint>(nullptr); + } + + AppStateSyncKeyFingerprint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<AppStateSyncKeyFingerprint>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const AppStateSyncKeyFingerprint& from); + void MergeFrom(const AppStateSyncKeyFingerprint& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AppStateSyncKeyFingerprint* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.AppStateSyncKeyFingerprint"; + } + protected: + explicit AppStateSyncKeyFingerprint(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDeviceIndexesFieldNumber = 3, + kRawIdFieldNumber = 1, + kCurrentIndexFieldNumber = 2, + }; + // repeated uint32 deviceIndexes = 3 [packed = true]; + int deviceindexes_size() const; + private: + int _internal_deviceindexes_size() const; + public: + void clear_deviceindexes(); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_deviceindexes(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& + _internal_deviceindexes() const; + void _internal_add_deviceindexes(::PROTOBUF_NAMESPACE_ID::uint32 value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* + _internal_mutable_deviceindexes(); + public: + ::PROTOBUF_NAMESPACE_ID::uint32 deviceindexes(int index) const; + void set_deviceindexes(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value); + void add_deviceindexes(::PROTOBUF_NAMESPACE_ID::uint32 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& + deviceindexes() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* + mutable_deviceindexes(); + + // optional uint32 rawId = 1; + bool has_rawid() const; + private: + bool _internal_has_rawid() const; + public: + void clear_rawid(); + ::PROTOBUF_NAMESPACE_ID::uint32 rawid() const; + void set_rawid(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_rawid() const; + void _internal_set_rawid(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 currentIndex = 2; + bool has_currentindex() const; + private: + bool _internal_has_currentindex() const; + public: + void clear_currentindex(); + ::PROTOBUF_NAMESPACE_ID::uint32 currentindex() const; + void set_currentindex(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_currentindex() const; + void _internal_set_currentindex(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // @@protoc_insertion_point(class_scope:proto.AppStateSyncKeyFingerprint) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 > deviceindexes_; + mutable std::atomic<int> _deviceindexes_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 rawid_; + ::PROTOBUF_NAMESPACE_ID::uint32 currentindex_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class AppStateSyncKeyData PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AppStateSyncKeyData) */ { + public: + inline AppStateSyncKeyData() : AppStateSyncKeyData(nullptr) {} + virtual ~AppStateSyncKeyData(); + explicit constexpr AppStateSyncKeyData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AppStateSyncKeyData(const AppStateSyncKeyData& from); + AppStateSyncKeyData(AppStateSyncKeyData&& from) noexcept + : AppStateSyncKeyData() { + *this = ::std::move(from); + } + + inline AppStateSyncKeyData& operator=(const AppStateSyncKeyData& from) { + CopyFrom(from); + return *this; + } + inline AppStateSyncKeyData& operator=(AppStateSyncKeyData&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const AppStateSyncKeyData& default_instance() { + return *internal_default_instance(); + } + static inline const AppStateSyncKeyData* internal_default_instance() { + return reinterpret_cast<const AppStateSyncKeyData*>( + &_AppStateSyncKeyData_default_instance_); + } + static constexpr int kIndexInFileMessages = + 33; + + friend void swap(AppStateSyncKeyData& a, AppStateSyncKeyData& b) { + a.Swap(&b); + } + inline void Swap(AppStateSyncKeyData* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AppStateSyncKeyData* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline AppStateSyncKeyData* New() const final { + return CreateMaybeMessage<AppStateSyncKeyData>(nullptr); + } + + AppStateSyncKeyData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<AppStateSyncKeyData>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const AppStateSyncKeyData& from); + void MergeFrom(const AppStateSyncKeyData& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AppStateSyncKeyData* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.AppStateSyncKeyData"; + } + protected: + explicit AppStateSyncKeyData(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kKeyDataFieldNumber = 1, + kFingerprintFieldNumber = 2, + kTimestampFieldNumber = 3, + }; + // optional bytes keyData = 1; + bool has_keydata() const; + private: + bool _internal_has_keydata() const; + public: + void clear_keydata(); + const std::string& keydata() const; + void set_keydata(const std::string& value); + void set_keydata(std::string&& value); + void set_keydata(const char* value); + void set_keydata(const void* value, size_t size); + std::string* mutable_keydata(); + std::string* release_keydata(); + void set_allocated_keydata(std::string* keydata); + private: + const std::string& _internal_keydata() const; + void _internal_set_keydata(const std::string& value); + std::string* _internal_mutable_keydata(); + public: + + // optional .proto.AppStateSyncKeyFingerprint fingerprint = 2; + bool has_fingerprint() const; + private: + bool _internal_has_fingerprint() const; + public: + void clear_fingerprint(); + const ::proto::AppStateSyncKeyFingerprint& fingerprint() const; + ::proto::AppStateSyncKeyFingerprint* release_fingerprint(); + ::proto::AppStateSyncKeyFingerprint* mutable_fingerprint(); + void set_allocated_fingerprint(::proto::AppStateSyncKeyFingerprint* fingerprint); + private: + const ::proto::AppStateSyncKeyFingerprint& _internal_fingerprint() const; + ::proto::AppStateSyncKeyFingerprint* _internal_mutable_fingerprint(); + public: + void unsafe_arena_set_allocated_fingerprint( + ::proto::AppStateSyncKeyFingerprint* fingerprint); + ::proto::AppStateSyncKeyFingerprint* unsafe_arena_release_fingerprint(); + + // optional int64 timestamp = 3; + bool has_timestamp() const; + private: + bool _internal_has_timestamp() const; + public: + void clear_timestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; + void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_timestamp() const; + void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:proto.AppStateSyncKeyData) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr keydata_; + ::proto::AppStateSyncKeyFingerprint* fingerprint_; + ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class AppStateSyncKeyShare PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AppStateSyncKeyShare) */ { + public: + inline AppStateSyncKeyShare() : AppStateSyncKeyShare(nullptr) {} + virtual ~AppStateSyncKeyShare(); + explicit constexpr AppStateSyncKeyShare(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AppStateSyncKeyShare(const AppStateSyncKeyShare& from); + AppStateSyncKeyShare(AppStateSyncKeyShare&& from) noexcept + : AppStateSyncKeyShare() { + *this = ::std::move(from); + } + + inline AppStateSyncKeyShare& operator=(const AppStateSyncKeyShare& from) { + CopyFrom(from); + return *this; + } + inline AppStateSyncKeyShare& operator=(AppStateSyncKeyShare&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const AppStateSyncKeyShare& default_instance() { + return *internal_default_instance(); + } + static inline const AppStateSyncKeyShare* internal_default_instance() { + return reinterpret_cast<const AppStateSyncKeyShare*>( + &_AppStateSyncKeyShare_default_instance_); + } + static constexpr int kIndexInFileMessages = + 34; + + friend void swap(AppStateSyncKeyShare& a, AppStateSyncKeyShare& b) { + a.Swap(&b); + } + inline void Swap(AppStateSyncKeyShare* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AppStateSyncKeyShare* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline AppStateSyncKeyShare* New() const final { + return CreateMaybeMessage<AppStateSyncKeyShare>(nullptr); + } + + AppStateSyncKeyShare* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<AppStateSyncKeyShare>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const AppStateSyncKeyShare& from); + void MergeFrom(const AppStateSyncKeyShare& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AppStateSyncKeyShare* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.AppStateSyncKeyShare"; + } + protected: + explicit AppStateSyncKeyShare(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kKeysFieldNumber = 1, + }; + // repeated .proto.AppStateSyncKey keys = 1; + int keys_size() const; + private: + int _internal_keys_size() const; + public: + void clear_keys(); + ::proto::AppStateSyncKey* mutable_keys(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::AppStateSyncKey >* + mutable_keys(); + private: + const ::proto::AppStateSyncKey& _internal_keys(int index) const; + ::proto::AppStateSyncKey* _internal_add_keys(); + public: + const ::proto::AppStateSyncKey& keys(int index) const; + ::proto::AppStateSyncKey* add_keys(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::AppStateSyncKey >& + keys() const; + + // @@protoc_insertion_point(class_scope:proto.AppStateSyncKeyShare) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::AppStateSyncKey > keys_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class AppStateSyncKeyRequest PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AppStateSyncKeyRequest) */ { + public: + inline AppStateSyncKeyRequest() : AppStateSyncKeyRequest(nullptr) {} + virtual ~AppStateSyncKeyRequest(); + explicit constexpr AppStateSyncKeyRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AppStateSyncKeyRequest(const AppStateSyncKeyRequest& from); + AppStateSyncKeyRequest(AppStateSyncKeyRequest&& from) noexcept + : AppStateSyncKeyRequest() { + *this = ::std::move(from); + } + + inline AppStateSyncKeyRequest& operator=(const AppStateSyncKeyRequest& from) { + CopyFrom(from); + return *this; + } + inline AppStateSyncKeyRequest& operator=(AppStateSyncKeyRequest&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const AppStateSyncKeyRequest& default_instance() { + return *internal_default_instance(); + } + static inline const AppStateSyncKeyRequest* internal_default_instance() { + return reinterpret_cast<const AppStateSyncKeyRequest*>( + &_AppStateSyncKeyRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 35; + + friend void swap(AppStateSyncKeyRequest& a, AppStateSyncKeyRequest& b) { + a.Swap(&b); + } + inline void Swap(AppStateSyncKeyRequest* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AppStateSyncKeyRequest* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline AppStateSyncKeyRequest* New() const final { + return CreateMaybeMessage<AppStateSyncKeyRequest>(nullptr); + } + + AppStateSyncKeyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<AppStateSyncKeyRequest>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const AppStateSyncKeyRequest& from); + void MergeFrom(const AppStateSyncKeyRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AppStateSyncKeyRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.AppStateSyncKeyRequest"; + } + protected: + explicit AppStateSyncKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kKeyIdsFieldNumber = 1, + }; + // repeated .proto.AppStateSyncKeyId keyIds = 1; + int keyids_size() const; + private: + int _internal_keyids_size() const; + public: + void clear_keyids(); + ::proto::AppStateSyncKeyId* mutable_keyids(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::AppStateSyncKeyId >* + mutable_keyids(); + private: + const ::proto::AppStateSyncKeyId& _internal_keyids(int index) const; + ::proto::AppStateSyncKeyId* _internal_add_keyids(); + public: + const ::proto::AppStateSyncKeyId& keyids(int index) const; + ::proto::AppStateSyncKeyId* add_keyids(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::AppStateSyncKeyId >& + keyids() const; + + // @@protoc_insertion_point(class_scope:proto.AppStateSyncKeyRequest) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::AppStateSyncKeyId > keyids_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class AppStateFatalExceptionNotification PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AppStateFatalExceptionNotification) */ { + public: + inline AppStateFatalExceptionNotification() : AppStateFatalExceptionNotification(nullptr) {} + virtual ~AppStateFatalExceptionNotification(); + explicit constexpr AppStateFatalExceptionNotification(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AppStateFatalExceptionNotification(const AppStateFatalExceptionNotification& from); + AppStateFatalExceptionNotification(AppStateFatalExceptionNotification&& from) noexcept + : AppStateFatalExceptionNotification() { + *this = ::std::move(from); + } + + inline AppStateFatalExceptionNotification& operator=(const AppStateFatalExceptionNotification& from) { + CopyFrom(from); + return *this; + } + inline AppStateFatalExceptionNotification& operator=(AppStateFatalExceptionNotification&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const AppStateFatalExceptionNotification& default_instance() { + return *internal_default_instance(); + } + static inline const AppStateFatalExceptionNotification* internal_default_instance() { + return reinterpret_cast<const AppStateFatalExceptionNotification*>( + &_AppStateFatalExceptionNotification_default_instance_); + } + static constexpr int kIndexInFileMessages = + 36; + + friend void swap(AppStateFatalExceptionNotification& a, AppStateFatalExceptionNotification& b) { + a.Swap(&b); + } + inline void Swap(AppStateFatalExceptionNotification* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AppStateFatalExceptionNotification* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline AppStateFatalExceptionNotification* New() const final { + return CreateMaybeMessage<AppStateFatalExceptionNotification>(nullptr); + } + + AppStateFatalExceptionNotification* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<AppStateFatalExceptionNotification>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const AppStateFatalExceptionNotification& from); + void MergeFrom(const AppStateFatalExceptionNotification& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AppStateFatalExceptionNotification* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.AppStateFatalExceptionNotification"; + } + protected: + explicit AppStateFatalExceptionNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCollectionNamesFieldNumber = 1, + kTimestampFieldNumber = 2, + }; + // repeated string collectionNames = 1; + int collectionnames_size() const; + private: + int _internal_collectionnames_size() const; + public: + void clear_collectionnames(); + const std::string& collectionnames(int index) const; + std::string* mutable_collectionnames(int index); + void set_collectionnames(int index, const std::string& value); + void set_collectionnames(int index, std::string&& value); + void set_collectionnames(int index, const char* value); + void set_collectionnames(int index, const char* value, size_t size); + std::string* add_collectionnames(); + void add_collectionnames(const std::string& value); + void add_collectionnames(std::string&& value); + void add_collectionnames(const char* value); + void add_collectionnames(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& collectionnames() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_collectionnames(); + private: + const std::string& _internal_collectionnames(int index) const; + std::string* _internal_add_collectionnames(); + public: + + // optional int64 timestamp = 2; + bool has_timestamp() const; + private: + bool _internal_has_timestamp() const; + public: + void clear_timestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; + void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_timestamp() const; + void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:proto.AppStateFatalExceptionNotification) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> collectionnames_; + ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class InitialSecurityNotificationSettingSync PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.InitialSecurityNotificationSettingSync) */ { + public: + inline InitialSecurityNotificationSettingSync() : InitialSecurityNotificationSettingSync(nullptr) {} + virtual ~InitialSecurityNotificationSettingSync(); + explicit constexpr InitialSecurityNotificationSettingSync(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + InitialSecurityNotificationSettingSync(const InitialSecurityNotificationSettingSync& from); + InitialSecurityNotificationSettingSync(InitialSecurityNotificationSettingSync&& from) noexcept + : InitialSecurityNotificationSettingSync() { + *this = ::std::move(from); + } + + inline InitialSecurityNotificationSettingSync& operator=(const InitialSecurityNotificationSettingSync& from) { + CopyFrom(from); + return *this; + } + inline InitialSecurityNotificationSettingSync& operator=(InitialSecurityNotificationSettingSync&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const InitialSecurityNotificationSettingSync& default_instance() { + return *internal_default_instance(); + } + static inline const InitialSecurityNotificationSettingSync* internal_default_instance() { + return reinterpret_cast<const InitialSecurityNotificationSettingSync*>( + &_InitialSecurityNotificationSettingSync_default_instance_); + } + static constexpr int kIndexInFileMessages = + 37; + + friend void swap(InitialSecurityNotificationSettingSync& a, InitialSecurityNotificationSettingSync& b) { + a.Swap(&b); + } + inline void Swap(InitialSecurityNotificationSettingSync* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(InitialSecurityNotificationSettingSync* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline InitialSecurityNotificationSettingSync* New() const final { + return CreateMaybeMessage<InitialSecurityNotificationSettingSync>(nullptr); + } + + InitialSecurityNotificationSettingSync* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<InitialSecurityNotificationSettingSync>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const InitialSecurityNotificationSettingSync& from); + void MergeFrom(const InitialSecurityNotificationSettingSync& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(InitialSecurityNotificationSettingSync* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.InitialSecurityNotificationSettingSync"; + } + protected: + explicit InitialSecurityNotificationSettingSync(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kSecurityNotificationEnabledFieldNumber = 1, + }; + // optional bool securityNotificationEnabled = 1; + bool has_securitynotificationenabled() const; + private: + bool _internal_has_securitynotificationenabled() const; + public: + void clear_securitynotificationenabled(); + bool securitynotificationenabled() const; + void set_securitynotificationenabled(bool value); + private: + bool _internal_securitynotificationenabled() const; + void _internal_set_securitynotificationenabled(bool value); + public: + + // @@protoc_insertion_point(class_scope:proto.InitialSecurityNotificationSettingSync) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + bool securitynotificationenabled_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class ContactsArrayMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ContactsArrayMessage) */ { + public: + inline ContactsArrayMessage() : ContactsArrayMessage(nullptr) {} + virtual ~ContactsArrayMessage(); + explicit constexpr ContactsArrayMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ContactsArrayMessage(const ContactsArrayMessage& from); + ContactsArrayMessage(ContactsArrayMessage&& from) noexcept + : ContactsArrayMessage() { + *this = ::std::move(from); + } + + inline ContactsArrayMessage& operator=(const ContactsArrayMessage& from) { + CopyFrom(from); + return *this; + } + inline ContactsArrayMessage& operator=(ContactsArrayMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ContactsArrayMessage& default_instance() { + return *internal_default_instance(); + } + static inline const ContactsArrayMessage* internal_default_instance() { + return reinterpret_cast<const ContactsArrayMessage*>( + &_ContactsArrayMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 38; + + friend void swap(ContactsArrayMessage& a, ContactsArrayMessage& b) { + a.Swap(&b); + } + inline void Swap(ContactsArrayMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ContactsArrayMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ContactsArrayMessage* New() const final { + return CreateMaybeMessage<ContactsArrayMessage>(nullptr); + } + + ContactsArrayMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ContactsArrayMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ContactsArrayMessage& from); + void MergeFrom(const ContactsArrayMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ContactsArrayMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.ContactsArrayMessage"; + } + protected: + explicit ContactsArrayMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kContactsFieldNumber = 2, + kDisplayNameFieldNumber = 1, + kContextInfoFieldNumber = 17, + }; + // repeated .proto.ContactMessage contacts = 2; + int contacts_size() const; + private: + int _internal_contacts_size() const; + public: + void clear_contacts(); + ::proto::ContactMessage* mutable_contacts(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::ContactMessage >* + mutable_contacts(); + private: + const ::proto::ContactMessage& _internal_contacts(int index) const; + ::proto::ContactMessage* _internal_add_contacts(); + public: + const ::proto::ContactMessage& contacts(int index) const; + ::proto::ContactMessage* add_contacts(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::ContactMessage >& + contacts() const; + + // optional string displayName = 1; + bool has_displayname() const; + private: + bool _internal_has_displayname() const; + public: + void clear_displayname(); + const std::string& displayname() const; + void set_displayname(const std::string& value); + void set_displayname(std::string&& value); + void set_displayname(const char* value); + void set_displayname(const char* value, size_t size); + std::string* mutable_displayname(); + std::string* release_displayname(); + void set_allocated_displayname(std::string* displayname); + private: + const std::string& _internal_displayname() const; + void _internal_set_displayname(const std::string& value); + std::string* _internal_mutable_displayname(); + public: + + // optional .proto.ContextInfo contextInfo = 17; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // @@protoc_insertion_point(class_scope:proto.ContactsArrayMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::ContactMessage > contacts_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr displayname_; + ::proto::ContextInfo* contextinfo_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class HSMCurrency PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HSMCurrency) */ { + public: + inline HSMCurrency() : HSMCurrency(nullptr) {} + virtual ~HSMCurrency(); + explicit constexpr HSMCurrency(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + HSMCurrency(const HSMCurrency& from); + HSMCurrency(HSMCurrency&& from) noexcept + : HSMCurrency() { + *this = ::std::move(from); + } + + inline HSMCurrency& operator=(const HSMCurrency& from) { + CopyFrom(from); + return *this; + } + inline HSMCurrency& operator=(HSMCurrency&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const HSMCurrency& default_instance() { + return *internal_default_instance(); + } + static inline const HSMCurrency* internal_default_instance() { + return reinterpret_cast<const HSMCurrency*>( + &_HSMCurrency_default_instance_); + } + static constexpr int kIndexInFileMessages = + 39; + + friend void swap(HSMCurrency& a, HSMCurrency& b) { + a.Swap(&b); + } + inline void Swap(HSMCurrency* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HSMCurrency* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline HSMCurrency* New() const final { + return CreateMaybeMessage<HSMCurrency>(nullptr); + } + + HSMCurrency* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<HSMCurrency>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const HSMCurrency& from); + void MergeFrom(const HSMCurrency& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HSMCurrency* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.HSMCurrency"; + } + protected: + explicit HSMCurrency(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCurrencyCodeFieldNumber = 1, + kAmount1000FieldNumber = 2, + }; + // optional string currencyCode = 1; + bool has_currencycode() const; + private: + bool _internal_has_currencycode() const; + public: + void clear_currencycode(); + const std::string& currencycode() const; + void set_currencycode(const std::string& value); + void set_currencycode(std::string&& value); + void set_currencycode(const char* value); + void set_currencycode(const char* value, size_t size); + std::string* mutable_currencycode(); + std::string* release_currencycode(); + void set_allocated_currencycode(std::string* currencycode); + private: + const std::string& _internal_currencycode() const; + void _internal_set_currencycode(const std::string& value); + std::string* _internal_mutable_currencycode(); + public: + + // optional int64 amount1000 = 2; + bool has_amount1000() const; + private: + bool _internal_has_amount1000() const; + public: + void clear_amount1000(); + ::PROTOBUF_NAMESPACE_ID::int64 amount1000() const; + void set_amount1000(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_amount1000() const; + void _internal_set_amount1000(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:proto.HSMCurrency) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr currencycode_; + ::PROTOBUF_NAMESPACE_ID::int64 amount1000_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class HSMDateTimeComponent PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HSMDateTimeComponent) */ { + public: + inline HSMDateTimeComponent() : HSMDateTimeComponent(nullptr) {} + virtual ~HSMDateTimeComponent(); + explicit constexpr HSMDateTimeComponent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + HSMDateTimeComponent(const HSMDateTimeComponent& from); + HSMDateTimeComponent(HSMDateTimeComponent&& from) noexcept + : HSMDateTimeComponent() { + *this = ::std::move(from); + } + + inline HSMDateTimeComponent& operator=(const HSMDateTimeComponent& from) { + CopyFrom(from); + return *this; + } + inline HSMDateTimeComponent& operator=(HSMDateTimeComponent&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const HSMDateTimeComponent& default_instance() { + return *internal_default_instance(); + } + static inline const HSMDateTimeComponent* internal_default_instance() { + return reinterpret_cast<const HSMDateTimeComponent*>( + &_HSMDateTimeComponent_default_instance_); + } + static constexpr int kIndexInFileMessages = + 40; + + friend void swap(HSMDateTimeComponent& a, HSMDateTimeComponent& b) { + a.Swap(&b); + } + inline void Swap(HSMDateTimeComponent* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HSMDateTimeComponent* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline HSMDateTimeComponent* New() const final { + return CreateMaybeMessage<HSMDateTimeComponent>(nullptr); + } + + HSMDateTimeComponent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<HSMDateTimeComponent>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const HSMDateTimeComponent& from); + void MergeFrom(const HSMDateTimeComponent& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HSMDateTimeComponent* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.HSMDateTimeComponent"; + } + protected: + explicit HSMDateTimeComponent(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + typedef HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComponentDayOfWeekType; + static constexpr HSMDateTimeComponentDayOfWeekType MONDAY = + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_MONDAY; + static constexpr HSMDateTimeComponentDayOfWeekType TUESDAY = + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_TUESDAY; + static constexpr HSMDateTimeComponentDayOfWeekType WEDNESDAY = + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_WEDNESDAY; + static constexpr HSMDateTimeComponentDayOfWeekType THURSDAY = + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_THURSDAY; + static constexpr HSMDateTimeComponentDayOfWeekType FRIDAY = + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_FRIDAY; + static constexpr HSMDateTimeComponentDayOfWeekType SATURDAY = + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_SATURDAY; + static constexpr HSMDateTimeComponentDayOfWeekType SUNDAY = + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_SUNDAY; + static inline bool HSMDateTimeComponentDayOfWeekType_IsValid(int value) { + return HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_IsValid(value); + } + static constexpr HSMDateTimeComponentDayOfWeekType HSMDateTimeComponentDayOfWeekType_MIN = + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_HSMDateTimeComponentDayOfWeekType_MIN; + static constexpr HSMDateTimeComponentDayOfWeekType HSMDateTimeComponentDayOfWeekType_MAX = + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_HSMDateTimeComponentDayOfWeekType_MAX; + static constexpr int HSMDateTimeComponentDayOfWeekType_ARRAYSIZE = + HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_HSMDateTimeComponentDayOfWeekType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + HSMDateTimeComponentDayOfWeekType_descriptor() { + return HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_descriptor(); + } + template<typename T> + static inline const std::string& HSMDateTimeComponentDayOfWeekType_Name(T enum_t_value) { + static_assert(::std::is_same<T, HSMDateTimeComponentDayOfWeekType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function HSMDateTimeComponentDayOfWeekType_Name."); + return HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_Name(enum_t_value); + } + static inline bool HSMDateTimeComponentDayOfWeekType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + HSMDateTimeComponentDayOfWeekType* value) { + return HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_Parse(name, value); + } + + typedef HSMDateTimeComponent_HSMDateTimeComponentCalendarType HSMDateTimeComponentCalendarType; + static constexpr HSMDateTimeComponentCalendarType GREGORIAN = + HSMDateTimeComponent_HSMDateTimeComponentCalendarType_GREGORIAN; + static constexpr HSMDateTimeComponentCalendarType SOLAR_HIJRI = + HSMDateTimeComponent_HSMDateTimeComponentCalendarType_SOLAR_HIJRI; + static inline bool HSMDateTimeComponentCalendarType_IsValid(int value) { + return HSMDateTimeComponent_HSMDateTimeComponentCalendarType_IsValid(value); + } + static constexpr HSMDateTimeComponentCalendarType HSMDateTimeComponentCalendarType_MIN = + HSMDateTimeComponent_HSMDateTimeComponentCalendarType_HSMDateTimeComponentCalendarType_MIN; + static constexpr HSMDateTimeComponentCalendarType HSMDateTimeComponentCalendarType_MAX = + HSMDateTimeComponent_HSMDateTimeComponentCalendarType_HSMDateTimeComponentCalendarType_MAX; + static constexpr int HSMDateTimeComponentCalendarType_ARRAYSIZE = + HSMDateTimeComponent_HSMDateTimeComponentCalendarType_HSMDateTimeComponentCalendarType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + HSMDateTimeComponentCalendarType_descriptor() { + return HSMDateTimeComponent_HSMDateTimeComponentCalendarType_descriptor(); + } + template<typename T> + static inline const std::string& HSMDateTimeComponentCalendarType_Name(T enum_t_value) { + static_assert(::std::is_same<T, HSMDateTimeComponentCalendarType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function HSMDateTimeComponentCalendarType_Name."); + return HSMDateTimeComponent_HSMDateTimeComponentCalendarType_Name(enum_t_value); + } + static inline bool HSMDateTimeComponentCalendarType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + HSMDateTimeComponentCalendarType* value) { + return HSMDateTimeComponent_HSMDateTimeComponentCalendarType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kYearFieldNumber = 2, + kMonthFieldNumber = 3, + kDayOfMonthFieldNumber = 4, + kHourFieldNumber = 5, + kMinuteFieldNumber = 6, + kDayOfWeekFieldNumber = 1, + kCalendarFieldNumber = 7, + }; + // optional uint32 year = 2; + bool has_year() const; + private: + bool _internal_has_year() const; + public: + void clear_year(); + ::PROTOBUF_NAMESPACE_ID::uint32 year() const; + void set_year(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_year() const; + void _internal_set_year(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 month = 3; + bool has_month() const; + private: + bool _internal_has_month() const; + public: + void clear_month(); + ::PROTOBUF_NAMESPACE_ID::uint32 month() const; + void set_month(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_month() const; + void _internal_set_month(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 dayOfMonth = 4; + bool has_dayofmonth() const; + private: + bool _internal_has_dayofmonth() const; + public: + void clear_dayofmonth(); + ::PROTOBUF_NAMESPACE_ID::uint32 dayofmonth() const; + void set_dayofmonth(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_dayofmonth() const; + void _internal_set_dayofmonth(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 hour = 5; + bool has_hour() const; + private: + bool _internal_has_hour() const; + public: + void clear_hour(); + ::PROTOBUF_NAMESPACE_ID::uint32 hour() const; + void set_hour(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_hour() const; + void _internal_set_hour(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 minute = 6; + bool has_minute() const; + private: + bool _internal_has_minute() const; + public: + void clear_minute(); + ::PROTOBUF_NAMESPACE_ID::uint32 minute() const; + void set_minute(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_minute() const; + void _internal_set_minute(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional .proto.HSMDateTimeComponent.HSMDateTimeComponentDayOfWeekType dayOfWeek = 1; + bool has_dayofweek() const; + private: + bool _internal_has_dayofweek() const; + public: + void clear_dayofweek(); + ::proto::HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType dayofweek() const; + void set_dayofweek(::proto::HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType value); + private: + ::proto::HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType _internal_dayofweek() const; + void _internal_set_dayofweek(::proto::HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType value); + public: + + // optional .proto.HSMDateTimeComponent.HSMDateTimeComponentCalendarType calendar = 7; + bool has_calendar() const; + private: + bool _internal_has_calendar() const; + public: + void clear_calendar(); + ::proto::HSMDateTimeComponent_HSMDateTimeComponentCalendarType calendar() const; + void set_calendar(::proto::HSMDateTimeComponent_HSMDateTimeComponentCalendarType value); + private: + ::proto::HSMDateTimeComponent_HSMDateTimeComponentCalendarType _internal_calendar() const; + void _internal_set_calendar(::proto::HSMDateTimeComponent_HSMDateTimeComponentCalendarType value); + public: + + // @@protoc_insertion_point(class_scope:proto.HSMDateTimeComponent) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 year_; + ::PROTOBUF_NAMESPACE_ID::uint32 month_; + ::PROTOBUF_NAMESPACE_ID::uint32 dayofmonth_; + ::PROTOBUF_NAMESPACE_ID::uint32 hour_; + ::PROTOBUF_NAMESPACE_ID::uint32 minute_; + int dayofweek_; + int calendar_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class HSMDateTimeUnixEpoch PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HSMDateTimeUnixEpoch) */ { + public: + inline HSMDateTimeUnixEpoch() : HSMDateTimeUnixEpoch(nullptr) {} + virtual ~HSMDateTimeUnixEpoch(); + explicit constexpr HSMDateTimeUnixEpoch(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + HSMDateTimeUnixEpoch(const HSMDateTimeUnixEpoch& from); + HSMDateTimeUnixEpoch(HSMDateTimeUnixEpoch&& from) noexcept + : HSMDateTimeUnixEpoch() { + *this = ::std::move(from); + } + + inline HSMDateTimeUnixEpoch& operator=(const HSMDateTimeUnixEpoch& from) { + CopyFrom(from); + return *this; + } + inline HSMDateTimeUnixEpoch& operator=(HSMDateTimeUnixEpoch&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const HSMDateTimeUnixEpoch& default_instance() { + return *internal_default_instance(); + } + static inline const HSMDateTimeUnixEpoch* internal_default_instance() { + return reinterpret_cast<const HSMDateTimeUnixEpoch*>( + &_HSMDateTimeUnixEpoch_default_instance_); + } + static constexpr int kIndexInFileMessages = + 41; + + friend void swap(HSMDateTimeUnixEpoch& a, HSMDateTimeUnixEpoch& b) { + a.Swap(&b); + } + inline void Swap(HSMDateTimeUnixEpoch* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HSMDateTimeUnixEpoch* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline HSMDateTimeUnixEpoch* New() const final { + return CreateMaybeMessage<HSMDateTimeUnixEpoch>(nullptr); + } + + HSMDateTimeUnixEpoch* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<HSMDateTimeUnixEpoch>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const HSMDateTimeUnixEpoch& from); + void MergeFrom(const HSMDateTimeUnixEpoch& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HSMDateTimeUnixEpoch* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.HSMDateTimeUnixEpoch"; + } + protected: + explicit HSMDateTimeUnixEpoch(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTimestampFieldNumber = 1, + }; + // optional int64 timestamp = 1; + bool has_timestamp() const; + private: + bool _internal_has_timestamp() const; + public: + void clear_timestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 timestamp() const; + void set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_timestamp() const; + void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:proto.HSMDateTimeUnixEpoch) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::int64 timestamp_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class HSMDateTime PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HSMDateTime) */ { + public: + inline HSMDateTime() : HSMDateTime(nullptr) {} + virtual ~HSMDateTime(); + explicit constexpr HSMDateTime(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + HSMDateTime(const HSMDateTime& from); + HSMDateTime(HSMDateTime&& from) noexcept + : HSMDateTime() { + *this = ::std::move(from); + } + + inline HSMDateTime& operator=(const HSMDateTime& from) { + CopyFrom(from); + return *this; + } + inline HSMDateTime& operator=(HSMDateTime&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const HSMDateTime& default_instance() { + return *internal_default_instance(); + } + enum DatetimeOneofCase { + kComponent = 1, + kUnixEpoch = 2, + DATETIMEONEOF_NOT_SET = 0, + }; + + static inline const HSMDateTime* internal_default_instance() { + return reinterpret_cast<const HSMDateTime*>( + &_HSMDateTime_default_instance_); + } + static constexpr int kIndexInFileMessages = + 42; + + friend void swap(HSMDateTime& a, HSMDateTime& b) { + a.Swap(&b); + } + inline void Swap(HSMDateTime* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HSMDateTime* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline HSMDateTime* New() const final { + return CreateMaybeMessage<HSMDateTime>(nullptr); + } + + HSMDateTime* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<HSMDateTime>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const HSMDateTime& from); + void MergeFrom(const HSMDateTime& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HSMDateTime* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.HSMDateTime"; + } + protected: + explicit HSMDateTime(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kComponentFieldNumber = 1, + kUnixEpochFieldNumber = 2, + }; + // .proto.HSMDateTimeComponent component = 1; + bool has_component() const; + private: + bool _internal_has_component() const; + public: + void clear_component(); + const ::proto::HSMDateTimeComponent& component() const; + ::proto::HSMDateTimeComponent* release_component(); + ::proto::HSMDateTimeComponent* mutable_component(); + void set_allocated_component(::proto::HSMDateTimeComponent* component); + private: + const ::proto::HSMDateTimeComponent& _internal_component() const; + ::proto::HSMDateTimeComponent* _internal_mutable_component(); + public: + void unsafe_arena_set_allocated_component( + ::proto::HSMDateTimeComponent* component); + ::proto::HSMDateTimeComponent* unsafe_arena_release_component(); + + // .proto.HSMDateTimeUnixEpoch unixEpoch = 2; + bool has_unixepoch() const; + private: + bool _internal_has_unixepoch() const; + public: + void clear_unixepoch(); + const ::proto::HSMDateTimeUnixEpoch& unixepoch() const; + ::proto::HSMDateTimeUnixEpoch* release_unixepoch(); + ::proto::HSMDateTimeUnixEpoch* mutable_unixepoch(); + void set_allocated_unixepoch(::proto::HSMDateTimeUnixEpoch* unixepoch); + private: + const ::proto::HSMDateTimeUnixEpoch& _internal_unixepoch() const; + ::proto::HSMDateTimeUnixEpoch* _internal_mutable_unixepoch(); + public: + void unsafe_arena_set_allocated_unixepoch( + ::proto::HSMDateTimeUnixEpoch* unixepoch); + ::proto::HSMDateTimeUnixEpoch* unsafe_arena_release_unixepoch(); + + void clear_datetimeOneof(); + DatetimeOneofCase datetimeOneof_case() const; + // @@protoc_insertion_point(class_scope:proto.HSMDateTime) + private: + class _Internal; + void set_has_component(); + void set_has_unixepoch(); + + inline bool has_datetimeOneof() const; + inline void clear_has_datetimeOneof(); + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + union DatetimeOneofUnion { + constexpr DatetimeOneofUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::proto::HSMDateTimeComponent* component_; + ::proto::HSMDateTimeUnixEpoch* unixepoch_; + } datetimeOneof_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class HSMLocalizableParameter PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HSMLocalizableParameter) */ { + public: + inline HSMLocalizableParameter() : HSMLocalizableParameter(nullptr) {} + virtual ~HSMLocalizableParameter(); + explicit constexpr HSMLocalizableParameter(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + HSMLocalizableParameter(const HSMLocalizableParameter& from); + HSMLocalizableParameter(HSMLocalizableParameter&& from) noexcept + : HSMLocalizableParameter() { + *this = ::std::move(from); + } + + inline HSMLocalizableParameter& operator=(const HSMLocalizableParameter& from) { + CopyFrom(from); + return *this; + } + inline HSMLocalizableParameter& operator=(HSMLocalizableParameter&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const HSMLocalizableParameter& default_instance() { + return *internal_default_instance(); + } + enum ParamOneofCase { + kCurrency = 2, + kDateTime = 3, + PARAMONEOF_NOT_SET = 0, + }; + + static inline const HSMLocalizableParameter* internal_default_instance() { + return reinterpret_cast<const HSMLocalizableParameter*>( + &_HSMLocalizableParameter_default_instance_); + } + static constexpr int kIndexInFileMessages = + 43; + + friend void swap(HSMLocalizableParameter& a, HSMLocalizableParameter& b) { + a.Swap(&b); + } + inline void Swap(HSMLocalizableParameter* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HSMLocalizableParameter* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline HSMLocalizableParameter* New() const final { + return CreateMaybeMessage<HSMLocalizableParameter>(nullptr); + } + + HSMLocalizableParameter* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<HSMLocalizableParameter>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const HSMLocalizableParameter& from); + void MergeFrom(const HSMLocalizableParameter& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HSMLocalizableParameter* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.HSMLocalizableParameter"; + } + protected: + explicit HSMLocalizableParameter(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDefaultFieldNumber = 1, + kCurrencyFieldNumber = 2, + kDateTimeFieldNumber = 3, + }; + // optional string default = 1; + bool has_default_() const; + private: + bool _internal_has_default_() const; + public: + void clear_default_(); + const std::string& default_() const; + void set_default_(const std::string& value); + void set_default_(std::string&& value); + void set_default_(const char* value); + void set_default_(const char* value, size_t size); + std::string* mutable_default_(); + std::string* release_default_(); + void set_allocated_default_(std::string* default_); + private: + const std::string& _internal_default_() const; + void _internal_set_default_(const std::string& value); + std::string* _internal_mutable_default_(); + public: + + // .proto.HSMCurrency currency = 2; + bool has_currency() const; + private: + bool _internal_has_currency() const; + public: + void clear_currency(); + const ::proto::HSMCurrency& currency() const; + ::proto::HSMCurrency* release_currency(); + ::proto::HSMCurrency* mutable_currency(); + void set_allocated_currency(::proto::HSMCurrency* currency); + private: + const ::proto::HSMCurrency& _internal_currency() const; + ::proto::HSMCurrency* _internal_mutable_currency(); + public: + void unsafe_arena_set_allocated_currency( + ::proto::HSMCurrency* currency); + ::proto::HSMCurrency* unsafe_arena_release_currency(); + + // .proto.HSMDateTime dateTime = 3; + bool has_datetime() const; + private: + bool _internal_has_datetime() const; + public: + void clear_datetime(); + const ::proto::HSMDateTime& datetime() const; + ::proto::HSMDateTime* release_datetime(); + ::proto::HSMDateTime* mutable_datetime(); + void set_allocated_datetime(::proto::HSMDateTime* datetime); + private: + const ::proto::HSMDateTime& _internal_datetime() const; + ::proto::HSMDateTime* _internal_mutable_datetime(); + public: + void unsafe_arena_set_allocated_datetime( + ::proto::HSMDateTime* datetime); + ::proto::HSMDateTime* unsafe_arena_release_datetime(); + + void clear_paramOneof(); + ParamOneofCase paramOneof_case() const; + // @@protoc_insertion_point(class_scope:proto.HSMLocalizableParameter) + private: + class _Internal; + void set_has_currency(); + void set_has_datetime(); + + inline bool has_paramOneof() const; + inline void clear_has_paramOneof(); + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default__; + union ParamOneofUnion { + constexpr ParamOneofUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::proto::HSMCurrency* currency_; + ::proto::HSMDateTime* datetime_; + } paramOneof_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class HighlyStructuredMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HighlyStructuredMessage) */ { + public: + inline HighlyStructuredMessage() : HighlyStructuredMessage(nullptr) {} + virtual ~HighlyStructuredMessage(); + explicit constexpr HighlyStructuredMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + HighlyStructuredMessage(const HighlyStructuredMessage& from); + HighlyStructuredMessage(HighlyStructuredMessage&& from) noexcept + : HighlyStructuredMessage() { + *this = ::std::move(from); + } + + inline HighlyStructuredMessage& operator=(const HighlyStructuredMessage& from) { + CopyFrom(from); + return *this; + } + inline HighlyStructuredMessage& operator=(HighlyStructuredMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const HighlyStructuredMessage& default_instance() { + return *internal_default_instance(); + } + static inline const HighlyStructuredMessage* internal_default_instance() { + return reinterpret_cast<const HighlyStructuredMessage*>( + &_HighlyStructuredMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 44; + + friend void swap(HighlyStructuredMessage& a, HighlyStructuredMessage& b) { + a.Swap(&b); + } + inline void Swap(HighlyStructuredMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HighlyStructuredMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline HighlyStructuredMessage* New() const final { + return CreateMaybeMessage<HighlyStructuredMessage>(nullptr); + } + + HighlyStructuredMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<HighlyStructuredMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const HighlyStructuredMessage& from); + void MergeFrom(const HighlyStructuredMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HighlyStructuredMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.HighlyStructuredMessage"; + } + protected: + explicit HighlyStructuredMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kParamsFieldNumber = 3, + kLocalizableParamsFieldNumber = 6, + kNamespaceFieldNumber = 1, + kElementNameFieldNumber = 2, + kFallbackLgFieldNumber = 4, + kFallbackLcFieldNumber = 5, + kDeterministicLgFieldNumber = 7, + kDeterministicLcFieldNumber = 8, + kHydratedHsmFieldNumber = 9, + }; + // repeated string params = 3; + int params_size() const; + private: + int _internal_params_size() const; + public: + void clear_params(); + const std::string& params(int index) const; + std::string* mutable_params(int index); + void set_params(int index, const std::string& value); + void set_params(int index, std::string&& value); + void set_params(int index, const char* value); + void set_params(int index, const char* value, size_t size); + std::string* add_params(); + void add_params(const std::string& value); + void add_params(std::string&& value); + void add_params(const char* value); + void add_params(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& params() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_params(); + private: + const std::string& _internal_params(int index) const; + std::string* _internal_add_params(); + public: + + // repeated .proto.HSMLocalizableParameter localizableParams = 6; + int localizableparams_size() const; + private: + int _internal_localizableparams_size() const; + public: + void clear_localizableparams(); + ::proto::HSMLocalizableParameter* mutable_localizableparams(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::HSMLocalizableParameter >* + mutable_localizableparams(); + private: + const ::proto::HSMLocalizableParameter& _internal_localizableparams(int index) const; + ::proto::HSMLocalizableParameter* _internal_add_localizableparams(); + public: + const ::proto::HSMLocalizableParameter& localizableparams(int index) const; + ::proto::HSMLocalizableParameter* add_localizableparams(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::HSMLocalizableParameter >& + localizableparams() const; + + // optional string namespace = 1; + bool has_namespace_() const; + private: + bool _internal_has_namespace_() const; + public: + void clear_namespace_(); + const std::string& namespace_() const; + void set_namespace_(const std::string& value); + void set_namespace_(std::string&& value); + void set_namespace_(const char* value); + void set_namespace_(const char* value, size_t size); + std::string* mutable_namespace_(); + std::string* release_namespace_(); + void set_allocated_namespace_(std::string* namespace_); + private: + const std::string& _internal_namespace_() const; + void _internal_set_namespace_(const std::string& value); + std::string* _internal_mutable_namespace_(); + public: + + // optional string elementName = 2; + bool has_elementname() const; + private: + bool _internal_has_elementname() const; + public: + void clear_elementname(); + const std::string& elementname() const; + void set_elementname(const std::string& value); + void set_elementname(std::string&& value); + void set_elementname(const char* value); + void set_elementname(const char* value, size_t size); + std::string* mutable_elementname(); + std::string* release_elementname(); + void set_allocated_elementname(std::string* elementname); + private: + const std::string& _internal_elementname() const; + void _internal_set_elementname(const std::string& value); + std::string* _internal_mutable_elementname(); + public: + + // optional string fallbackLg = 4; + bool has_fallbacklg() const; + private: + bool _internal_has_fallbacklg() const; + public: + void clear_fallbacklg(); + const std::string& fallbacklg() const; + void set_fallbacklg(const std::string& value); + void set_fallbacklg(std::string&& value); + void set_fallbacklg(const char* value); + void set_fallbacklg(const char* value, size_t size); + std::string* mutable_fallbacklg(); + std::string* release_fallbacklg(); + void set_allocated_fallbacklg(std::string* fallbacklg); + private: + const std::string& _internal_fallbacklg() const; + void _internal_set_fallbacklg(const std::string& value); + std::string* _internal_mutable_fallbacklg(); + public: + + // optional string fallbackLc = 5; + bool has_fallbacklc() const; + private: + bool _internal_has_fallbacklc() const; + public: + void clear_fallbacklc(); + const std::string& fallbacklc() const; + void set_fallbacklc(const std::string& value); + void set_fallbacklc(std::string&& value); + void set_fallbacklc(const char* value); + void set_fallbacklc(const char* value, size_t size); + std::string* mutable_fallbacklc(); + std::string* release_fallbacklc(); + void set_allocated_fallbacklc(std::string* fallbacklc); + private: + const std::string& _internal_fallbacklc() const; + void _internal_set_fallbacklc(const std::string& value); + std::string* _internal_mutable_fallbacklc(); + public: + + // optional string deterministicLg = 7; + bool has_deterministiclg() const; + private: + bool _internal_has_deterministiclg() const; + public: + void clear_deterministiclg(); + const std::string& deterministiclg() const; + void set_deterministiclg(const std::string& value); + void set_deterministiclg(std::string&& value); + void set_deterministiclg(const char* value); + void set_deterministiclg(const char* value, size_t size); + std::string* mutable_deterministiclg(); + std::string* release_deterministiclg(); + void set_allocated_deterministiclg(std::string* deterministiclg); + private: + const std::string& _internal_deterministiclg() const; + void _internal_set_deterministiclg(const std::string& value); + std::string* _internal_mutable_deterministiclg(); + public: + + // optional string deterministicLc = 8; + bool has_deterministiclc() const; + private: + bool _internal_has_deterministiclc() const; + public: + void clear_deterministiclc(); + const std::string& deterministiclc() const; + void set_deterministiclc(const std::string& value); + void set_deterministiclc(std::string&& value); + void set_deterministiclc(const char* value); + void set_deterministiclc(const char* value, size_t size); + std::string* mutable_deterministiclc(); + std::string* release_deterministiclc(); + void set_allocated_deterministiclc(std::string* deterministiclc); + private: + const std::string& _internal_deterministiclc() const; + void _internal_set_deterministiclc(const std::string& value); + std::string* _internal_mutable_deterministiclc(); + public: + + // optional .proto.TemplateMessage hydratedHsm = 9; + bool has_hydratedhsm() const; + private: + bool _internal_has_hydratedhsm() const; + public: + void clear_hydratedhsm(); + const ::proto::TemplateMessage& hydratedhsm() const; + ::proto::TemplateMessage* release_hydratedhsm(); + ::proto::TemplateMessage* mutable_hydratedhsm(); + void set_allocated_hydratedhsm(::proto::TemplateMessage* hydratedhsm); + private: + const ::proto::TemplateMessage& _internal_hydratedhsm() const; + ::proto::TemplateMessage* _internal_mutable_hydratedhsm(); + public: + void unsafe_arena_set_allocated_hydratedhsm( + ::proto::TemplateMessage* hydratedhsm); + ::proto::TemplateMessage* unsafe_arena_release_hydratedhsm(); + + // @@protoc_insertion_point(class_scope:proto.HighlyStructuredMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> params_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::HSMLocalizableParameter > localizableparams_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr namespace__; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr elementname_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fallbacklg_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fallbacklc_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr deterministiclg_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr deterministiclc_; + ::proto::TemplateMessage* hydratedhsm_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class SendPaymentMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.SendPaymentMessage) */ { + public: + inline SendPaymentMessage() : SendPaymentMessage(nullptr) {} + virtual ~SendPaymentMessage(); + explicit constexpr SendPaymentMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SendPaymentMessage(const SendPaymentMessage& from); + SendPaymentMessage(SendPaymentMessage&& from) noexcept + : SendPaymentMessage() { + *this = ::std::move(from); + } + + inline SendPaymentMessage& operator=(const SendPaymentMessage& from) { + CopyFrom(from); + return *this; + } + inline SendPaymentMessage& operator=(SendPaymentMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const SendPaymentMessage& default_instance() { + return *internal_default_instance(); + } + static inline const SendPaymentMessage* internal_default_instance() { + return reinterpret_cast<const SendPaymentMessage*>( + &_SendPaymentMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 45; + + friend void swap(SendPaymentMessage& a, SendPaymentMessage& b) { + a.Swap(&b); + } + inline void Swap(SendPaymentMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SendPaymentMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline SendPaymentMessage* New() const final { + return CreateMaybeMessage<SendPaymentMessage>(nullptr); + } + + SendPaymentMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<SendPaymentMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const SendPaymentMessage& from); + void MergeFrom(const SendPaymentMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SendPaymentMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.SendPaymentMessage"; + } + protected: + explicit SendPaymentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNoteMessageFieldNumber = 2, + kRequestMessageKeyFieldNumber = 3, + }; + // optional .proto.Message noteMessage = 2; + bool has_notemessage() const; + private: + bool _internal_has_notemessage() const; + public: + void clear_notemessage(); + const ::proto::Message& notemessage() const; + ::proto::Message* release_notemessage(); + ::proto::Message* mutable_notemessage(); + void set_allocated_notemessage(::proto::Message* notemessage); + private: + const ::proto::Message& _internal_notemessage() const; + ::proto::Message* _internal_mutable_notemessage(); + public: + void unsafe_arena_set_allocated_notemessage( + ::proto::Message* notemessage); + ::proto::Message* unsafe_arena_release_notemessage(); + + // optional .proto.MessageKey requestMessageKey = 3; + bool has_requestmessagekey() const; + private: + bool _internal_has_requestmessagekey() const; + public: + void clear_requestmessagekey(); + const ::proto::MessageKey& requestmessagekey() const; + ::proto::MessageKey* release_requestmessagekey(); + ::proto::MessageKey* mutable_requestmessagekey(); + void set_allocated_requestmessagekey(::proto::MessageKey* requestmessagekey); + private: + const ::proto::MessageKey& _internal_requestmessagekey() const; + ::proto::MessageKey* _internal_mutable_requestmessagekey(); + public: + void unsafe_arena_set_allocated_requestmessagekey( + ::proto::MessageKey* requestmessagekey); + ::proto::MessageKey* unsafe_arena_release_requestmessagekey(); + + // @@protoc_insertion_point(class_scope:proto.SendPaymentMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::proto::Message* notemessage_; + ::proto::MessageKey* requestmessagekey_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class RequestPaymentMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.RequestPaymentMessage) */ { + public: + inline RequestPaymentMessage() : RequestPaymentMessage(nullptr) {} + virtual ~RequestPaymentMessage(); + explicit constexpr RequestPaymentMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + RequestPaymentMessage(const RequestPaymentMessage& from); + RequestPaymentMessage(RequestPaymentMessage&& from) noexcept + : RequestPaymentMessage() { + *this = ::std::move(from); + } + + inline RequestPaymentMessage& operator=(const RequestPaymentMessage& from) { + CopyFrom(from); + return *this; + } + inline RequestPaymentMessage& operator=(RequestPaymentMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const RequestPaymentMessage& default_instance() { + return *internal_default_instance(); + } + static inline const RequestPaymentMessage* internal_default_instance() { + return reinterpret_cast<const RequestPaymentMessage*>( + &_RequestPaymentMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 46; + + friend void swap(RequestPaymentMessage& a, RequestPaymentMessage& b) { + a.Swap(&b); + } + inline void Swap(RequestPaymentMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(RequestPaymentMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline RequestPaymentMessage* New() const final { + return CreateMaybeMessage<RequestPaymentMessage>(nullptr); + } + + RequestPaymentMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<RequestPaymentMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const RequestPaymentMessage& from); + void MergeFrom(const RequestPaymentMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(RequestPaymentMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.RequestPaymentMessage"; + } + protected: + explicit RequestPaymentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCurrencyCodeIso4217FieldNumber = 1, + kRequestFromFieldNumber = 3, + kNoteMessageFieldNumber = 4, + kAmountFieldNumber = 6, + kAmount1000FieldNumber = 2, + kExpiryTimestampFieldNumber = 5, + }; + // optional string currencyCodeIso4217 = 1; + bool has_currencycodeiso4217() const; + private: + bool _internal_has_currencycodeiso4217() const; + public: + void clear_currencycodeiso4217(); + const std::string& currencycodeiso4217() const; + void set_currencycodeiso4217(const std::string& value); + void set_currencycodeiso4217(std::string&& value); + void set_currencycodeiso4217(const char* value); + void set_currencycodeiso4217(const char* value, size_t size); + std::string* mutable_currencycodeiso4217(); + std::string* release_currencycodeiso4217(); + void set_allocated_currencycodeiso4217(std::string* currencycodeiso4217); + private: + const std::string& _internal_currencycodeiso4217() const; + void _internal_set_currencycodeiso4217(const std::string& value); + std::string* _internal_mutable_currencycodeiso4217(); + public: + + // optional string requestFrom = 3; + bool has_requestfrom() const; + private: + bool _internal_has_requestfrom() const; + public: + void clear_requestfrom(); + const std::string& requestfrom() const; + void set_requestfrom(const std::string& value); + void set_requestfrom(std::string&& value); + void set_requestfrom(const char* value); + void set_requestfrom(const char* value, size_t size); + std::string* mutable_requestfrom(); + std::string* release_requestfrom(); + void set_allocated_requestfrom(std::string* requestfrom); + private: + const std::string& _internal_requestfrom() const; + void _internal_set_requestfrom(const std::string& value); + std::string* _internal_mutable_requestfrom(); + public: + + // optional .proto.Message noteMessage = 4; + bool has_notemessage() const; + private: + bool _internal_has_notemessage() const; + public: + void clear_notemessage(); + const ::proto::Message& notemessage() const; + ::proto::Message* release_notemessage(); + ::proto::Message* mutable_notemessage(); + void set_allocated_notemessage(::proto::Message* notemessage); + private: + const ::proto::Message& _internal_notemessage() const; + ::proto::Message* _internal_mutable_notemessage(); + public: + void unsafe_arena_set_allocated_notemessage( + ::proto::Message* notemessage); + ::proto::Message* unsafe_arena_release_notemessage(); + + // optional .proto.PaymentMoney amount = 6; + bool has_amount() const; + private: + bool _internal_has_amount() const; + public: + void clear_amount(); + const ::proto::PaymentMoney& amount() const; + ::proto::PaymentMoney* release_amount(); + ::proto::PaymentMoney* mutable_amount(); + void set_allocated_amount(::proto::PaymentMoney* amount); + private: + const ::proto::PaymentMoney& _internal_amount() const; + ::proto::PaymentMoney* _internal_mutable_amount(); + public: + void unsafe_arena_set_allocated_amount( + ::proto::PaymentMoney* amount); + ::proto::PaymentMoney* unsafe_arena_release_amount(); + + // optional uint64 amount1000 = 2; + bool has_amount1000() const; + private: + bool _internal_has_amount1000() const; + public: + void clear_amount1000(); + ::PROTOBUF_NAMESPACE_ID::uint64 amount1000() const; + void set_amount1000(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_amount1000() const; + void _internal_set_amount1000(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // optional int64 expiryTimestamp = 5; + bool has_expirytimestamp() const; + private: + bool _internal_has_expirytimestamp() const; + public: + void clear_expirytimestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 expirytimestamp() const; + void set_expirytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_expirytimestamp() const; + void _internal_set_expirytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:proto.RequestPaymentMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr currencycodeiso4217_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr requestfrom_; + ::proto::Message* notemessage_; + ::proto::PaymentMoney* amount_; + ::PROTOBUF_NAMESPACE_ID::uint64 amount1000_; + ::PROTOBUF_NAMESPACE_ID::int64 expirytimestamp_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class DeclinePaymentRequestMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.DeclinePaymentRequestMessage) */ { + public: + inline DeclinePaymentRequestMessage() : DeclinePaymentRequestMessage(nullptr) {} + virtual ~DeclinePaymentRequestMessage(); + explicit constexpr DeclinePaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeclinePaymentRequestMessage(const DeclinePaymentRequestMessage& from); + DeclinePaymentRequestMessage(DeclinePaymentRequestMessage&& from) noexcept + : DeclinePaymentRequestMessage() { + *this = ::std::move(from); + } + + inline DeclinePaymentRequestMessage& operator=(const DeclinePaymentRequestMessage& from) { + CopyFrom(from); + return *this; + } + inline DeclinePaymentRequestMessage& operator=(DeclinePaymentRequestMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const DeclinePaymentRequestMessage& default_instance() { + return *internal_default_instance(); + } + static inline const DeclinePaymentRequestMessage* internal_default_instance() { + return reinterpret_cast<const DeclinePaymentRequestMessage*>( + &_DeclinePaymentRequestMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 47; + + friend void swap(DeclinePaymentRequestMessage& a, DeclinePaymentRequestMessage& b) { + a.Swap(&b); + } + inline void Swap(DeclinePaymentRequestMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DeclinePaymentRequestMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DeclinePaymentRequestMessage* New() const final { + return CreateMaybeMessage<DeclinePaymentRequestMessage>(nullptr); + } + + DeclinePaymentRequestMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<DeclinePaymentRequestMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DeclinePaymentRequestMessage& from); + void MergeFrom(const DeclinePaymentRequestMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeclinePaymentRequestMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.DeclinePaymentRequestMessage"; + } + protected: + explicit DeclinePaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kKeyFieldNumber = 1, + }; + // optional .proto.MessageKey key = 1; + bool has_key() const; + private: + bool _internal_has_key() const; + public: + void clear_key(); + const ::proto::MessageKey& key() const; + ::proto::MessageKey* release_key(); + ::proto::MessageKey* mutable_key(); + void set_allocated_key(::proto::MessageKey* key); + private: + const ::proto::MessageKey& _internal_key() const; + ::proto::MessageKey* _internal_mutable_key(); + public: + void unsafe_arena_set_allocated_key( + ::proto::MessageKey* key); + ::proto::MessageKey* unsafe_arena_release_key(); + + // @@protoc_insertion_point(class_scope:proto.DeclinePaymentRequestMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::proto::MessageKey* key_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class CancelPaymentRequestMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.CancelPaymentRequestMessage) */ { + public: + inline CancelPaymentRequestMessage() : CancelPaymentRequestMessage(nullptr) {} + virtual ~CancelPaymentRequestMessage(); + explicit constexpr CancelPaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CancelPaymentRequestMessage(const CancelPaymentRequestMessage& from); + CancelPaymentRequestMessage(CancelPaymentRequestMessage&& from) noexcept + : CancelPaymentRequestMessage() { + *this = ::std::move(from); + } + + inline CancelPaymentRequestMessage& operator=(const CancelPaymentRequestMessage& from) { + CopyFrom(from); + return *this; + } + inline CancelPaymentRequestMessage& operator=(CancelPaymentRequestMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const CancelPaymentRequestMessage& default_instance() { + return *internal_default_instance(); + } + static inline const CancelPaymentRequestMessage* internal_default_instance() { + return reinterpret_cast<const CancelPaymentRequestMessage*>( + &_CancelPaymentRequestMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 48; + + friend void swap(CancelPaymentRequestMessage& a, CancelPaymentRequestMessage& b) { + a.Swap(&b); + } + inline void Swap(CancelPaymentRequestMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CancelPaymentRequestMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline CancelPaymentRequestMessage* New() const final { + return CreateMaybeMessage<CancelPaymentRequestMessage>(nullptr); + } + + CancelPaymentRequestMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<CancelPaymentRequestMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const CancelPaymentRequestMessage& from); + void MergeFrom(const CancelPaymentRequestMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CancelPaymentRequestMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.CancelPaymentRequestMessage"; + } + protected: + explicit CancelPaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kKeyFieldNumber = 1, + }; + // optional .proto.MessageKey key = 1; + bool has_key() const; + private: + bool _internal_has_key() const; + public: + void clear_key(); + const ::proto::MessageKey& key() const; + ::proto::MessageKey* release_key(); + ::proto::MessageKey* mutable_key(); + void set_allocated_key(::proto::MessageKey* key); + private: + const ::proto::MessageKey& _internal_key() const; + ::proto::MessageKey* _internal_mutable_key(); + public: + void unsafe_arena_set_allocated_key( + ::proto::MessageKey* key); + ::proto::MessageKey* unsafe_arena_release_key(); + + // @@protoc_insertion_point(class_scope:proto.CancelPaymentRequestMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::proto::MessageKey* key_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class LiveLocationMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.LiveLocationMessage) */ { + public: + inline LiveLocationMessage() : LiveLocationMessage(nullptr) {} + virtual ~LiveLocationMessage(); + explicit constexpr LiveLocationMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + LiveLocationMessage(const LiveLocationMessage& from); + LiveLocationMessage(LiveLocationMessage&& from) noexcept + : LiveLocationMessage() { + *this = ::std::move(from); + } + + inline LiveLocationMessage& operator=(const LiveLocationMessage& from) { + CopyFrom(from); + return *this; + } + inline LiveLocationMessage& operator=(LiveLocationMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const LiveLocationMessage& default_instance() { + return *internal_default_instance(); + } + static inline const LiveLocationMessage* internal_default_instance() { + return reinterpret_cast<const LiveLocationMessage*>( + &_LiveLocationMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 49; + + friend void swap(LiveLocationMessage& a, LiveLocationMessage& b) { + a.Swap(&b); + } + inline void Swap(LiveLocationMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(LiveLocationMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline LiveLocationMessage* New() const final { + return CreateMaybeMessage<LiveLocationMessage>(nullptr); + } + + LiveLocationMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<LiveLocationMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const LiveLocationMessage& from); + void MergeFrom(const LiveLocationMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(LiveLocationMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.LiveLocationMessage"; + } + protected: + explicit LiveLocationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCaptionFieldNumber = 6, + kJpegThumbnailFieldNumber = 16, + kContextInfoFieldNumber = 17, + kDegreesLatitudeFieldNumber = 1, + kDegreesLongitudeFieldNumber = 2, + kAccuracyInMetersFieldNumber = 3, + kSpeedInMpsFieldNumber = 4, + kDegreesClockwiseFromMagneticNorthFieldNumber = 5, + kTimeOffsetFieldNumber = 8, + kSequenceNumberFieldNumber = 7, + }; + // optional string caption = 6; + bool has_caption() const; + private: + bool _internal_has_caption() const; + public: + void clear_caption(); + const std::string& caption() const; + void set_caption(const std::string& value); + void set_caption(std::string&& value); + void set_caption(const char* value); + void set_caption(const char* value, size_t size); + std::string* mutable_caption(); + std::string* release_caption(); + void set_allocated_caption(std::string* caption); + private: + const std::string& _internal_caption() const; + void _internal_set_caption(const std::string& value); + std::string* _internal_mutable_caption(); + public: + + // optional bytes jpegThumbnail = 16; + bool has_jpegthumbnail() const; + private: + bool _internal_has_jpegthumbnail() const; + public: + void clear_jpegthumbnail(); + const std::string& jpegthumbnail() const; + void set_jpegthumbnail(const std::string& value); + void set_jpegthumbnail(std::string&& value); + void set_jpegthumbnail(const char* value); + void set_jpegthumbnail(const void* value, size_t size); + std::string* mutable_jpegthumbnail(); + std::string* release_jpegthumbnail(); + void set_allocated_jpegthumbnail(std::string* jpegthumbnail); + private: + const std::string& _internal_jpegthumbnail() const; + void _internal_set_jpegthumbnail(const std::string& value); + std::string* _internal_mutable_jpegthumbnail(); + public: + + // optional .proto.ContextInfo contextInfo = 17; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // optional double degreesLatitude = 1; + bool has_degreeslatitude() const; + private: + bool _internal_has_degreeslatitude() const; + public: + void clear_degreeslatitude(); + double degreeslatitude() const; + void set_degreeslatitude(double value); + private: + double _internal_degreeslatitude() const; + void _internal_set_degreeslatitude(double value); + public: + + // optional double degreesLongitude = 2; + bool has_degreeslongitude() const; + private: + bool _internal_has_degreeslongitude() const; + public: + void clear_degreeslongitude(); + double degreeslongitude() const; + void set_degreeslongitude(double value); + private: + double _internal_degreeslongitude() const; + void _internal_set_degreeslongitude(double value); + public: + + // optional uint32 accuracyInMeters = 3; + bool has_accuracyinmeters() const; + private: + bool _internal_has_accuracyinmeters() const; + public: + void clear_accuracyinmeters(); + ::PROTOBUF_NAMESPACE_ID::uint32 accuracyinmeters() const; + void set_accuracyinmeters(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_accuracyinmeters() const; + void _internal_set_accuracyinmeters(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional float speedInMps = 4; + bool has_speedinmps() const; + private: + bool _internal_has_speedinmps() const; + public: + void clear_speedinmps(); + float speedinmps() const; + void set_speedinmps(float value); + private: + float _internal_speedinmps() const; + void _internal_set_speedinmps(float value); + public: + + // optional uint32 degreesClockwiseFromMagneticNorth = 5; + bool has_degreesclockwisefrommagneticnorth() const; + private: + bool _internal_has_degreesclockwisefrommagneticnorth() const; + public: + void clear_degreesclockwisefrommagneticnorth(); + ::PROTOBUF_NAMESPACE_ID::uint32 degreesclockwisefrommagneticnorth() const; + void set_degreesclockwisefrommagneticnorth(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_degreesclockwisefrommagneticnorth() const; + void _internal_set_degreesclockwisefrommagneticnorth(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 timeOffset = 8; + bool has_timeoffset() const; + private: + bool _internal_has_timeoffset() const; + public: + void clear_timeoffset(); + ::PROTOBUF_NAMESPACE_ID::uint32 timeoffset() const; + void set_timeoffset(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_timeoffset() const; + void _internal_set_timeoffset(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional int64 sequenceNumber = 7; + bool has_sequencenumber() const; + private: + bool _internal_has_sequencenumber() const; + public: + void clear_sequencenumber(); + ::PROTOBUF_NAMESPACE_ID::int64 sequencenumber() const; + void set_sequencenumber(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_sequencenumber() const; + void _internal_set_sequencenumber(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:proto.LiveLocationMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr caption_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr jpegthumbnail_; + ::proto::ContextInfo* contextinfo_; + double degreeslatitude_; + double degreeslongitude_; + ::PROTOBUF_NAMESPACE_ID::uint32 accuracyinmeters_; + float speedinmps_; + ::PROTOBUF_NAMESPACE_ID::uint32 degreesclockwisefrommagneticnorth_; + ::PROTOBUF_NAMESPACE_ID::uint32 timeoffset_; + ::PROTOBUF_NAMESPACE_ID::int64 sequencenumber_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class StickerMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.StickerMessage) */ { + public: + inline StickerMessage() : StickerMessage(nullptr) {} + virtual ~StickerMessage(); + explicit constexpr StickerMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StickerMessage(const StickerMessage& from); + StickerMessage(StickerMessage&& from) noexcept + : StickerMessage() { + *this = ::std::move(from); + } + + inline StickerMessage& operator=(const StickerMessage& from) { + CopyFrom(from); + return *this; + } + inline StickerMessage& operator=(StickerMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const StickerMessage& default_instance() { + return *internal_default_instance(); + } + static inline const StickerMessage* internal_default_instance() { + return reinterpret_cast<const StickerMessage*>( + &_StickerMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 50; + + friend void swap(StickerMessage& a, StickerMessage& b) { + a.Swap(&b); + } + inline void Swap(StickerMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(StickerMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline StickerMessage* New() const final { + return CreateMaybeMessage<StickerMessage>(nullptr); + } + + StickerMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<StickerMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const StickerMessage& from); + void MergeFrom(const StickerMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(StickerMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.StickerMessage"; + } + protected: + explicit StickerMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kUrlFieldNumber = 1, + kFileSha256FieldNumber = 2, + kFileEncSha256FieldNumber = 3, + kMediaKeyFieldNumber = 4, + kMimetypeFieldNumber = 5, + kDirectPathFieldNumber = 8, + kFirstFrameSidecarFieldNumber = 12, + kPngThumbnailFieldNumber = 16, + kContextInfoFieldNumber = 17, + kHeightFieldNumber = 6, + kWidthFieldNumber = 7, + kFileLengthFieldNumber = 9, + kMediaKeyTimestampFieldNumber = 10, + kFirstFrameLengthFieldNumber = 11, + kIsAnimatedFieldNumber = 13, + }; + // optional string url = 1; + bool has_url() const; + private: + bool _internal_has_url() const; + public: + void clear_url(); + const std::string& url() const; + void set_url(const std::string& value); + void set_url(std::string&& value); + void set_url(const char* value); + void set_url(const char* value, size_t size); + std::string* mutable_url(); + std::string* release_url(); + void set_allocated_url(std::string* url); + private: + const std::string& _internal_url() const; + void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); + public: + + // optional bytes fileSha256 = 2; + bool has_filesha256() const; + private: + bool _internal_has_filesha256() const; + public: + void clear_filesha256(); + const std::string& filesha256() const; + void set_filesha256(const std::string& value); + void set_filesha256(std::string&& value); + void set_filesha256(const char* value); + void set_filesha256(const void* value, size_t size); + std::string* mutable_filesha256(); + std::string* release_filesha256(); + void set_allocated_filesha256(std::string* filesha256); + private: + const std::string& _internal_filesha256() const; + void _internal_set_filesha256(const std::string& value); + std::string* _internal_mutable_filesha256(); + public: + + // optional bytes fileEncSha256 = 3; + bool has_fileencsha256() const; + private: + bool _internal_has_fileencsha256() const; + public: + void clear_fileencsha256(); + const std::string& fileencsha256() const; + void set_fileencsha256(const std::string& value); + void set_fileencsha256(std::string&& value); + void set_fileencsha256(const char* value); + void set_fileencsha256(const void* value, size_t size); + std::string* mutable_fileencsha256(); + std::string* release_fileencsha256(); + void set_allocated_fileencsha256(std::string* fileencsha256); + private: + const std::string& _internal_fileencsha256() const; + void _internal_set_fileencsha256(const std::string& value); + std::string* _internal_mutable_fileencsha256(); + public: + + // optional bytes mediaKey = 4; + bool has_mediakey() const; + private: + bool _internal_has_mediakey() const; + public: + void clear_mediakey(); + const std::string& mediakey() const; + void set_mediakey(const std::string& value); + void set_mediakey(std::string&& value); + void set_mediakey(const char* value); + void set_mediakey(const void* value, size_t size); + std::string* mutable_mediakey(); + std::string* release_mediakey(); + void set_allocated_mediakey(std::string* mediakey); + private: + const std::string& _internal_mediakey() const; + void _internal_set_mediakey(const std::string& value); + std::string* _internal_mutable_mediakey(); + public: + + // optional string mimetype = 5; + bool has_mimetype() const; + private: + bool _internal_has_mimetype() const; + public: + void clear_mimetype(); + const std::string& mimetype() const; + void set_mimetype(const std::string& value); + void set_mimetype(std::string&& value); + void set_mimetype(const char* value); + void set_mimetype(const char* value, size_t size); + std::string* mutable_mimetype(); + std::string* release_mimetype(); + void set_allocated_mimetype(std::string* mimetype); + private: + const std::string& _internal_mimetype() const; + void _internal_set_mimetype(const std::string& value); + std::string* _internal_mutable_mimetype(); + public: + + // optional string directPath = 8; + bool has_directpath() const; + private: + bool _internal_has_directpath() const; + public: + void clear_directpath(); + const std::string& directpath() const; + void set_directpath(const std::string& value); + void set_directpath(std::string&& value); + void set_directpath(const char* value); + void set_directpath(const char* value, size_t size); + std::string* mutable_directpath(); + std::string* release_directpath(); + void set_allocated_directpath(std::string* directpath); + private: + const std::string& _internal_directpath() const; + void _internal_set_directpath(const std::string& value); + std::string* _internal_mutable_directpath(); + public: + + // optional bytes firstFrameSidecar = 12; + bool has_firstframesidecar() const; + private: + bool _internal_has_firstframesidecar() const; + public: + void clear_firstframesidecar(); + const std::string& firstframesidecar() const; + void set_firstframesidecar(const std::string& value); + void set_firstframesidecar(std::string&& value); + void set_firstframesidecar(const char* value); + void set_firstframesidecar(const void* value, size_t size); + std::string* mutable_firstframesidecar(); + std::string* release_firstframesidecar(); + void set_allocated_firstframesidecar(std::string* firstframesidecar); + private: + const std::string& _internal_firstframesidecar() const; + void _internal_set_firstframesidecar(const std::string& value); + std::string* _internal_mutable_firstframesidecar(); + public: + + // optional bytes pngThumbnail = 16; + bool has_pngthumbnail() const; + private: + bool _internal_has_pngthumbnail() const; + public: + void clear_pngthumbnail(); + const std::string& pngthumbnail() const; + void set_pngthumbnail(const std::string& value); + void set_pngthumbnail(std::string&& value); + void set_pngthumbnail(const char* value); + void set_pngthumbnail(const void* value, size_t size); + std::string* mutable_pngthumbnail(); + std::string* release_pngthumbnail(); + void set_allocated_pngthumbnail(std::string* pngthumbnail); + private: + const std::string& _internal_pngthumbnail() const; + void _internal_set_pngthumbnail(const std::string& value); + std::string* _internal_mutable_pngthumbnail(); + public: + + // optional .proto.ContextInfo contextInfo = 17; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // optional uint32 height = 6; + bool has_height() const; + private: + bool _internal_has_height() const; + public: + void clear_height(); + ::PROTOBUF_NAMESPACE_ID::uint32 height() const; + void set_height(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_height() const; + void _internal_set_height(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 width = 7; + bool has_width() const; + private: + bool _internal_has_width() const; + public: + void clear_width(); + ::PROTOBUF_NAMESPACE_ID::uint32 width() const; + void set_width(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_width() const; + void _internal_set_width(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint64 fileLength = 9; + bool has_filelength() const; + private: + bool _internal_has_filelength() const; + public: + void clear_filelength(); + ::PROTOBUF_NAMESPACE_ID::uint64 filelength() const; + void set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_filelength() const; + void _internal_set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // optional int64 mediaKeyTimestamp = 10; + bool has_mediakeytimestamp() const; + private: + bool _internal_has_mediakeytimestamp() const; + public: + void clear_mediakeytimestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 mediakeytimestamp() const; + void set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_mediakeytimestamp() const; + void _internal_set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // optional uint32 firstFrameLength = 11; + bool has_firstframelength() const; + private: + bool _internal_has_firstframelength() const; + public: + void clear_firstframelength(); + ::PROTOBUF_NAMESPACE_ID::uint32 firstframelength() const; + void set_firstframelength(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_firstframelength() const; + void _internal_set_firstframelength(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional bool isAnimated = 13; + bool has_isanimated() const; + private: + bool _internal_has_isanimated() const; + public: + void clear_isanimated(); + bool isanimated() const; + void set_isanimated(bool value); + private: + bool _internal_isanimated() const; + void _internal_set_isanimated(bool value); + public: + + // @@protoc_insertion_point(class_scope:proto.StickerMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filesha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fileencsha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mediakey_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mimetype_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr directpath_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr firstframesidecar_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pngthumbnail_; + ::proto::ContextInfo* contextinfo_; + ::PROTOBUF_NAMESPACE_ID::uint32 height_; + ::PROTOBUF_NAMESPACE_ID::uint32 width_; + ::PROTOBUF_NAMESPACE_ID::uint64 filelength_; + ::PROTOBUF_NAMESPACE_ID::int64 mediakeytimestamp_; + ::PROTOBUF_NAMESPACE_ID::uint32 firstframelength_; + bool isanimated_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class FourRowTemplate PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.FourRowTemplate) */ { + public: + inline FourRowTemplate() : FourRowTemplate(nullptr) {} + virtual ~FourRowTemplate(); + explicit constexpr FourRowTemplate(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + FourRowTemplate(const FourRowTemplate& from); + FourRowTemplate(FourRowTemplate&& from) noexcept + : FourRowTemplate() { + *this = ::std::move(from); + } + + inline FourRowTemplate& operator=(const FourRowTemplate& from) { + CopyFrom(from); + return *this; + } + inline FourRowTemplate& operator=(FourRowTemplate&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const FourRowTemplate& default_instance() { + return *internal_default_instance(); + } + enum TitleCase { + kDocumentMessage = 1, + kHighlyStructuredMessage = 2, + kImageMessage = 3, + kVideoMessage = 4, + kLocationMessage = 5, + TITLE_NOT_SET = 0, + }; + + static inline const FourRowTemplate* internal_default_instance() { + return reinterpret_cast<const FourRowTemplate*>( + &_FourRowTemplate_default_instance_); + } + static constexpr int kIndexInFileMessages = + 51; + + friend void swap(FourRowTemplate& a, FourRowTemplate& b) { + a.Swap(&b); + } + inline void Swap(FourRowTemplate* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(FourRowTemplate* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline FourRowTemplate* New() const final { + return CreateMaybeMessage<FourRowTemplate>(nullptr); + } + + FourRowTemplate* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<FourRowTemplate>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const FourRowTemplate& from); + void MergeFrom(const FourRowTemplate& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FourRowTemplate* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.FourRowTemplate"; + } + protected: + explicit FourRowTemplate(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kButtonsFieldNumber = 8, + kContentFieldNumber = 6, + kFooterFieldNumber = 7, + kDocumentMessageFieldNumber = 1, + kHighlyStructuredMessageFieldNumber = 2, + kImageMessageFieldNumber = 3, + kVideoMessageFieldNumber = 4, + kLocationMessageFieldNumber = 5, + }; + // repeated .proto.TemplateButton buttons = 8; + int buttons_size() const; + private: + int _internal_buttons_size() const; + public: + void clear_buttons(); + ::proto::TemplateButton* mutable_buttons(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::TemplateButton >* + mutable_buttons(); + private: + const ::proto::TemplateButton& _internal_buttons(int index) const; + ::proto::TemplateButton* _internal_add_buttons(); + public: + const ::proto::TemplateButton& buttons(int index) const; + ::proto::TemplateButton* add_buttons(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::TemplateButton >& + buttons() const; + + // optional .proto.HighlyStructuredMessage content = 6; + bool has_content() const; + private: + bool _internal_has_content() const; + public: + void clear_content(); + const ::proto::HighlyStructuredMessage& content() const; + ::proto::HighlyStructuredMessage* release_content(); + ::proto::HighlyStructuredMessage* mutable_content(); + void set_allocated_content(::proto::HighlyStructuredMessage* content); + private: + const ::proto::HighlyStructuredMessage& _internal_content() const; + ::proto::HighlyStructuredMessage* _internal_mutable_content(); + public: + void unsafe_arena_set_allocated_content( + ::proto::HighlyStructuredMessage* content); + ::proto::HighlyStructuredMessage* unsafe_arena_release_content(); + + // optional .proto.HighlyStructuredMessage footer = 7; + bool has_footer() const; + private: + bool _internal_has_footer() const; + public: + void clear_footer(); + const ::proto::HighlyStructuredMessage& footer() const; + ::proto::HighlyStructuredMessage* release_footer(); + ::proto::HighlyStructuredMessage* mutable_footer(); + void set_allocated_footer(::proto::HighlyStructuredMessage* footer); + private: + const ::proto::HighlyStructuredMessage& _internal_footer() const; + ::proto::HighlyStructuredMessage* _internal_mutable_footer(); + public: + void unsafe_arena_set_allocated_footer( + ::proto::HighlyStructuredMessage* footer); + ::proto::HighlyStructuredMessage* unsafe_arena_release_footer(); + + // .proto.DocumentMessage documentMessage = 1; + bool has_documentmessage() const; + private: + bool _internal_has_documentmessage() const; + public: + void clear_documentmessage(); + const ::proto::DocumentMessage& documentmessage() const; + ::proto::DocumentMessage* release_documentmessage(); + ::proto::DocumentMessage* mutable_documentmessage(); + void set_allocated_documentmessage(::proto::DocumentMessage* documentmessage); + private: + const ::proto::DocumentMessage& _internal_documentmessage() const; + ::proto::DocumentMessage* _internal_mutable_documentmessage(); + public: + void unsafe_arena_set_allocated_documentmessage( + ::proto::DocumentMessage* documentmessage); + ::proto::DocumentMessage* unsafe_arena_release_documentmessage(); + + // .proto.HighlyStructuredMessage highlyStructuredMessage = 2; + bool has_highlystructuredmessage() const; + private: + bool _internal_has_highlystructuredmessage() const; + public: + void clear_highlystructuredmessage(); + const ::proto::HighlyStructuredMessage& highlystructuredmessage() const; + ::proto::HighlyStructuredMessage* release_highlystructuredmessage(); + ::proto::HighlyStructuredMessage* mutable_highlystructuredmessage(); + void set_allocated_highlystructuredmessage(::proto::HighlyStructuredMessage* highlystructuredmessage); + private: + const ::proto::HighlyStructuredMessage& _internal_highlystructuredmessage() const; + ::proto::HighlyStructuredMessage* _internal_mutable_highlystructuredmessage(); + public: + void unsafe_arena_set_allocated_highlystructuredmessage( + ::proto::HighlyStructuredMessage* highlystructuredmessage); + ::proto::HighlyStructuredMessage* unsafe_arena_release_highlystructuredmessage(); + + // .proto.ImageMessage imageMessage = 3; + bool has_imagemessage() const; + private: + bool _internal_has_imagemessage() const; + public: + void clear_imagemessage(); + const ::proto::ImageMessage& imagemessage() const; + ::proto::ImageMessage* release_imagemessage(); + ::proto::ImageMessage* mutable_imagemessage(); + void set_allocated_imagemessage(::proto::ImageMessage* imagemessage); + private: + const ::proto::ImageMessage& _internal_imagemessage() const; + ::proto::ImageMessage* _internal_mutable_imagemessage(); + public: + void unsafe_arena_set_allocated_imagemessage( + ::proto::ImageMessage* imagemessage); + ::proto::ImageMessage* unsafe_arena_release_imagemessage(); + + // .proto.VideoMessage videoMessage = 4; + bool has_videomessage() const; + private: + bool _internal_has_videomessage() const; + public: + void clear_videomessage(); + const ::proto::VideoMessage& videomessage() const; + ::proto::VideoMessage* release_videomessage(); + ::proto::VideoMessage* mutable_videomessage(); + void set_allocated_videomessage(::proto::VideoMessage* videomessage); + private: + const ::proto::VideoMessage& _internal_videomessage() const; + ::proto::VideoMessage* _internal_mutable_videomessage(); + public: + void unsafe_arena_set_allocated_videomessage( + ::proto::VideoMessage* videomessage); + ::proto::VideoMessage* unsafe_arena_release_videomessage(); + + // .proto.LocationMessage locationMessage = 5; + bool has_locationmessage() const; + private: + bool _internal_has_locationmessage() const; + public: + void clear_locationmessage(); + const ::proto::LocationMessage& locationmessage() const; + ::proto::LocationMessage* release_locationmessage(); + ::proto::LocationMessage* mutable_locationmessage(); + void set_allocated_locationmessage(::proto::LocationMessage* locationmessage); + private: + const ::proto::LocationMessage& _internal_locationmessage() const; + ::proto::LocationMessage* _internal_mutable_locationmessage(); + public: + void unsafe_arena_set_allocated_locationmessage( + ::proto::LocationMessage* locationmessage); + ::proto::LocationMessage* unsafe_arena_release_locationmessage(); + + void clear_title(); + TitleCase title_case() const; + // @@protoc_insertion_point(class_scope:proto.FourRowTemplate) + private: + class _Internal; + void set_has_documentmessage(); + void set_has_highlystructuredmessage(); + void set_has_imagemessage(); + void set_has_videomessage(); + void set_has_locationmessage(); + + inline bool has_title() const; + inline void clear_has_title(); + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::TemplateButton > buttons_; + ::proto::HighlyStructuredMessage* content_; + ::proto::HighlyStructuredMessage* footer_; + union TitleUnion { + constexpr TitleUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::proto::DocumentMessage* documentmessage_; + ::proto::HighlyStructuredMessage* highlystructuredmessage_; + ::proto::ImageMessage* imagemessage_; + ::proto::VideoMessage* videomessage_; + ::proto::LocationMessage* locationmessage_; + } title_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class HydratedFourRowTemplate PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HydratedFourRowTemplate) */ { + public: + inline HydratedFourRowTemplate() : HydratedFourRowTemplate(nullptr) {} + virtual ~HydratedFourRowTemplate(); + explicit constexpr HydratedFourRowTemplate(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + HydratedFourRowTemplate(const HydratedFourRowTemplate& from); + HydratedFourRowTemplate(HydratedFourRowTemplate&& from) noexcept + : HydratedFourRowTemplate() { + *this = ::std::move(from); + } + + inline HydratedFourRowTemplate& operator=(const HydratedFourRowTemplate& from) { + CopyFrom(from); + return *this; + } + inline HydratedFourRowTemplate& operator=(HydratedFourRowTemplate&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const HydratedFourRowTemplate& default_instance() { + return *internal_default_instance(); + } + enum TitleCase { + kDocumentMessage = 1, + kHydratedTitleText = 2, + kImageMessage = 3, + kVideoMessage = 4, + kLocationMessage = 5, + TITLE_NOT_SET = 0, + }; + + static inline const HydratedFourRowTemplate* internal_default_instance() { + return reinterpret_cast<const HydratedFourRowTemplate*>( + &_HydratedFourRowTemplate_default_instance_); + } + static constexpr int kIndexInFileMessages = + 52; + + friend void swap(HydratedFourRowTemplate& a, HydratedFourRowTemplate& b) { + a.Swap(&b); + } + inline void Swap(HydratedFourRowTemplate* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(HydratedFourRowTemplate* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline HydratedFourRowTemplate* New() const final { + return CreateMaybeMessage<HydratedFourRowTemplate>(nullptr); + } + + HydratedFourRowTemplate* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<HydratedFourRowTemplate>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const HydratedFourRowTemplate& from); + void MergeFrom(const HydratedFourRowTemplate& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(HydratedFourRowTemplate* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.HydratedFourRowTemplate"; + } + protected: + explicit HydratedFourRowTemplate(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kHydratedButtonsFieldNumber = 8, + kHydratedContentTextFieldNumber = 6, + kHydratedFooterTextFieldNumber = 7, + kTemplateIdFieldNumber = 9, + kDocumentMessageFieldNumber = 1, + kHydratedTitleTextFieldNumber = 2, + kImageMessageFieldNumber = 3, + kVideoMessageFieldNumber = 4, + kLocationMessageFieldNumber = 5, + }; + // repeated .proto.HydratedTemplateButton hydratedButtons = 8; + int hydratedbuttons_size() const; + private: + int _internal_hydratedbuttons_size() const; + public: + void clear_hydratedbuttons(); + ::proto::HydratedTemplateButton* mutable_hydratedbuttons(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::HydratedTemplateButton >* + mutable_hydratedbuttons(); + private: + const ::proto::HydratedTemplateButton& _internal_hydratedbuttons(int index) const; + ::proto::HydratedTemplateButton* _internal_add_hydratedbuttons(); + public: + const ::proto::HydratedTemplateButton& hydratedbuttons(int index) const; + ::proto::HydratedTemplateButton* add_hydratedbuttons(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::HydratedTemplateButton >& + hydratedbuttons() const; + + // optional string hydratedContentText = 6; + bool has_hydratedcontenttext() const; + private: + bool _internal_has_hydratedcontenttext() const; + public: + void clear_hydratedcontenttext(); + const std::string& hydratedcontenttext() const; + void set_hydratedcontenttext(const std::string& value); + void set_hydratedcontenttext(std::string&& value); + void set_hydratedcontenttext(const char* value); + void set_hydratedcontenttext(const char* value, size_t size); + std::string* mutable_hydratedcontenttext(); + std::string* release_hydratedcontenttext(); + void set_allocated_hydratedcontenttext(std::string* hydratedcontenttext); + private: + const std::string& _internal_hydratedcontenttext() const; + void _internal_set_hydratedcontenttext(const std::string& value); + std::string* _internal_mutable_hydratedcontenttext(); + public: + + // optional string hydratedFooterText = 7; + bool has_hydratedfootertext() const; + private: + bool _internal_has_hydratedfootertext() const; + public: + void clear_hydratedfootertext(); + const std::string& hydratedfootertext() const; + void set_hydratedfootertext(const std::string& value); + void set_hydratedfootertext(std::string&& value); + void set_hydratedfootertext(const char* value); + void set_hydratedfootertext(const char* value, size_t size); + std::string* mutable_hydratedfootertext(); + std::string* release_hydratedfootertext(); + void set_allocated_hydratedfootertext(std::string* hydratedfootertext); + private: + const std::string& _internal_hydratedfootertext() const; + void _internal_set_hydratedfootertext(const std::string& value); + std::string* _internal_mutable_hydratedfootertext(); + public: + + // optional string templateId = 9; + bool has_templateid() const; + private: + bool _internal_has_templateid() const; + public: + void clear_templateid(); + const std::string& templateid() const; + void set_templateid(const std::string& value); + void set_templateid(std::string&& value); + void set_templateid(const char* value); + void set_templateid(const char* value, size_t size); + std::string* mutable_templateid(); + std::string* release_templateid(); + void set_allocated_templateid(std::string* templateid); + private: + const std::string& _internal_templateid() const; + void _internal_set_templateid(const std::string& value); + std::string* _internal_mutable_templateid(); + public: + + // .proto.DocumentMessage documentMessage = 1; + bool has_documentmessage() const; + private: + bool _internal_has_documentmessage() const; + public: + void clear_documentmessage(); + const ::proto::DocumentMessage& documentmessage() const; + ::proto::DocumentMessage* release_documentmessage(); + ::proto::DocumentMessage* mutable_documentmessage(); + void set_allocated_documentmessage(::proto::DocumentMessage* documentmessage); + private: + const ::proto::DocumentMessage& _internal_documentmessage() const; + ::proto::DocumentMessage* _internal_mutable_documentmessage(); + public: + void unsafe_arena_set_allocated_documentmessage( + ::proto::DocumentMessage* documentmessage); + ::proto::DocumentMessage* unsafe_arena_release_documentmessage(); + + // string hydratedTitleText = 2; + bool has_hydratedtitletext() const; + private: + bool _internal_has_hydratedtitletext() const; + public: + void clear_hydratedtitletext(); + const std::string& hydratedtitletext() const; + void set_hydratedtitletext(const std::string& value); + void set_hydratedtitletext(std::string&& value); + void set_hydratedtitletext(const char* value); + void set_hydratedtitletext(const char* value, size_t size); + std::string* mutable_hydratedtitletext(); + std::string* release_hydratedtitletext(); + void set_allocated_hydratedtitletext(std::string* hydratedtitletext); + private: + const std::string& _internal_hydratedtitletext() const; + void _internal_set_hydratedtitletext(const std::string& value); + std::string* _internal_mutable_hydratedtitletext(); + public: + + // .proto.ImageMessage imageMessage = 3; + bool has_imagemessage() const; + private: + bool _internal_has_imagemessage() const; + public: + void clear_imagemessage(); + const ::proto::ImageMessage& imagemessage() const; + ::proto::ImageMessage* release_imagemessage(); + ::proto::ImageMessage* mutable_imagemessage(); + void set_allocated_imagemessage(::proto::ImageMessage* imagemessage); + private: + const ::proto::ImageMessage& _internal_imagemessage() const; + ::proto::ImageMessage* _internal_mutable_imagemessage(); + public: + void unsafe_arena_set_allocated_imagemessage( + ::proto::ImageMessage* imagemessage); + ::proto::ImageMessage* unsafe_arena_release_imagemessage(); + + // .proto.VideoMessage videoMessage = 4; + bool has_videomessage() const; + private: + bool _internal_has_videomessage() const; + public: + void clear_videomessage(); + const ::proto::VideoMessage& videomessage() const; + ::proto::VideoMessage* release_videomessage(); + ::proto::VideoMessage* mutable_videomessage(); + void set_allocated_videomessage(::proto::VideoMessage* videomessage); + private: + const ::proto::VideoMessage& _internal_videomessage() const; + ::proto::VideoMessage* _internal_mutable_videomessage(); + public: + void unsafe_arena_set_allocated_videomessage( + ::proto::VideoMessage* videomessage); + ::proto::VideoMessage* unsafe_arena_release_videomessage(); + + // .proto.LocationMessage locationMessage = 5; + bool has_locationmessage() const; + private: + bool _internal_has_locationmessage() const; + public: + void clear_locationmessage(); + const ::proto::LocationMessage& locationmessage() const; + ::proto::LocationMessage* release_locationmessage(); + ::proto::LocationMessage* mutable_locationmessage(); + void set_allocated_locationmessage(::proto::LocationMessage* locationmessage); + private: + const ::proto::LocationMessage& _internal_locationmessage() const; + ::proto::LocationMessage* _internal_mutable_locationmessage(); + public: + void unsafe_arena_set_allocated_locationmessage( + ::proto::LocationMessage* locationmessage); + ::proto::LocationMessage* unsafe_arena_release_locationmessage(); + + void clear_title(); + TitleCase title_case() const; + // @@protoc_insertion_point(class_scope:proto.HydratedFourRowTemplate) + private: + class _Internal; + void set_has_documentmessage(); + void set_has_hydratedtitletext(); + void set_has_imagemessage(); + void set_has_videomessage(); + void set_has_locationmessage(); + + inline bool has_title() const; + inline void clear_has_title(); + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::HydratedTemplateButton > hydratedbuttons_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr hydratedcontenttext_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr hydratedfootertext_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr templateid_; + union TitleUnion { + constexpr TitleUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::proto::DocumentMessage* documentmessage_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr hydratedtitletext_; + ::proto::ImageMessage* imagemessage_; + ::proto::VideoMessage* videomessage_; + ::proto::LocationMessage* locationmessage_; + } title_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class TemplateMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.TemplateMessage) */ { + public: + inline TemplateMessage() : TemplateMessage(nullptr) {} + virtual ~TemplateMessage(); + explicit constexpr TemplateMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TemplateMessage(const TemplateMessage& from); + TemplateMessage(TemplateMessage&& from) noexcept + : TemplateMessage() { + *this = ::std::move(from); + } + + inline TemplateMessage& operator=(const TemplateMessage& from) { + CopyFrom(from); + return *this; + } + inline TemplateMessage& operator=(TemplateMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const TemplateMessage& default_instance() { + return *internal_default_instance(); + } + enum FormatCase { + kFourRowTemplate = 1, + kHydratedFourRowTemplate = 2, + FORMAT_NOT_SET = 0, + }; + + static inline const TemplateMessage* internal_default_instance() { + return reinterpret_cast<const TemplateMessage*>( + &_TemplateMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 53; + + friend void swap(TemplateMessage& a, TemplateMessage& b) { + a.Swap(&b); + } + inline void Swap(TemplateMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TemplateMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline TemplateMessage* New() const final { + return CreateMaybeMessage<TemplateMessage>(nullptr); + } + + TemplateMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<TemplateMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const TemplateMessage& from); + void MergeFrom(const TemplateMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TemplateMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.TemplateMessage"; + } + protected: + explicit TemplateMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kContextInfoFieldNumber = 3, + kHydratedTemplateFieldNumber = 4, + kFourRowTemplateFieldNumber = 1, + kHydratedFourRowTemplateFieldNumber = 2, + }; + // optional .proto.ContextInfo contextInfo = 3; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // optional .proto.HydratedFourRowTemplate hydratedTemplate = 4; + bool has_hydratedtemplate() const; + private: + bool _internal_has_hydratedtemplate() const; + public: + void clear_hydratedtemplate(); + const ::proto::HydratedFourRowTemplate& hydratedtemplate() const; + ::proto::HydratedFourRowTemplate* release_hydratedtemplate(); + ::proto::HydratedFourRowTemplate* mutable_hydratedtemplate(); + void set_allocated_hydratedtemplate(::proto::HydratedFourRowTemplate* hydratedtemplate); + private: + const ::proto::HydratedFourRowTemplate& _internal_hydratedtemplate() const; + ::proto::HydratedFourRowTemplate* _internal_mutable_hydratedtemplate(); + public: + void unsafe_arena_set_allocated_hydratedtemplate( + ::proto::HydratedFourRowTemplate* hydratedtemplate); + ::proto::HydratedFourRowTemplate* unsafe_arena_release_hydratedtemplate(); + + // .proto.FourRowTemplate fourRowTemplate = 1; + bool has_fourrowtemplate() const; + private: + bool _internal_has_fourrowtemplate() const; + public: + void clear_fourrowtemplate(); + const ::proto::FourRowTemplate& fourrowtemplate() const; + ::proto::FourRowTemplate* release_fourrowtemplate(); + ::proto::FourRowTemplate* mutable_fourrowtemplate(); + void set_allocated_fourrowtemplate(::proto::FourRowTemplate* fourrowtemplate); + private: + const ::proto::FourRowTemplate& _internal_fourrowtemplate() const; + ::proto::FourRowTemplate* _internal_mutable_fourrowtemplate(); + public: + void unsafe_arena_set_allocated_fourrowtemplate( + ::proto::FourRowTemplate* fourrowtemplate); + ::proto::FourRowTemplate* unsafe_arena_release_fourrowtemplate(); + + // .proto.HydratedFourRowTemplate hydratedFourRowTemplate = 2; + bool has_hydratedfourrowtemplate() const; + private: + bool _internal_has_hydratedfourrowtemplate() const; + public: + void clear_hydratedfourrowtemplate(); + const ::proto::HydratedFourRowTemplate& hydratedfourrowtemplate() const; + ::proto::HydratedFourRowTemplate* release_hydratedfourrowtemplate(); + ::proto::HydratedFourRowTemplate* mutable_hydratedfourrowtemplate(); + void set_allocated_hydratedfourrowtemplate(::proto::HydratedFourRowTemplate* hydratedfourrowtemplate); + private: + const ::proto::HydratedFourRowTemplate& _internal_hydratedfourrowtemplate() const; + ::proto::HydratedFourRowTemplate* _internal_mutable_hydratedfourrowtemplate(); + public: + void unsafe_arena_set_allocated_hydratedfourrowtemplate( + ::proto::HydratedFourRowTemplate* hydratedfourrowtemplate); + ::proto::HydratedFourRowTemplate* unsafe_arena_release_hydratedfourrowtemplate(); + + void clear_format(); + FormatCase format_case() const; + // @@protoc_insertion_point(class_scope:proto.TemplateMessage) + private: + class _Internal; + void set_has_fourrowtemplate(); + void set_has_hydratedfourrowtemplate(); + + inline bool has_format() const; + inline void clear_has_format(); + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::proto::ContextInfo* contextinfo_; + ::proto::HydratedFourRowTemplate* hydratedtemplate_; + union FormatUnion { + constexpr FormatUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::proto::FourRowTemplate* fourrowtemplate_; + ::proto::HydratedFourRowTemplate* hydratedfourrowtemplate_; + } format_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class TemplateButtonReplyMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.TemplateButtonReplyMessage) */ { + public: + inline TemplateButtonReplyMessage() : TemplateButtonReplyMessage(nullptr) {} + virtual ~TemplateButtonReplyMessage(); + explicit constexpr TemplateButtonReplyMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TemplateButtonReplyMessage(const TemplateButtonReplyMessage& from); + TemplateButtonReplyMessage(TemplateButtonReplyMessage&& from) noexcept + : TemplateButtonReplyMessage() { + *this = ::std::move(from); + } + + inline TemplateButtonReplyMessage& operator=(const TemplateButtonReplyMessage& from) { + CopyFrom(from); + return *this; + } + inline TemplateButtonReplyMessage& operator=(TemplateButtonReplyMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const TemplateButtonReplyMessage& default_instance() { + return *internal_default_instance(); + } + static inline const TemplateButtonReplyMessage* internal_default_instance() { + return reinterpret_cast<const TemplateButtonReplyMessage*>( + &_TemplateButtonReplyMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 54; + + friend void swap(TemplateButtonReplyMessage& a, TemplateButtonReplyMessage& b) { + a.Swap(&b); + } + inline void Swap(TemplateButtonReplyMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(TemplateButtonReplyMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline TemplateButtonReplyMessage* New() const final { + return CreateMaybeMessage<TemplateButtonReplyMessage>(nullptr); + } + + TemplateButtonReplyMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<TemplateButtonReplyMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const TemplateButtonReplyMessage& from); + void MergeFrom(const TemplateButtonReplyMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(TemplateButtonReplyMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.TemplateButtonReplyMessage"; + } + protected: + explicit TemplateButtonReplyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kSelectedIdFieldNumber = 1, + kSelectedDisplayTextFieldNumber = 2, + kContextInfoFieldNumber = 3, + kSelectedIndexFieldNumber = 4, + }; + // optional string selectedId = 1; + bool has_selectedid() const; + private: + bool _internal_has_selectedid() const; + public: + void clear_selectedid(); + const std::string& selectedid() const; + void set_selectedid(const std::string& value); + void set_selectedid(std::string&& value); + void set_selectedid(const char* value); + void set_selectedid(const char* value, size_t size); + std::string* mutable_selectedid(); + std::string* release_selectedid(); + void set_allocated_selectedid(std::string* selectedid); + private: + const std::string& _internal_selectedid() const; + void _internal_set_selectedid(const std::string& value); + std::string* _internal_mutable_selectedid(); + public: + + // optional string selectedDisplayText = 2; + bool has_selecteddisplaytext() const; + private: + bool _internal_has_selecteddisplaytext() const; + public: + void clear_selecteddisplaytext(); + const std::string& selecteddisplaytext() const; + void set_selecteddisplaytext(const std::string& value); + void set_selecteddisplaytext(std::string&& value); + void set_selecteddisplaytext(const char* value); + void set_selecteddisplaytext(const char* value, size_t size); + std::string* mutable_selecteddisplaytext(); + std::string* release_selecteddisplaytext(); + void set_allocated_selecteddisplaytext(std::string* selecteddisplaytext); + private: + const std::string& _internal_selecteddisplaytext() const; + void _internal_set_selecteddisplaytext(const std::string& value); + std::string* _internal_mutable_selecteddisplaytext(); + public: + + // optional .proto.ContextInfo contextInfo = 3; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // optional uint32 selectedIndex = 4; + bool has_selectedindex() const; + private: + bool _internal_has_selectedindex() const; + public: + void clear_selectedindex(); + ::PROTOBUF_NAMESPACE_ID::uint32 selectedindex() const; + void set_selectedindex(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_selectedindex() const; + void _internal_set_selectedindex(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // @@protoc_insertion_point(class_scope:proto.TemplateButtonReplyMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr selectedid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr selecteddisplaytext_; + ::proto::ContextInfo* contextinfo_; + ::PROTOBUF_NAMESPACE_ID::uint32 selectedindex_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class CatalogSnapshot PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.CatalogSnapshot) */ { + public: + inline CatalogSnapshot() : CatalogSnapshot(nullptr) {} + virtual ~CatalogSnapshot(); + explicit constexpr CatalogSnapshot(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + CatalogSnapshot(const CatalogSnapshot& from); + CatalogSnapshot(CatalogSnapshot&& from) noexcept + : CatalogSnapshot() { + *this = ::std::move(from); + } + + inline CatalogSnapshot& operator=(const CatalogSnapshot& from) { + CopyFrom(from); + return *this; + } + inline CatalogSnapshot& operator=(CatalogSnapshot&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const CatalogSnapshot& default_instance() { + return *internal_default_instance(); + } + static inline const CatalogSnapshot* internal_default_instance() { + return reinterpret_cast<const CatalogSnapshot*>( + &_CatalogSnapshot_default_instance_); + } + static constexpr int kIndexInFileMessages = + 55; + + friend void swap(CatalogSnapshot& a, CatalogSnapshot& b) { + a.Swap(&b); + } + inline void Swap(CatalogSnapshot* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(CatalogSnapshot* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline CatalogSnapshot* New() const final { + return CreateMaybeMessage<CatalogSnapshot>(nullptr); + } + + CatalogSnapshot* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<CatalogSnapshot>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const CatalogSnapshot& from); + void MergeFrom(const CatalogSnapshot& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CatalogSnapshot* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.CatalogSnapshot"; + } + protected: + explicit CatalogSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTitleFieldNumber = 2, + kDescriptionFieldNumber = 3, + kCatalogImageFieldNumber = 1, + }; + // optional string title = 2; + bool has_title() const; + private: + bool _internal_has_title() const; + public: + void clear_title(); + const std::string& title() const; + void set_title(const std::string& value); + void set_title(std::string&& value); + void set_title(const char* value); + void set_title(const char* value, size_t size); + std::string* mutable_title(); + std::string* release_title(); + void set_allocated_title(std::string* title); + private: + const std::string& _internal_title() const; + void _internal_set_title(const std::string& value); + std::string* _internal_mutable_title(); + public: + + // optional string description = 3; + bool has_description() const; + private: + bool _internal_has_description() const; + public: + void clear_description(); + const std::string& description() const; + void set_description(const std::string& value); + void set_description(std::string&& value); + void set_description(const char* value); + void set_description(const char* value, size_t size); + std::string* mutable_description(); + std::string* release_description(); + void set_allocated_description(std::string* description); + private: + const std::string& _internal_description() const; + void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); + public: + + // optional .proto.ImageMessage catalogImage = 1; + bool has_catalogimage() const; + private: + bool _internal_has_catalogimage() const; + public: + void clear_catalogimage(); + const ::proto::ImageMessage& catalogimage() const; + ::proto::ImageMessage* release_catalogimage(); + ::proto::ImageMessage* mutable_catalogimage(); + void set_allocated_catalogimage(::proto::ImageMessage* catalogimage); + private: + const ::proto::ImageMessage& _internal_catalogimage() const; + ::proto::ImageMessage* _internal_mutable_catalogimage(); + public: + void unsafe_arena_set_allocated_catalogimage( + ::proto::ImageMessage* catalogimage); + ::proto::ImageMessage* unsafe_arena_release_catalogimage(); + + // @@protoc_insertion_point(class_scope:proto.CatalogSnapshot) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr title_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + ::proto::ImageMessage* catalogimage_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class ProductSnapshot PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ProductSnapshot) */ { + public: + inline ProductSnapshot() : ProductSnapshot(nullptr) {} + virtual ~ProductSnapshot(); + explicit constexpr ProductSnapshot(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ProductSnapshot(const ProductSnapshot& from); + ProductSnapshot(ProductSnapshot&& from) noexcept + : ProductSnapshot() { + *this = ::std::move(from); + } + + inline ProductSnapshot& operator=(const ProductSnapshot& from) { + CopyFrom(from); + return *this; + } + inline ProductSnapshot& operator=(ProductSnapshot&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ProductSnapshot& default_instance() { + return *internal_default_instance(); + } + static inline const ProductSnapshot* internal_default_instance() { + return reinterpret_cast<const ProductSnapshot*>( + &_ProductSnapshot_default_instance_); + } + static constexpr int kIndexInFileMessages = + 56; + + friend void swap(ProductSnapshot& a, ProductSnapshot& b) { + a.Swap(&b); + } + inline void Swap(ProductSnapshot* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ProductSnapshot* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ProductSnapshot* New() const final { + return CreateMaybeMessage<ProductSnapshot>(nullptr); + } + + ProductSnapshot* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ProductSnapshot>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ProductSnapshot& from); + void MergeFrom(const ProductSnapshot& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProductSnapshot* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.ProductSnapshot"; + } + protected: + explicit ProductSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kProductIdFieldNumber = 2, + kTitleFieldNumber = 3, + kDescriptionFieldNumber = 4, + kCurrencyCodeFieldNumber = 5, + kRetailerIdFieldNumber = 7, + kUrlFieldNumber = 8, + kFirstImageIdFieldNumber = 11, + kProductImageFieldNumber = 1, + kPriceAmount1000FieldNumber = 6, + kProductImageCountFieldNumber = 9, + }; + // optional string productId = 2; + bool has_productid() const; + private: + bool _internal_has_productid() const; + public: + void clear_productid(); + const std::string& productid() const; + void set_productid(const std::string& value); + void set_productid(std::string&& value); + void set_productid(const char* value); + void set_productid(const char* value, size_t size); + std::string* mutable_productid(); + std::string* release_productid(); + void set_allocated_productid(std::string* productid); + private: + const std::string& _internal_productid() const; + void _internal_set_productid(const std::string& value); + std::string* _internal_mutable_productid(); + public: + + // optional string title = 3; + bool has_title() const; + private: + bool _internal_has_title() const; + public: + void clear_title(); + const std::string& title() const; + void set_title(const std::string& value); + void set_title(std::string&& value); + void set_title(const char* value); + void set_title(const char* value, size_t size); + std::string* mutable_title(); + std::string* release_title(); + void set_allocated_title(std::string* title); + private: + const std::string& _internal_title() const; + void _internal_set_title(const std::string& value); + std::string* _internal_mutable_title(); + public: + + // optional string description = 4; + bool has_description() const; + private: + bool _internal_has_description() const; + public: + void clear_description(); + const std::string& description() const; + void set_description(const std::string& value); + void set_description(std::string&& value); + void set_description(const char* value); + void set_description(const char* value, size_t size); + std::string* mutable_description(); + std::string* release_description(); + void set_allocated_description(std::string* description); + private: + const std::string& _internal_description() const; + void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); + public: + + // optional string currencyCode = 5; + bool has_currencycode() const; + private: + bool _internal_has_currencycode() const; + public: + void clear_currencycode(); + const std::string& currencycode() const; + void set_currencycode(const std::string& value); + void set_currencycode(std::string&& value); + void set_currencycode(const char* value); + void set_currencycode(const char* value, size_t size); + std::string* mutable_currencycode(); + std::string* release_currencycode(); + void set_allocated_currencycode(std::string* currencycode); + private: + const std::string& _internal_currencycode() const; + void _internal_set_currencycode(const std::string& value); + std::string* _internal_mutable_currencycode(); + public: + + // optional string retailerId = 7; + bool has_retailerid() const; + private: + bool _internal_has_retailerid() const; + public: + void clear_retailerid(); + const std::string& retailerid() const; + void set_retailerid(const std::string& value); + void set_retailerid(std::string&& value); + void set_retailerid(const char* value); + void set_retailerid(const char* value, size_t size); + std::string* mutable_retailerid(); + std::string* release_retailerid(); + void set_allocated_retailerid(std::string* retailerid); + private: + const std::string& _internal_retailerid() const; + void _internal_set_retailerid(const std::string& value); + std::string* _internal_mutable_retailerid(); + public: + + // optional string url = 8; + bool has_url() const; + private: + bool _internal_has_url() const; + public: + void clear_url(); + const std::string& url() const; + void set_url(const std::string& value); + void set_url(std::string&& value); + void set_url(const char* value); + void set_url(const char* value, size_t size); + std::string* mutable_url(); + std::string* release_url(); + void set_allocated_url(std::string* url); + private: + const std::string& _internal_url() const; + void _internal_set_url(const std::string& value); + std::string* _internal_mutable_url(); + public: + + // optional string firstImageId = 11; + bool has_firstimageid() const; + private: + bool _internal_has_firstimageid() const; + public: + void clear_firstimageid(); + const std::string& firstimageid() const; + void set_firstimageid(const std::string& value); + void set_firstimageid(std::string&& value); + void set_firstimageid(const char* value); + void set_firstimageid(const char* value, size_t size); + std::string* mutable_firstimageid(); + std::string* release_firstimageid(); + void set_allocated_firstimageid(std::string* firstimageid); + private: + const std::string& _internal_firstimageid() const; + void _internal_set_firstimageid(const std::string& value); + std::string* _internal_mutable_firstimageid(); + public: + + // optional .proto.ImageMessage productImage = 1; + bool has_productimage() const; + private: + bool _internal_has_productimage() const; + public: + void clear_productimage(); + const ::proto::ImageMessage& productimage() const; + ::proto::ImageMessage* release_productimage(); + ::proto::ImageMessage* mutable_productimage(); + void set_allocated_productimage(::proto::ImageMessage* productimage); + private: + const ::proto::ImageMessage& _internal_productimage() const; + ::proto::ImageMessage* _internal_mutable_productimage(); + public: + void unsafe_arena_set_allocated_productimage( + ::proto::ImageMessage* productimage); + ::proto::ImageMessage* unsafe_arena_release_productimage(); + + // optional int64 priceAmount1000 = 6; + bool has_priceamount1000() const; + private: + bool _internal_has_priceamount1000() const; + public: + void clear_priceamount1000(); + ::PROTOBUF_NAMESPACE_ID::int64 priceamount1000() const; + void set_priceamount1000(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_priceamount1000() const; + void _internal_set_priceamount1000(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // optional uint32 productImageCount = 9; + bool has_productimagecount() const; + private: + bool _internal_has_productimagecount() const; + public: + void clear_productimagecount(); + ::PROTOBUF_NAMESPACE_ID::uint32 productimagecount() const; + void set_productimagecount(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_productimagecount() const; + void _internal_set_productimagecount(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // @@protoc_insertion_point(class_scope:proto.ProductSnapshot) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr productid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr title_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr currencycode_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr retailerid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr url_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr firstimageid_; + ::proto::ImageMessage* productimage_; + ::PROTOBUF_NAMESPACE_ID::int64 priceamount1000_; + ::PROTOBUF_NAMESPACE_ID::uint32 productimagecount_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class ProductMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ProductMessage) */ { + public: + inline ProductMessage() : ProductMessage(nullptr) {} + virtual ~ProductMessage(); + explicit constexpr ProductMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ProductMessage(const ProductMessage& from); + ProductMessage(ProductMessage&& from) noexcept + : ProductMessage() { + *this = ::std::move(from); + } + + inline ProductMessage& operator=(const ProductMessage& from) { + CopyFrom(from); + return *this; + } + inline ProductMessage& operator=(ProductMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ProductMessage& default_instance() { + return *internal_default_instance(); + } + static inline const ProductMessage* internal_default_instance() { + return reinterpret_cast<const ProductMessage*>( + &_ProductMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 57; + + friend void swap(ProductMessage& a, ProductMessage& b) { + a.Swap(&b); + } + inline void Swap(ProductMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ProductMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ProductMessage* New() const final { + return CreateMaybeMessage<ProductMessage>(nullptr); + } + + ProductMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ProductMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ProductMessage& from); + void MergeFrom(const ProductMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ProductMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.ProductMessage"; + } + protected: + explicit ProductMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kBusinessOwnerJidFieldNumber = 2, + kProductFieldNumber = 1, + kCatalogFieldNumber = 4, + kContextInfoFieldNumber = 17, + }; + // optional string businessOwnerJid = 2; + bool has_businessownerjid() const; + private: + bool _internal_has_businessownerjid() const; + public: + void clear_businessownerjid(); + const std::string& businessownerjid() const; + void set_businessownerjid(const std::string& value); + void set_businessownerjid(std::string&& value); + void set_businessownerjid(const char* value); + void set_businessownerjid(const char* value, size_t size); + std::string* mutable_businessownerjid(); + std::string* release_businessownerjid(); + void set_allocated_businessownerjid(std::string* businessownerjid); + private: + const std::string& _internal_businessownerjid() const; + void _internal_set_businessownerjid(const std::string& value); + std::string* _internal_mutable_businessownerjid(); + public: + + // optional .proto.ProductSnapshot product = 1; + bool has_product() const; + private: + bool _internal_has_product() const; + public: + void clear_product(); + const ::proto::ProductSnapshot& product() const; + ::proto::ProductSnapshot* release_product(); + ::proto::ProductSnapshot* mutable_product(); + void set_allocated_product(::proto::ProductSnapshot* product); + private: + const ::proto::ProductSnapshot& _internal_product() const; + ::proto::ProductSnapshot* _internal_mutable_product(); + public: + void unsafe_arena_set_allocated_product( + ::proto::ProductSnapshot* product); + ::proto::ProductSnapshot* unsafe_arena_release_product(); + + // optional .proto.CatalogSnapshot catalog = 4; + bool has_catalog() const; + private: + bool _internal_has_catalog() const; + public: + void clear_catalog(); + const ::proto::CatalogSnapshot& catalog() const; + ::proto::CatalogSnapshot* release_catalog(); + ::proto::CatalogSnapshot* mutable_catalog(); + void set_allocated_catalog(::proto::CatalogSnapshot* catalog); + private: + const ::proto::CatalogSnapshot& _internal_catalog() const; + ::proto::CatalogSnapshot* _internal_mutable_catalog(); + public: + void unsafe_arena_set_allocated_catalog( + ::proto::CatalogSnapshot* catalog); + ::proto::CatalogSnapshot* unsafe_arena_release_catalog(); + + // optional .proto.ContextInfo contextInfo = 17; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // @@protoc_insertion_point(class_scope:proto.ProductMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr businessownerjid_; + ::proto::ProductSnapshot* product_; + ::proto::CatalogSnapshot* catalog_; + ::proto::ContextInfo* contextinfo_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class OrderMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.OrderMessage) */ { + public: + inline OrderMessage() : OrderMessage(nullptr) {} + virtual ~OrderMessage(); + explicit constexpr OrderMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + OrderMessage(const OrderMessage& from); + OrderMessage(OrderMessage&& from) noexcept + : OrderMessage() { + *this = ::std::move(from); + } + + inline OrderMessage& operator=(const OrderMessage& from) { + CopyFrom(from); + return *this; + } + inline OrderMessage& operator=(OrderMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const OrderMessage& default_instance() { + return *internal_default_instance(); + } + static inline const OrderMessage* internal_default_instance() { + return reinterpret_cast<const OrderMessage*>( + &_OrderMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 58; + + friend void swap(OrderMessage& a, OrderMessage& b) { + a.Swap(&b); + } + inline void Swap(OrderMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(OrderMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline OrderMessage* New() const final { + return CreateMaybeMessage<OrderMessage>(nullptr); + } + + OrderMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<OrderMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const OrderMessage& from); + void MergeFrom(const OrderMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(OrderMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.OrderMessage"; + } + protected: + explicit OrderMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + typedef OrderMessage_OrderMessageOrderStatus OrderMessageOrderStatus; + static constexpr OrderMessageOrderStatus INQUIRY = + OrderMessage_OrderMessageOrderStatus_INQUIRY; + static inline bool OrderMessageOrderStatus_IsValid(int value) { + return OrderMessage_OrderMessageOrderStatus_IsValid(value); + } + static constexpr OrderMessageOrderStatus OrderMessageOrderStatus_MIN = + OrderMessage_OrderMessageOrderStatus_OrderMessageOrderStatus_MIN; + static constexpr OrderMessageOrderStatus OrderMessageOrderStatus_MAX = + OrderMessage_OrderMessageOrderStatus_OrderMessageOrderStatus_MAX; + static constexpr int OrderMessageOrderStatus_ARRAYSIZE = + OrderMessage_OrderMessageOrderStatus_OrderMessageOrderStatus_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + OrderMessageOrderStatus_descriptor() { + return OrderMessage_OrderMessageOrderStatus_descriptor(); + } + template<typename T> + static inline const std::string& OrderMessageOrderStatus_Name(T enum_t_value) { + static_assert(::std::is_same<T, OrderMessageOrderStatus>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function OrderMessageOrderStatus_Name."); + return OrderMessage_OrderMessageOrderStatus_Name(enum_t_value); + } + static inline bool OrderMessageOrderStatus_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + OrderMessageOrderStatus* value) { + return OrderMessage_OrderMessageOrderStatus_Parse(name, value); + } + + typedef OrderMessage_OrderMessageOrderSurface OrderMessageOrderSurface; + static constexpr OrderMessageOrderSurface CATALOG = + OrderMessage_OrderMessageOrderSurface_CATALOG; + static inline bool OrderMessageOrderSurface_IsValid(int value) { + return OrderMessage_OrderMessageOrderSurface_IsValid(value); + } + static constexpr OrderMessageOrderSurface OrderMessageOrderSurface_MIN = + OrderMessage_OrderMessageOrderSurface_OrderMessageOrderSurface_MIN; + static constexpr OrderMessageOrderSurface OrderMessageOrderSurface_MAX = + OrderMessage_OrderMessageOrderSurface_OrderMessageOrderSurface_MAX; + static constexpr int OrderMessageOrderSurface_ARRAYSIZE = + OrderMessage_OrderMessageOrderSurface_OrderMessageOrderSurface_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + OrderMessageOrderSurface_descriptor() { + return OrderMessage_OrderMessageOrderSurface_descriptor(); + } + template<typename T> + static inline const std::string& OrderMessageOrderSurface_Name(T enum_t_value) { + static_assert(::std::is_same<T, OrderMessageOrderSurface>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function OrderMessageOrderSurface_Name."); + return OrderMessage_OrderMessageOrderSurface_Name(enum_t_value); + } + static inline bool OrderMessageOrderSurface_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + OrderMessageOrderSurface* value) { + return OrderMessage_OrderMessageOrderSurface_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kOrderIdFieldNumber = 1, + kThumbnailFieldNumber = 2, + kMessageFieldNumber = 6, + kOrderTitleFieldNumber = 7, + kSellerJidFieldNumber = 8, + kTokenFieldNumber = 9, + kTotalCurrencyCodeFieldNumber = 11, + kContextInfoFieldNumber = 17, + kTotalAmount1000FieldNumber = 10, + kItemCountFieldNumber = 3, + kStatusFieldNumber = 4, + kSurfaceFieldNumber = 5, + }; + // optional string orderId = 1; + bool has_orderid() const; + private: + bool _internal_has_orderid() const; + public: + void clear_orderid(); + const std::string& orderid() const; + void set_orderid(const std::string& value); + void set_orderid(std::string&& value); + void set_orderid(const char* value); + void set_orderid(const char* value, size_t size); + std::string* mutable_orderid(); + std::string* release_orderid(); + void set_allocated_orderid(std::string* orderid); + private: + const std::string& _internal_orderid() const; + void _internal_set_orderid(const std::string& value); + std::string* _internal_mutable_orderid(); + public: + + // optional bytes thumbnail = 2; + bool has_thumbnail() const; + private: + bool _internal_has_thumbnail() const; + public: + void clear_thumbnail(); + const std::string& thumbnail() const; + void set_thumbnail(const std::string& value); + void set_thumbnail(std::string&& value); + void set_thumbnail(const char* value); + void set_thumbnail(const void* value, size_t size); + std::string* mutable_thumbnail(); + std::string* release_thumbnail(); + void set_allocated_thumbnail(std::string* thumbnail); + private: + const std::string& _internal_thumbnail() const; + void _internal_set_thumbnail(const std::string& value); + std::string* _internal_mutable_thumbnail(); + public: + + // optional string message = 6; + bool has_message() const; + private: + bool _internal_has_message() const; + public: + void clear_message(); + const std::string& message() const; + void set_message(const std::string& value); + void set_message(std::string&& value); + void set_message(const char* value); + void set_message(const char* value, size_t size); + std::string* mutable_message(); + std::string* release_message(); + void set_allocated_message(std::string* message); + private: + const std::string& _internal_message() const; + void _internal_set_message(const std::string& value); + std::string* _internal_mutable_message(); + public: + + // optional string orderTitle = 7; + bool has_ordertitle() const; + private: + bool _internal_has_ordertitle() const; + public: + void clear_ordertitle(); + const std::string& ordertitle() const; + void set_ordertitle(const std::string& value); + void set_ordertitle(std::string&& value); + void set_ordertitle(const char* value); + void set_ordertitle(const char* value, size_t size); + std::string* mutable_ordertitle(); + std::string* release_ordertitle(); + void set_allocated_ordertitle(std::string* ordertitle); + private: + const std::string& _internal_ordertitle() const; + void _internal_set_ordertitle(const std::string& value); + std::string* _internal_mutable_ordertitle(); + public: + + // optional string sellerJid = 8; + bool has_sellerjid() const; + private: + bool _internal_has_sellerjid() const; + public: + void clear_sellerjid(); + const std::string& sellerjid() const; + void set_sellerjid(const std::string& value); + void set_sellerjid(std::string&& value); + void set_sellerjid(const char* value); + void set_sellerjid(const char* value, size_t size); + std::string* mutable_sellerjid(); + std::string* release_sellerjid(); + void set_allocated_sellerjid(std::string* sellerjid); + private: + const std::string& _internal_sellerjid() const; + void _internal_set_sellerjid(const std::string& value); + std::string* _internal_mutable_sellerjid(); + public: + + // optional string token = 9; + bool has_token() const; + private: + bool _internal_has_token() const; + public: + void clear_token(); + const std::string& token() const; + void set_token(const std::string& value); + void set_token(std::string&& value); + void set_token(const char* value); + void set_token(const char* value, size_t size); + std::string* mutable_token(); + std::string* release_token(); + void set_allocated_token(std::string* token); + private: + const std::string& _internal_token() const; + void _internal_set_token(const std::string& value); + std::string* _internal_mutable_token(); + public: + + // optional string totalCurrencyCode = 11; + bool has_totalcurrencycode() const; + private: + bool _internal_has_totalcurrencycode() const; + public: + void clear_totalcurrencycode(); + const std::string& totalcurrencycode() const; + void set_totalcurrencycode(const std::string& value); + void set_totalcurrencycode(std::string&& value); + void set_totalcurrencycode(const char* value); + void set_totalcurrencycode(const char* value, size_t size); + std::string* mutable_totalcurrencycode(); + std::string* release_totalcurrencycode(); + void set_allocated_totalcurrencycode(std::string* totalcurrencycode); + private: + const std::string& _internal_totalcurrencycode() const; + void _internal_set_totalcurrencycode(const std::string& value); + std::string* _internal_mutable_totalcurrencycode(); + public: + + // optional .proto.ContextInfo contextInfo = 17; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // optional int64 totalAmount1000 = 10; + bool has_totalamount1000() const; + private: + bool _internal_has_totalamount1000() const; + public: + void clear_totalamount1000(); + ::PROTOBUF_NAMESPACE_ID::int64 totalamount1000() const; + void set_totalamount1000(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_totalamount1000() const; + void _internal_set_totalamount1000(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // optional int32 itemCount = 3; + bool has_itemcount() const; + private: + bool _internal_has_itemcount() const; + public: + void clear_itemcount(); + ::PROTOBUF_NAMESPACE_ID::int32 itemcount() const; + void set_itemcount(::PROTOBUF_NAMESPACE_ID::int32 value); + private: + ::PROTOBUF_NAMESPACE_ID::int32 _internal_itemcount() const; + void _internal_set_itemcount(::PROTOBUF_NAMESPACE_ID::int32 value); + public: + + // optional .proto.OrderMessage.OrderMessageOrderStatus status = 4; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + ::proto::OrderMessage_OrderMessageOrderStatus status() const; + void set_status(::proto::OrderMessage_OrderMessageOrderStatus value); + private: + ::proto::OrderMessage_OrderMessageOrderStatus _internal_status() const; + void _internal_set_status(::proto::OrderMessage_OrderMessageOrderStatus value); + public: + + // optional .proto.OrderMessage.OrderMessageOrderSurface surface = 5; + bool has_surface() const; + private: + bool _internal_has_surface() const; + public: + void clear_surface(); + ::proto::OrderMessage_OrderMessageOrderSurface surface() const; + void set_surface(::proto::OrderMessage_OrderMessageOrderSurface value); + private: + ::proto::OrderMessage_OrderMessageOrderSurface _internal_surface() const; + void _internal_set_surface(::proto::OrderMessage_OrderMessageOrderSurface value); + public: + + // @@protoc_insertion_point(class_scope:proto.OrderMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr orderid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr thumbnail_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ordertitle_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sellerjid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr token_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr totalcurrencycode_; + ::proto::ContextInfo* contextinfo_; + ::PROTOBUF_NAMESPACE_ID::int64 totalamount1000_; + ::PROTOBUF_NAMESPACE_ID::int32 itemcount_; + int status_; + int surface_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class Row PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Row) */ { + public: + inline Row() : Row(nullptr) {} + virtual ~Row(); + explicit constexpr Row(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Row(const Row& from); + Row(Row&& from) noexcept + : Row() { + *this = ::std::move(from); + } + + inline Row& operator=(const Row& from) { + CopyFrom(from); + return *this; + } + inline Row& operator=(Row&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Row& default_instance() { + return *internal_default_instance(); + } + static inline const Row* internal_default_instance() { + return reinterpret_cast<const Row*>( + &_Row_default_instance_); + } + static constexpr int kIndexInFileMessages = + 59; + + friend void swap(Row& a, Row& b) { + a.Swap(&b); + } + inline void Swap(Row* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Row* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Row* New() const final { + return CreateMaybeMessage<Row>(nullptr); + } + + Row* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<Row>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Row& from); + void MergeFrom(const Row& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Row* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.Row"; + } + protected: + explicit Row(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTitleFieldNumber = 1, + kDescriptionFieldNumber = 2, + kRowIdFieldNumber = 3, + }; + // optional string title = 1; + bool has_title() const; + private: + bool _internal_has_title() const; + public: + void clear_title(); + const std::string& title() const; + void set_title(const std::string& value); + void set_title(std::string&& value); + void set_title(const char* value); + void set_title(const char* value, size_t size); + std::string* mutable_title(); + std::string* release_title(); + void set_allocated_title(std::string* title); + private: + const std::string& _internal_title() const; + void _internal_set_title(const std::string& value); + std::string* _internal_mutable_title(); + public: + + // optional string description = 2; + bool has_description() const; + private: + bool _internal_has_description() const; + public: + void clear_description(); + const std::string& description() const; + void set_description(const std::string& value); + void set_description(std::string&& value); + void set_description(const char* value); + void set_description(const char* value, size_t size); + std::string* mutable_description(); + std::string* release_description(); + void set_allocated_description(std::string* description); + private: + const std::string& _internal_description() const; + void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); + public: + + // optional string rowId = 3; + bool has_rowid() const; + private: + bool _internal_has_rowid() const; + public: + void clear_rowid(); + const std::string& rowid() const; + void set_rowid(const std::string& value); + void set_rowid(std::string&& value); + void set_rowid(const char* value); + void set_rowid(const char* value, size_t size); + std::string* mutable_rowid(); + std::string* release_rowid(); + void set_allocated_rowid(std::string* rowid); + private: + const std::string& _internal_rowid() const; + void _internal_set_rowid(const std::string& value); + std::string* _internal_mutable_rowid(); + public: + + // @@protoc_insertion_point(class_scope:proto.Row) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr title_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr rowid_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class Section PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Section) */ { + public: + inline Section() : Section(nullptr) {} + virtual ~Section(); + explicit constexpr Section(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Section(const Section& from); + Section(Section&& from) noexcept + : Section() { + *this = ::std::move(from); + } + + inline Section& operator=(const Section& from) { + CopyFrom(from); + return *this; + } + inline Section& operator=(Section&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Section& default_instance() { + return *internal_default_instance(); + } + static inline const Section* internal_default_instance() { + return reinterpret_cast<const Section*>( + &_Section_default_instance_); + } + static constexpr int kIndexInFileMessages = + 60; + + friend void swap(Section& a, Section& b) { + a.Swap(&b); + } + inline void Swap(Section* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Section* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Section* New() const final { + return CreateMaybeMessage<Section>(nullptr); + } + + Section* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<Section>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Section& from); + void MergeFrom(const Section& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Section* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.Section"; + } + protected: + explicit Section(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kRowsFieldNumber = 2, + kTitleFieldNumber = 1, + }; + // repeated .proto.Row rows = 2; + int rows_size() const; + private: + int _internal_rows_size() const; + public: + void clear_rows(); + ::proto::Row* mutable_rows(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Row >* + mutable_rows(); + private: + const ::proto::Row& _internal_rows(int index) const; + ::proto::Row* _internal_add_rows(); + public: + const ::proto::Row& rows(int index) const; + ::proto::Row* add_rows(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Row >& + rows() const; + + // optional string title = 1; + bool has_title() const; + private: + bool _internal_has_title() const; + public: + void clear_title(); + const std::string& title() const; + void set_title(const std::string& value); + void set_title(std::string&& value); + void set_title(const char* value); + void set_title(const char* value, size_t size); + std::string* mutable_title(); + std::string* release_title(); + void set_allocated_title(std::string* title); + private: + const std::string& _internal_title() const; + void _internal_set_title(const std::string& value); + std::string* _internal_mutable_title(); + public: + + // @@protoc_insertion_point(class_scope:proto.Section) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Row > rows_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr title_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class ListMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ListMessage) */ { + public: + inline ListMessage() : ListMessage(nullptr) {} + virtual ~ListMessage(); + explicit constexpr ListMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListMessage(const ListMessage& from); + ListMessage(ListMessage&& from) noexcept + : ListMessage() { + *this = ::std::move(from); + } + + inline ListMessage& operator=(const ListMessage& from) { + CopyFrom(from); + return *this; + } + inline ListMessage& operator=(ListMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListMessage& default_instance() { + return *internal_default_instance(); + } + static inline const ListMessage* internal_default_instance() { + return reinterpret_cast<const ListMessage*>( + &_ListMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 61; + + friend void swap(ListMessage& a, ListMessage& b) { + a.Swap(&b); + } + inline void Swap(ListMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListMessage* New() const final { + return CreateMaybeMessage<ListMessage>(nullptr); + } + + ListMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ListMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListMessage& from); + void MergeFrom(const ListMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.ListMessage"; + } + protected: + explicit ListMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + typedef ListMessage_ListMessageListType ListMessageListType; + static constexpr ListMessageListType UNKNOWN = + ListMessage_ListMessageListType_UNKNOWN; + static constexpr ListMessageListType SINGLE_SELECT = + ListMessage_ListMessageListType_SINGLE_SELECT; + static inline bool ListMessageListType_IsValid(int value) { + return ListMessage_ListMessageListType_IsValid(value); + } + static constexpr ListMessageListType ListMessageListType_MIN = + ListMessage_ListMessageListType_ListMessageListType_MIN; + static constexpr ListMessageListType ListMessageListType_MAX = + ListMessage_ListMessageListType_ListMessageListType_MAX; + static constexpr int ListMessageListType_ARRAYSIZE = + ListMessage_ListMessageListType_ListMessageListType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + ListMessageListType_descriptor() { + return ListMessage_ListMessageListType_descriptor(); + } + template<typename T> + static inline const std::string& ListMessageListType_Name(T enum_t_value) { + static_assert(::std::is_same<T, ListMessageListType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function ListMessageListType_Name."); + return ListMessage_ListMessageListType_Name(enum_t_value); + } + static inline bool ListMessageListType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + ListMessageListType* value) { + return ListMessage_ListMessageListType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kSectionsFieldNumber = 5, + kTitleFieldNumber = 1, + kDescriptionFieldNumber = 2, + kButtonTextFieldNumber = 3, + kListTypeFieldNumber = 4, + }; + // repeated .proto.Section sections = 5; + int sections_size() const; + private: + int _internal_sections_size() const; + public: + void clear_sections(); + ::proto::Section* mutable_sections(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Section >* + mutable_sections(); + private: + const ::proto::Section& _internal_sections(int index) const; + ::proto::Section* _internal_add_sections(); + public: + const ::proto::Section& sections(int index) const; + ::proto::Section* add_sections(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Section >& + sections() const; + + // optional string title = 1; + bool has_title() const; + private: + bool _internal_has_title() const; + public: + void clear_title(); + const std::string& title() const; + void set_title(const std::string& value); + void set_title(std::string&& value); + void set_title(const char* value); + void set_title(const char* value, size_t size); + std::string* mutable_title(); + std::string* release_title(); + void set_allocated_title(std::string* title); + private: + const std::string& _internal_title() const; + void _internal_set_title(const std::string& value); + std::string* _internal_mutable_title(); + public: + + // optional string description = 2; + bool has_description() const; + private: + bool _internal_has_description() const; + public: + void clear_description(); + const std::string& description() const; + void set_description(const std::string& value); + void set_description(std::string&& value); + void set_description(const char* value); + void set_description(const char* value, size_t size); + std::string* mutable_description(); + std::string* release_description(); + void set_allocated_description(std::string* description); + private: + const std::string& _internal_description() const; + void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); + public: + + // optional string buttonText = 3; + bool has_buttontext() const; + private: + bool _internal_has_buttontext() const; + public: + void clear_buttontext(); + const std::string& buttontext() const; + void set_buttontext(const std::string& value); + void set_buttontext(std::string&& value); + void set_buttontext(const char* value); + void set_buttontext(const char* value, size_t size); + std::string* mutable_buttontext(); + std::string* release_buttontext(); + void set_allocated_buttontext(std::string* buttontext); + private: + const std::string& _internal_buttontext() const; + void _internal_set_buttontext(const std::string& value); + std::string* _internal_mutable_buttontext(); + public: + + // optional .proto.ListMessage.ListMessageListType listType = 4; + bool has_listtype() const; + private: + bool _internal_has_listtype() const; + public: + void clear_listtype(); + ::proto::ListMessage_ListMessageListType listtype() const; + void set_listtype(::proto::ListMessage_ListMessageListType value); + private: + ::proto::ListMessage_ListMessageListType _internal_listtype() const; + void _internal_set_listtype(::proto::ListMessage_ListMessageListType value); + public: + + // @@protoc_insertion_point(class_scope:proto.ListMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Section > sections_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr title_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr buttontext_; + int listtype_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class SingleSelectReply PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.SingleSelectReply) */ { + public: + inline SingleSelectReply() : SingleSelectReply(nullptr) {} + virtual ~SingleSelectReply(); + explicit constexpr SingleSelectReply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SingleSelectReply(const SingleSelectReply& from); + SingleSelectReply(SingleSelectReply&& from) noexcept + : SingleSelectReply() { + *this = ::std::move(from); + } + + inline SingleSelectReply& operator=(const SingleSelectReply& from) { + CopyFrom(from); + return *this; + } + inline SingleSelectReply& operator=(SingleSelectReply&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const SingleSelectReply& default_instance() { + return *internal_default_instance(); + } + static inline const SingleSelectReply* internal_default_instance() { + return reinterpret_cast<const SingleSelectReply*>( + &_SingleSelectReply_default_instance_); + } + static constexpr int kIndexInFileMessages = + 62; + + friend void swap(SingleSelectReply& a, SingleSelectReply& b) { + a.Swap(&b); + } + inline void Swap(SingleSelectReply* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SingleSelectReply* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline SingleSelectReply* New() const final { + return CreateMaybeMessage<SingleSelectReply>(nullptr); + } + + SingleSelectReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<SingleSelectReply>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const SingleSelectReply& from); + void MergeFrom(const SingleSelectReply& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SingleSelectReply* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.SingleSelectReply"; + } + protected: + explicit SingleSelectReply(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kSelectedRowIdFieldNumber = 1, + }; + // optional string selectedRowId = 1; + bool has_selectedrowid() const; + private: + bool _internal_has_selectedrowid() const; + public: + void clear_selectedrowid(); + const std::string& selectedrowid() const; + void set_selectedrowid(const std::string& value); + void set_selectedrowid(std::string&& value); + void set_selectedrowid(const char* value); + void set_selectedrowid(const char* value, size_t size); + std::string* mutable_selectedrowid(); + std::string* release_selectedrowid(); + void set_allocated_selectedrowid(std::string* selectedrowid); + private: + const std::string& _internal_selectedrowid() const; + void _internal_set_selectedrowid(const std::string& value); + std::string* _internal_mutable_selectedrowid(); + public: + + // @@protoc_insertion_point(class_scope:proto.SingleSelectReply) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr selectedrowid_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class ListResponseMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ListResponseMessage) */ { + public: + inline ListResponseMessage() : ListResponseMessage(nullptr) {} + virtual ~ListResponseMessage(); + explicit constexpr ListResponseMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListResponseMessage(const ListResponseMessage& from); + ListResponseMessage(ListResponseMessage&& from) noexcept + : ListResponseMessage() { + *this = ::std::move(from); + } + + inline ListResponseMessage& operator=(const ListResponseMessage& from) { + CopyFrom(from); + return *this; + } + inline ListResponseMessage& operator=(ListResponseMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ListResponseMessage& default_instance() { + return *internal_default_instance(); + } + static inline const ListResponseMessage* internal_default_instance() { + return reinterpret_cast<const ListResponseMessage*>( + &_ListResponseMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 63; + + friend void swap(ListResponseMessage& a, ListResponseMessage& b) { + a.Swap(&b); + } + inline void Swap(ListResponseMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ListResponseMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ListResponseMessage* New() const final { + return CreateMaybeMessage<ListResponseMessage>(nullptr); + } + + ListResponseMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ListResponseMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ListResponseMessage& from); + void MergeFrom(const ListResponseMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ListResponseMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.ListResponseMessage"; + } + protected: + explicit ListResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + typedef ListResponseMessage_ListResponseMessageListType ListResponseMessageListType; + static constexpr ListResponseMessageListType UNKNOWN = + ListResponseMessage_ListResponseMessageListType_UNKNOWN; + static constexpr ListResponseMessageListType SINGLE_SELECT = + ListResponseMessage_ListResponseMessageListType_SINGLE_SELECT; + static inline bool ListResponseMessageListType_IsValid(int value) { + return ListResponseMessage_ListResponseMessageListType_IsValid(value); + } + static constexpr ListResponseMessageListType ListResponseMessageListType_MIN = + ListResponseMessage_ListResponseMessageListType_ListResponseMessageListType_MIN; + static constexpr ListResponseMessageListType ListResponseMessageListType_MAX = + ListResponseMessage_ListResponseMessageListType_ListResponseMessageListType_MAX; + static constexpr int ListResponseMessageListType_ARRAYSIZE = + ListResponseMessage_ListResponseMessageListType_ListResponseMessageListType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + ListResponseMessageListType_descriptor() { + return ListResponseMessage_ListResponseMessageListType_descriptor(); + } + template<typename T> + static inline const std::string& ListResponseMessageListType_Name(T enum_t_value) { + static_assert(::std::is_same<T, ListResponseMessageListType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function ListResponseMessageListType_Name."); + return ListResponseMessage_ListResponseMessageListType_Name(enum_t_value); + } + static inline bool ListResponseMessageListType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + ListResponseMessageListType* value) { + return ListResponseMessage_ListResponseMessageListType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kTitleFieldNumber = 1, + kDescriptionFieldNumber = 5, + kSingleSelectReplyFieldNumber = 3, + kContextInfoFieldNumber = 4, + kListTypeFieldNumber = 2, + }; + // optional string title = 1; + bool has_title() const; + private: + bool _internal_has_title() const; + public: + void clear_title(); + const std::string& title() const; + void set_title(const std::string& value); + void set_title(std::string&& value); + void set_title(const char* value); + void set_title(const char* value, size_t size); + std::string* mutable_title(); + std::string* release_title(); + void set_allocated_title(std::string* title); + private: + const std::string& _internal_title() const; + void _internal_set_title(const std::string& value); + std::string* _internal_mutable_title(); + public: + + // optional string description = 5; + bool has_description() const; + private: + bool _internal_has_description() const; + public: + void clear_description(); + const std::string& description() const; + void set_description(const std::string& value); + void set_description(std::string&& value); + void set_description(const char* value); + void set_description(const char* value, size_t size); + std::string* mutable_description(); + std::string* release_description(); + void set_allocated_description(std::string* description); + private: + const std::string& _internal_description() const; + void _internal_set_description(const std::string& value); + std::string* _internal_mutable_description(); + public: + + // optional .proto.SingleSelectReply singleSelectReply = 3; + bool has_singleselectreply() const; + private: + bool _internal_has_singleselectreply() const; + public: + void clear_singleselectreply(); + const ::proto::SingleSelectReply& singleselectreply() const; + ::proto::SingleSelectReply* release_singleselectreply(); + ::proto::SingleSelectReply* mutable_singleselectreply(); + void set_allocated_singleselectreply(::proto::SingleSelectReply* singleselectreply); + private: + const ::proto::SingleSelectReply& _internal_singleselectreply() const; + ::proto::SingleSelectReply* _internal_mutable_singleselectreply(); + public: + void unsafe_arena_set_allocated_singleselectreply( + ::proto::SingleSelectReply* singleselectreply); + ::proto::SingleSelectReply* unsafe_arena_release_singleselectreply(); + + // optional .proto.ContextInfo contextInfo = 4; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // optional .proto.ListResponseMessage.ListResponseMessageListType listType = 2; + bool has_listtype() const; + private: + bool _internal_has_listtype() const; + public: + void clear_listtype(); + ::proto::ListResponseMessage_ListResponseMessageListType listtype() const; + void set_listtype(::proto::ListResponseMessage_ListResponseMessageListType value); + private: + ::proto::ListResponseMessage_ListResponseMessageListType _internal_listtype() const; + void _internal_set_listtype(::proto::ListResponseMessage_ListResponseMessageListType value); + public: + + // @@protoc_insertion_point(class_scope:proto.ListResponseMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr title_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr description_; + ::proto::SingleSelectReply* singleselectreply_; + ::proto::ContextInfo* contextinfo_; + int listtype_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class GroupInviteMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.GroupInviteMessage) */ { + public: + inline GroupInviteMessage() : GroupInviteMessage(nullptr) {} + virtual ~GroupInviteMessage(); + explicit constexpr GroupInviteMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + GroupInviteMessage(const GroupInviteMessage& from); + GroupInviteMessage(GroupInviteMessage&& from) noexcept + : GroupInviteMessage() { + *this = ::std::move(from); + } + + inline GroupInviteMessage& operator=(const GroupInviteMessage& from) { + CopyFrom(from); + return *this; + } + inline GroupInviteMessage& operator=(GroupInviteMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const GroupInviteMessage& default_instance() { + return *internal_default_instance(); + } + static inline const GroupInviteMessage* internal_default_instance() { + return reinterpret_cast<const GroupInviteMessage*>( + &_GroupInviteMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 64; + + friend void swap(GroupInviteMessage& a, GroupInviteMessage& b) { + a.Swap(&b); + } + inline void Swap(GroupInviteMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GroupInviteMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline GroupInviteMessage* New() const final { + return CreateMaybeMessage<GroupInviteMessage>(nullptr); + } + + GroupInviteMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<GroupInviteMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const GroupInviteMessage& from); + void MergeFrom(const GroupInviteMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GroupInviteMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.GroupInviteMessage"; + } + protected: + explicit GroupInviteMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kGroupJidFieldNumber = 1, + kInviteCodeFieldNumber = 2, + kGroupNameFieldNumber = 4, + kJpegThumbnailFieldNumber = 5, + kCaptionFieldNumber = 6, + kContextInfoFieldNumber = 7, + kInviteExpirationFieldNumber = 3, + }; + // optional string groupJid = 1; + bool has_groupjid() const; + private: + bool _internal_has_groupjid() const; + public: + void clear_groupjid(); + const std::string& groupjid() const; + void set_groupjid(const std::string& value); + void set_groupjid(std::string&& value); + void set_groupjid(const char* value); + void set_groupjid(const char* value, size_t size); + std::string* mutable_groupjid(); + std::string* release_groupjid(); + void set_allocated_groupjid(std::string* groupjid); + private: + const std::string& _internal_groupjid() const; + void _internal_set_groupjid(const std::string& value); + std::string* _internal_mutable_groupjid(); + public: + + // optional string inviteCode = 2; + bool has_invitecode() const; + private: + bool _internal_has_invitecode() const; + public: + void clear_invitecode(); + const std::string& invitecode() const; + void set_invitecode(const std::string& value); + void set_invitecode(std::string&& value); + void set_invitecode(const char* value); + void set_invitecode(const char* value, size_t size); + std::string* mutable_invitecode(); + std::string* release_invitecode(); + void set_allocated_invitecode(std::string* invitecode); + private: + const std::string& _internal_invitecode() const; + void _internal_set_invitecode(const std::string& value); + std::string* _internal_mutable_invitecode(); + public: + + // optional string groupName = 4; + bool has_groupname() const; + private: + bool _internal_has_groupname() const; + public: + void clear_groupname(); + const std::string& groupname() const; + void set_groupname(const std::string& value); + void set_groupname(std::string&& value); + void set_groupname(const char* value); + void set_groupname(const char* value, size_t size); + std::string* mutable_groupname(); + std::string* release_groupname(); + void set_allocated_groupname(std::string* groupname); + private: + const std::string& _internal_groupname() const; + void _internal_set_groupname(const std::string& value); + std::string* _internal_mutable_groupname(); + public: + + // optional bytes jpegThumbnail = 5; + bool has_jpegthumbnail() const; + private: + bool _internal_has_jpegthumbnail() const; + public: + void clear_jpegthumbnail(); + const std::string& jpegthumbnail() const; + void set_jpegthumbnail(const std::string& value); + void set_jpegthumbnail(std::string&& value); + void set_jpegthumbnail(const char* value); + void set_jpegthumbnail(const void* value, size_t size); + std::string* mutable_jpegthumbnail(); + std::string* release_jpegthumbnail(); + void set_allocated_jpegthumbnail(std::string* jpegthumbnail); + private: + const std::string& _internal_jpegthumbnail() const; + void _internal_set_jpegthumbnail(const std::string& value); + std::string* _internal_mutable_jpegthumbnail(); + public: + + // optional string caption = 6; + bool has_caption() const; + private: + bool _internal_has_caption() const; + public: + void clear_caption(); + const std::string& caption() const; + void set_caption(const std::string& value); + void set_caption(std::string&& value); + void set_caption(const char* value); + void set_caption(const char* value, size_t size); + std::string* mutable_caption(); + std::string* release_caption(); + void set_allocated_caption(std::string* caption); + private: + const std::string& _internal_caption() const; + void _internal_set_caption(const std::string& value); + std::string* _internal_mutable_caption(); + public: + + // optional .proto.ContextInfo contextInfo = 7; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // optional int64 inviteExpiration = 3; + bool has_inviteexpiration() const; + private: + bool _internal_has_inviteexpiration() const; + public: + void clear_inviteexpiration(); + ::PROTOBUF_NAMESPACE_ID::int64 inviteexpiration() const; + void set_inviteexpiration(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_inviteexpiration() const; + void _internal_set_inviteexpiration(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // @@protoc_insertion_point(class_scope:proto.GroupInviteMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr groupjid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr invitecode_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr groupname_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr jpegthumbnail_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr caption_; + ::proto::ContextInfo* contextinfo_; + ::PROTOBUF_NAMESPACE_ID::int64 inviteexpiration_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class EphemeralSetting PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.EphemeralSetting) */ { + public: + inline EphemeralSetting() : EphemeralSetting(nullptr) {} + virtual ~EphemeralSetting(); + explicit constexpr EphemeralSetting(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + EphemeralSetting(const EphemeralSetting& from); + EphemeralSetting(EphemeralSetting&& from) noexcept + : EphemeralSetting() { + *this = ::std::move(from); + } + + inline EphemeralSetting& operator=(const EphemeralSetting& from) { + CopyFrom(from); + return *this; + } + inline EphemeralSetting& operator=(EphemeralSetting&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const EphemeralSetting& default_instance() { + return *internal_default_instance(); + } + static inline const EphemeralSetting* internal_default_instance() { + return reinterpret_cast<const EphemeralSetting*>( + &_EphemeralSetting_default_instance_); + } + static constexpr int kIndexInFileMessages = + 65; + + friend void swap(EphemeralSetting& a, EphemeralSetting& b) { + a.Swap(&b); + } + inline void Swap(EphemeralSetting* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(EphemeralSetting* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline EphemeralSetting* New() const final { + return CreateMaybeMessage<EphemeralSetting>(nullptr); + } + + EphemeralSetting* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<EphemeralSetting>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const EphemeralSetting& from); + void MergeFrom(const EphemeralSetting& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(EphemeralSetting* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.EphemeralSetting"; + } + protected: + explicit EphemeralSetting(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kChatJidFieldNumber = 1, + kEphemeralSettingTimestampFieldNumber = 3, + kEphemeralExpirationFieldNumber = 2, + }; + // optional string chatJid = 1; + bool has_chatjid() const; + private: + bool _internal_has_chatjid() const; + public: + void clear_chatjid(); + const std::string& chatjid() const; + void set_chatjid(const std::string& value); + void set_chatjid(std::string&& value); + void set_chatjid(const char* value); + void set_chatjid(const char* value, size_t size); + std::string* mutable_chatjid(); + std::string* release_chatjid(); + void set_allocated_chatjid(std::string* chatjid); + private: + const std::string& _internal_chatjid() const; + void _internal_set_chatjid(const std::string& value); + std::string* _internal_mutable_chatjid(); + public: + + // optional int64 ephemeralSettingTimestamp = 3; + bool has_ephemeralsettingtimestamp() const; + private: + bool _internal_has_ephemeralsettingtimestamp() const; + public: + void clear_ephemeralsettingtimestamp(); + ::PROTOBUF_NAMESPACE_ID::int64 ephemeralsettingtimestamp() const; + void set_ephemeralsettingtimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + private: + ::PROTOBUF_NAMESPACE_ID::int64 _internal_ephemeralsettingtimestamp() const; + void _internal_set_ephemeralsettingtimestamp(::PROTOBUF_NAMESPACE_ID::int64 value); + public: + + // optional uint32 ephemeralExpiration = 2; + bool has_ephemeralexpiration() const; + private: + bool _internal_has_ephemeralexpiration() const; + public: + void clear_ephemeralexpiration(); + ::PROTOBUF_NAMESPACE_ID::uint32 ephemeralexpiration() const; + void set_ephemeralexpiration(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_ephemeralexpiration() const; + void _internal_set_ephemeralexpiration(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // @@protoc_insertion_point(class_scope:proto.EphemeralSetting) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr chatjid_; + ::PROTOBUF_NAMESPACE_ID::int64 ephemeralsettingtimestamp_; + ::PROTOBUF_NAMESPACE_ID::uint32 ephemeralexpiration_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class DeviceSentMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.DeviceSentMessage) */ { + public: + inline DeviceSentMessage() : DeviceSentMessage(nullptr) {} + virtual ~DeviceSentMessage(); + explicit constexpr DeviceSentMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DeviceSentMessage(const DeviceSentMessage& from); + DeviceSentMessage(DeviceSentMessage&& from) noexcept + : DeviceSentMessage() { + *this = ::std::move(from); + } + + inline DeviceSentMessage& operator=(const DeviceSentMessage& from) { + CopyFrom(from); + return *this; + } + inline DeviceSentMessage& operator=(DeviceSentMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const DeviceSentMessage& default_instance() { + return *internal_default_instance(); + } + static inline const DeviceSentMessage* internal_default_instance() { + return reinterpret_cast<const DeviceSentMessage*>( + &_DeviceSentMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 66; + + friend void swap(DeviceSentMessage& a, DeviceSentMessage& b) { + a.Swap(&b); + } + inline void Swap(DeviceSentMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(DeviceSentMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DeviceSentMessage* New() const final { + return CreateMaybeMessage<DeviceSentMessage>(nullptr); + } + + DeviceSentMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<DeviceSentMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DeviceSentMessage& from); + void MergeFrom(const DeviceSentMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DeviceSentMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.DeviceSentMessage"; + } + protected: + explicit DeviceSentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kBroadcastEphemeralSettingsFieldNumber = 4, + kDestinationJidFieldNumber = 1, + kPhashFieldNumber = 3, + kMessageFieldNumber = 2, + }; + // repeated .proto.EphemeralSetting broadcastEphemeralSettings = 4; + int broadcastephemeralsettings_size() const; + private: + int _internal_broadcastephemeralsettings_size() const; + public: + void clear_broadcastephemeralsettings(); + ::proto::EphemeralSetting* mutable_broadcastephemeralsettings(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::EphemeralSetting >* + mutable_broadcastephemeralsettings(); + private: + const ::proto::EphemeralSetting& _internal_broadcastephemeralsettings(int index) const; + ::proto::EphemeralSetting* _internal_add_broadcastephemeralsettings(); + public: + const ::proto::EphemeralSetting& broadcastephemeralsettings(int index) const; + ::proto::EphemeralSetting* add_broadcastephemeralsettings(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::EphemeralSetting >& + broadcastephemeralsettings() const; + + // optional string destinationJid = 1; + bool has_destinationjid() const; + private: + bool _internal_has_destinationjid() const; + public: + void clear_destinationjid(); + const std::string& destinationjid() const; + void set_destinationjid(const std::string& value); + void set_destinationjid(std::string&& value); + void set_destinationjid(const char* value); + void set_destinationjid(const char* value, size_t size); + std::string* mutable_destinationjid(); + std::string* release_destinationjid(); + void set_allocated_destinationjid(std::string* destinationjid); + private: + const std::string& _internal_destinationjid() const; + void _internal_set_destinationjid(const std::string& value); + std::string* _internal_mutable_destinationjid(); + public: + + // optional string phash = 3; + bool has_phash() const; + private: + bool _internal_has_phash() const; + public: + void clear_phash(); + const std::string& phash() const; + void set_phash(const std::string& value); + void set_phash(std::string&& value); + void set_phash(const char* value); + void set_phash(const char* value, size_t size); + std::string* mutable_phash(); + std::string* release_phash(); + void set_allocated_phash(std::string* phash); + private: + const std::string& _internal_phash() const; + void _internal_set_phash(const std::string& value); + std::string* _internal_mutable_phash(); + public: + + // optional .proto.Message message = 2; + bool has_message() const; + private: + bool _internal_has_message() const; + public: + void clear_message(); + const ::proto::Message& message() const; + ::proto::Message* release_message(); + ::proto::Message* mutable_message(); + void set_allocated_message(::proto::Message* message); + private: + const ::proto::Message& _internal_message() const; + ::proto::Message* _internal_mutable_message(); + public: + void unsafe_arena_set_allocated_message( + ::proto::Message* message); + ::proto::Message* unsafe_arena_release_message(); + + // @@protoc_insertion_point(class_scope:proto.DeviceSentMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::EphemeralSetting > broadcastephemeralsettings_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr destinationjid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr phash_; + ::proto::Message* message_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class FutureProofMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.FutureProofMessage) */ { + public: + inline FutureProofMessage() : FutureProofMessage(nullptr) {} + virtual ~FutureProofMessage(); + explicit constexpr FutureProofMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + FutureProofMessage(const FutureProofMessage& from); + FutureProofMessage(FutureProofMessage&& from) noexcept + : FutureProofMessage() { + *this = ::std::move(from); + } + + inline FutureProofMessage& operator=(const FutureProofMessage& from) { + CopyFrom(from); + return *this; + } + inline FutureProofMessage& operator=(FutureProofMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const FutureProofMessage& default_instance() { + return *internal_default_instance(); + } + static inline const FutureProofMessage* internal_default_instance() { + return reinterpret_cast<const FutureProofMessage*>( + &_FutureProofMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 67; + + friend void swap(FutureProofMessage& a, FutureProofMessage& b) { + a.Swap(&b); + } + inline void Swap(FutureProofMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(FutureProofMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline FutureProofMessage* New() const final { + return CreateMaybeMessage<FutureProofMessage>(nullptr); + } + + FutureProofMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<FutureProofMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const FutureProofMessage& from); + void MergeFrom(const FutureProofMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FutureProofMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.FutureProofMessage"; + } + protected: + explicit FutureProofMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kMessageFieldNumber = 1, + }; + // optional .proto.Message message = 1; + bool has_message() const; + private: + bool _internal_has_message() const; + public: + void clear_message(); + const ::proto::Message& message() const; + ::proto::Message* release_message(); + ::proto::Message* mutable_message(); + void set_allocated_message(::proto::Message* message); + private: + const ::proto::Message& _internal_message() const; + ::proto::Message* _internal_mutable_message(); + public: + void unsafe_arena_set_allocated_message( + ::proto::Message* message); + ::proto::Message* unsafe_arena_release_message(); + + // @@protoc_insertion_point(class_scope:proto.FutureProofMessage) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::proto::Message* message_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class ButtonText PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ButtonText) */ { + public: + inline ButtonText() : ButtonText(nullptr) {} + virtual ~ButtonText(); + explicit constexpr ButtonText(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ButtonText(const ButtonText& from); + ButtonText(ButtonText&& from) noexcept + : ButtonText() { + *this = ::std::move(from); + } + + inline ButtonText& operator=(const ButtonText& from) { + CopyFrom(from); + return *this; + } + inline ButtonText& operator=(ButtonText&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ButtonText& default_instance() { + return *internal_default_instance(); + } + static inline const ButtonText* internal_default_instance() { + return reinterpret_cast<const ButtonText*>( + &_ButtonText_default_instance_); + } + static constexpr int kIndexInFileMessages = + 68; + + friend void swap(ButtonText& a, ButtonText& b) { + a.Swap(&b); + } + inline void Swap(ButtonText* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ButtonText* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ButtonText* New() const final { + return CreateMaybeMessage<ButtonText>(nullptr); + } + + ButtonText* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ButtonText>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ButtonText& from); + void MergeFrom(const ButtonText& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ButtonText* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.ButtonText"; + } + protected: + explicit ButtonText(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDisplayTextFieldNumber = 1, + }; + // optional string displayText = 1; + bool has_displaytext() const; + private: + bool _internal_has_displaytext() const; + public: + void clear_displaytext(); + const std::string& displaytext() const; + void set_displaytext(const std::string& value); + void set_displaytext(std::string&& value); + void set_displaytext(const char* value); + void set_displaytext(const char* value, size_t size); + std::string* mutable_displaytext(); + std::string* release_displaytext(); + void set_allocated_displaytext(std::string* displaytext); + private: + const std::string& _internal_displaytext() const; + void _internal_set_displaytext(const std::string& value); + std::string* _internal_mutable_displaytext(); + public: + + // @@protoc_insertion_point(class_scope:proto.ButtonText) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr displaytext_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class Button PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Button) */ { + public: + inline Button() : Button(nullptr) {} + virtual ~Button(); + explicit constexpr Button(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Button(const Button& from); + Button(Button&& from) noexcept + : Button() { + *this = ::std::move(from); + } + + inline Button& operator=(const Button& from) { + CopyFrom(from); + return *this; + } + inline Button& operator=(Button&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Button& default_instance() { + return *internal_default_instance(); + } + static inline const Button* internal_default_instance() { + return reinterpret_cast<const Button*>( + &_Button_default_instance_); + } + static constexpr int kIndexInFileMessages = + 69; + + friend void swap(Button& a, Button& b) { + a.Swap(&b); + } + inline void Swap(Button* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Button* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Button* New() const final { + return CreateMaybeMessage<Button>(nullptr); + } + + Button* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<Button>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Button& from); + void MergeFrom(const Button& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Button* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.Button"; + } + protected: + explicit Button(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + typedef Button_ButtonType ButtonType; + static constexpr ButtonType UNKNOWN = + Button_ButtonType_UNKNOWN; + static constexpr ButtonType RESPONSE = + Button_ButtonType_RESPONSE; + static inline bool ButtonType_IsValid(int value) { + return Button_ButtonType_IsValid(value); + } + static constexpr ButtonType ButtonType_MIN = + Button_ButtonType_ButtonType_MIN; + static constexpr ButtonType ButtonType_MAX = + Button_ButtonType_ButtonType_MAX; + static constexpr int ButtonType_ARRAYSIZE = + Button_ButtonType_ButtonType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + ButtonType_descriptor() { + return Button_ButtonType_descriptor(); + } + template<typename T> + static inline const std::string& ButtonType_Name(T enum_t_value) { + static_assert(::std::is_same<T, ButtonType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function ButtonType_Name."); + return Button_ButtonType_Name(enum_t_value); + } + static inline bool ButtonType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + ButtonType* value) { + return Button_ButtonType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kButtonIdFieldNumber = 1, + kButtonTextFieldNumber = 2, + kTypeFieldNumber = 3, + }; + // optional string buttonId = 1; + bool has_buttonid() const; + private: + bool _internal_has_buttonid() const; + public: + void clear_buttonid(); + const std::string& buttonid() const; + void set_buttonid(const std::string& value); + void set_buttonid(std::string&& value); + void set_buttonid(const char* value); + void set_buttonid(const char* value, size_t size); + std::string* mutable_buttonid(); + std::string* release_buttonid(); + void set_allocated_buttonid(std::string* buttonid); + private: + const std::string& _internal_buttonid() const; + void _internal_set_buttonid(const std::string& value); + std::string* _internal_mutable_buttonid(); + public: + + // optional .proto.ButtonText buttonText = 2; + bool has_buttontext() const; + private: + bool _internal_has_buttontext() const; + public: + void clear_buttontext(); + const ::proto::ButtonText& buttontext() const; + ::proto::ButtonText* release_buttontext(); + ::proto::ButtonText* mutable_buttontext(); + void set_allocated_buttontext(::proto::ButtonText* buttontext); + private: + const ::proto::ButtonText& _internal_buttontext() const; + ::proto::ButtonText* _internal_mutable_buttontext(); + public: + void unsafe_arena_set_allocated_buttontext( + ::proto::ButtonText* buttontext); + ::proto::ButtonText* unsafe_arena_release_buttontext(); + + // optional .proto.Button.ButtonType type = 3; + bool has_type() const; + private: + bool _internal_has_type() const; + public: + void clear_type(); + ::proto::Button_ButtonType type() const; + void set_type(::proto::Button_ButtonType value); + private: + ::proto::Button_ButtonType _internal_type() const; + void _internal_set_type(::proto::Button_ButtonType value); + public: + + // @@protoc_insertion_point(class_scope:proto.Button) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr buttonid_; + ::proto::ButtonText* buttontext_; + int type_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class ButtonsMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ButtonsMessage) */ { + public: + inline ButtonsMessage() : ButtonsMessage(nullptr) {} + virtual ~ButtonsMessage(); + explicit constexpr ButtonsMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ButtonsMessage(const ButtonsMessage& from); + ButtonsMessage(ButtonsMessage&& from) noexcept + : ButtonsMessage() { + *this = ::std::move(from); + } + + inline ButtonsMessage& operator=(const ButtonsMessage& from) { + CopyFrom(from); + return *this; + } + inline ButtonsMessage& operator=(ButtonsMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ButtonsMessage& default_instance() { + return *internal_default_instance(); + } + enum HeaderCase { + kText = 1, + kDocumentMessage = 2, + kImageMessage = 3, + kVideoMessage = 4, + kLocationMessage = 5, + HEADER_NOT_SET = 0, + }; + + static inline const ButtonsMessage* internal_default_instance() { + return reinterpret_cast<const ButtonsMessage*>( + &_ButtonsMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 70; + + friend void swap(ButtonsMessage& a, ButtonsMessage& b) { + a.Swap(&b); + } + inline void Swap(ButtonsMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ButtonsMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ButtonsMessage* New() const final { + return CreateMaybeMessage<ButtonsMessage>(nullptr); + } + + ButtonsMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ButtonsMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ButtonsMessage& from); + void MergeFrom(const ButtonsMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ButtonsMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.ButtonsMessage"; + } + protected: + explicit ButtonsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + typedef ButtonsMessage_ButtonsMessageHeaderType ButtonsMessageHeaderType; + static constexpr ButtonsMessageHeaderType UNKNOWN = + ButtonsMessage_ButtonsMessageHeaderType_UNKNOWN; + static constexpr ButtonsMessageHeaderType EMPTY = + ButtonsMessage_ButtonsMessageHeaderType_EMPTY; + static constexpr ButtonsMessageHeaderType TEXT = + ButtonsMessage_ButtonsMessageHeaderType_TEXT; + static constexpr ButtonsMessageHeaderType DOCUMENT = + ButtonsMessage_ButtonsMessageHeaderType_DOCUMENT; + static constexpr ButtonsMessageHeaderType IMAGE = + ButtonsMessage_ButtonsMessageHeaderType_IMAGE; + static constexpr ButtonsMessageHeaderType VIDEO = + ButtonsMessage_ButtonsMessageHeaderType_VIDEO; + static constexpr ButtonsMessageHeaderType LOCATION = + ButtonsMessage_ButtonsMessageHeaderType_LOCATION; + static inline bool ButtonsMessageHeaderType_IsValid(int value) { + return ButtonsMessage_ButtonsMessageHeaderType_IsValid(value); + } + static constexpr ButtonsMessageHeaderType ButtonsMessageHeaderType_MIN = + ButtonsMessage_ButtonsMessageHeaderType_ButtonsMessageHeaderType_MIN; + static constexpr ButtonsMessageHeaderType ButtonsMessageHeaderType_MAX = + ButtonsMessage_ButtonsMessageHeaderType_ButtonsMessageHeaderType_MAX; + static constexpr int ButtonsMessageHeaderType_ARRAYSIZE = + ButtonsMessage_ButtonsMessageHeaderType_ButtonsMessageHeaderType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + ButtonsMessageHeaderType_descriptor() { + return ButtonsMessage_ButtonsMessageHeaderType_descriptor(); + } + template<typename T> + static inline const std::string& ButtonsMessageHeaderType_Name(T enum_t_value) { + static_assert(::std::is_same<T, ButtonsMessageHeaderType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function ButtonsMessageHeaderType_Name."); + return ButtonsMessage_ButtonsMessageHeaderType_Name(enum_t_value); + } + static inline bool ButtonsMessageHeaderType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + ButtonsMessageHeaderType* value) { + return ButtonsMessage_ButtonsMessageHeaderType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kButtonsFieldNumber = 9, + kContentTextFieldNumber = 6, + kFooterTextFieldNumber = 7, + kContextInfoFieldNumber = 8, + kHeaderTypeFieldNumber = 10, + kTextFieldNumber = 1, + kDocumentMessageFieldNumber = 2, + kImageMessageFieldNumber = 3, + kVideoMessageFieldNumber = 4, + kLocationMessageFieldNumber = 5, + }; + // repeated .proto.Button buttons = 9; + int buttons_size() const; + private: + int _internal_buttons_size() const; + public: + void clear_buttons(); + ::proto::Button* mutable_buttons(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Button >* + mutable_buttons(); + private: + const ::proto::Button& _internal_buttons(int index) const; + ::proto::Button* _internal_add_buttons(); + public: + const ::proto::Button& buttons(int index) const; + ::proto::Button* add_buttons(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Button >& + buttons() const; + + // optional string contentText = 6; + bool has_contenttext() const; + private: + bool _internal_has_contenttext() const; + public: + void clear_contenttext(); + const std::string& contenttext() const; + void set_contenttext(const std::string& value); + void set_contenttext(std::string&& value); + void set_contenttext(const char* value); + void set_contenttext(const char* value, size_t size); + std::string* mutable_contenttext(); + std::string* release_contenttext(); + void set_allocated_contenttext(std::string* contenttext); + private: + const std::string& _internal_contenttext() const; + void _internal_set_contenttext(const std::string& value); + std::string* _internal_mutable_contenttext(); + public: + + // optional string footerText = 7; + bool has_footertext() const; + private: + bool _internal_has_footertext() const; + public: + void clear_footertext(); + const std::string& footertext() const; + void set_footertext(const std::string& value); + void set_footertext(std::string&& value); + void set_footertext(const char* value); + void set_footertext(const char* value, size_t size); + std::string* mutable_footertext(); + std::string* release_footertext(); + void set_allocated_footertext(std::string* footertext); + private: + const std::string& _internal_footertext() const; + void _internal_set_footertext(const std::string& value); + std::string* _internal_mutable_footertext(); + public: + + // optional .proto.ContextInfo contextInfo = 8; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // optional .proto.ButtonsMessage.ButtonsMessageHeaderType headerType = 10; + bool has_headertype() const; + private: + bool _internal_has_headertype() const; + public: + void clear_headertype(); + ::proto::ButtonsMessage_ButtonsMessageHeaderType headertype() const; + void set_headertype(::proto::ButtonsMessage_ButtonsMessageHeaderType value); + private: + ::proto::ButtonsMessage_ButtonsMessageHeaderType _internal_headertype() const; + void _internal_set_headertype(::proto::ButtonsMessage_ButtonsMessageHeaderType value); + public: + + // string text = 1; + bool has_text() const; + private: + bool _internal_has_text() const; + public: + void clear_text(); + const std::string& text() const; + void set_text(const std::string& value); + void set_text(std::string&& value); + void set_text(const char* value); + void set_text(const char* value, size_t size); + std::string* mutable_text(); + std::string* release_text(); + void set_allocated_text(std::string* text); + private: + const std::string& _internal_text() const; + void _internal_set_text(const std::string& value); + std::string* _internal_mutable_text(); + public: + + // .proto.DocumentMessage documentMessage = 2; + bool has_documentmessage() const; + private: + bool _internal_has_documentmessage() const; + public: + void clear_documentmessage(); + const ::proto::DocumentMessage& documentmessage() const; + ::proto::DocumentMessage* release_documentmessage(); + ::proto::DocumentMessage* mutable_documentmessage(); + void set_allocated_documentmessage(::proto::DocumentMessage* documentmessage); + private: + const ::proto::DocumentMessage& _internal_documentmessage() const; + ::proto::DocumentMessage* _internal_mutable_documentmessage(); + public: + void unsafe_arena_set_allocated_documentmessage( + ::proto::DocumentMessage* documentmessage); + ::proto::DocumentMessage* unsafe_arena_release_documentmessage(); + + // .proto.ImageMessage imageMessage = 3; + bool has_imagemessage() const; + private: + bool _internal_has_imagemessage() const; + public: + void clear_imagemessage(); + const ::proto::ImageMessage& imagemessage() const; + ::proto::ImageMessage* release_imagemessage(); + ::proto::ImageMessage* mutable_imagemessage(); + void set_allocated_imagemessage(::proto::ImageMessage* imagemessage); + private: + const ::proto::ImageMessage& _internal_imagemessage() const; + ::proto::ImageMessage* _internal_mutable_imagemessage(); + public: + void unsafe_arena_set_allocated_imagemessage( + ::proto::ImageMessage* imagemessage); + ::proto::ImageMessage* unsafe_arena_release_imagemessage(); + + // .proto.VideoMessage videoMessage = 4; + bool has_videomessage() const; + private: + bool _internal_has_videomessage() const; + public: + void clear_videomessage(); + const ::proto::VideoMessage& videomessage() const; + ::proto::VideoMessage* release_videomessage(); + ::proto::VideoMessage* mutable_videomessage(); + void set_allocated_videomessage(::proto::VideoMessage* videomessage); + private: + const ::proto::VideoMessage& _internal_videomessage() const; + ::proto::VideoMessage* _internal_mutable_videomessage(); + public: + void unsafe_arena_set_allocated_videomessage( + ::proto::VideoMessage* videomessage); + ::proto::VideoMessage* unsafe_arena_release_videomessage(); + + // .proto.LocationMessage locationMessage = 5; + bool has_locationmessage() const; + private: + bool _internal_has_locationmessage() const; + public: + void clear_locationmessage(); + const ::proto::LocationMessage& locationmessage() const; + ::proto::LocationMessage* release_locationmessage(); + ::proto::LocationMessage* mutable_locationmessage(); + void set_allocated_locationmessage(::proto::LocationMessage* locationmessage); + private: + const ::proto::LocationMessage& _internal_locationmessage() const; + ::proto::LocationMessage* _internal_mutable_locationmessage(); + public: + void unsafe_arena_set_allocated_locationmessage( + ::proto::LocationMessage* locationmessage); + ::proto::LocationMessage* unsafe_arena_release_locationmessage(); + + void clear_header(); + HeaderCase header_case() const; + // @@protoc_insertion_point(class_scope:proto.ButtonsMessage) + private: + class _Internal; + void set_has_text(); + void set_has_documentmessage(); + void set_has_imagemessage(); + void set_has_videomessage(); + void set_has_locationmessage(); + + inline bool has_header() const; + inline void clear_has_header(); + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Button > buttons_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr contenttext_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr footertext_; + ::proto::ContextInfo* contextinfo_; + int headertype_; + union HeaderUnion { + constexpr HeaderUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr text_; + ::proto::DocumentMessage* documentmessage_; + ::proto::ImageMessage* imagemessage_; + ::proto::VideoMessage* videomessage_; + ::proto::LocationMessage* locationmessage_; + } header_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class ButtonsResponseMessage PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ButtonsResponseMessage) */ { + public: + inline ButtonsResponseMessage() : ButtonsResponseMessage(nullptr) {} + virtual ~ButtonsResponseMessage(); + explicit constexpr ButtonsResponseMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ButtonsResponseMessage(const ButtonsResponseMessage& from); + ButtonsResponseMessage(ButtonsResponseMessage&& from) noexcept + : ButtonsResponseMessage() { + *this = ::std::move(from); + } + + inline ButtonsResponseMessage& operator=(const ButtonsResponseMessage& from) { + CopyFrom(from); + return *this; + } + inline ButtonsResponseMessage& operator=(ButtonsResponseMessage&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const ButtonsResponseMessage& default_instance() { + return *internal_default_instance(); + } + enum ResponseCase { + kSelectedDisplayText = 2, + RESPONSE_NOT_SET = 0, + }; + + static inline const ButtonsResponseMessage* internal_default_instance() { + return reinterpret_cast<const ButtonsResponseMessage*>( + &_ButtonsResponseMessage_default_instance_); + } + static constexpr int kIndexInFileMessages = + 71; + + friend void swap(ButtonsResponseMessage& a, ButtonsResponseMessage& b) { + a.Swap(&b); + } + inline void Swap(ButtonsResponseMessage* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(ButtonsResponseMessage* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline ButtonsResponseMessage* New() const final { + return CreateMaybeMessage<ButtonsResponseMessage>(nullptr); + } + + ButtonsResponseMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<ButtonsResponseMessage>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ButtonsResponseMessage& from); + void MergeFrom(const ButtonsResponseMessage& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(ButtonsResponseMessage* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.ButtonsResponseMessage"; + } + protected: + explicit ButtonsResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + typedef ButtonsResponseMessage_ButtonsResponseMessageType ButtonsResponseMessageType; + static constexpr ButtonsResponseMessageType UNKNOWN = + ButtonsResponseMessage_ButtonsResponseMessageType_UNKNOWN; + static constexpr ButtonsResponseMessageType DISPLAY_TEXT = + ButtonsResponseMessage_ButtonsResponseMessageType_DISPLAY_TEXT; + static inline bool ButtonsResponseMessageType_IsValid(int value) { + return ButtonsResponseMessage_ButtonsResponseMessageType_IsValid(value); + } + static constexpr ButtonsResponseMessageType ButtonsResponseMessageType_MIN = + ButtonsResponseMessage_ButtonsResponseMessageType_ButtonsResponseMessageType_MIN; + static constexpr ButtonsResponseMessageType ButtonsResponseMessageType_MAX = + ButtonsResponseMessage_ButtonsResponseMessageType_ButtonsResponseMessageType_MAX; + static constexpr int ButtonsResponseMessageType_ARRAYSIZE = + ButtonsResponseMessage_ButtonsResponseMessageType_ButtonsResponseMessageType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + ButtonsResponseMessageType_descriptor() { + return ButtonsResponseMessage_ButtonsResponseMessageType_descriptor(); + } + template<typename T> + static inline const std::string& ButtonsResponseMessageType_Name(T enum_t_value) { + static_assert(::std::is_same<T, ButtonsResponseMessageType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function ButtonsResponseMessageType_Name."); + return ButtonsResponseMessage_ButtonsResponseMessageType_Name(enum_t_value); + } + static inline bool ButtonsResponseMessageType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + ButtonsResponseMessageType* value) { + return ButtonsResponseMessage_ButtonsResponseMessageType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kSelectedButtonIdFieldNumber = 1, + kContextInfoFieldNumber = 3, + kTypeFieldNumber = 4, + kSelectedDisplayTextFieldNumber = 2, + }; + // optional string selectedButtonId = 1; + bool has_selectedbuttonid() const; + private: + bool _internal_has_selectedbuttonid() const; + public: + void clear_selectedbuttonid(); + const std::string& selectedbuttonid() const; + void set_selectedbuttonid(const std::string& value); + void set_selectedbuttonid(std::string&& value); + void set_selectedbuttonid(const char* value); + void set_selectedbuttonid(const char* value, size_t size); + std::string* mutable_selectedbuttonid(); + std::string* release_selectedbuttonid(); + void set_allocated_selectedbuttonid(std::string* selectedbuttonid); + private: + const std::string& _internal_selectedbuttonid() const; + void _internal_set_selectedbuttonid(const std::string& value); + std::string* _internal_mutable_selectedbuttonid(); + public: + + // optional .proto.ContextInfo contextInfo = 3; + bool has_contextinfo() const; + private: + bool _internal_has_contextinfo() const; + public: + void clear_contextinfo(); + const ::proto::ContextInfo& contextinfo() const; + ::proto::ContextInfo* release_contextinfo(); + ::proto::ContextInfo* mutable_contextinfo(); + void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); + private: + const ::proto::ContextInfo& _internal_contextinfo() const; + ::proto::ContextInfo* _internal_mutable_contextinfo(); + public: + void unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo); + ::proto::ContextInfo* unsafe_arena_release_contextinfo(); + + // optional .proto.ButtonsResponseMessage.ButtonsResponseMessageType type = 4; + bool has_type() const; + private: + bool _internal_has_type() const; + public: + void clear_type(); + ::proto::ButtonsResponseMessage_ButtonsResponseMessageType type() const; + void set_type(::proto::ButtonsResponseMessage_ButtonsResponseMessageType value); + private: + ::proto::ButtonsResponseMessage_ButtonsResponseMessageType _internal_type() const; + void _internal_set_type(::proto::ButtonsResponseMessage_ButtonsResponseMessageType value); + public: + + // string selectedDisplayText = 2; + bool has_selecteddisplaytext() const; + private: + bool _internal_has_selecteddisplaytext() const; + public: + void clear_selecteddisplaytext(); + const std::string& selecteddisplaytext() const; + void set_selecteddisplaytext(const std::string& value); + void set_selecteddisplaytext(std::string&& value); + void set_selecteddisplaytext(const char* value); + void set_selecteddisplaytext(const char* value, size_t size); + std::string* mutable_selecteddisplaytext(); + std::string* release_selecteddisplaytext(); + void set_allocated_selecteddisplaytext(std::string* selecteddisplaytext); + private: + const std::string& _internal_selecteddisplaytext() const; + void _internal_set_selecteddisplaytext(const std::string& value); + std::string* _internal_mutable_selecteddisplaytext(); + public: + + void clear_response(); + ResponseCase response_case() const; + // @@protoc_insertion_point(class_scope:proto.ButtonsResponseMessage) + private: + class _Internal; + void set_has_selecteddisplaytext(); + + inline bool has_response() const; + inline void clear_has_response(); + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr selectedbuttonid_; + ::proto::ContextInfo* contextinfo_; + int type_; + union ResponseUnion { + constexpr ResponseUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr selecteddisplaytext_; + } response_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class Message PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Message) */ { + public: + inline Message() : Message(nullptr) {} + virtual ~Message(); + explicit constexpr Message(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Message(const Message& from); + Message(Message&& from) noexcept + : Message() { + *this = ::std::move(from); + } + + inline Message& operator=(const Message& from) { + CopyFrom(from); + return *this; + } + inline Message& operator=(Message&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const Message& default_instance() { + return *internal_default_instance(); + } + static inline const Message* internal_default_instance() { + return reinterpret_cast<const Message*>( + &_Message_default_instance_); + } + static constexpr int kIndexInFileMessages = + 72; + + friend void swap(Message& a, Message& b) { + a.Swap(&b); + } + inline void Swap(Message* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Message* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline Message* New() const final { + return CreateMaybeMessage<Message>(nullptr); + } + + Message* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<Message>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const Message& from); + void MergeFrom(const Message& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Message* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.Message"; + } + protected: + explicit Message(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kConversationFieldNumber = 1, + kSenderKeyDistributionMessageFieldNumber = 2, + kImageMessageFieldNumber = 3, + kContactMessageFieldNumber = 4, + kLocationMessageFieldNumber = 5, + kExtendedTextMessageFieldNumber = 6, + kDocumentMessageFieldNumber = 7, + kAudioMessageFieldNumber = 8, + kVideoMessageFieldNumber = 9, + kCallFieldNumber = 10, + kChatFieldNumber = 11, + kProtocolMessageFieldNumber = 12, + kContactsArrayMessageFieldNumber = 13, + kHighlyStructuredMessageFieldNumber = 14, + kFastRatchetKeySenderKeyDistributionMessageFieldNumber = 15, + kSendPaymentMessageFieldNumber = 16, + kLiveLocationMessageFieldNumber = 18, + kRequestPaymentMessageFieldNumber = 22, + kDeclinePaymentRequestMessageFieldNumber = 23, + kCancelPaymentRequestMessageFieldNumber = 24, + kTemplateMessageFieldNumber = 25, + kStickerMessageFieldNumber = 26, + kGroupInviteMessageFieldNumber = 28, + kTemplateButtonReplyMessageFieldNumber = 29, + kProductMessageFieldNumber = 30, + kDeviceSentMessageFieldNumber = 31, + kMessageContextInfoFieldNumber = 35, + kListMessageFieldNumber = 36, + kViewOnceMessageFieldNumber = 37, + kOrderMessageFieldNumber = 38, + kListResponseMessageFieldNumber = 39, + kEphemeralMessageFieldNumber = 40, + kInvoiceMessageFieldNumber = 41, + kButtonsMessageFieldNumber = 42, + kButtonsResponseMessageFieldNumber = 43, + }; + // optional string conversation = 1; + bool has_conversation() const; + private: + bool _internal_has_conversation() const; + public: + void clear_conversation(); + const std::string& conversation() const; + void set_conversation(const std::string& value); + void set_conversation(std::string&& value); + void set_conversation(const char* value); + void set_conversation(const char* value, size_t size); + std::string* mutable_conversation(); + std::string* release_conversation(); + void set_allocated_conversation(std::string* conversation); + private: + const std::string& _internal_conversation() const; + void _internal_set_conversation(const std::string& value); + std::string* _internal_mutable_conversation(); + public: + + // optional .proto.SenderKeyDistributionMessage senderKeyDistributionMessage = 2; + bool has_senderkeydistributionmessage() const; + private: + bool _internal_has_senderkeydistributionmessage() const; + public: + void clear_senderkeydistributionmessage(); + const ::proto::SenderKeyDistributionMessage& senderkeydistributionmessage() const; + ::proto::SenderKeyDistributionMessage* release_senderkeydistributionmessage(); + ::proto::SenderKeyDistributionMessage* mutable_senderkeydistributionmessage(); + void set_allocated_senderkeydistributionmessage(::proto::SenderKeyDistributionMessage* senderkeydistributionmessage); + private: + const ::proto::SenderKeyDistributionMessage& _internal_senderkeydistributionmessage() const; + ::proto::SenderKeyDistributionMessage* _internal_mutable_senderkeydistributionmessage(); + public: + void unsafe_arena_set_allocated_senderkeydistributionmessage( + ::proto::SenderKeyDistributionMessage* senderkeydistributionmessage); + ::proto::SenderKeyDistributionMessage* unsafe_arena_release_senderkeydistributionmessage(); + + // optional .proto.ImageMessage imageMessage = 3; + bool has_imagemessage() const; + private: + bool _internal_has_imagemessage() const; + public: + void clear_imagemessage(); + const ::proto::ImageMessage& imagemessage() const; + ::proto::ImageMessage* release_imagemessage(); + ::proto::ImageMessage* mutable_imagemessage(); + void set_allocated_imagemessage(::proto::ImageMessage* imagemessage); + private: + const ::proto::ImageMessage& _internal_imagemessage() const; + ::proto::ImageMessage* _internal_mutable_imagemessage(); + public: + void unsafe_arena_set_allocated_imagemessage( + ::proto::ImageMessage* imagemessage); + ::proto::ImageMessage* unsafe_arena_release_imagemessage(); + + // optional .proto.ContactMessage contactMessage = 4; + bool has_contactmessage() const; + private: + bool _internal_has_contactmessage() const; + public: + void clear_contactmessage(); + const ::proto::ContactMessage& contactmessage() const; + ::proto::ContactMessage* release_contactmessage(); + ::proto::ContactMessage* mutable_contactmessage(); + void set_allocated_contactmessage(::proto::ContactMessage* contactmessage); + private: + const ::proto::ContactMessage& _internal_contactmessage() const; + ::proto::ContactMessage* _internal_mutable_contactmessage(); + public: + void unsafe_arena_set_allocated_contactmessage( + ::proto::ContactMessage* contactmessage); + ::proto::ContactMessage* unsafe_arena_release_contactmessage(); + + // optional .proto.LocationMessage locationMessage = 5; + bool has_locationmessage() const; + private: + bool _internal_has_locationmessage() const; + public: + void clear_locationmessage(); + const ::proto::LocationMessage& locationmessage() const; + ::proto::LocationMessage* release_locationmessage(); + ::proto::LocationMessage* mutable_locationmessage(); + void set_allocated_locationmessage(::proto::LocationMessage* locationmessage); + private: + const ::proto::LocationMessage& _internal_locationmessage() const; + ::proto::LocationMessage* _internal_mutable_locationmessage(); + public: + void unsafe_arena_set_allocated_locationmessage( + ::proto::LocationMessage* locationmessage); + ::proto::LocationMessage* unsafe_arena_release_locationmessage(); + + // optional .proto.ExtendedTextMessage extendedTextMessage = 6; + bool has_extendedtextmessage() const; + private: + bool _internal_has_extendedtextmessage() const; + public: + void clear_extendedtextmessage(); + const ::proto::ExtendedTextMessage& extendedtextmessage() const; + ::proto::ExtendedTextMessage* release_extendedtextmessage(); + ::proto::ExtendedTextMessage* mutable_extendedtextmessage(); + void set_allocated_extendedtextmessage(::proto::ExtendedTextMessage* extendedtextmessage); + private: + const ::proto::ExtendedTextMessage& _internal_extendedtextmessage() const; + ::proto::ExtendedTextMessage* _internal_mutable_extendedtextmessage(); + public: + void unsafe_arena_set_allocated_extendedtextmessage( + ::proto::ExtendedTextMessage* extendedtextmessage); + ::proto::ExtendedTextMessage* unsafe_arena_release_extendedtextmessage(); + + // optional .proto.DocumentMessage documentMessage = 7; + bool has_documentmessage() const; + private: + bool _internal_has_documentmessage() const; + public: + void clear_documentmessage(); + const ::proto::DocumentMessage& documentmessage() const; + ::proto::DocumentMessage* release_documentmessage(); + ::proto::DocumentMessage* mutable_documentmessage(); + void set_allocated_documentmessage(::proto::DocumentMessage* documentmessage); + private: + const ::proto::DocumentMessage& _internal_documentmessage() const; + ::proto::DocumentMessage* _internal_mutable_documentmessage(); + public: + void unsafe_arena_set_allocated_documentmessage( + ::proto::DocumentMessage* documentmessage); + ::proto::DocumentMessage* unsafe_arena_release_documentmessage(); + + // optional .proto.AudioMessage audioMessage = 8; + bool has_audiomessage() const; + private: + bool _internal_has_audiomessage() const; + public: + void clear_audiomessage(); + const ::proto::AudioMessage& audiomessage() const; + ::proto::AudioMessage* release_audiomessage(); + ::proto::AudioMessage* mutable_audiomessage(); + void set_allocated_audiomessage(::proto::AudioMessage* audiomessage); + private: + const ::proto::AudioMessage& _internal_audiomessage() const; + ::proto::AudioMessage* _internal_mutable_audiomessage(); + public: + void unsafe_arena_set_allocated_audiomessage( + ::proto::AudioMessage* audiomessage); + ::proto::AudioMessage* unsafe_arena_release_audiomessage(); + + // optional .proto.VideoMessage videoMessage = 9; + bool has_videomessage() const; + private: + bool _internal_has_videomessage() const; + public: + void clear_videomessage(); + const ::proto::VideoMessage& videomessage() const; + ::proto::VideoMessage* release_videomessage(); + ::proto::VideoMessage* mutable_videomessage(); + void set_allocated_videomessage(::proto::VideoMessage* videomessage); + private: + const ::proto::VideoMessage& _internal_videomessage() const; + ::proto::VideoMessage* _internal_mutable_videomessage(); + public: + void unsafe_arena_set_allocated_videomessage( + ::proto::VideoMessage* videomessage); + ::proto::VideoMessage* unsafe_arena_release_videomessage(); + + // optional .proto.Call call = 10; + bool has_call() const; + private: + bool _internal_has_call() const; + public: + void clear_call(); + const ::proto::Call& call() const; + ::proto::Call* release_call(); + ::proto::Call* mutable_call(); + void set_allocated_call(::proto::Call* call); + private: + const ::proto::Call& _internal_call() const; + ::proto::Call* _internal_mutable_call(); + public: + void unsafe_arena_set_allocated_call( + ::proto::Call* call); + ::proto::Call* unsafe_arena_release_call(); + + // optional .proto.Chat chat = 11; + bool has_chat() const; + private: + bool _internal_has_chat() const; + public: + void clear_chat(); + const ::proto::Chat& chat() const; + ::proto::Chat* release_chat(); + ::proto::Chat* mutable_chat(); + void set_allocated_chat(::proto::Chat* chat); + private: + const ::proto::Chat& _internal_chat() const; + ::proto::Chat* _internal_mutable_chat(); + public: + void unsafe_arena_set_allocated_chat( + ::proto::Chat* chat); + ::proto::Chat* unsafe_arena_release_chat(); + + // optional .proto.ProtocolMessage protocolMessage = 12; + bool has_protocolmessage() const; + private: + bool _internal_has_protocolmessage() const; + public: + void clear_protocolmessage(); + const ::proto::ProtocolMessage& protocolmessage() const; + ::proto::ProtocolMessage* release_protocolmessage(); + ::proto::ProtocolMessage* mutable_protocolmessage(); + void set_allocated_protocolmessage(::proto::ProtocolMessage* protocolmessage); + private: + const ::proto::ProtocolMessage& _internal_protocolmessage() const; + ::proto::ProtocolMessage* _internal_mutable_protocolmessage(); + public: + void unsafe_arena_set_allocated_protocolmessage( + ::proto::ProtocolMessage* protocolmessage); + ::proto::ProtocolMessage* unsafe_arena_release_protocolmessage(); + + // optional .proto.ContactsArrayMessage contactsArrayMessage = 13; + bool has_contactsarraymessage() const; + private: + bool _internal_has_contactsarraymessage() const; + public: + void clear_contactsarraymessage(); + const ::proto::ContactsArrayMessage& contactsarraymessage() const; + ::proto::ContactsArrayMessage* release_contactsarraymessage(); + ::proto::ContactsArrayMessage* mutable_contactsarraymessage(); + void set_allocated_contactsarraymessage(::proto::ContactsArrayMessage* contactsarraymessage); + private: + const ::proto::ContactsArrayMessage& _internal_contactsarraymessage() const; + ::proto::ContactsArrayMessage* _internal_mutable_contactsarraymessage(); + public: + void unsafe_arena_set_allocated_contactsarraymessage( + ::proto::ContactsArrayMessage* contactsarraymessage); + ::proto::ContactsArrayMessage* unsafe_arena_release_contactsarraymessage(); + + // optional .proto.HighlyStructuredMessage highlyStructuredMessage = 14; + bool has_highlystructuredmessage() const; + private: + bool _internal_has_highlystructuredmessage() const; + public: + void clear_highlystructuredmessage(); + const ::proto::HighlyStructuredMessage& highlystructuredmessage() const; + ::proto::HighlyStructuredMessage* release_highlystructuredmessage(); + ::proto::HighlyStructuredMessage* mutable_highlystructuredmessage(); + void set_allocated_highlystructuredmessage(::proto::HighlyStructuredMessage* highlystructuredmessage); + private: + const ::proto::HighlyStructuredMessage& _internal_highlystructuredmessage() const; + ::proto::HighlyStructuredMessage* _internal_mutable_highlystructuredmessage(); + public: + void unsafe_arena_set_allocated_highlystructuredmessage( + ::proto::HighlyStructuredMessage* highlystructuredmessage); + ::proto::HighlyStructuredMessage* unsafe_arena_release_highlystructuredmessage(); + + // optional .proto.SenderKeyDistributionMessage fastRatchetKeySenderKeyDistributionMessage = 15; + bool has_fastratchetkeysenderkeydistributionmessage() const; + private: + bool _internal_has_fastratchetkeysenderkeydistributionmessage() const; + public: + void clear_fastratchetkeysenderkeydistributionmessage(); + const ::proto::SenderKeyDistributionMessage& fastratchetkeysenderkeydistributionmessage() const; + ::proto::SenderKeyDistributionMessage* release_fastratchetkeysenderkeydistributionmessage(); + ::proto::SenderKeyDistributionMessage* mutable_fastratchetkeysenderkeydistributionmessage(); + void set_allocated_fastratchetkeysenderkeydistributionmessage(::proto::SenderKeyDistributionMessage* fastratchetkeysenderkeydistributionmessage); + private: + const ::proto::SenderKeyDistributionMessage& _internal_fastratchetkeysenderkeydistributionmessage() const; + ::proto::SenderKeyDistributionMessage* _internal_mutable_fastratchetkeysenderkeydistributionmessage(); + public: + void unsafe_arena_set_allocated_fastratchetkeysenderkeydistributionmessage( + ::proto::SenderKeyDistributionMessage* fastratchetkeysenderkeydistributionmessage); + ::proto::SenderKeyDistributionMessage* unsafe_arena_release_fastratchetkeysenderkeydistributionmessage(); + + // optional .proto.SendPaymentMessage sendPaymentMessage = 16; + bool has_sendpaymentmessage() const; + private: + bool _internal_has_sendpaymentmessage() const; + public: + void clear_sendpaymentmessage(); + const ::proto::SendPaymentMessage& sendpaymentmessage() const; + ::proto::SendPaymentMessage* release_sendpaymentmessage(); + ::proto::SendPaymentMessage* mutable_sendpaymentmessage(); + void set_allocated_sendpaymentmessage(::proto::SendPaymentMessage* sendpaymentmessage); + private: + const ::proto::SendPaymentMessage& _internal_sendpaymentmessage() const; + ::proto::SendPaymentMessage* _internal_mutable_sendpaymentmessage(); + public: + void unsafe_arena_set_allocated_sendpaymentmessage( + ::proto::SendPaymentMessage* sendpaymentmessage); + ::proto::SendPaymentMessage* unsafe_arena_release_sendpaymentmessage(); + + // optional .proto.LiveLocationMessage liveLocationMessage = 18; + bool has_livelocationmessage() const; + private: + bool _internal_has_livelocationmessage() const; + public: + void clear_livelocationmessage(); + const ::proto::LiveLocationMessage& livelocationmessage() const; + ::proto::LiveLocationMessage* release_livelocationmessage(); + ::proto::LiveLocationMessage* mutable_livelocationmessage(); + void set_allocated_livelocationmessage(::proto::LiveLocationMessage* livelocationmessage); + private: + const ::proto::LiveLocationMessage& _internal_livelocationmessage() const; + ::proto::LiveLocationMessage* _internal_mutable_livelocationmessage(); + public: + void unsafe_arena_set_allocated_livelocationmessage( + ::proto::LiveLocationMessage* livelocationmessage); + ::proto::LiveLocationMessage* unsafe_arena_release_livelocationmessage(); + + // optional .proto.RequestPaymentMessage requestPaymentMessage = 22; + bool has_requestpaymentmessage() const; + private: + bool _internal_has_requestpaymentmessage() const; + public: + void clear_requestpaymentmessage(); + const ::proto::RequestPaymentMessage& requestpaymentmessage() const; + ::proto::RequestPaymentMessage* release_requestpaymentmessage(); + ::proto::RequestPaymentMessage* mutable_requestpaymentmessage(); + void set_allocated_requestpaymentmessage(::proto::RequestPaymentMessage* requestpaymentmessage); + private: + const ::proto::RequestPaymentMessage& _internal_requestpaymentmessage() const; + ::proto::RequestPaymentMessage* _internal_mutable_requestpaymentmessage(); + public: + void unsafe_arena_set_allocated_requestpaymentmessage( + ::proto::RequestPaymentMessage* requestpaymentmessage); + ::proto::RequestPaymentMessage* unsafe_arena_release_requestpaymentmessage(); + + // optional .proto.DeclinePaymentRequestMessage declinePaymentRequestMessage = 23; + bool has_declinepaymentrequestmessage() const; + private: + bool _internal_has_declinepaymentrequestmessage() const; + public: + void clear_declinepaymentrequestmessage(); + const ::proto::DeclinePaymentRequestMessage& declinepaymentrequestmessage() const; + ::proto::DeclinePaymentRequestMessage* release_declinepaymentrequestmessage(); + ::proto::DeclinePaymentRequestMessage* mutable_declinepaymentrequestmessage(); + void set_allocated_declinepaymentrequestmessage(::proto::DeclinePaymentRequestMessage* declinepaymentrequestmessage); + private: + const ::proto::DeclinePaymentRequestMessage& _internal_declinepaymentrequestmessage() const; + ::proto::DeclinePaymentRequestMessage* _internal_mutable_declinepaymentrequestmessage(); + public: + void unsafe_arena_set_allocated_declinepaymentrequestmessage( + ::proto::DeclinePaymentRequestMessage* declinepaymentrequestmessage); + ::proto::DeclinePaymentRequestMessage* unsafe_arena_release_declinepaymentrequestmessage(); + + // optional .proto.CancelPaymentRequestMessage cancelPaymentRequestMessage = 24; + bool has_cancelpaymentrequestmessage() const; + private: + bool _internal_has_cancelpaymentrequestmessage() const; + public: + void clear_cancelpaymentrequestmessage(); + const ::proto::CancelPaymentRequestMessage& cancelpaymentrequestmessage() const; + ::proto::CancelPaymentRequestMessage* release_cancelpaymentrequestmessage(); + ::proto::CancelPaymentRequestMessage* mutable_cancelpaymentrequestmessage(); + void set_allocated_cancelpaymentrequestmessage(::proto::CancelPaymentRequestMessage* cancelpaymentrequestmessage); + private: + const ::proto::CancelPaymentRequestMessage& _internal_cancelpaymentrequestmessage() const; + ::proto::CancelPaymentRequestMessage* _internal_mutable_cancelpaymentrequestmessage(); + public: + void unsafe_arena_set_allocated_cancelpaymentrequestmessage( + ::proto::CancelPaymentRequestMessage* cancelpaymentrequestmessage); + ::proto::CancelPaymentRequestMessage* unsafe_arena_release_cancelpaymentrequestmessage(); + + // optional .proto.TemplateMessage templateMessage = 25; + bool has_templatemessage() const; + private: + bool _internal_has_templatemessage() const; + public: + void clear_templatemessage(); + const ::proto::TemplateMessage& templatemessage() const; + ::proto::TemplateMessage* release_templatemessage(); + ::proto::TemplateMessage* mutable_templatemessage(); + void set_allocated_templatemessage(::proto::TemplateMessage* templatemessage); + private: + const ::proto::TemplateMessage& _internal_templatemessage() const; + ::proto::TemplateMessage* _internal_mutable_templatemessage(); + public: + void unsafe_arena_set_allocated_templatemessage( + ::proto::TemplateMessage* templatemessage); + ::proto::TemplateMessage* unsafe_arena_release_templatemessage(); + + // optional .proto.StickerMessage stickerMessage = 26; + bool has_stickermessage() const; + private: + bool _internal_has_stickermessage() const; + public: + void clear_stickermessage(); + const ::proto::StickerMessage& stickermessage() const; + ::proto::StickerMessage* release_stickermessage(); + ::proto::StickerMessage* mutable_stickermessage(); + void set_allocated_stickermessage(::proto::StickerMessage* stickermessage); + private: + const ::proto::StickerMessage& _internal_stickermessage() const; + ::proto::StickerMessage* _internal_mutable_stickermessage(); + public: + void unsafe_arena_set_allocated_stickermessage( + ::proto::StickerMessage* stickermessage); + ::proto::StickerMessage* unsafe_arena_release_stickermessage(); + + // optional .proto.GroupInviteMessage groupInviteMessage = 28; + bool has_groupinvitemessage() const; + private: + bool _internal_has_groupinvitemessage() const; + public: + void clear_groupinvitemessage(); + const ::proto::GroupInviteMessage& groupinvitemessage() const; + ::proto::GroupInviteMessage* release_groupinvitemessage(); + ::proto::GroupInviteMessage* mutable_groupinvitemessage(); + void set_allocated_groupinvitemessage(::proto::GroupInviteMessage* groupinvitemessage); + private: + const ::proto::GroupInviteMessage& _internal_groupinvitemessage() const; + ::proto::GroupInviteMessage* _internal_mutable_groupinvitemessage(); + public: + void unsafe_arena_set_allocated_groupinvitemessage( + ::proto::GroupInviteMessage* groupinvitemessage); + ::proto::GroupInviteMessage* unsafe_arena_release_groupinvitemessage(); + + // optional .proto.TemplateButtonReplyMessage templateButtonReplyMessage = 29; + bool has_templatebuttonreplymessage() const; + private: + bool _internal_has_templatebuttonreplymessage() const; + public: + void clear_templatebuttonreplymessage(); + const ::proto::TemplateButtonReplyMessage& templatebuttonreplymessage() const; + ::proto::TemplateButtonReplyMessage* release_templatebuttonreplymessage(); + ::proto::TemplateButtonReplyMessage* mutable_templatebuttonreplymessage(); + void set_allocated_templatebuttonreplymessage(::proto::TemplateButtonReplyMessage* templatebuttonreplymessage); + private: + const ::proto::TemplateButtonReplyMessage& _internal_templatebuttonreplymessage() const; + ::proto::TemplateButtonReplyMessage* _internal_mutable_templatebuttonreplymessage(); + public: + void unsafe_arena_set_allocated_templatebuttonreplymessage( + ::proto::TemplateButtonReplyMessage* templatebuttonreplymessage); + ::proto::TemplateButtonReplyMessage* unsafe_arena_release_templatebuttonreplymessage(); + + // optional .proto.ProductMessage productMessage = 30; + bool has_productmessage() const; + private: + bool _internal_has_productmessage() const; + public: + void clear_productmessage(); + const ::proto::ProductMessage& productmessage() const; + ::proto::ProductMessage* release_productmessage(); + ::proto::ProductMessage* mutable_productmessage(); + void set_allocated_productmessage(::proto::ProductMessage* productmessage); + private: + const ::proto::ProductMessage& _internal_productmessage() const; + ::proto::ProductMessage* _internal_mutable_productmessage(); + public: + void unsafe_arena_set_allocated_productmessage( + ::proto::ProductMessage* productmessage); + ::proto::ProductMessage* unsafe_arena_release_productmessage(); + + // optional .proto.DeviceSentMessage deviceSentMessage = 31; + bool has_devicesentmessage() const; + private: + bool _internal_has_devicesentmessage() const; + public: + void clear_devicesentmessage(); + const ::proto::DeviceSentMessage& devicesentmessage() const; + ::proto::DeviceSentMessage* release_devicesentmessage(); + ::proto::DeviceSentMessage* mutable_devicesentmessage(); + void set_allocated_devicesentmessage(::proto::DeviceSentMessage* devicesentmessage); + private: + const ::proto::DeviceSentMessage& _internal_devicesentmessage() const; + ::proto::DeviceSentMessage* _internal_mutable_devicesentmessage(); + public: + void unsafe_arena_set_allocated_devicesentmessage( + ::proto::DeviceSentMessage* devicesentmessage); + ::proto::DeviceSentMessage* unsafe_arena_release_devicesentmessage(); + + // optional .proto.MessageContextInfo messageContextInfo = 35; + bool has_messagecontextinfo() const; + private: + bool _internal_has_messagecontextinfo() const; + public: + void clear_messagecontextinfo(); + const ::proto::MessageContextInfo& messagecontextinfo() const; + ::proto::MessageContextInfo* release_messagecontextinfo(); + ::proto::MessageContextInfo* mutable_messagecontextinfo(); + void set_allocated_messagecontextinfo(::proto::MessageContextInfo* messagecontextinfo); + private: + const ::proto::MessageContextInfo& _internal_messagecontextinfo() const; + ::proto::MessageContextInfo* _internal_mutable_messagecontextinfo(); + public: + void unsafe_arena_set_allocated_messagecontextinfo( + ::proto::MessageContextInfo* messagecontextinfo); + ::proto::MessageContextInfo* unsafe_arena_release_messagecontextinfo(); + + // optional .proto.ListMessage listMessage = 36; + bool has_listmessage() const; + private: + bool _internal_has_listmessage() const; + public: + void clear_listmessage(); + const ::proto::ListMessage& listmessage() const; + ::proto::ListMessage* release_listmessage(); + ::proto::ListMessage* mutable_listmessage(); + void set_allocated_listmessage(::proto::ListMessage* listmessage); + private: + const ::proto::ListMessage& _internal_listmessage() const; + ::proto::ListMessage* _internal_mutable_listmessage(); + public: + void unsafe_arena_set_allocated_listmessage( + ::proto::ListMessage* listmessage); + ::proto::ListMessage* unsafe_arena_release_listmessage(); + + // optional .proto.FutureProofMessage viewOnceMessage = 37; + bool has_viewoncemessage() const; + private: + bool _internal_has_viewoncemessage() const; + public: + void clear_viewoncemessage(); + const ::proto::FutureProofMessage& viewoncemessage() const; + ::proto::FutureProofMessage* release_viewoncemessage(); + ::proto::FutureProofMessage* mutable_viewoncemessage(); + void set_allocated_viewoncemessage(::proto::FutureProofMessage* viewoncemessage); + private: + const ::proto::FutureProofMessage& _internal_viewoncemessage() const; + ::proto::FutureProofMessage* _internal_mutable_viewoncemessage(); + public: + void unsafe_arena_set_allocated_viewoncemessage( + ::proto::FutureProofMessage* viewoncemessage); + ::proto::FutureProofMessage* unsafe_arena_release_viewoncemessage(); + + // optional .proto.OrderMessage orderMessage = 38; + bool has_ordermessage() const; + private: + bool _internal_has_ordermessage() const; + public: + void clear_ordermessage(); + const ::proto::OrderMessage& ordermessage() const; + ::proto::OrderMessage* release_ordermessage(); + ::proto::OrderMessage* mutable_ordermessage(); + void set_allocated_ordermessage(::proto::OrderMessage* ordermessage); + private: + const ::proto::OrderMessage& _internal_ordermessage() const; + ::proto::OrderMessage* _internal_mutable_ordermessage(); + public: + void unsafe_arena_set_allocated_ordermessage( + ::proto::OrderMessage* ordermessage); + ::proto::OrderMessage* unsafe_arena_release_ordermessage(); + + // optional .proto.ListResponseMessage listResponseMessage = 39; + bool has_listresponsemessage() const; + private: + bool _internal_has_listresponsemessage() const; + public: + void clear_listresponsemessage(); + const ::proto::ListResponseMessage& listresponsemessage() const; + ::proto::ListResponseMessage* release_listresponsemessage(); + ::proto::ListResponseMessage* mutable_listresponsemessage(); + void set_allocated_listresponsemessage(::proto::ListResponseMessage* listresponsemessage); + private: + const ::proto::ListResponseMessage& _internal_listresponsemessage() const; + ::proto::ListResponseMessage* _internal_mutable_listresponsemessage(); + public: + void unsafe_arena_set_allocated_listresponsemessage( + ::proto::ListResponseMessage* listresponsemessage); + ::proto::ListResponseMessage* unsafe_arena_release_listresponsemessage(); + + // optional .proto.FutureProofMessage ephemeralMessage = 40; + bool has_ephemeralmessage() const; + private: + bool _internal_has_ephemeralmessage() const; + public: + void clear_ephemeralmessage(); + const ::proto::FutureProofMessage& ephemeralmessage() const; + ::proto::FutureProofMessage* release_ephemeralmessage(); + ::proto::FutureProofMessage* mutable_ephemeralmessage(); + void set_allocated_ephemeralmessage(::proto::FutureProofMessage* ephemeralmessage); + private: + const ::proto::FutureProofMessage& _internal_ephemeralmessage() const; + ::proto::FutureProofMessage* _internal_mutable_ephemeralmessage(); + public: + void unsafe_arena_set_allocated_ephemeralmessage( + ::proto::FutureProofMessage* ephemeralmessage); + ::proto::FutureProofMessage* unsafe_arena_release_ephemeralmessage(); + + // optional .proto.InvoiceMessage invoiceMessage = 41; + bool has_invoicemessage() const; + private: + bool _internal_has_invoicemessage() const; + public: + void clear_invoicemessage(); + const ::proto::InvoiceMessage& invoicemessage() const; + ::proto::InvoiceMessage* release_invoicemessage(); + ::proto::InvoiceMessage* mutable_invoicemessage(); + void set_allocated_invoicemessage(::proto::InvoiceMessage* invoicemessage); + private: + const ::proto::InvoiceMessage& _internal_invoicemessage() const; + ::proto::InvoiceMessage* _internal_mutable_invoicemessage(); + public: + void unsafe_arena_set_allocated_invoicemessage( + ::proto::InvoiceMessage* invoicemessage); + ::proto::InvoiceMessage* unsafe_arena_release_invoicemessage(); + + // optional .proto.ButtonsMessage buttonsMessage = 42; + bool has_buttonsmessage() const; + private: + bool _internal_has_buttonsmessage() const; + public: + void clear_buttonsmessage(); + const ::proto::ButtonsMessage& buttonsmessage() const; + ::proto::ButtonsMessage* release_buttonsmessage(); + ::proto::ButtonsMessage* mutable_buttonsmessage(); + void set_allocated_buttonsmessage(::proto::ButtonsMessage* buttonsmessage); + private: + const ::proto::ButtonsMessage& _internal_buttonsmessage() const; + ::proto::ButtonsMessage* _internal_mutable_buttonsmessage(); + public: + void unsafe_arena_set_allocated_buttonsmessage( + ::proto::ButtonsMessage* buttonsmessage); + ::proto::ButtonsMessage* unsafe_arena_release_buttonsmessage(); + + // optional .proto.ButtonsResponseMessage buttonsResponseMessage = 43; + bool has_buttonsresponsemessage() const; + private: + bool _internal_has_buttonsresponsemessage() const; + public: + void clear_buttonsresponsemessage(); + const ::proto::ButtonsResponseMessage& buttonsresponsemessage() const; + ::proto::ButtonsResponseMessage* release_buttonsresponsemessage(); + ::proto::ButtonsResponseMessage* mutable_buttonsresponsemessage(); + void set_allocated_buttonsresponsemessage(::proto::ButtonsResponseMessage* buttonsresponsemessage); + private: + const ::proto::ButtonsResponseMessage& _internal_buttonsresponsemessage() const; + ::proto::ButtonsResponseMessage* _internal_mutable_buttonsresponsemessage(); + public: + void unsafe_arena_set_allocated_buttonsresponsemessage( + ::proto::ButtonsResponseMessage* buttonsresponsemessage); + ::proto::ButtonsResponseMessage* unsafe_arena_release_buttonsresponsemessage(); + + // @@protoc_insertion_point(class_scope:proto.Message) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<2> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr conversation_; + ::proto::SenderKeyDistributionMessage* senderkeydistributionmessage_; + ::proto::ImageMessage* imagemessage_; + ::proto::ContactMessage* contactmessage_; + ::proto::LocationMessage* locationmessage_; + ::proto::ExtendedTextMessage* extendedtextmessage_; + ::proto::DocumentMessage* documentmessage_; + ::proto::AudioMessage* audiomessage_; + ::proto::VideoMessage* videomessage_; + ::proto::Call* call_; + ::proto::Chat* chat_; + ::proto::ProtocolMessage* protocolmessage_; + ::proto::ContactsArrayMessage* contactsarraymessage_; + ::proto::HighlyStructuredMessage* highlystructuredmessage_; + ::proto::SenderKeyDistributionMessage* fastratchetkeysenderkeydistributionmessage_; + ::proto::SendPaymentMessage* sendpaymentmessage_; + ::proto::LiveLocationMessage* livelocationmessage_; + ::proto::RequestPaymentMessage* requestpaymentmessage_; + ::proto::DeclinePaymentRequestMessage* declinepaymentrequestmessage_; + ::proto::CancelPaymentRequestMessage* cancelpaymentrequestmessage_; + ::proto::TemplateMessage* templatemessage_; + ::proto::StickerMessage* stickermessage_; + ::proto::GroupInviteMessage* groupinvitemessage_; + ::proto::TemplateButtonReplyMessage* templatebuttonreplymessage_; + ::proto::ProductMessage* productmessage_; + ::proto::DeviceSentMessage* devicesentmessage_; + ::proto::MessageContextInfo* messagecontextinfo_; + ::proto::ListMessage* listmessage_; + ::proto::FutureProofMessage* viewoncemessage_; + ::proto::OrderMessage* ordermessage_; + ::proto::ListResponseMessage* listresponsemessage_; + ::proto::FutureProofMessage* ephemeralmessage_; + ::proto::InvoiceMessage* invoicemessage_; + ::proto::ButtonsMessage* buttonsmessage_; + ::proto::ButtonsResponseMessage* buttonsresponsemessage_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class MessageKey PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.MessageKey) */ { + public: + inline MessageKey() : MessageKey(nullptr) {} + virtual ~MessageKey(); + explicit constexpr MessageKey(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MessageKey(const MessageKey& from); + MessageKey(MessageKey&& from) noexcept + : MessageKey() { + *this = ::std::move(from); + } + + inline MessageKey& operator=(const MessageKey& from) { + CopyFrom(from); + return *this; + } + inline MessageKey& operator=(MessageKey&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const MessageKey& default_instance() { + return *internal_default_instance(); + } + static inline const MessageKey* internal_default_instance() { + return reinterpret_cast<const MessageKey*>( + &_MessageKey_default_instance_); + } + static constexpr int kIndexInFileMessages = + 73; + + friend void swap(MessageKey& a, MessageKey& b) { + a.Swap(&b); + } + inline void Swap(MessageKey* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MessageKey* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline MessageKey* New() const final { + return CreateMaybeMessage<MessageKey>(nullptr); + } + + MessageKey* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<MessageKey>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const MessageKey& from); + void MergeFrom(const MessageKey& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MessageKey* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.MessageKey"; + } + protected: + explicit MessageKey(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kRemoteJidFieldNumber = 1, + kIdFieldNumber = 3, + kParticipantFieldNumber = 4, + kFromMeFieldNumber = 2, + }; + // optional string remoteJid = 1; + bool has_remotejid() const; + private: + bool _internal_has_remotejid() const; + public: + void clear_remotejid(); + const std::string& remotejid() const; + void set_remotejid(const std::string& value); + void set_remotejid(std::string&& value); + void set_remotejid(const char* value); + void set_remotejid(const char* value, size_t size); + std::string* mutable_remotejid(); + std::string* release_remotejid(); + void set_allocated_remotejid(std::string* remotejid); + private: + const std::string& _internal_remotejid() const; + void _internal_set_remotejid(const std::string& value); + std::string* _internal_mutable_remotejid(); + public: + + // optional string id = 3; + bool has_id() const; + private: + bool _internal_has_id() const; + public: + void clear_id(); + const std::string& id() const; + void set_id(const std::string& value); + void set_id(std::string&& value); + void set_id(const char* value); + void set_id(const char* value, size_t size); + std::string* mutable_id(); + std::string* release_id(); + void set_allocated_id(std::string* id); + private: + const std::string& _internal_id() const; + void _internal_set_id(const std::string& value); + std::string* _internal_mutable_id(); + public: + + // optional string participant = 4; + bool has_participant() const; + private: + bool _internal_has_participant() const; + public: + void clear_participant(); + const std::string& participant() const; + void set_participant(const std::string& value); + void set_participant(std::string&& value); + void set_participant(const char* value); + void set_participant(const char* value, size_t size); + std::string* mutable_participant(); + std::string* release_participant(); + void set_allocated_participant(std::string* participant); + private: + const std::string& _internal_participant() const; + void _internal_set_participant(const std::string& value); + std::string* _internal_mutable_participant(); + public: + + // optional bool fromMe = 2; + bool has_fromme() const; + private: + bool _internal_has_fromme() const; + public: + void clear_fromme(); + bool fromme() const; + void set_fromme(bool value); + private: + bool _internal_fromme() const; + void _internal_set_fromme(bool value); + public: + + // @@protoc_insertion_point(class_scope:proto.MessageKey) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr remotejid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr participant_; + bool fromme_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class WebFeatures PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.WebFeatures) */ { + public: + inline WebFeatures() : WebFeatures(nullptr) {} + virtual ~WebFeatures(); + explicit constexpr WebFeatures(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + WebFeatures(const WebFeatures& from); + WebFeatures(WebFeatures&& from) noexcept + : WebFeatures() { + *this = ::std::move(from); + } + + inline WebFeatures& operator=(const WebFeatures& from) { + CopyFrom(from); + return *this; + } + inline WebFeatures& operator=(WebFeatures&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const WebFeatures& default_instance() { + return *internal_default_instance(); + } + static inline const WebFeatures* internal_default_instance() { + return reinterpret_cast<const WebFeatures*>( + &_WebFeatures_default_instance_); + } + static constexpr int kIndexInFileMessages = + 74; + + friend void swap(WebFeatures& a, WebFeatures& b) { + a.Swap(&b); + } + inline void Swap(WebFeatures* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(WebFeatures* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline WebFeatures* New() const final { + return CreateMaybeMessage<WebFeatures>(nullptr); + } + + WebFeatures* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<WebFeatures>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const WebFeatures& from); + void MergeFrom(const WebFeatures& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WebFeatures* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.WebFeatures"; + } + protected: + explicit WebFeatures(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + typedef WebFeatures_WebFeaturesFlag WebFeaturesFlag; + static constexpr WebFeaturesFlag NOT_STARTED = + WebFeatures_WebFeaturesFlag_NOT_STARTED; + static constexpr WebFeaturesFlag FORCE_UPGRADE = + WebFeatures_WebFeaturesFlag_FORCE_UPGRADE; + static constexpr WebFeaturesFlag DEVELOPMENT = + WebFeatures_WebFeaturesFlag_DEVELOPMENT; + static constexpr WebFeaturesFlag PRODUCTION = + WebFeatures_WebFeaturesFlag_PRODUCTION; + static inline bool WebFeaturesFlag_IsValid(int value) { + return WebFeatures_WebFeaturesFlag_IsValid(value); + } + static constexpr WebFeaturesFlag WebFeaturesFlag_MIN = + WebFeatures_WebFeaturesFlag_WebFeaturesFlag_MIN; + static constexpr WebFeaturesFlag WebFeaturesFlag_MAX = + WebFeatures_WebFeaturesFlag_WebFeaturesFlag_MAX; + static constexpr int WebFeaturesFlag_ARRAYSIZE = + WebFeatures_WebFeaturesFlag_WebFeaturesFlag_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + WebFeaturesFlag_descriptor() { + return WebFeatures_WebFeaturesFlag_descriptor(); + } + template<typename T> + static inline const std::string& WebFeaturesFlag_Name(T enum_t_value) { + static_assert(::std::is_same<T, WebFeaturesFlag>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function WebFeaturesFlag_Name."); + return WebFeatures_WebFeaturesFlag_Name(enum_t_value); + } + static inline bool WebFeaturesFlag_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + WebFeaturesFlag* value) { + return WebFeatures_WebFeaturesFlag_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kLabelsDisplayFieldNumber = 1, + kVoipIndividualOutgoingFieldNumber = 2, + kGroupsV3FieldNumber = 3, + kGroupsV3CreateFieldNumber = 4, + kChangeNumberV2FieldNumber = 5, + kQueryStatusV3ThumbnailFieldNumber = 6, + kLiveLocationsFieldNumber = 7, + kQueryVnameFieldNumber = 8, + kVoipIndividualIncomingFieldNumber = 9, + kQuickRepliesQueryFieldNumber = 10, + kPaymentsFieldNumber = 11, + kStickerPackQueryFieldNumber = 12, + kLiveLocationsFinalFieldNumber = 13, + kLabelsEditFieldNumber = 14, + kMediaUploadFieldNumber = 15, + kMediaUploadRichQuickRepliesFieldNumber = 18, + kVnameV2FieldNumber = 19, + kVideoPlaybackUrlFieldNumber = 20, + kStatusRankingFieldNumber = 21, + kVoipIndividualVideoFieldNumber = 22, + kThirdPartyStickersFieldNumber = 23, + kFrequentlyForwardedSettingFieldNumber = 24, + kGroupsV4JoinPermissionFieldNumber = 25, + kRecentStickersFieldNumber = 26, + kCatalogFieldNumber = 27, + kStarredStickersFieldNumber = 28, + kVoipGroupCallFieldNumber = 29, + kTemplateMessageFieldNumber = 30, + kTemplateMessageInteractivityFieldNumber = 31, + kEphemeralMessagesFieldNumber = 32, + kE2ENotificationSyncFieldNumber = 33, + kRecentStickersV2FieldNumber = 34, + kSyncdRelease1FieldNumber = 35, + kRecentStickersV3FieldNumber = 36, + kUserNoticeFieldNumber = 37, + kSyncdRelease11FieldNumber = 38, + kSupportFieldNumber = 39, + kGroupUiiCleanupFieldNumber = 40, + kGroupDogfoodingInternalOnlyFieldNumber = 41, + kSettingsSyncFieldNumber = 42, + }; + // optional .proto.WebFeatures.WebFeaturesFlag labelsDisplay = 1; + bool has_labelsdisplay() const; + private: + bool _internal_has_labelsdisplay() const; + public: + void clear_labelsdisplay(); + ::proto::WebFeatures_WebFeaturesFlag labelsdisplay() const; + void set_labelsdisplay(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_labelsdisplay() const; + void _internal_set_labelsdisplay(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualOutgoing = 2; + bool has_voipindividualoutgoing() const; + private: + bool _internal_has_voipindividualoutgoing() const; + public: + void clear_voipindividualoutgoing(); + ::proto::WebFeatures_WebFeaturesFlag voipindividualoutgoing() const; + void set_voipindividualoutgoing(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_voipindividualoutgoing() const; + void _internal_set_voipindividualoutgoing(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag groupsV3 = 3; + bool has_groupsv3() const; + private: + bool _internal_has_groupsv3() const; + public: + void clear_groupsv3(); + ::proto::WebFeatures_WebFeaturesFlag groupsv3() const; + void set_groupsv3(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_groupsv3() const; + void _internal_set_groupsv3(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag groupsV3Create = 4; + bool has_groupsv3create() const; + private: + bool _internal_has_groupsv3create() const; + public: + void clear_groupsv3create(); + ::proto::WebFeatures_WebFeaturesFlag groupsv3create() const; + void set_groupsv3create(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_groupsv3create() const; + void _internal_set_groupsv3create(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag changeNumberV2 = 5; + bool has_changenumberv2() const; + private: + bool _internal_has_changenumberv2() const; + public: + void clear_changenumberv2(); + ::proto::WebFeatures_WebFeaturesFlag changenumberv2() const; + void set_changenumberv2(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_changenumberv2() const; + void _internal_set_changenumberv2(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag queryStatusV3Thumbnail = 6; + bool has_querystatusv3thumbnail() const; + private: + bool _internal_has_querystatusv3thumbnail() const; + public: + void clear_querystatusv3thumbnail(); + ::proto::WebFeatures_WebFeaturesFlag querystatusv3thumbnail() const; + void set_querystatusv3thumbnail(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_querystatusv3thumbnail() const; + void _internal_set_querystatusv3thumbnail(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag liveLocations = 7; + bool has_livelocations() const; + private: + bool _internal_has_livelocations() const; + public: + void clear_livelocations(); + ::proto::WebFeatures_WebFeaturesFlag livelocations() const; + void set_livelocations(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_livelocations() const; + void _internal_set_livelocations(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag queryVname = 8; + bool has_queryvname() const; + private: + bool _internal_has_queryvname() const; + public: + void clear_queryvname(); + ::proto::WebFeatures_WebFeaturesFlag queryvname() const; + void set_queryvname(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_queryvname() const; + void _internal_set_queryvname(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualIncoming = 9; + bool has_voipindividualincoming() const; + private: + bool _internal_has_voipindividualincoming() const; + public: + void clear_voipindividualincoming(); + ::proto::WebFeatures_WebFeaturesFlag voipindividualincoming() const; + void set_voipindividualincoming(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_voipindividualincoming() const; + void _internal_set_voipindividualincoming(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag quickRepliesQuery = 10; + bool has_quickrepliesquery() const; + private: + bool _internal_has_quickrepliesquery() const; + public: + void clear_quickrepliesquery(); + ::proto::WebFeatures_WebFeaturesFlag quickrepliesquery() const; + void set_quickrepliesquery(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_quickrepliesquery() const; + void _internal_set_quickrepliesquery(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag payments = 11; + bool has_payments() const; + private: + bool _internal_has_payments() const; + public: + void clear_payments(); + ::proto::WebFeatures_WebFeaturesFlag payments() const; + void set_payments(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_payments() const; + void _internal_set_payments(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag stickerPackQuery = 12; + bool has_stickerpackquery() const; + private: + bool _internal_has_stickerpackquery() const; + public: + void clear_stickerpackquery(); + ::proto::WebFeatures_WebFeaturesFlag stickerpackquery() const; + void set_stickerpackquery(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_stickerpackquery() const; + void _internal_set_stickerpackquery(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag liveLocationsFinal = 13; + bool has_livelocationsfinal() const; + private: + bool _internal_has_livelocationsfinal() const; + public: + void clear_livelocationsfinal(); + ::proto::WebFeatures_WebFeaturesFlag livelocationsfinal() const; + void set_livelocationsfinal(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_livelocationsfinal() const; + void _internal_set_livelocationsfinal(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag labelsEdit = 14; + bool has_labelsedit() const; + private: + bool _internal_has_labelsedit() const; + public: + void clear_labelsedit(); + ::proto::WebFeatures_WebFeaturesFlag labelsedit() const; + void set_labelsedit(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_labelsedit() const; + void _internal_set_labelsedit(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag mediaUpload = 15; + bool has_mediaupload() const; + private: + bool _internal_has_mediaupload() const; + public: + void clear_mediaupload(); + ::proto::WebFeatures_WebFeaturesFlag mediaupload() const; + void set_mediaupload(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_mediaupload() const; + void _internal_set_mediaupload(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag mediaUploadRichQuickReplies = 18; + bool has_mediauploadrichquickreplies() const; + private: + bool _internal_has_mediauploadrichquickreplies() const; + public: + void clear_mediauploadrichquickreplies(); + ::proto::WebFeatures_WebFeaturesFlag mediauploadrichquickreplies() const; + void set_mediauploadrichquickreplies(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_mediauploadrichquickreplies() const; + void _internal_set_mediauploadrichquickreplies(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag vnameV2 = 19; + bool has_vnamev2() const; + private: + bool _internal_has_vnamev2() const; + public: + void clear_vnamev2(); + ::proto::WebFeatures_WebFeaturesFlag vnamev2() const; + void set_vnamev2(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_vnamev2() const; + void _internal_set_vnamev2(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag videoPlaybackUrl = 20; + bool has_videoplaybackurl() const; + private: + bool _internal_has_videoplaybackurl() const; + public: + void clear_videoplaybackurl(); + ::proto::WebFeatures_WebFeaturesFlag videoplaybackurl() const; + void set_videoplaybackurl(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_videoplaybackurl() const; + void _internal_set_videoplaybackurl(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag statusRanking = 21; + bool has_statusranking() const; + private: + bool _internal_has_statusranking() const; + public: + void clear_statusranking(); + ::proto::WebFeatures_WebFeaturesFlag statusranking() const; + void set_statusranking(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_statusranking() const; + void _internal_set_statusranking(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualVideo = 22; + bool has_voipindividualvideo() const; + private: + bool _internal_has_voipindividualvideo() const; + public: + void clear_voipindividualvideo(); + ::proto::WebFeatures_WebFeaturesFlag voipindividualvideo() const; + void set_voipindividualvideo(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_voipindividualvideo() const; + void _internal_set_voipindividualvideo(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag thirdPartyStickers = 23; + bool has_thirdpartystickers() const; + private: + bool _internal_has_thirdpartystickers() const; + public: + void clear_thirdpartystickers(); + ::proto::WebFeatures_WebFeaturesFlag thirdpartystickers() const; + void set_thirdpartystickers(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_thirdpartystickers() const; + void _internal_set_thirdpartystickers(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag frequentlyForwardedSetting = 24; + bool has_frequentlyforwardedsetting() const; + private: + bool _internal_has_frequentlyforwardedsetting() const; + public: + void clear_frequentlyforwardedsetting(); + ::proto::WebFeatures_WebFeaturesFlag frequentlyforwardedsetting() const; + void set_frequentlyforwardedsetting(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_frequentlyforwardedsetting() const; + void _internal_set_frequentlyforwardedsetting(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag groupsV4JoinPermission = 25; + bool has_groupsv4joinpermission() const; + private: + bool _internal_has_groupsv4joinpermission() const; + public: + void clear_groupsv4joinpermission(); + ::proto::WebFeatures_WebFeaturesFlag groupsv4joinpermission() const; + void set_groupsv4joinpermission(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_groupsv4joinpermission() const; + void _internal_set_groupsv4joinpermission(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag recentStickers = 26; + bool has_recentstickers() const; + private: + bool _internal_has_recentstickers() const; + public: + void clear_recentstickers(); + ::proto::WebFeatures_WebFeaturesFlag recentstickers() const; + void set_recentstickers(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_recentstickers() const; + void _internal_set_recentstickers(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag catalog = 27; + bool has_catalog() const; + private: + bool _internal_has_catalog() const; + public: + void clear_catalog(); + ::proto::WebFeatures_WebFeaturesFlag catalog() const; + void set_catalog(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_catalog() const; + void _internal_set_catalog(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag starredStickers = 28; + bool has_starredstickers() const; + private: + bool _internal_has_starredstickers() const; + public: + void clear_starredstickers(); + ::proto::WebFeatures_WebFeaturesFlag starredstickers() const; + void set_starredstickers(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_starredstickers() const; + void _internal_set_starredstickers(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag voipGroupCall = 29; + bool has_voipgroupcall() const; + private: + bool _internal_has_voipgroupcall() const; + public: + void clear_voipgroupcall(); + ::proto::WebFeatures_WebFeaturesFlag voipgroupcall() const; + void set_voipgroupcall(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_voipgroupcall() const; + void _internal_set_voipgroupcall(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag templateMessage = 30; + bool has_templatemessage() const; + private: + bool _internal_has_templatemessage() const; + public: + void clear_templatemessage(); + ::proto::WebFeatures_WebFeaturesFlag templatemessage() const; + void set_templatemessage(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_templatemessage() const; + void _internal_set_templatemessage(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag templateMessageInteractivity = 31; + bool has_templatemessageinteractivity() const; + private: + bool _internal_has_templatemessageinteractivity() const; + public: + void clear_templatemessageinteractivity(); + ::proto::WebFeatures_WebFeaturesFlag templatemessageinteractivity() const; + void set_templatemessageinteractivity(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_templatemessageinteractivity() const; + void _internal_set_templatemessageinteractivity(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag ephemeralMessages = 32; + bool has_ephemeralmessages() const; + private: + bool _internal_has_ephemeralmessages() const; + public: + void clear_ephemeralmessages(); + ::proto::WebFeatures_WebFeaturesFlag ephemeralmessages() const; + void set_ephemeralmessages(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_ephemeralmessages() const; + void _internal_set_ephemeralmessages(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag e2ENotificationSync = 33; + bool has_e2enotificationsync() const; + private: + bool _internal_has_e2enotificationsync() const; + public: + void clear_e2enotificationsync(); + ::proto::WebFeatures_WebFeaturesFlag e2enotificationsync() const; + void set_e2enotificationsync(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_e2enotificationsync() const; + void _internal_set_e2enotificationsync(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag recentStickersV2 = 34; + bool has_recentstickersv2() const; + private: + bool _internal_has_recentstickersv2() const; + public: + void clear_recentstickersv2(); + ::proto::WebFeatures_WebFeaturesFlag recentstickersv2() const; + void set_recentstickersv2(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_recentstickersv2() const; + void _internal_set_recentstickersv2(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag syncdRelease1 = 35; + bool has_syncdrelease1() const; + private: + bool _internal_has_syncdrelease1() const; + public: + void clear_syncdrelease1(); + ::proto::WebFeatures_WebFeaturesFlag syncdrelease1() const; + void set_syncdrelease1(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_syncdrelease1() const; + void _internal_set_syncdrelease1(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag recentStickersV3 = 36; + bool has_recentstickersv3() const; + private: + bool _internal_has_recentstickersv3() const; + public: + void clear_recentstickersv3(); + ::proto::WebFeatures_WebFeaturesFlag recentstickersv3() const; + void set_recentstickersv3(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_recentstickersv3() const; + void _internal_set_recentstickersv3(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag userNotice = 37; + bool has_usernotice() const; + private: + bool _internal_has_usernotice() const; + public: + void clear_usernotice(); + ::proto::WebFeatures_WebFeaturesFlag usernotice() const; + void set_usernotice(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_usernotice() const; + void _internal_set_usernotice(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag syncdRelease11 = 38; + bool has_syncdrelease11() const; + private: + bool _internal_has_syncdrelease11() const; + public: + void clear_syncdrelease11(); + ::proto::WebFeatures_WebFeaturesFlag syncdrelease11() const; + void set_syncdrelease11(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_syncdrelease11() const; + void _internal_set_syncdrelease11(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag support = 39; + bool has_support() const; + private: + bool _internal_has_support() const; + public: + void clear_support(); + ::proto::WebFeatures_WebFeaturesFlag support() const; + void set_support(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_support() const; + void _internal_set_support(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag groupUiiCleanup = 40; + bool has_groupuiicleanup() const; + private: + bool _internal_has_groupuiicleanup() const; + public: + void clear_groupuiicleanup(); + ::proto::WebFeatures_WebFeaturesFlag groupuiicleanup() const; + void set_groupuiicleanup(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_groupuiicleanup() const; + void _internal_set_groupuiicleanup(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag groupDogfoodingInternalOnly = 41; + bool has_groupdogfoodinginternalonly() const; + private: + bool _internal_has_groupdogfoodinginternalonly() const; + public: + void clear_groupdogfoodinginternalonly(); + ::proto::WebFeatures_WebFeaturesFlag groupdogfoodinginternalonly() const; + void set_groupdogfoodinginternalonly(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_groupdogfoodinginternalonly() const; + void _internal_set_groupdogfoodinginternalonly(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // optional .proto.WebFeatures.WebFeaturesFlag settingsSync = 42; + bool has_settingssync() const; + private: + bool _internal_has_settingssync() const; + public: + void clear_settingssync(); + ::proto::WebFeatures_WebFeaturesFlag settingssync() const; + void set_settingssync(::proto::WebFeatures_WebFeaturesFlag value); + private: + ::proto::WebFeatures_WebFeaturesFlag _internal_settingssync() const; + void _internal_set_settingssync(::proto::WebFeatures_WebFeaturesFlag value); + public: + + // @@protoc_insertion_point(class_scope:proto.WebFeatures) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<2> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + int labelsdisplay_; + int voipindividualoutgoing_; + int groupsv3_; + int groupsv3create_; + int changenumberv2_; + int querystatusv3thumbnail_; + int livelocations_; + int queryvname_; + int voipindividualincoming_; + int quickrepliesquery_; + int payments_; + int stickerpackquery_; + int livelocationsfinal_; + int labelsedit_; + int mediaupload_; + int mediauploadrichquickreplies_; + int vnamev2_; + int videoplaybackurl_; + int statusranking_; + int voipindividualvideo_; + int thirdpartystickers_; + int frequentlyforwardedsetting_; + int groupsv4joinpermission_; + int recentstickers_; + int catalog_; + int starredstickers_; + int voipgroupcall_; + int templatemessage_; + int templatemessageinteractivity_; + int ephemeralmessages_; + int e2enotificationsync_; + int recentstickersv2_; + int syncdrelease1_; + int recentstickersv3_; + int usernotice_; + int syncdrelease11_; + int support_; + int groupuiicleanup_; + int groupdogfoodinginternalonly_; + int settingssync_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class NotificationMessageInfo PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.NotificationMessageInfo) */ { + public: + inline NotificationMessageInfo() : NotificationMessageInfo(nullptr) {} + virtual ~NotificationMessageInfo(); + explicit constexpr NotificationMessageInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + NotificationMessageInfo(const NotificationMessageInfo& from); + NotificationMessageInfo(NotificationMessageInfo&& from) noexcept + : NotificationMessageInfo() { + *this = ::std::move(from); + } + + inline NotificationMessageInfo& operator=(const NotificationMessageInfo& from) { + CopyFrom(from); + return *this; + } + inline NotificationMessageInfo& operator=(NotificationMessageInfo&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const NotificationMessageInfo& default_instance() { + return *internal_default_instance(); + } + static inline const NotificationMessageInfo* internal_default_instance() { + return reinterpret_cast<const NotificationMessageInfo*>( + &_NotificationMessageInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 75; + + friend void swap(NotificationMessageInfo& a, NotificationMessageInfo& b) { + a.Swap(&b); + } + inline void Swap(NotificationMessageInfo* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(NotificationMessageInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline NotificationMessageInfo* New() const final { + return CreateMaybeMessage<NotificationMessageInfo>(nullptr); + } + + NotificationMessageInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<NotificationMessageInfo>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const NotificationMessageInfo& from); + void MergeFrom(const NotificationMessageInfo& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(NotificationMessageInfo* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.NotificationMessageInfo"; + } + protected: + explicit NotificationMessageInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kParticipantFieldNumber = 4, + kKeyFieldNumber = 1, + kMessageFieldNumber = 2, + kMessageTimestampFieldNumber = 3, + }; + // optional string participant = 4; + bool has_participant() const; + private: + bool _internal_has_participant() const; + public: + void clear_participant(); + const std::string& participant() const; + void set_participant(const std::string& value); + void set_participant(std::string&& value); + void set_participant(const char* value); + void set_participant(const char* value, size_t size); + std::string* mutable_participant(); + std::string* release_participant(); + void set_allocated_participant(std::string* participant); + private: + const std::string& _internal_participant() const; + void _internal_set_participant(const std::string& value); + std::string* _internal_mutable_participant(); + public: + + // optional .proto.MessageKey key = 1; + bool has_key() const; + private: + bool _internal_has_key() const; + public: + void clear_key(); + const ::proto::MessageKey& key() const; + ::proto::MessageKey* release_key(); + ::proto::MessageKey* mutable_key(); + void set_allocated_key(::proto::MessageKey* key); + private: + const ::proto::MessageKey& _internal_key() const; + ::proto::MessageKey* _internal_mutable_key(); + public: + void unsafe_arena_set_allocated_key( + ::proto::MessageKey* key); + ::proto::MessageKey* unsafe_arena_release_key(); + + // optional .proto.Message message = 2; + bool has_message() const; + private: + bool _internal_has_message() const; + public: + void clear_message(); + const ::proto::Message& message() const; + ::proto::Message* release_message(); + ::proto::Message* mutable_message(); + void set_allocated_message(::proto::Message* message); + private: + const ::proto::Message& _internal_message() const; + ::proto::Message* _internal_mutable_message(); + public: + void unsafe_arena_set_allocated_message( + ::proto::Message* message); + ::proto::Message* unsafe_arena_release_message(); + + // optional uint64 messageTimestamp = 3; + bool has_messagetimestamp() const; + private: + bool _internal_has_messagetimestamp() const; + public: + void clear_messagetimestamp(); + ::PROTOBUF_NAMESPACE_ID::uint64 messagetimestamp() const; + void set_messagetimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_messagetimestamp() const; + void _internal_set_messagetimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // @@protoc_insertion_point(class_scope:proto.NotificationMessageInfo) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr participant_; + ::proto::MessageKey* key_; + ::proto::Message* message_; + ::PROTOBUF_NAMESPACE_ID::uint64 messagetimestamp_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class WebNotificationsInfo PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.WebNotificationsInfo) */ { + public: + inline WebNotificationsInfo() : WebNotificationsInfo(nullptr) {} + virtual ~WebNotificationsInfo(); + explicit constexpr WebNotificationsInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + WebNotificationsInfo(const WebNotificationsInfo& from); + WebNotificationsInfo(WebNotificationsInfo&& from) noexcept + : WebNotificationsInfo() { + *this = ::std::move(from); + } + + inline WebNotificationsInfo& operator=(const WebNotificationsInfo& from) { + CopyFrom(from); + return *this; + } + inline WebNotificationsInfo& operator=(WebNotificationsInfo&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const WebNotificationsInfo& default_instance() { + return *internal_default_instance(); + } + static inline const WebNotificationsInfo* internal_default_instance() { + return reinterpret_cast<const WebNotificationsInfo*>( + &_WebNotificationsInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 76; + + friend void swap(WebNotificationsInfo& a, WebNotificationsInfo& b) { + a.Swap(&b); + } + inline void Swap(WebNotificationsInfo* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(WebNotificationsInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline WebNotificationsInfo* New() const final { + return CreateMaybeMessage<WebNotificationsInfo>(nullptr); + } + + WebNotificationsInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<WebNotificationsInfo>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const WebNotificationsInfo& from); + void MergeFrom(const WebNotificationsInfo& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WebNotificationsInfo* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.WebNotificationsInfo"; + } + protected: + explicit WebNotificationsInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kNotifyMessagesFieldNumber = 5, + kTimestampFieldNumber = 2, + kUnreadChatsFieldNumber = 3, + kNotifyMessageCountFieldNumber = 4, + }; + // repeated .proto.WebMessageInfo notifyMessages = 5; + int notifymessages_size() const; + private: + int _internal_notifymessages_size() const; + public: + void clear_notifymessages(); + ::proto::WebMessageInfo* mutable_notifymessages(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::WebMessageInfo >* + mutable_notifymessages(); + private: + const ::proto::WebMessageInfo& _internal_notifymessages(int index) const; + ::proto::WebMessageInfo* _internal_add_notifymessages(); + public: + const ::proto::WebMessageInfo& notifymessages(int index) const; + ::proto::WebMessageInfo* add_notifymessages(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::WebMessageInfo >& + notifymessages() const; + + // optional uint64 timestamp = 2; + bool has_timestamp() const; + private: + bool _internal_has_timestamp() const; + public: + void clear_timestamp(); + ::PROTOBUF_NAMESPACE_ID::uint64 timestamp() const; + void set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_timestamp() const; + void _internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // optional uint32 unreadChats = 3; + bool has_unreadchats() const; + private: + bool _internal_has_unreadchats() const; + public: + void clear_unreadchats(); + ::PROTOBUF_NAMESPACE_ID::uint32 unreadchats() const; + void set_unreadchats(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_unreadchats() const; + void _internal_set_unreadchats(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 notifyMessageCount = 4; + bool has_notifymessagecount() const; + private: + bool _internal_has_notifymessagecount() const; + public: + void clear_notifymessagecount(); + ::PROTOBUF_NAMESPACE_ID::uint32 notifymessagecount() const; + void set_notifymessagecount(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_notifymessagecount() const; + void _internal_set_notifymessagecount(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // @@protoc_insertion_point(class_scope:proto.WebNotificationsInfo) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::WebMessageInfo > notifymessages_; + ::PROTOBUF_NAMESPACE_ID::uint64 timestamp_; + ::PROTOBUF_NAMESPACE_ID::uint32 unreadchats_; + ::PROTOBUF_NAMESPACE_ID::uint32 notifymessagecount_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class PaymentInfo PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.PaymentInfo) */ { + public: + inline PaymentInfo() : PaymentInfo(nullptr) {} + virtual ~PaymentInfo(); + explicit constexpr PaymentInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PaymentInfo(const PaymentInfo& from); + PaymentInfo(PaymentInfo&& from) noexcept + : PaymentInfo() { + *this = ::std::move(from); + } + + inline PaymentInfo& operator=(const PaymentInfo& from) { + CopyFrom(from); + return *this; + } + inline PaymentInfo& operator=(PaymentInfo&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const PaymentInfo& default_instance() { + return *internal_default_instance(); + } + static inline const PaymentInfo* internal_default_instance() { + return reinterpret_cast<const PaymentInfo*>( + &_PaymentInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 77; + + friend void swap(PaymentInfo& a, PaymentInfo& b) { + a.Swap(&b); + } + inline void Swap(PaymentInfo* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PaymentInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline PaymentInfo* New() const final { + return CreateMaybeMessage<PaymentInfo>(nullptr); + } + + PaymentInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<PaymentInfo>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const PaymentInfo& from); + void MergeFrom(const PaymentInfo& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PaymentInfo* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.PaymentInfo"; + } + protected: + explicit PaymentInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + typedef PaymentInfo_PaymentInfoCurrency PaymentInfoCurrency; + static constexpr PaymentInfoCurrency UNKNOWN_CURRENCY = + PaymentInfo_PaymentInfoCurrency_UNKNOWN_CURRENCY; + static constexpr PaymentInfoCurrency INR = + PaymentInfo_PaymentInfoCurrency_INR; + static inline bool PaymentInfoCurrency_IsValid(int value) { + return PaymentInfo_PaymentInfoCurrency_IsValid(value); + } + static constexpr PaymentInfoCurrency PaymentInfoCurrency_MIN = + PaymentInfo_PaymentInfoCurrency_PaymentInfoCurrency_MIN; + static constexpr PaymentInfoCurrency PaymentInfoCurrency_MAX = + PaymentInfo_PaymentInfoCurrency_PaymentInfoCurrency_MAX; + static constexpr int PaymentInfoCurrency_ARRAYSIZE = + PaymentInfo_PaymentInfoCurrency_PaymentInfoCurrency_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + PaymentInfoCurrency_descriptor() { + return PaymentInfo_PaymentInfoCurrency_descriptor(); + } + template<typename T> + static inline const std::string& PaymentInfoCurrency_Name(T enum_t_value) { + static_assert(::std::is_same<T, PaymentInfoCurrency>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function PaymentInfoCurrency_Name."); + return PaymentInfo_PaymentInfoCurrency_Name(enum_t_value); + } + static inline bool PaymentInfoCurrency_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + PaymentInfoCurrency* value) { + return PaymentInfo_PaymentInfoCurrency_Parse(name, value); + } + + typedef PaymentInfo_PaymentInfoStatus PaymentInfoStatus; + static constexpr PaymentInfoStatus UNKNOWN_STATUS = + PaymentInfo_PaymentInfoStatus_UNKNOWN_STATUS; + static constexpr PaymentInfoStatus PROCESSING = + PaymentInfo_PaymentInfoStatus_PROCESSING; + static constexpr PaymentInfoStatus SENT = + PaymentInfo_PaymentInfoStatus_SENT; + static constexpr PaymentInfoStatus NEED_TO_ACCEPT = + PaymentInfo_PaymentInfoStatus_NEED_TO_ACCEPT; + static constexpr PaymentInfoStatus COMPLETE = + PaymentInfo_PaymentInfoStatus_COMPLETE; + static constexpr PaymentInfoStatus COULD_NOT_COMPLETE = + PaymentInfo_PaymentInfoStatus_COULD_NOT_COMPLETE; + static constexpr PaymentInfoStatus REFUNDED = + PaymentInfo_PaymentInfoStatus_REFUNDED; + static constexpr PaymentInfoStatus EXPIRED = + PaymentInfo_PaymentInfoStatus_EXPIRED; + static constexpr PaymentInfoStatus REJECTED = + PaymentInfo_PaymentInfoStatus_REJECTED; + static constexpr PaymentInfoStatus CANCELLED = + PaymentInfo_PaymentInfoStatus_CANCELLED; + static constexpr PaymentInfoStatus WAITING_FOR_PAYER = + PaymentInfo_PaymentInfoStatus_WAITING_FOR_PAYER; + static constexpr PaymentInfoStatus WAITING = + PaymentInfo_PaymentInfoStatus_WAITING; + static inline bool PaymentInfoStatus_IsValid(int value) { + return PaymentInfo_PaymentInfoStatus_IsValid(value); + } + static constexpr PaymentInfoStatus PaymentInfoStatus_MIN = + PaymentInfo_PaymentInfoStatus_PaymentInfoStatus_MIN; + static constexpr PaymentInfoStatus PaymentInfoStatus_MAX = + PaymentInfo_PaymentInfoStatus_PaymentInfoStatus_MAX; + static constexpr int PaymentInfoStatus_ARRAYSIZE = + PaymentInfo_PaymentInfoStatus_PaymentInfoStatus_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + PaymentInfoStatus_descriptor() { + return PaymentInfo_PaymentInfoStatus_descriptor(); + } + template<typename T> + static inline const std::string& PaymentInfoStatus_Name(T enum_t_value) { + static_assert(::std::is_same<T, PaymentInfoStatus>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function PaymentInfoStatus_Name."); + return PaymentInfo_PaymentInfoStatus_Name(enum_t_value); + } + static inline bool PaymentInfoStatus_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + PaymentInfoStatus* value) { + return PaymentInfo_PaymentInfoStatus_Parse(name, value); + } + + typedef PaymentInfo_PaymentInfoTxnStatus PaymentInfoTxnStatus; + static constexpr PaymentInfoTxnStatus UNKNOWN = + PaymentInfo_PaymentInfoTxnStatus_UNKNOWN; + static constexpr PaymentInfoTxnStatus PENDING_SETUP = + PaymentInfo_PaymentInfoTxnStatus_PENDING_SETUP; + static constexpr PaymentInfoTxnStatus PENDING_RECEIVER_SETUP = + PaymentInfo_PaymentInfoTxnStatus_PENDING_RECEIVER_SETUP; + static constexpr PaymentInfoTxnStatus INIT = + PaymentInfo_PaymentInfoTxnStatus_INIT; + static constexpr PaymentInfoTxnStatus SUCCESS = + PaymentInfo_PaymentInfoTxnStatus_SUCCESS; + static constexpr PaymentInfoTxnStatus COMPLETED = + PaymentInfo_PaymentInfoTxnStatus_COMPLETED; + static constexpr PaymentInfoTxnStatus FAILED = + PaymentInfo_PaymentInfoTxnStatus_FAILED; + static constexpr PaymentInfoTxnStatus FAILED_RISK = + PaymentInfo_PaymentInfoTxnStatus_FAILED_RISK; + static constexpr PaymentInfoTxnStatus FAILED_PROCESSING = + PaymentInfo_PaymentInfoTxnStatus_FAILED_PROCESSING; + static constexpr PaymentInfoTxnStatus FAILED_RECEIVER_PROCESSING = + PaymentInfo_PaymentInfoTxnStatus_FAILED_RECEIVER_PROCESSING; + static constexpr PaymentInfoTxnStatus FAILED_DA = + PaymentInfo_PaymentInfoTxnStatus_FAILED_DA; + static constexpr PaymentInfoTxnStatus FAILED_DA_FINAL = + PaymentInfo_PaymentInfoTxnStatus_FAILED_DA_FINAL; + static constexpr PaymentInfoTxnStatus REFUNDED_TXN = + PaymentInfo_PaymentInfoTxnStatus_REFUNDED_TXN; + static constexpr PaymentInfoTxnStatus REFUND_FAILED = + PaymentInfo_PaymentInfoTxnStatus_REFUND_FAILED; + static constexpr PaymentInfoTxnStatus REFUND_FAILED_PROCESSING = + PaymentInfo_PaymentInfoTxnStatus_REFUND_FAILED_PROCESSING; + static constexpr PaymentInfoTxnStatus REFUND_FAILED_DA = + PaymentInfo_PaymentInfoTxnStatus_REFUND_FAILED_DA; + static constexpr PaymentInfoTxnStatus EXPIRED_TXN = + PaymentInfo_PaymentInfoTxnStatus_EXPIRED_TXN; + static constexpr PaymentInfoTxnStatus AUTH_CANCELED = + PaymentInfo_PaymentInfoTxnStatus_AUTH_CANCELED; + static constexpr PaymentInfoTxnStatus AUTH_CANCEL_FAILED_PROCESSING = + PaymentInfo_PaymentInfoTxnStatus_AUTH_CANCEL_FAILED_PROCESSING; + static constexpr PaymentInfoTxnStatus AUTH_CANCEL_FAILED = + PaymentInfo_PaymentInfoTxnStatus_AUTH_CANCEL_FAILED; + static constexpr PaymentInfoTxnStatus COLLECT_INIT = + PaymentInfo_PaymentInfoTxnStatus_COLLECT_INIT; + static constexpr PaymentInfoTxnStatus COLLECT_SUCCESS = + PaymentInfo_PaymentInfoTxnStatus_COLLECT_SUCCESS; + static constexpr PaymentInfoTxnStatus COLLECT_FAILED = + PaymentInfo_PaymentInfoTxnStatus_COLLECT_FAILED; + static constexpr PaymentInfoTxnStatus COLLECT_FAILED_RISK = + PaymentInfo_PaymentInfoTxnStatus_COLLECT_FAILED_RISK; + static constexpr PaymentInfoTxnStatus COLLECT_REJECTED = + PaymentInfo_PaymentInfoTxnStatus_COLLECT_REJECTED; + static constexpr PaymentInfoTxnStatus COLLECT_EXPIRED = + PaymentInfo_PaymentInfoTxnStatus_COLLECT_EXPIRED; + static constexpr PaymentInfoTxnStatus COLLECT_CANCELED = + PaymentInfo_PaymentInfoTxnStatus_COLLECT_CANCELED; + static constexpr PaymentInfoTxnStatus COLLECT_CANCELLING = + PaymentInfo_PaymentInfoTxnStatus_COLLECT_CANCELLING; + static inline bool PaymentInfoTxnStatus_IsValid(int value) { + return PaymentInfo_PaymentInfoTxnStatus_IsValid(value); + } + static constexpr PaymentInfoTxnStatus PaymentInfoTxnStatus_MIN = + PaymentInfo_PaymentInfoTxnStatus_PaymentInfoTxnStatus_MIN; + static constexpr PaymentInfoTxnStatus PaymentInfoTxnStatus_MAX = + PaymentInfo_PaymentInfoTxnStatus_PaymentInfoTxnStatus_MAX; + static constexpr int PaymentInfoTxnStatus_ARRAYSIZE = + PaymentInfo_PaymentInfoTxnStatus_PaymentInfoTxnStatus_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + PaymentInfoTxnStatus_descriptor() { + return PaymentInfo_PaymentInfoTxnStatus_descriptor(); + } + template<typename T> + static inline const std::string& PaymentInfoTxnStatus_Name(T enum_t_value) { + static_assert(::std::is_same<T, PaymentInfoTxnStatus>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function PaymentInfoTxnStatus_Name."); + return PaymentInfo_PaymentInfoTxnStatus_Name(enum_t_value); + } + static inline bool PaymentInfoTxnStatus_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + PaymentInfoTxnStatus* value) { + return PaymentInfo_PaymentInfoTxnStatus_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kReceiverJidFieldNumber = 3, + kCurrencyFieldNumber = 9, + kRequestMessageKeyFieldNumber = 6, + kPrimaryAmountFieldNumber = 12, + kExchangeAmountFieldNumber = 13, + kAmount1000FieldNumber = 2, + kCurrencyDeprecatedFieldNumber = 1, + kStatusFieldNumber = 4, + kTransactionTimestampFieldNumber = 5, + kExpiryTimestampFieldNumber = 7, + kFutureproofedFieldNumber = 8, + kUseNoviFiatFormatFieldNumber = 11, + kTxnStatusFieldNumber = 10, + }; + // optional string receiverJid = 3; + bool has_receiverjid() const; + private: + bool _internal_has_receiverjid() const; + public: + void clear_receiverjid(); + const std::string& receiverjid() const; + void set_receiverjid(const std::string& value); + void set_receiverjid(std::string&& value); + void set_receiverjid(const char* value); + void set_receiverjid(const char* value, size_t size); + std::string* mutable_receiverjid(); + std::string* release_receiverjid(); + void set_allocated_receiverjid(std::string* receiverjid); + private: + const std::string& _internal_receiverjid() const; + void _internal_set_receiverjid(const std::string& value); + std::string* _internal_mutable_receiverjid(); + public: + + // optional string currency = 9; + bool has_currency() const; + private: + bool _internal_has_currency() const; + public: + void clear_currency(); + const std::string& currency() const; + void set_currency(const std::string& value); + void set_currency(std::string&& value); + void set_currency(const char* value); + void set_currency(const char* value, size_t size); + std::string* mutable_currency(); + std::string* release_currency(); + void set_allocated_currency(std::string* currency); + private: + const std::string& _internal_currency() const; + void _internal_set_currency(const std::string& value); + std::string* _internal_mutable_currency(); + public: + + // optional .proto.MessageKey requestMessageKey = 6; + bool has_requestmessagekey() const; + private: + bool _internal_has_requestmessagekey() const; + public: + void clear_requestmessagekey(); + const ::proto::MessageKey& requestmessagekey() const; + ::proto::MessageKey* release_requestmessagekey(); + ::proto::MessageKey* mutable_requestmessagekey(); + void set_allocated_requestmessagekey(::proto::MessageKey* requestmessagekey); + private: + const ::proto::MessageKey& _internal_requestmessagekey() const; + ::proto::MessageKey* _internal_mutable_requestmessagekey(); + public: + void unsafe_arena_set_allocated_requestmessagekey( + ::proto::MessageKey* requestmessagekey); + ::proto::MessageKey* unsafe_arena_release_requestmessagekey(); + + // optional .proto.PaymentMoney primaryAmount = 12; + bool has_primaryamount() const; + private: + bool _internal_has_primaryamount() const; + public: + void clear_primaryamount(); + const ::proto::PaymentMoney& primaryamount() const; + ::proto::PaymentMoney* release_primaryamount(); + ::proto::PaymentMoney* mutable_primaryamount(); + void set_allocated_primaryamount(::proto::PaymentMoney* primaryamount); + private: + const ::proto::PaymentMoney& _internal_primaryamount() const; + ::proto::PaymentMoney* _internal_mutable_primaryamount(); + public: + void unsafe_arena_set_allocated_primaryamount( + ::proto::PaymentMoney* primaryamount); + ::proto::PaymentMoney* unsafe_arena_release_primaryamount(); + + // optional .proto.PaymentMoney exchangeAmount = 13; + bool has_exchangeamount() const; + private: + bool _internal_has_exchangeamount() const; + public: + void clear_exchangeamount(); + const ::proto::PaymentMoney& exchangeamount() const; + ::proto::PaymentMoney* release_exchangeamount(); + ::proto::PaymentMoney* mutable_exchangeamount(); + void set_allocated_exchangeamount(::proto::PaymentMoney* exchangeamount); + private: + const ::proto::PaymentMoney& _internal_exchangeamount() const; + ::proto::PaymentMoney* _internal_mutable_exchangeamount(); + public: + void unsafe_arena_set_allocated_exchangeamount( + ::proto::PaymentMoney* exchangeamount); + ::proto::PaymentMoney* unsafe_arena_release_exchangeamount(); + + // optional uint64 amount1000 = 2; + bool has_amount1000() const; + private: + bool _internal_has_amount1000() const; + public: + void clear_amount1000(); + ::PROTOBUF_NAMESPACE_ID::uint64 amount1000() const; + void set_amount1000(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_amount1000() const; + void _internal_set_amount1000(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // optional .proto.PaymentInfo.PaymentInfoCurrency currencyDeprecated = 1; + bool has_currencydeprecated() const; + private: + bool _internal_has_currencydeprecated() const; + public: + void clear_currencydeprecated(); + ::proto::PaymentInfo_PaymentInfoCurrency currencydeprecated() const; + void set_currencydeprecated(::proto::PaymentInfo_PaymentInfoCurrency value); + private: + ::proto::PaymentInfo_PaymentInfoCurrency _internal_currencydeprecated() const; + void _internal_set_currencydeprecated(::proto::PaymentInfo_PaymentInfoCurrency value); + public: + + // optional .proto.PaymentInfo.PaymentInfoStatus status = 4; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + ::proto::PaymentInfo_PaymentInfoStatus status() const; + void set_status(::proto::PaymentInfo_PaymentInfoStatus value); + private: + ::proto::PaymentInfo_PaymentInfoStatus _internal_status() const; + void _internal_set_status(::proto::PaymentInfo_PaymentInfoStatus value); + public: + + // optional uint64 transactionTimestamp = 5; + bool has_transactiontimestamp() const; + private: + bool _internal_has_transactiontimestamp() const; + public: + void clear_transactiontimestamp(); + ::PROTOBUF_NAMESPACE_ID::uint64 transactiontimestamp() const; + void set_transactiontimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_transactiontimestamp() const; + void _internal_set_transactiontimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // optional uint64 expiryTimestamp = 7; + bool has_expirytimestamp() const; + private: + bool _internal_has_expirytimestamp() const; + public: + void clear_expirytimestamp(); + ::PROTOBUF_NAMESPACE_ID::uint64 expirytimestamp() const; + void set_expirytimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_expirytimestamp() const; + void _internal_set_expirytimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // optional bool futureproofed = 8; + bool has_futureproofed() const; + private: + bool _internal_has_futureproofed() const; + public: + void clear_futureproofed(); + bool futureproofed() const; + void set_futureproofed(bool value); + private: + bool _internal_futureproofed() const; + void _internal_set_futureproofed(bool value); + public: + + // optional bool useNoviFiatFormat = 11; + bool has_usenovifiatformat() const; + private: + bool _internal_has_usenovifiatformat() const; + public: + void clear_usenovifiatformat(); + bool usenovifiatformat() const; + void set_usenovifiatformat(bool value); + private: + bool _internal_usenovifiatformat() const; + void _internal_set_usenovifiatformat(bool value); + public: + + // optional .proto.PaymentInfo.PaymentInfoTxnStatus txnStatus = 10; + bool has_txnstatus() const; + private: + bool _internal_has_txnstatus() const; + public: + void clear_txnstatus(); + ::proto::PaymentInfo_PaymentInfoTxnStatus txnstatus() const; + void set_txnstatus(::proto::PaymentInfo_PaymentInfoTxnStatus value); + private: + ::proto::PaymentInfo_PaymentInfoTxnStatus _internal_txnstatus() const; + void _internal_set_txnstatus(::proto::PaymentInfo_PaymentInfoTxnStatus value); + public: + + // @@protoc_insertion_point(class_scope:proto.PaymentInfo) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr receiverjid_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr currency_; + ::proto::MessageKey* requestmessagekey_; + ::proto::PaymentMoney* primaryamount_; + ::proto::PaymentMoney* exchangeamount_; + ::PROTOBUF_NAMESPACE_ID::uint64 amount1000_; + int currencydeprecated_; + int status_; + ::PROTOBUF_NAMESPACE_ID::uint64 transactiontimestamp_; + ::PROTOBUF_NAMESPACE_ID::uint64 expirytimestamp_; + bool futureproofed_; + bool usenovifiatformat_; + int txnstatus_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// ------------------------------------------------------------------- + +class WebMessageInfo PROTOBUF_FINAL : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.WebMessageInfo) */ { + public: + inline WebMessageInfo() : WebMessageInfo(nullptr) {} + virtual ~WebMessageInfo(); + explicit constexpr WebMessageInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + WebMessageInfo(const WebMessageInfo& from); + WebMessageInfo(WebMessageInfo&& from) noexcept + : WebMessageInfo() { + *this = ::std::move(from); + } + + inline WebMessageInfo& operator=(const WebMessageInfo& from) { + CopyFrom(from); + return *this; + } + inline WebMessageInfo& operator=(WebMessageInfo&& from) noexcept { + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { + return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); + } + inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { + return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const WebMessageInfo& default_instance() { + return *internal_default_instance(); + } + static inline const WebMessageInfo* internal_default_instance() { + return reinterpret_cast<const WebMessageInfo*>( + &_WebMessageInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 78; + + friend void swap(WebMessageInfo& a, WebMessageInfo& b) { + a.Swap(&b); + } + inline void Swap(WebMessageInfo* other) { + if (other == this) return; + if (GetArena() == other->GetArena()) { + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(WebMessageInfo* other) { + if (other == this) return; + GOOGLE_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline WebMessageInfo* New() const final { + return CreateMaybeMessage<WebMessageInfo>(nullptr); + } + + WebMessageInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage<WebMessageInfo>(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const WebMessageInfo& from); + void MergeFrom(const WebMessageInfo& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WebMessageInfo* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "proto.WebMessageInfo"; + } + protected: + explicit WebMessageInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + return ::descriptor_table_pmsg_2eproto_metadata_getter(kIndexInFileMessages); + } + + public: + + // nested types ---------------------------------------------------- + + typedef WebMessageInfo_WebMessageInfoStatus WebMessageInfoStatus; + static constexpr WebMessageInfoStatus ERROR = + WebMessageInfo_WebMessageInfoStatus_ERROR; + static constexpr WebMessageInfoStatus PENDING = + WebMessageInfo_WebMessageInfoStatus_PENDING; + static constexpr WebMessageInfoStatus SERVER_ACK = + WebMessageInfo_WebMessageInfoStatus_SERVER_ACK; + static constexpr WebMessageInfoStatus DELIVERY_ACK = + WebMessageInfo_WebMessageInfoStatus_DELIVERY_ACK; + static constexpr WebMessageInfoStatus READ = + WebMessageInfo_WebMessageInfoStatus_READ; + static constexpr WebMessageInfoStatus PLAYED = + WebMessageInfo_WebMessageInfoStatus_PLAYED; + static inline bool WebMessageInfoStatus_IsValid(int value) { + return WebMessageInfo_WebMessageInfoStatus_IsValid(value); + } + static constexpr WebMessageInfoStatus WebMessageInfoStatus_MIN = + WebMessageInfo_WebMessageInfoStatus_WebMessageInfoStatus_MIN; + static constexpr WebMessageInfoStatus WebMessageInfoStatus_MAX = + WebMessageInfo_WebMessageInfoStatus_WebMessageInfoStatus_MAX; + static constexpr int WebMessageInfoStatus_ARRAYSIZE = + WebMessageInfo_WebMessageInfoStatus_WebMessageInfoStatus_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + WebMessageInfoStatus_descriptor() { + return WebMessageInfo_WebMessageInfoStatus_descriptor(); + } + template<typename T> + static inline const std::string& WebMessageInfoStatus_Name(T enum_t_value) { + static_assert(::std::is_same<T, WebMessageInfoStatus>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function WebMessageInfoStatus_Name."); + return WebMessageInfo_WebMessageInfoStatus_Name(enum_t_value); + } + static inline bool WebMessageInfoStatus_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + WebMessageInfoStatus* value) { + return WebMessageInfo_WebMessageInfoStatus_Parse(name, value); + } + + typedef WebMessageInfo_WebMessageInfoStubType WebMessageInfoStubType; + static constexpr WebMessageInfoStubType UNKNOWN = + WebMessageInfo_WebMessageInfoStubType_UNKNOWN; + static constexpr WebMessageInfoStubType REVOKE = + WebMessageInfo_WebMessageInfoStubType_REVOKE; + static constexpr WebMessageInfoStubType CIPHERTEXT = + WebMessageInfo_WebMessageInfoStubType_CIPHERTEXT; + static constexpr WebMessageInfoStubType FUTUREPROOF = + WebMessageInfo_WebMessageInfoStubType_FUTUREPROOF; + static constexpr WebMessageInfoStubType NON_VERIFIED_TRANSITION = + WebMessageInfo_WebMessageInfoStubType_NON_VERIFIED_TRANSITION; + static constexpr WebMessageInfoStubType UNVERIFIED_TRANSITION = + WebMessageInfo_WebMessageInfoStubType_UNVERIFIED_TRANSITION; + static constexpr WebMessageInfoStubType VERIFIED_TRANSITION = + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION; + static constexpr WebMessageInfoStubType VERIFIED_LOW_UNKNOWN = + WebMessageInfo_WebMessageInfoStubType_VERIFIED_LOW_UNKNOWN; + static constexpr WebMessageInfoStubType VERIFIED_HIGH = + WebMessageInfo_WebMessageInfoStubType_VERIFIED_HIGH; + static constexpr WebMessageInfoStubType VERIFIED_INITIAL_UNKNOWN = + WebMessageInfo_WebMessageInfoStubType_VERIFIED_INITIAL_UNKNOWN; + static constexpr WebMessageInfoStubType VERIFIED_INITIAL_LOW = + WebMessageInfo_WebMessageInfoStubType_VERIFIED_INITIAL_LOW; + static constexpr WebMessageInfoStubType VERIFIED_INITIAL_HIGH = + WebMessageInfo_WebMessageInfoStubType_VERIFIED_INITIAL_HIGH; + static constexpr WebMessageInfoStubType VERIFIED_TRANSITION_ANY_TO_NONE = + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION_ANY_TO_NONE; + static constexpr WebMessageInfoStubType VERIFIED_TRANSITION_ANY_TO_HIGH = + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION_ANY_TO_HIGH; + static constexpr WebMessageInfoStubType VERIFIED_TRANSITION_HIGH_TO_LOW = + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION_HIGH_TO_LOW; + static constexpr WebMessageInfoStubType VERIFIED_TRANSITION_HIGH_TO_UNKNOWN = + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION_HIGH_TO_UNKNOWN; + static constexpr WebMessageInfoStubType VERIFIED_TRANSITION_UNKNOWN_TO_LOW = + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION_UNKNOWN_TO_LOW; + static constexpr WebMessageInfoStubType VERIFIED_TRANSITION_LOW_TO_UNKNOWN = + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION_LOW_TO_UNKNOWN; + static constexpr WebMessageInfoStubType VERIFIED_TRANSITION_NONE_TO_LOW = + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION_NONE_TO_LOW; + static constexpr WebMessageInfoStubType VERIFIED_TRANSITION_NONE_TO_UNKNOWN = + WebMessageInfo_WebMessageInfoStubType_VERIFIED_TRANSITION_NONE_TO_UNKNOWN; + static constexpr WebMessageInfoStubType GROUP_CREATE = + WebMessageInfo_WebMessageInfoStubType_GROUP_CREATE; + static constexpr WebMessageInfoStubType GROUP_CHANGE_SUBJECT = + WebMessageInfo_WebMessageInfoStubType_GROUP_CHANGE_SUBJECT; + static constexpr WebMessageInfoStubType GROUP_CHANGE_ICON = + WebMessageInfo_WebMessageInfoStubType_GROUP_CHANGE_ICON; + static constexpr WebMessageInfoStubType GROUP_CHANGE_INVITE_LINK = + WebMessageInfo_WebMessageInfoStubType_GROUP_CHANGE_INVITE_LINK; + static constexpr WebMessageInfoStubType GROUP_CHANGE_DESCRIPTION = + WebMessageInfo_WebMessageInfoStubType_GROUP_CHANGE_DESCRIPTION; + static constexpr WebMessageInfoStubType GROUP_CHANGE_RESTRICT = + WebMessageInfo_WebMessageInfoStubType_GROUP_CHANGE_RESTRICT; + static constexpr WebMessageInfoStubType GROUP_CHANGE_ANNOUNCE = + WebMessageInfo_WebMessageInfoStubType_GROUP_CHANGE_ANNOUNCE; + static constexpr WebMessageInfoStubType GROUP_PARTICIPANT_ADD = + WebMessageInfo_WebMessageInfoStubType_GROUP_PARTICIPANT_ADD; + static constexpr WebMessageInfoStubType GROUP_PARTICIPANT_REMOVE = + WebMessageInfo_WebMessageInfoStubType_GROUP_PARTICIPANT_REMOVE; + static constexpr WebMessageInfoStubType GROUP_PARTICIPANT_PROMOTE = + WebMessageInfo_WebMessageInfoStubType_GROUP_PARTICIPANT_PROMOTE; + static constexpr WebMessageInfoStubType GROUP_PARTICIPANT_DEMOTE = + WebMessageInfo_WebMessageInfoStubType_GROUP_PARTICIPANT_DEMOTE; + static constexpr WebMessageInfoStubType GROUP_PARTICIPANT_INVITE = + WebMessageInfo_WebMessageInfoStubType_GROUP_PARTICIPANT_INVITE; + static constexpr WebMessageInfoStubType GROUP_PARTICIPANT_LEAVE = + WebMessageInfo_WebMessageInfoStubType_GROUP_PARTICIPANT_LEAVE; + static constexpr WebMessageInfoStubType GROUP_PARTICIPANT_CHANGE_NUMBER = + WebMessageInfo_WebMessageInfoStubType_GROUP_PARTICIPANT_CHANGE_NUMBER; + static constexpr WebMessageInfoStubType BROADCAST_CREATE = + WebMessageInfo_WebMessageInfoStubType_BROADCAST_CREATE; + static constexpr WebMessageInfoStubType BROADCAST_ADD = + WebMessageInfo_WebMessageInfoStubType_BROADCAST_ADD; + static constexpr WebMessageInfoStubType BROADCAST_REMOVE = + WebMessageInfo_WebMessageInfoStubType_BROADCAST_REMOVE; + static constexpr WebMessageInfoStubType GENERIC_NOTIFICATION = + WebMessageInfo_WebMessageInfoStubType_GENERIC_NOTIFICATION; + static constexpr WebMessageInfoStubType E2E_IDENTITY_CHANGED = + WebMessageInfo_WebMessageInfoStubType_E2E_IDENTITY_CHANGED; + static constexpr WebMessageInfoStubType E2E_ENCRYPTED = + WebMessageInfo_WebMessageInfoStubType_E2E_ENCRYPTED; + static constexpr WebMessageInfoStubType CALL_MISSED_VOICE = + WebMessageInfo_WebMessageInfoStubType_CALL_MISSED_VOICE; + static constexpr WebMessageInfoStubType CALL_MISSED_VIDEO = + WebMessageInfo_WebMessageInfoStubType_CALL_MISSED_VIDEO; + static constexpr WebMessageInfoStubType INDIVIDUAL_CHANGE_NUMBER = + WebMessageInfo_WebMessageInfoStubType_INDIVIDUAL_CHANGE_NUMBER; + static constexpr WebMessageInfoStubType GROUP_DELETE = + WebMessageInfo_WebMessageInfoStubType_GROUP_DELETE; + static constexpr WebMessageInfoStubType GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE = + WebMessageInfo_WebMessageInfoStubType_GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE; + static constexpr WebMessageInfoStubType CALL_MISSED_GROUP_VOICE = + WebMessageInfo_WebMessageInfoStubType_CALL_MISSED_GROUP_VOICE; + static constexpr WebMessageInfoStubType CALL_MISSED_GROUP_VIDEO = + WebMessageInfo_WebMessageInfoStubType_CALL_MISSED_GROUP_VIDEO; + static constexpr WebMessageInfoStubType PAYMENT_CIPHERTEXT = + WebMessageInfo_WebMessageInfoStubType_PAYMENT_CIPHERTEXT; + static constexpr WebMessageInfoStubType PAYMENT_FUTUREPROOF = + WebMessageInfo_WebMessageInfoStubType_PAYMENT_FUTUREPROOF; + static constexpr WebMessageInfoStubType PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED = + WebMessageInfo_WebMessageInfoStubType_PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED; + static constexpr WebMessageInfoStubType PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED = + WebMessageInfo_WebMessageInfoStubType_PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED; + static constexpr WebMessageInfoStubType PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED = + WebMessageInfo_WebMessageInfoStubType_PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED; + static constexpr WebMessageInfoStubType PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP = + WebMessageInfo_WebMessageInfoStubType_PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP; + static constexpr WebMessageInfoStubType PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP = + WebMessageInfo_WebMessageInfoStubType_PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP; + static constexpr WebMessageInfoStubType PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER = + WebMessageInfo_WebMessageInfoStubType_PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER; + static constexpr WebMessageInfoStubType PAYMENT_ACTION_SEND_PAYMENT_REMINDER = + WebMessageInfo_WebMessageInfoStubType_PAYMENT_ACTION_SEND_PAYMENT_REMINDER; + static constexpr WebMessageInfoStubType PAYMENT_ACTION_SEND_PAYMENT_INVITATION = + WebMessageInfo_WebMessageInfoStubType_PAYMENT_ACTION_SEND_PAYMENT_INVITATION; + static constexpr WebMessageInfoStubType PAYMENT_ACTION_REQUEST_DECLINED = + WebMessageInfo_WebMessageInfoStubType_PAYMENT_ACTION_REQUEST_DECLINED; + static constexpr WebMessageInfoStubType PAYMENT_ACTION_REQUEST_EXPIRED = + WebMessageInfo_WebMessageInfoStubType_PAYMENT_ACTION_REQUEST_EXPIRED; + static constexpr WebMessageInfoStubType PAYMENT_ACTION_REQUEST_CANCELLED = + WebMessageInfo_WebMessageInfoStubType_PAYMENT_ACTION_REQUEST_CANCELLED; + static constexpr WebMessageInfoStubType BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM = + WebMessageInfo_WebMessageInfoStubType_BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM; + static constexpr WebMessageInfoStubType BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP = + WebMessageInfo_WebMessageInfoStubType_BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP; + static constexpr WebMessageInfoStubType BIZ_INTRO_TOP = + WebMessageInfo_WebMessageInfoStubType_BIZ_INTRO_TOP; + static constexpr WebMessageInfoStubType BIZ_INTRO_BOTTOM = + WebMessageInfo_WebMessageInfoStubType_BIZ_INTRO_BOTTOM; + static constexpr WebMessageInfoStubType BIZ_NAME_CHANGE = + WebMessageInfo_WebMessageInfoStubType_BIZ_NAME_CHANGE; + static constexpr WebMessageInfoStubType BIZ_MOVE_TO_CONSUMER_APP = + WebMessageInfo_WebMessageInfoStubType_BIZ_MOVE_TO_CONSUMER_APP; + static constexpr WebMessageInfoStubType BIZ_TWO_TIER_MIGRATION_TOP = + WebMessageInfo_WebMessageInfoStubType_BIZ_TWO_TIER_MIGRATION_TOP; + static constexpr WebMessageInfoStubType BIZ_TWO_TIER_MIGRATION_BOTTOM = + WebMessageInfo_WebMessageInfoStubType_BIZ_TWO_TIER_MIGRATION_BOTTOM; + static constexpr WebMessageInfoStubType OVERSIZED = + WebMessageInfo_WebMessageInfoStubType_OVERSIZED; + static constexpr WebMessageInfoStubType GROUP_CHANGE_NO_FREQUENTLY_FORWARDED = + WebMessageInfo_WebMessageInfoStubType_GROUP_CHANGE_NO_FREQUENTLY_FORWARDED; + static constexpr WebMessageInfoStubType GROUP_V4_ADD_INVITE_SENT = + WebMessageInfo_WebMessageInfoStubType_GROUP_V4_ADD_INVITE_SENT; + static constexpr WebMessageInfoStubType GROUP_PARTICIPANT_ADD_REQUEST_JOIN = + WebMessageInfo_WebMessageInfoStubType_GROUP_PARTICIPANT_ADD_REQUEST_JOIN; + static constexpr WebMessageInfoStubType CHANGE_EPHEMERAL_SETTING = + WebMessageInfo_WebMessageInfoStubType_CHANGE_EPHEMERAL_SETTING; + static constexpr WebMessageInfoStubType E2E_DEVICE_CHANGED = + WebMessageInfo_WebMessageInfoStubType_E2E_DEVICE_CHANGED; + static constexpr WebMessageInfoStubType VIEWED_ONCE = + WebMessageInfo_WebMessageInfoStubType_VIEWED_ONCE; + static constexpr WebMessageInfoStubType E2E_ENCRYPTED_NOW = + WebMessageInfo_WebMessageInfoStubType_E2E_ENCRYPTED_NOW; + static constexpr WebMessageInfoStubType BLUE_MSG_BSP_FB_TO_BSP_PREMISE = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_TO_BSP_PREMISE; + static constexpr WebMessageInfoStubType BLUE_MSG_BSP_FB_TO_SELF_FB = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_TO_SELF_FB; + static constexpr WebMessageInfoStubType BLUE_MSG_BSP_FB_TO_SELF_PREMISE = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_TO_SELF_PREMISE; + static constexpr WebMessageInfoStubType BLUE_MSG_BSP_FB_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_UNVERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_BSP_FB_VERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_VERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE; + static constexpr WebMessageInfoStubType BLUE_MSG_BSP_PREMISE_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_PREMISE_UNVERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_BSP_PREMISE_VERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_PREMISE_VERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_SELF_FB_TO_BSP_PREMISE = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_FB_TO_BSP_PREMISE; + static constexpr WebMessageInfoStubType BLUE_MSG_SELF_FB_TO_SELF_PREMISE = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_FB_TO_SELF_PREMISE; + static constexpr WebMessageInfoStubType BLUE_MSG_SELF_FB_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_FB_UNVERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_SELF_FB_VERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_FB_VERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE; + static constexpr WebMessageInfoStubType BLUE_MSG_SELF_PREMISE_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_PREMISE_UNVERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_SELF_PREMISE_VERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_PREMISE_VERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_TO_BSP_FB = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_TO_BSP_FB; + static constexpr WebMessageInfoStubType BLUE_MSG_TO_CONSUMER = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_TO_CONSUMER; + static constexpr WebMessageInfoStubType BLUE_MSG_TO_SELF_FB = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_TO_SELF_FB; + static constexpr WebMessageInfoStubType BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_UNVERIFIED_TO_VERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_UNVERIFIED_TO_VERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_VERIFIED_TO_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_VERIFIED_TO_UNVERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED; + static constexpr WebMessageInfoStubType BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED = + WebMessageInfo_WebMessageInfoStubType_BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED; + static constexpr WebMessageInfoStubType E2E_IDENTITY_UNAVAILABLE = + WebMessageInfo_WebMessageInfoStubType_E2E_IDENTITY_UNAVAILABLE; + static inline bool WebMessageInfoStubType_IsValid(int value) { + return WebMessageInfo_WebMessageInfoStubType_IsValid(value); + } + static constexpr WebMessageInfoStubType WebMessageInfoStubType_MIN = + WebMessageInfo_WebMessageInfoStubType_WebMessageInfoStubType_MIN; + static constexpr WebMessageInfoStubType WebMessageInfoStubType_MAX = + WebMessageInfo_WebMessageInfoStubType_WebMessageInfoStubType_MAX; + static constexpr int WebMessageInfoStubType_ARRAYSIZE = + WebMessageInfo_WebMessageInfoStubType_WebMessageInfoStubType_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + WebMessageInfoStubType_descriptor() { + return WebMessageInfo_WebMessageInfoStubType_descriptor(); + } + template<typename T> + static inline const std::string& WebMessageInfoStubType_Name(T enum_t_value) { + static_assert(::std::is_same<T, WebMessageInfoStubType>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function WebMessageInfoStubType_Name."); + return WebMessageInfo_WebMessageInfoStubType_Name(enum_t_value); + } + static inline bool WebMessageInfoStubType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + WebMessageInfoStubType* value) { + return WebMessageInfo_WebMessageInfoStubType_Parse(name, value); + } + + typedef WebMessageInfo_WebMessageInfoBizPrivacyStatus WebMessageInfoBizPrivacyStatus; + static constexpr WebMessageInfoBizPrivacyStatus E2EE = + WebMessageInfo_WebMessageInfoBizPrivacyStatus_E2EE; + static constexpr WebMessageInfoBizPrivacyStatus FB = + WebMessageInfo_WebMessageInfoBizPrivacyStatus_FB; + static constexpr WebMessageInfoBizPrivacyStatus BSP = + WebMessageInfo_WebMessageInfoBizPrivacyStatus_BSP; + static constexpr WebMessageInfoBizPrivacyStatus BSP_AND_FB = + WebMessageInfo_WebMessageInfoBizPrivacyStatus_BSP_AND_FB; + static inline bool WebMessageInfoBizPrivacyStatus_IsValid(int value) { + return WebMessageInfo_WebMessageInfoBizPrivacyStatus_IsValid(value); + } + static constexpr WebMessageInfoBizPrivacyStatus WebMessageInfoBizPrivacyStatus_MIN = + WebMessageInfo_WebMessageInfoBizPrivacyStatus_WebMessageInfoBizPrivacyStatus_MIN; + static constexpr WebMessageInfoBizPrivacyStatus WebMessageInfoBizPrivacyStatus_MAX = + WebMessageInfo_WebMessageInfoBizPrivacyStatus_WebMessageInfoBizPrivacyStatus_MAX; + static constexpr int WebMessageInfoBizPrivacyStatus_ARRAYSIZE = + WebMessageInfo_WebMessageInfoBizPrivacyStatus_WebMessageInfoBizPrivacyStatus_ARRAYSIZE; + static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* + WebMessageInfoBizPrivacyStatus_descriptor() { + return WebMessageInfo_WebMessageInfoBizPrivacyStatus_descriptor(); + } + template<typename T> + static inline const std::string& WebMessageInfoBizPrivacyStatus_Name(T enum_t_value) { + static_assert(::std::is_same<T, WebMessageInfoBizPrivacyStatus>::value || + ::std::is_integral<T>::value, + "Incorrect type passed to function WebMessageInfoBizPrivacyStatus_Name."); + return WebMessageInfo_WebMessageInfoBizPrivacyStatus_Name(enum_t_value); + } + static inline bool WebMessageInfoBizPrivacyStatus_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + WebMessageInfoBizPrivacyStatus* value) { + return WebMessageInfo_WebMessageInfoBizPrivacyStatus_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kMessageStubParametersFieldNumber = 26, + kLabelsFieldNumber = 28, + kParticipantFieldNumber = 5, + kPushNameFieldNumber = 19, + kMediaCiphertextSha256FieldNumber = 20, + kVerifiedBizNameFieldNumber = 37, + kKeyFieldNumber = 1, + kMessageFieldNumber = 2, + kPaymentInfoFieldNumber = 29, + kFinalLiveLocationFieldNumber = 30, + kQuotedPaymentInfoFieldNumber = 31, + kMessageTimestampFieldNumber = 3, + kStatusFieldNumber = 4, + kIgnoreFieldNumber = 16, + kStarredFieldNumber = 17, + kBroadcastFieldNumber = 18, + kMulticastFieldNumber = 21, + kMessageStubTypeFieldNumber = 24, + kUrlTextFieldNumber = 22, + kUrlNumberFieldNumber = 23, + kClearMediaFieldNumber = 25, + kEphemeralOffToOnFieldNumber = 34, + kDurationFieldNumber = 27, + kEphemeralDurationFieldNumber = 33, + kEphemeralStartTimestampFieldNumber = 32, + kEphemeralOutOfSyncFieldNumber = 35, + kBizPrivacyStatusFieldNumber = 36, + }; + // repeated string messageStubParameters = 26; + int messagestubparameters_size() const; + private: + int _internal_messagestubparameters_size() const; + public: + void clear_messagestubparameters(); + const std::string& messagestubparameters(int index) const; + std::string* mutable_messagestubparameters(int index); + void set_messagestubparameters(int index, const std::string& value); + void set_messagestubparameters(int index, std::string&& value); + void set_messagestubparameters(int index, const char* value); + void set_messagestubparameters(int index, const char* value, size_t size); + std::string* add_messagestubparameters(); + void add_messagestubparameters(const std::string& value); + void add_messagestubparameters(std::string&& value); + void add_messagestubparameters(const char* value); + void add_messagestubparameters(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& messagestubparameters() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_messagestubparameters(); + private: + const std::string& _internal_messagestubparameters(int index) const; + std::string* _internal_add_messagestubparameters(); + public: + + // repeated string labels = 28; + int labels_size() const; + private: + int _internal_labels_size() const; + public: + void clear_labels(); + const std::string& labels(int index) const; + std::string* mutable_labels(int index); + void set_labels(int index, const std::string& value); + void set_labels(int index, std::string&& value); + void set_labels(int index, const char* value); + void set_labels(int index, const char* value, size_t size); + std::string* add_labels(); + void add_labels(const std::string& value); + void add_labels(std::string&& value); + void add_labels(const char* value); + void add_labels(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& labels() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_labels(); + private: + const std::string& _internal_labels(int index) const; + std::string* _internal_add_labels(); + public: + + // optional string participant = 5; + bool has_participant() const; + private: + bool _internal_has_participant() const; + public: + void clear_participant(); + const std::string& participant() const; + void set_participant(const std::string& value); + void set_participant(std::string&& value); + void set_participant(const char* value); + void set_participant(const char* value, size_t size); + std::string* mutable_participant(); + std::string* release_participant(); + void set_allocated_participant(std::string* participant); + private: + const std::string& _internal_participant() const; + void _internal_set_participant(const std::string& value); + std::string* _internal_mutable_participant(); + public: + + // optional string pushName = 19; + bool has_pushname() const; + private: + bool _internal_has_pushname() const; + public: + void clear_pushname(); + const std::string& pushname() const; + void set_pushname(const std::string& value); + void set_pushname(std::string&& value); + void set_pushname(const char* value); + void set_pushname(const char* value, size_t size); + std::string* mutable_pushname(); + std::string* release_pushname(); + void set_allocated_pushname(std::string* pushname); + private: + const std::string& _internal_pushname() const; + void _internal_set_pushname(const std::string& value); + std::string* _internal_mutable_pushname(); + public: + + // optional bytes mediaCiphertextSha256 = 20; + bool has_mediaciphertextsha256() const; + private: + bool _internal_has_mediaciphertextsha256() const; + public: + void clear_mediaciphertextsha256(); + const std::string& mediaciphertextsha256() const; + void set_mediaciphertextsha256(const std::string& value); + void set_mediaciphertextsha256(std::string&& value); + void set_mediaciphertextsha256(const char* value); + void set_mediaciphertextsha256(const void* value, size_t size); + std::string* mutable_mediaciphertextsha256(); + std::string* release_mediaciphertextsha256(); + void set_allocated_mediaciphertextsha256(std::string* mediaciphertextsha256); + private: + const std::string& _internal_mediaciphertextsha256() const; + void _internal_set_mediaciphertextsha256(const std::string& value); + std::string* _internal_mutable_mediaciphertextsha256(); + public: + + // optional string verifiedBizName = 37; + bool has_verifiedbizname() const; + private: + bool _internal_has_verifiedbizname() const; + public: + void clear_verifiedbizname(); + const std::string& verifiedbizname() const; + void set_verifiedbizname(const std::string& value); + void set_verifiedbizname(std::string&& value); + void set_verifiedbizname(const char* value); + void set_verifiedbizname(const char* value, size_t size); + std::string* mutable_verifiedbizname(); + std::string* release_verifiedbizname(); + void set_allocated_verifiedbizname(std::string* verifiedbizname); + private: + const std::string& _internal_verifiedbizname() const; + void _internal_set_verifiedbizname(const std::string& value); + std::string* _internal_mutable_verifiedbizname(); + public: + + // required .proto.MessageKey key = 1; + bool has_key() const; + private: + bool _internal_has_key() const; + public: + void clear_key(); + const ::proto::MessageKey& key() const; + ::proto::MessageKey* release_key(); + ::proto::MessageKey* mutable_key(); + void set_allocated_key(::proto::MessageKey* key); + private: + const ::proto::MessageKey& _internal_key() const; + ::proto::MessageKey* _internal_mutable_key(); + public: + void unsafe_arena_set_allocated_key( + ::proto::MessageKey* key); + ::proto::MessageKey* unsafe_arena_release_key(); + + // optional .proto.Message message = 2; + bool has_message() const; + private: + bool _internal_has_message() const; + public: + void clear_message(); + const ::proto::Message& message() const; + ::proto::Message* release_message(); + ::proto::Message* mutable_message(); + void set_allocated_message(::proto::Message* message); + private: + const ::proto::Message& _internal_message() const; + ::proto::Message* _internal_mutable_message(); + public: + void unsafe_arena_set_allocated_message( + ::proto::Message* message); + ::proto::Message* unsafe_arena_release_message(); + + // optional .proto.PaymentInfo paymentInfo = 29; + bool has_paymentinfo() const; + private: + bool _internal_has_paymentinfo() const; + public: + void clear_paymentinfo(); + const ::proto::PaymentInfo& paymentinfo() const; + ::proto::PaymentInfo* release_paymentinfo(); + ::proto::PaymentInfo* mutable_paymentinfo(); + void set_allocated_paymentinfo(::proto::PaymentInfo* paymentinfo); + private: + const ::proto::PaymentInfo& _internal_paymentinfo() const; + ::proto::PaymentInfo* _internal_mutable_paymentinfo(); + public: + void unsafe_arena_set_allocated_paymentinfo( + ::proto::PaymentInfo* paymentinfo); + ::proto::PaymentInfo* unsafe_arena_release_paymentinfo(); + + // optional .proto.LiveLocationMessage finalLiveLocation = 30; + bool has_finallivelocation() const; + private: + bool _internal_has_finallivelocation() const; + public: + void clear_finallivelocation(); + const ::proto::LiveLocationMessage& finallivelocation() const; + ::proto::LiveLocationMessage* release_finallivelocation(); + ::proto::LiveLocationMessage* mutable_finallivelocation(); + void set_allocated_finallivelocation(::proto::LiveLocationMessage* finallivelocation); + private: + const ::proto::LiveLocationMessage& _internal_finallivelocation() const; + ::proto::LiveLocationMessage* _internal_mutable_finallivelocation(); + public: + void unsafe_arena_set_allocated_finallivelocation( + ::proto::LiveLocationMessage* finallivelocation); + ::proto::LiveLocationMessage* unsafe_arena_release_finallivelocation(); + + // optional .proto.PaymentInfo quotedPaymentInfo = 31; + bool has_quotedpaymentinfo() const; + private: + bool _internal_has_quotedpaymentinfo() const; + public: + void clear_quotedpaymentinfo(); + const ::proto::PaymentInfo& quotedpaymentinfo() const; + ::proto::PaymentInfo* release_quotedpaymentinfo(); + ::proto::PaymentInfo* mutable_quotedpaymentinfo(); + void set_allocated_quotedpaymentinfo(::proto::PaymentInfo* quotedpaymentinfo); + private: + const ::proto::PaymentInfo& _internal_quotedpaymentinfo() const; + ::proto::PaymentInfo* _internal_mutable_quotedpaymentinfo(); + public: + void unsafe_arena_set_allocated_quotedpaymentinfo( + ::proto::PaymentInfo* quotedpaymentinfo); + ::proto::PaymentInfo* unsafe_arena_release_quotedpaymentinfo(); + + // optional uint64 messageTimestamp = 3; + bool has_messagetimestamp() const; + private: + bool _internal_has_messagetimestamp() const; + public: + void clear_messagetimestamp(); + ::PROTOBUF_NAMESPACE_ID::uint64 messagetimestamp() const; + void set_messagetimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_messagetimestamp() const; + void _internal_set_messagetimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // optional .proto.WebMessageInfo.WebMessageInfoStatus status = 4; + bool has_status() const; + private: + bool _internal_has_status() const; + public: + void clear_status(); + ::proto::WebMessageInfo_WebMessageInfoStatus status() const; + void set_status(::proto::WebMessageInfo_WebMessageInfoStatus value); + private: + ::proto::WebMessageInfo_WebMessageInfoStatus _internal_status() const; + void _internal_set_status(::proto::WebMessageInfo_WebMessageInfoStatus value); + public: + + // optional bool ignore = 16; + bool has_ignore() const; + private: + bool _internal_has_ignore() const; + public: + void clear_ignore(); + bool ignore() const; + void set_ignore(bool value); + private: + bool _internal_ignore() const; + void _internal_set_ignore(bool value); + public: + + // optional bool starred = 17; + bool has_starred() const; + private: + bool _internal_has_starred() const; + public: + void clear_starred(); + bool starred() const; + void set_starred(bool value); + private: + bool _internal_starred() const; + void _internal_set_starred(bool value); + public: + + // optional bool broadcast = 18; + bool has_broadcast() const; + private: + bool _internal_has_broadcast() const; + public: + void clear_broadcast(); + bool broadcast() const; + void set_broadcast(bool value); + private: + bool _internal_broadcast() const; + void _internal_set_broadcast(bool value); + public: + + // optional bool multicast = 21; + bool has_multicast() const; + private: + bool _internal_has_multicast() const; + public: + void clear_multicast(); + bool multicast() const; + void set_multicast(bool value); + private: + bool _internal_multicast() const; + void _internal_set_multicast(bool value); + public: + + // optional .proto.WebMessageInfo.WebMessageInfoStubType messageStubType = 24; + bool has_messagestubtype() const; + private: + bool _internal_has_messagestubtype() const; + public: + void clear_messagestubtype(); + ::proto::WebMessageInfo_WebMessageInfoStubType messagestubtype() const; + void set_messagestubtype(::proto::WebMessageInfo_WebMessageInfoStubType value); + private: + ::proto::WebMessageInfo_WebMessageInfoStubType _internal_messagestubtype() const; + void _internal_set_messagestubtype(::proto::WebMessageInfo_WebMessageInfoStubType value); + public: + + // optional bool urlText = 22; + bool has_urltext() const; + private: + bool _internal_has_urltext() const; + public: + void clear_urltext(); + bool urltext() const; + void set_urltext(bool value); + private: + bool _internal_urltext() const; + void _internal_set_urltext(bool value); + public: + + // optional bool urlNumber = 23; + bool has_urlnumber() const; + private: + bool _internal_has_urlnumber() const; + public: + void clear_urlnumber(); + bool urlnumber() const; + void set_urlnumber(bool value); + private: + bool _internal_urlnumber() const; + void _internal_set_urlnumber(bool value); + public: + + // optional bool clearMedia = 25; + bool has_clearmedia() const; + private: + bool _internal_has_clearmedia() const; + public: + void clear_clearmedia(); + bool clearmedia() const; + void set_clearmedia(bool value); + private: + bool _internal_clearmedia() const; + void _internal_set_clearmedia(bool value); + public: + + // optional bool ephemeralOffToOn = 34; + bool has_ephemeralofftoon() const; + private: + bool _internal_has_ephemeralofftoon() const; + public: + void clear_ephemeralofftoon(); + bool ephemeralofftoon() const; + void set_ephemeralofftoon(bool value); + private: + bool _internal_ephemeralofftoon() const; + void _internal_set_ephemeralofftoon(bool value); + public: + + // optional uint32 duration = 27; + bool has_duration() const; + private: + bool _internal_has_duration() const; + public: + void clear_duration(); + ::PROTOBUF_NAMESPACE_ID::uint32 duration() const; + void set_duration(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_duration() const; + void _internal_set_duration(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint32 ephemeralDuration = 33; + bool has_ephemeralduration() const; + private: + bool _internal_has_ephemeralduration() const; + public: + void clear_ephemeralduration(); + ::PROTOBUF_NAMESPACE_ID::uint32 ephemeralduration() const; + void set_ephemeralduration(::PROTOBUF_NAMESPACE_ID::uint32 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint32 _internal_ephemeralduration() const; + void _internal_set_ephemeralduration(::PROTOBUF_NAMESPACE_ID::uint32 value); + public: + + // optional uint64 ephemeralStartTimestamp = 32; + bool has_ephemeralstarttimestamp() const; + private: + bool _internal_has_ephemeralstarttimestamp() const; + public: + void clear_ephemeralstarttimestamp(); + ::PROTOBUF_NAMESPACE_ID::uint64 ephemeralstarttimestamp() const; + void set_ephemeralstarttimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); + private: + ::PROTOBUF_NAMESPACE_ID::uint64 _internal_ephemeralstarttimestamp() const; + void _internal_set_ephemeralstarttimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value); + public: + + // optional bool ephemeralOutOfSync = 35; + bool has_ephemeraloutofsync() const; + private: + bool _internal_has_ephemeraloutofsync() const; + public: + void clear_ephemeraloutofsync(); + bool ephemeraloutofsync() const; + void set_ephemeraloutofsync(bool value); + private: + bool _internal_ephemeraloutofsync() const; + void _internal_set_ephemeraloutofsync(bool value); + public: + + // optional .proto.WebMessageInfo.WebMessageInfoBizPrivacyStatus bizPrivacyStatus = 36; + bool has_bizprivacystatus() const; + private: + bool _internal_has_bizprivacystatus() const; + public: + void clear_bizprivacystatus(); + ::proto::WebMessageInfo_WebMessageInfoBizPrivacyStatus bizprivacystatus() const; + void set_bizprivacystatus(::proto::WebMessageInfo_WebMessageInfoBizPrivacyStatus value); + private: + ::proto::WebMessageInfo_WebMessageInfoBizPrivacyStatus _internal_bizprivacystatus() const; + void _internal_set_bizprivacystatus(::proto::WebMessageInfo_WebMessageInfoBizPrivacyStatus value); + public: + + // @@protoc_insertion_point(class_scope:proto.WebMessageInfo) + private: + class _Internal; + + template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> messagestubparameters_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> labels_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr participant_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pushname_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mediaciphertextsha256_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr verifiedbizname_; + ::proto::MessageKey* key_; + ::proto::Message* message_; + ::proto::PaymentInfo* paymentinfo_; + ::proto::LiveLocationMessage* finallivelocation_; + ::proto::PaymentInfo* quotedpaymentinfo_; + ::PROTOBUF_NAMESPACE_ID::uint64 messagetimestamp_; + int status_; + bool ignore_; + bool starred_; + bool broadcast_; + bool multicast_; + int messagestubtype_; + bool urltext_; + bool urlnumber_; + bool clearmedia_; + bool ephemeralofftoon_; + ::PROTOBUF_NAMESPACE_ID::uint32 duration_; + ::PROTOBUF_NAMESPACE_ID::uint32 ephemeralduration_; + ::PROTOBUF_NAMESPACE_ID::uint64 ephemeralstarttimestamp_; + bool ephemeraloutofsync_; + int bizprivacystatus_; + friend struct ::TableStruct_pmsg_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// PaymentMoney + +// optional int64 value = 1; +inline bool PaymentMoney::_internal_has_value() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool PaymentMoney::has_value() const { + return _internal_has_value(); +} +inline void PaymentMoney::clear_value() { + value_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00000002u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 PaymentMoney::_internal_value() const { + return value_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 PaymentMoney::value() const { + // @@protoc_insertion_point(field_get:proto.PaymentMoney.value) + return _internal_value(); +} +inline void PaymentMoney::_internal_set_value(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00000002u; + value_ = value; +} +inline void PaymentMoney::set_value(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_value(value); + // @@protoc_insertion_point(field_set:proto.PaymentMoney.value) +} + +// optional uint32 offset = 2; +inline bool PaymentMoney::_internal_has_offset() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool PaymentMoney::has_offset() const { + return _internal_has_offset(); +} +inline void PaymentMoney::clear_offset() { + offset_ = 0u; + _has_bits_[0] &= ~0x00000004u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 PaymentMoney::_internal_offset() const { + return offset_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 PaymentMoney::offset() const { + // @@protoc_insertion_point(field_get:proto.PaymentMoney.offset) + return _internal_offset(); +} +inline void PaymentMoney::_internal_set_offset(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; + offset_ = value; +} +inline void PaymentMoney::set_offset(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_offset(value); + // @@protoc_insertion_point(field_set:proto.PaymentMoney.offset) +} + +// optional string currencyCode = 3; +inline bool PaymentMoney::_internal_has_currencycode() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool PaymentMoney::has_currencycode() const { + return _internal_has_currencycode(); +} +inline void PaymentMoney::clear_currencycode() { + currencycode_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& PaymentMoney::currencycode() const { + // @@protoc_insertion_point(field_get:proto.PaymentMoney.currencyCode) + return _internal_currencycode(); +} +inline void PaymentMoney::set_currencycode(const std::string& value) { + _internal_set_currencycode(value); + // @@protoc_insertion_point(field_set:proto.PaymentMoney.currencyCode) +} +inline std::string* PaymentMoney::mutable_currencycode() { + // @@protoc_insertion_point(field_mutable:proto.PaymentMoney.currencyCode) + return _internal_mutable_currencycode(); +} +inline const std::string& PaymentMoney::_internal_currencycode() const { + return currencycode_.Get(); +} +inline void PaymentMoney::_internal_set_currencycode(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void PaymentMoney::set_currencycode(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + currencycode_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.PaymentMoney.currencyCode) +} +inline void PaymentMoney::set_currencycode(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.PaymentMoney.currencyCode) +} +inline void PaymentMoney::set_currencycode(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.PaymentMoney.currencyCode) +} +inline std::string* PaymentMoney::_internal_mutable_currencycode() { + _has_bits_[0] |= 0x00000001u; + return currencycode_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* PaymentMoney::release_currencycode() { + // @@protoc_insertion_point(field_release:proto.PaymentMoney.currencyCode) + if (!_internal_has_currencycode()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return currencycode_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void PaymentMoney::set_allocated_currencycode(std::string* currencycode) { + if (currencycode != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + currencycode_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), currencycode, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.PaymentMoney.currencyCode) +} + +// ------------------------------------------------------------------- + +// HydratedQuickReplyButton + +// optional string displayText = 1; +inline bool HydratedQuickReplyButton::_internal_has_displaytext() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool HydratedQuickReplyButton::has_displaytext() const { + return _internal_has_displaytext(); +} +inline void HydratedQuickReplyButton::clear_displaytext() { + displaytext_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& HydratedQuickReplyButton::displaytext() const { + // @@protoc_insertion_point(field_get:proto.HydratedQuickReplyButton.displayText) + return _internal_displaytext(); +} +inline void HydratedQuickReplyButton::set_displaytext(const std::string& value) { + _internal_set_displaytext(value); + // @@protoc_insertion_point(field_set:proto.HydratedQuickReplyButton.displayText) +} +inline std::string* HydratedQuickReplyButton::mutable_displaytext() { + // @@protoc_insertion_point(field_mutable:proto.HydratedQuickReplyButton.displayText) + return _internal_mutable_displaytext(); +} +inline const std::string& HydratedQuickReplyButton::_internal_displaytext() const { + return displaytext_.Get(); +} +inline void HydratedQuickReplyButton::_internal_set_displaytext(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HydratedQuickReplyButton::set_displaytext(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + displaytext_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HydratedQuickReplyButton.displayText) +} +inline void HydratedQuickReplyButton::set_displaytext(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HydratedQuickReplyButton.displayText) +} +inline void HydratedQuickReplyButton::set_displaytext(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HydratedQuickReplyButton.displayText) +} +inline std::string* HydratedQuickReplyButton::_internal_mutable_displaytext() { + _has_bits_[0] |= 0x00000001u; + return displaytext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HydratedQuickReplyButton::release_displaytext() { + // @@protoc_insertion_point(field_release:proto.HydratedQuickReplyButton.displayText) + if (!_internal_has_displaytext()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return displaytext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HydratedQuickReplyButton::set_allocated_displaytext(std::string* displaytext) { + if (displaytext != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + displaytext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), displaytext, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HydratedQuickReplyButton.displayText) +} + +// optional string id = 2; +inline bool HydratedQuickReplyButton::_internal_has_id() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool HydratedQuickReplyButton::has_id() const { + return _internal_has_id(); +} +inline void HydratedQuickReplyButton::clear_id() { + id_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& HydratedQuickReplyButton::id() const { + // @@protoc_insertion_point(field_get:proto.HydratedQuickReplyButton.id) + return _internal_id(); +} +inline void HydratedQuickReplyButton::set_id(const std::string& value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:proto.HydratedQuickReplyButton.id) +} +inline std::string* HydratedQuickReplyButton::mutable_id() { + // @@protoc_insertion_point(field_mutable:proto.HydratedQuickReplyButton.id) + return _internal_mutable_id(); +} +inline const std::string& HydratedQuickReplyButton::_internal_id() const { + return id_.Get(); +} +inline void HydratedQuickReplyButton::_internal_set_id(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HydratedQuickReplyButton::set_id(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HydratedQuickReplyButton.id) +} +inline void HydratedQuickReplyButton::set_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HydratedQuickReplyButton.id) +} +inline void HydratedQuickReplyButton::set_id(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HydratedQuickReplyButton.id) +} +inline std::string* HydratedQuickReplyButton::_internal_mutable_id() { + _has_bits_[0] |= 0x00000002u; + return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HydratedQuickReplyButton::release_id() { + // @@protoc_insertion_point(field_release:proto.HydratedQuickReplyButton.id) + if (!_internal_has_id()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HydratedQuickReplyButton::set_allocated_id(std::string* id) { + if (id != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HydratedQuickReplyButton.id) +} + +// ------------------------------------------------------------------- + +// HydratedURLButton + +// optional string displayText = 1; +inline bool HydratedURLButton::_internal_has_displaytext() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool HydratedURLButton::has_displaytext() const { + return _internal_has_displaytext(); +} +inline void HydratedURLButton::clear_displaytext() { + displaytext_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& HydratedURLButton::displaytext() const { + // @@protoc_insertion_point(field_get:proto.HydratedURLButton.displayText) + return _internal_displaytext(); +} +inline void HydratedURLButton::set_displaytext(const std::string& value) { + _internal_set_displaytext(value); + // @@protoc_insertion_point(field_set:proto.HydratedURLButton.displayText) +} +inline std::string* HydratedURLButton::mutable_displaytext() { + // @@protoc_insertion_point(field_mutable:proto.HydratedURLButton.displayText) + return _internal_mutable_displaytext(); +} +inline const std::string& HydratedURLButton::_internal_displaytext() const { + return displaytext_.Get(); +} +inline void HydratedURLButton::_internal_set_displaytext(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HydratedURLButton::set_displaytext(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + displaytext_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HydratedURLButton.displayText) +} +inline void HydratedURLButton::set_displaytext(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HydratedURLButton.displayText) +} +inline void HydratedURLButton::set_displaytext(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HydratedURLButton.displayText) +} +inline std::string* HydratedURLButton::_internal_mutable_displaytext() { + _has_bits_[0] |= 0x00000001u; + return displaytext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HydratedURLButton::release_displaytext() { + // @@protoc_insertion_point(field_release:proto.HydratedURLButton.displayText) + if (!_internal_has_displaytext()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return displaytext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HydratedURLButton::set_allocated_displaytext(std::string* displaytext) { + if (displaytext != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + displaytext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), displaytext, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HydratedURLButton.displayText) +} + +// optional string url = 2; +inline bool HydratedURLButton::_internal_has_url() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool HydratedURLButton::has_url() const { + return _internal_has_url(); +} +inline void HydratedURLButton::clear_url() { + url_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& HydratedURLButton::url() const { + // @@protoc_insertion_point(field_get:proto.HydratedURLButton.url) + return _internal_url(); +} +inline void HydratedURLButton::set_url(const std::string& value) { + _internal_set_url(value); + // @@protoc_insertion_point(field_set:proto.HydratedURLButton.url) +} +inline std::string* HydratedURLButton::mutable_url() { + // @@protoc_insertion_point(field_mutable:proto.HydratedURLButton.url) + return _internal_mutable_url(); +} +inline const std::string& HydratedURLButton::_internal_url() const { + return url_.Get(); +} +inline void HydratedURLButton::_internal_set_url(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HydratedURLButton::set_url(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + url_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HydratedURLButton.url) +} +inline void HydratedURLButton::set_url(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HydratedURLButton.url) +} +inline void HydratedURLButton::set_url(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HydratedURLButton.url) +} +inline std::string* HydratedURLButton::_internal_mutable_url() { + _has_bits_[0] |= 0x00000002u; + return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HydratedURLButton::release_url() { + // @@protoc_insertion_point(field_release:proto.HydratedURLButton.url) + if (!_internal_has_url()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HydratedURLButton::set_allocated_url(std::string* url) { + if (url != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), url, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HydratedURLButton.url) +} + +// ------------------------------------------------------------------- + +// HydratedCallButton + +// optional string displayText = 1; +inline bool HydratedCallButton::_internal_has_displaytext() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool HydratedCallButton::has_displaytext() const { + return _internal_has_displaytext(); +} +inline void HydratedCallButton::clear_displaytext() { + displaytext_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& HydratedCallButton::displaytext() const { + // @@protoc_insertion_point(field_get:proto.HydratedCallButton.displayText) + return _internal_displaytext(); +} +inline void HydratedCallButton::set_displaytext(const std::string& value) { + _internal_set_displaytext(value); + // @@protoc_insertion_point(field_set:proto.HydratedCallButton.displayText) +} +inline std::string* HydratedCallButton::mutable_displaytext() { + // @@protoc_insertion_point(field_mutable:proto.HydratedCallButton.displayText) + return _internal_mutable_displaytext(); +} +inline const std::string& HydratedCallButton::_internal_displaytext() const { + return displaytext_.Get(); +} +inline void HydratedCallButton::_internal_set_displaytext(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HydratedCallButton::set_displaytext(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + displaytext_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HydratedCallButton.displayText) +} +inline void HydratedCallButton::set_displaytext(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HydratedCallButton.displayText) +} +inline void HydratedCallButton::set_displaytext(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HydratedCallButton.displayText) +} +inline std::string* HydratedCallButton::_internal_mutable_displaytext() { + _has_bits_[0] |= 0x00000001u; + return displaytext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HydratedCallButton::release_displaytext() { + // @@protoc_insertion_point(field_release:proto.HydratedCallButton.displayText) + if (!_internal_has_displaytext()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return displaytext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HydratedCallButton::set_allocated_displaytext(std::string* displaytext) { + if (displaytext != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + displaytext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), displaytext, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HydratedCallButton.displayText) +} + +// optional string phoneNumber = 2; +inline bool HydratedCallButton::_internal_has_phonenumber() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool HydratedCallButton::has_phonenumber() const { + return _internal_has_phonenumber(); +} +inline void HydratedCallButton::clear_phonenumber() { + phonenumber_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& HydratedCallButton::phonenumber() const { + // @@protoc_insertion_point(field_get:proto.HydratedCallButton.phoneNumber) + return _internal_phonenumber(); +} +inline void HydratedCallButton::set_phonenumber(const std::string& value) { + _internal_set_phonenumber(value); + // @@protoc_insertion_point(field_set:proto.HydratedCallButton.phoneNumber) +} +inline std::string* HydratedCallButton::mutable_phonenumber() { + // @@protoc_insertion_point(field_mutable:proto.HydratedCallButton.phoneNumber) + return _internal_mutable_phonenumber(); +} +inline const std::string& HydratedCallButton::_internal_phonenumber() const { + return phonenumber_.Get(); +} +inline void HydratedCallButton::_internal_set_phonenumber(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + phonenumber_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HydratedCallButton::set_phonenumber(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + phonenumber_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HydratedCallButton.phoneNumber) +} +inline void HydratedCallButton::set_phonenumber(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + phonenumber_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HydratedCallButton.phoneNumber) +} +inline void HydratedCallButton::set_phonenumber(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + phonenumber_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HydratedCallButton.phoneNumber) +} +inline std::string* HydratedCallButton::_internal_mutable_phonenumber() { + _has_bits_[0] |= 0x00000002u; + return phonenumber_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HydratedCallButton::release_phonenumber() { + // @@protoc_insertion_point(field_release:proto.HydratedCallButton.phoneNumber) + if (!_internal_has_phonenumber()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return phonenumber_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HydratedCallButton::set_allocated_phonenumber(std::string* phonenumber) { + if (phonenumber != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + phonenumber_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), phonenumber, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HydratedCallButton.phoneNumber) +} + +// ------------------------------------------------------------------- + +// HydratedTemplateButton + +// optional uint32 index = 4; +inline bool HydratedTemplateButton::_internal_has_index() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool HydratedTemplateButton::has_index() const { + return _internal_has_index(); +} +inline void HydratedTemplateButton::clear_index() { + index_ = 0u; + _has_bits_[0] &= ~0x00000001u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 HydratedTemplateButton::_internal_index() const { + return index_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 HydratedTemplateButton::index() const { + // @@protoc_insertion_point(field_get:proto.HydratedTemplateButton.index) + return _internal_index(); +} +inline void HydratedTemplateButton::_internal_set_index(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; + index_ = value; +} +inline void HydratedTemplateButton::set_index(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_index(value); + // @@protoc_insertion_point(field_set:proto.HydratedTemplateButton.index) +} + +// .proto.HydratedQuickReplyButton quickReplyButton = 1; +inline bool HydratedTemplateButton::_internal_has_quickreplybutton() const { + return hydratedButton_case() == kQuickReplyButton; +} +inline bool HydratedTemplateButton::has_quickreplybutton() const { + return _internal_has_quickreplybutton(); +} +inline void HydratedTemplateButton::set_has_quickreplybutton() { + _oneof_case_[0] = kQuickReplyButton; +} +inline void HydratedTemplateButton::clear_quickreplybutton() { + if (_internal_has_quickreplybutton()) { + if (GetArena() == nullptr) { + delete hydratedButton_.quickreplybutton_; + } + clear_has_hydratedButton(); + } +} +inline ::proto::HydratedQuickReplyButton* HydratedTemplateButton::release_quickreplybutton() { + // @@protoc_insertion_point(field_release:proto.HydratedTemplateButton.quickReplyButton) + if (_internal_has_quickreplybutton()) { + clear_has_hydratedButton(); + ::proto::HydratedQuickReplyButton* temp = hydratedButton_.quickreplybutton_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + hydratedButton_.quickreplybutton_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::HydratedQuickReplyButton& HydratedTemplateButton::_internal_quickreplybutton() const { + return _internal_has_quickreplybutton() + ? *hydratedButton_.quickreplybutton_ + : reinterpret_cast< ::proto::HydratedQuickReplyButton&>(::proto::_HydratedQuickReplyButton_default_instance_); +} +inline const ::proto::HydratedQuickReplyButton& HydratedTemplateButton::quickreplybutton() const { + // @@protoc_insertion_point(field_get:proto.HydratedTemplateButton.quickReplyButton) + return _internal_quickreplybutton(); +} +inline ::proto::HydratedQuickReplyButton* HydratedTemplateButton::unsafe_arena_release_quickreplybutton() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.HydratedTemplateButton.quickReplyButton) + if (_internal_has_quickreplybutton()) { + clear_has_hydratedButton(); + ::proto::HydratedQuickReplyButton* temp = hydratedButton_.quickreplybutton_; + hydratedButton_.quickreplybutton_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void HydratedTemplateButton::unsafe_arena_set_allocated_quickreplybutton(::proto::HydratedQuickReplyButton* quickreplybutton) { + clear_hydratedButton(); + if (quickreplybutton) { + set_has_quickreplybutton(); + hydratedButton_.quickreplybutton_ = quickreplybutton; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.HydratedTemplateButton.quickReplyButton) +} +inline ::proto::HydratedQuickReplyButton* HydratedTemplateButton::_internal_mutable_quickreplybutton() { + if (!_internal_has_quickreplybutton()) { + clear_hydratedButton(); + set_has_quickreplybutton(); + hydratedButton_.quickreplybutton_ = CreateMaybeMessage< ::proto::HydratedQuickReplyButton >(GetArena()); + } + return hydratedButton_.quickreplybutton_; +} +inline ::proto::HydratedQuickReplyButton* HydratedTemplateButton::mutable_quickreplybutton() { + // @@protoc_insertion_point(field_mutable:proto.HydratedTemplateButton.quickReplyButton) + return _internal_mutable_quickreplybutton(); +} + +// .proto.HydratedURLButton urlButton = 2; +inline bool HydratedTemplateButton::_internal_has_urlbutton() const { + return hydratedButton_case() == kUrlButton; +} +inline bool HydratedTemplateButton::has_urlbutton() const { + return _internal_has_urlbutton(); +} +inline void HydratedTemplateButton::set_has_urlbutton() { + _oneof_case_[0] = kUrlButton; +} +inline void HydratedTemplateButton::clear_urlbutton() { + if (_internal_has_urlbutton()) { + if (GetArena() == nullptr) { + delete hydratedButton_.urlbutton_; + } + clear_has_hydratedButton(); + } +} +inline ::proto::HydratedURLButton* HydratedTemplateButton::release_urlbutton() { + // @@protoc_insertion_point(field_release:proto.HydratedTemplateButton.urlButton) + if (_internal_has_urlbutton()) { + clear_has_hydratedButton(); + ::proto::HydratedURLButton* temp = hydratedButton_.urlbutton_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + hydratedButton_.urlbutton_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::HydratedURLButton& HydratedTemplateButton::_internal_urlbutton() const { + return _internal_has_urlbutton() + ? *hydratedButton_.urlbutton_ + : reinterpret_cast< ::proto::HydratedURLButton&>(::proto::_HydratedURLButton_default_instance_); +} +inline const ::proto::HydratedURLButton& HydratedTemplateButton::urlbutton() const { + // @@protoc_insertion_point(field_get:proto.HydratedTemplateButton.urlButton) + return _internal_urlbutton(); +} +inline ::proto::HydratedURLButton* HydratedTemplateButton::unsafe_arena_release_urlbutton() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.HydratedTemplateButton.urlButton) + if (_internal_has_urlbutton()) { + clear_has_hydratedButton(); + ::proto::HydratedURLButton* temp = hydratedButton_.urlbutton_; + hydratedButton_.urlbutton_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void HydratedTemplateButton::unsafe_arena_set_allocated_urlbutton(::proto::HydratedURLButton* urlbutton) { + clear_hydratedButton(); + if (urlbutton) { + set_has_urlbutton(); + hydratedButton_.urlbutton_ = urlbutton; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.HydratedTemplateButton.urlButton) +} +inline ::proto::HydratedURLButton* HydratedTemplateButton::_internal_mutable_urlbutton() { + if (!_internal_has_urlbutton()) { + clear_hydratedButton(); + set_has_urlbutton(); + hydratedButton_.urlbutton_ = CreateMaybeMessage< ::proto::HydratedURLButton >(GetArena()); + } + return hydratedButton_.urlbutton_; +} +inline ::proto::HydratedURLButton* HydratedTemplateButton::mutable_urlbutton() { + // @@protoc_insertion_point(field_mutable:proto.HydratedTemplateButton.urlButton) + return _internal_mutable_urlbutton(); +} + +// .proto.HydratedCallButton callButton = 3; +inline bool HydratedTemplateButton::_internal_has_callbutton() const { + return hydratedButton_case() == kCallButton; +} +inline bool HydratedTemplateButton::has_callbutton() const { + return _internal_has_callbutton(); +} +inline void HydratedTemplateButton::set_has_callbutton() { + _oneof_case_[0] = kCallButton; +} +inline void HydratedTemplateButton::clear_callbutton() { + if (_internal_has_callbutton()) { + if (GetArena() == nullptr) { + delete hydratedButton_.callbutton_; + } + clear_has_hydratedButton(); + } +} +inline ::proto::HydratedCallButton* HydratedTemplateButton::release_callbutton() { + // @@protoc_insertion_point(field_release:proto.HydratedTemplateButton.callButton) + if (_internal_has_callbutton()) { + clear_has_hydratedButton(); + ::proto::HydratedCallButton* temp = hydratedButton_.callbutton_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + hydratedButton_.callbutton_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::HydratedCallButton& HydratedTemplateButton::_internal_callbutton() const { + return _internal_has_callbutton() + ? *hydratedButton_.callbutton_ + : reinterpret_cast< ::proto::HydratedCallButton&>(::proto::_HydratedCallButton_default_instance_); +} +inline const ::proto::HydratedCallButton& HydratedTemplateButton::callbutton() const { + // @@protoc_insertion_point(field_get:proto.HydratedTemplateButton.callButton) + return _internal_callbutton(); +} +inline ::proto::HydratedCallButton* HydratedTemplateButton::unsafe_arena_release_callbutton() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.HydratedTemplateButton.callButton) + if (_internal_has_callbutton()) { + clear_has_hydratedButton(); + ::proto::HydratedCallButton* temp = hydratedButton_.callbutton_; + hydratedButton_.callbutton_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void HydratedTemplateButton::unsafe_arena_set_allocated_callbutton(::proto::HydratedCallButton* callbutton) { + clear_hydratedButton(); + if (callbutton) { + set_has_callbutton(); + hydratedButton_.callbutton_ = callbutton; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.HydratedTemplateButton.callButton) +} +inline ::proto::HydratedCallButton* HydratedTemplateButton::_internal_mutable_callbutton() { + if (!_internal_has_callbutton()) { + clear_hydratedButton(); + set_has_callbutton(); + hydratedButton_.callbutton_ = CreateMaybeMessage< ::proto::HydratedCallButton >(GetArena()); + } + return hydratedButton_.callbutton_; +} +inline ::proto::HydratedCallButton* HydratedTemplateButton::mutable_callbutton() { + // @@protoc_insertion_point(field_mutable:proto.HydratedTemplateButton.callButton) + return _internal_mutable_callbutton(); +} + +inline bool HydratedTemplateButton::has_hydratedButton() const { + return hydratedButton_case() != HYDRATEDBUTTON_NOT_SET; +} +inline void HydratedTemplateButton::clear_has_hydratedButton() { + _oneof_case_[0] = HYDRATEDBUTTON_NOT_SET; +} +inline HydratedTemplateButton::HydratedButtonCase HydratedTemplateButton::hydratedButton_case() const { + return HydratedTemplateButton::HydratedButtonCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// QuickReplyButton + +// optional .proto.HighlyStructuredMessage displayText = 1; +inline bool QuickReplyButton::_internal_has_displaytext() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || displaytext_ != nullptr); + return value; +} +inline bool QuickReplyButton::has_displaytext() const { + return _internal_has_displaytext(); +} +inline void QuickReplyButton::clear_displaytext() { + if (displaytext_ != nullptr) displaytext_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::proto::HighlyStructuredMessage& QuickReplyButton::_internal_displaytext() const { + const ::proto::HighlyStructuredMessage* p = displaytext_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::HighlyStructuredMessage&>( + ::proto::_HighlyStructuredMessage_default_instance_); +} +inline const ::proto::HighlyStructuredMessage& QuickReplyButton::displaytext() const { + // @@protoc_insertion_point(field_get:proto.QuickReplyButton.displayText) + return _internal_displaytext(); +} +inline void QuickReplyButton::unsafe_arena_set_allocated_displaytext( + ::proto::HighlyStructuredMessage* displaytext) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(displaytext_); + } + displaytext_ = displaytext; + if (displaytext) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.QuickReplyButton.displayText) +} +inline ::proto::HighlyStructuredMessage* QuickReplyButton::release_displaytext() { + _has_bits_[0] &= ~0x00000002u; + ::proto::HighlyStructuredMessage* temp = displaytext_; + displaytext_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::HighlyStructuredMessage* QuickReplyButton::unsafe_arena_release_displaytext() { + // @@protoc_insertion_point(field_release:proto.QuickReplyButton.displayText) + _has_bits_[0] &= ~0x00000002u; + ::proto::HighlyStructuredMessage* temp = displaytext_; + displaytext_ = nullptr; + return temp; +} +inline ::proto::HighlyStructuredMessage* QuickReplyButton::_internal_mutable_displaytext() { + _has_bits_[0] |= 0x00000002u; + if (displaytext_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArena()); + displaytext_ = p; + } + return displaytext_; +} +inline ::proto::HighlyStructuredMessage* QuickReplyButton::mutable_displaytext() { + // @@protoc_insertion_point(field_mutable:proto.QuickReplyButton.displayText) + return _internal_mutable_displaytext(); +} +inline void QuickReplyButton::set_allocated_displaytext(::proto::HighlyStructuredMessage* displaytext) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete displaytext_; + } + if (displaytext) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(displaytext); + if (message_arena != submessage_arena) { + displaytext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, displaytext, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + displaytext_ = displaytext; + // @@protoc_insertion_point(field_set_allocated:proto.QuickReplyButton.displayText) +} + +// optional string id = 2; +inline bool QuickReplyButton::_internal_has_id() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool QuickReplyButton::has_id() const { + return _internal_has_id(); +} +inline void QuickReplyButton::clear_id() { + id_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& QuickReplyButton::id() const { + // @@protoc_insertion_point(field_get:proto.QuickReplyButton.id) + return _internal_id(); +} +inline void QuickReplyButton::set_id(const std::string& value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:proto.QuickReplyButton.id) +} +inline std::string* QuickReplyButton::mutable_id() { + // @@protoc_insertion_point(field_mutable:proto.QuickReplyButton.id) + return _internal_mutable_id(); +} +inline const std::string& QuickReplyButton::_internal_id() const { + return id_.Get(); +} +inline void QuickReplyButton::_internal_set_id(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void QuickReplyButton::set_id(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.QuickReplyButton.id) +} +inline void QuickReplyButton::set_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.QuickReplyButton.id) +} +inline void QuickReplyButton::set_id(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.QuickReplyButton.id) +} +inline std::string* QuickReplyButton::_internal_mutable_id() { + _has_bits_[0] |= 0x00000001u; + return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* QuickReplyButton::release_id() { + // @@protoc_insertion_point(field_release:proto.QuickReplyButton.id) + if (!_internal_has_id()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void QuickReplyButton::set_allocated_id(std::string* id) { + if (id != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.QuickReplyButton.id) +} + +// ------------------------------------------------------------------- + +// URLButton + +// optional .proto.HighlyStructuredMessage displayText = 1; +inline bool URLButton::_internal_has_displaytext() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || displaytext_ != nullptr); + return value; +} +inline bool URLButton::has_displaytext() const { + return _internal_has_displaytext(); +} +inline void URLButton::clear_displaytext() { + if (displaytext_ != nullptr) displaytext_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::proto::HighlyStructuredMessage& URLButton::_internal_displaytext() const { + const ::proto::HighlyStructuredMessage* p = displaytext_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::HighlyStructuredMessage&>( + ::proto::_HighlyStructuredMessage_default_instance_); +} +inline const ::proto::HighlyStructuredMessage& URLButton::displaytext() const { + // @@protoc_insertion_point(field_get:proto.URLButton.displayText) + return _internal_displaytext(); +} +inline void URLButton::unsafe_arena_set_allocated_displaytext( + ::proto::HighlyStructuredMessage* displaytext) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(displaytext_); + } + displaytext_ = displaytext; + if (displaytext) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.URLButton.displayText) +} +inline ::proto::HighlyStructuredMessage* URLButton::release_displaytext() { + _has_bits_[0] &= ~0x00000001u; + ::proto::HighlyStructuredMessage* temp = displaytext_; + displaytext_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::HighlyStructuredMessage* URLButton::unsafe_arena_release_displaytext() { + // @@protoc_insertion_point(field_release:proto.URLButton.displayText) + _has_bits_[0] &= ~0x00000001u; + ::proto::HighlyStructuredMessage* temp = displaytext_; + displaytext_ = nullptr; + return temp; +} +inline ::proto::HighlyStructuredMessage* URLButton::_internal_mutable_displaytext() { + _has_bits_[0] |= 0x00000001u; + if (displaytext_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArena()); + displaytext_ = p; + } + return displaytext_; +} +inline ::proto::HighlyStructuredMessage* URLButton::mutable_displaytext() { + // @@protoc_insertion_point(field_mutable:proto.URLButton.displayText) + return _internal_mutable_displaytext(); +} +inline void URLButton::set_allocated_displaytext(::proto::HighlyStructuredMessage* displaytext) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete displaytext_; + } + if (displaytext) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(displaytext); + if (message_arena != submessage_arena) { + displaytext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, displaytext, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + displaytext_ = displaytext; + // @@protoc_insertion_point(field_set_allocated:proto.URLButton.displayText) +} + +// optional .proto.HighlyStructuredMessage url = 2; +inline bool URLButton::_internal_has_url() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || url_ != nullptr); + return value; +} +inline bool URLButton::has_url() const { + return _internal_has_url(); +} +inline void URLButton::clear_url() { + if (url_ != nullptr) url_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::proto::HighlyStructuredMessage& URLButton::_internal_url() const { + const ::proto::HighlyStructuredMessage* p = url_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::HighlyStructuredMessage&>( + ::proto::_HighlyStructuredMessage_default_instance_); +} +inline const ::proto::HighlyStructuredMessage& URLButton::url() const { + // @@protoc_insertion_point(field_get:proto.URLButton.url) + return _internal_url(); +} +inline void URLButton::unsafe_arena_set_allocated_url( + ::proto::HighlyStructuredMessage* url) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(url_); + } + url_ = url; + if (url) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.URLButton.url) +} +inline ::proto::HighlyStructuredMessage* URLButton::release_url() { + _has_bits_[0] &= ~0x00000002u; + ::proto::HighlyStructuredMessage* temp = url_; + url_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::HighlyStructuredMessage* URLButton::unsafe_arena_release_url() { + // @@protoc_insertion_point(field_release:proto.URLButton.url) + _has_bits_[0] &= ~0x00000002u; + ::proto::HighlyStructuredMessage* temp = url_; + url_ = nullptr; + return temp; +} +inline ::proto::HighlyStructuredMessage* URLButton::_internal_mutable_url() { + _has_bits_[0] |= 0x00000002u; + if (url_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArena()); + url_ = p; + } + return url_; +} +inline ::proto::HighlyStructuredMessage* URLButton::mutable_url() { + // @@protoc_insertion_point(field_mutable:proto.URLButton.url) + return _internal_mutable_url(); +} +inline void URLButton::set_allocated_url(::proto::HighlyStructuredMessage* url) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete url_; + } + if (url) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(url); + if (message_arena != submessage_arena) { + url = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, url, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + url_ = url; + // @@protoc_insertion_point(field_set_allocated:proto.URLButton.url) +} + +// ------------------------------------------------------------------- + +// CallButton + +// optional .proto.HighlyStructuredMessage displayText = 1; +inline bool CallButton::_internal_has_displaytext() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || displaytext_ != nullptr); + return value; +} +inline bool CallButton::has_displaytext() const { + return _internal_has_displaytext(); +} +inline void CallButton::clear_displaytext() { + if (displaytext_ != nullptr) displaytext_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::proto::HighlyStructuredMessage& CallButton::_internal_displaytext() const { + const ::proto::HighlyStructuredMessage* p = displaytext_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::HighlyStructuredMessage&>( + ::proto::_HighlyStructuredMessage_default_instance_); +} +inline const ::proto::HighlyStructuredMessage& CallButton::displaytext() const { + // @@protoc_insertion_point(field_get:proto.CallButton.displayText) + return _internal_displaytext(); +} +inline void CallButton::unsafe_arena_set_allocated_displaytext( + ::proto::HighlyStructuredMessage* displaytext) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(displaytext_); + } + displaytext_ = displaytext; + if (displaytext) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.CallButton.displayText) +} +inline ::proto::HighlyStructuredMessage* CallButton::release_displaytext() { + _has_bits_[0] &= ~0x00000001u; + ::proto::HighlyStructuredMessage* temp = displaytext_; + displaytext_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::HighlyStructuredMessage* CallButton::unsafe_arena_release_displaytext() { + // @@protoc_insertion_point(field_release:proto.CallButton.displayText) + _has_bits_[0] &= ~0x00000001u; + ::proto::HighlyStructuredMessage* temp = displaytext_; + displaytext_ = nullptr; + return temp; +} +inline ::proto::HighlyStructuredMessage* CallButton::_internal_mutable_displaytext() { + _has_bits_[0] |= 0x00000001u; + if (displaytext_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArena()); + displaytext_ = p; + } + return displaytext_; +} +inline ::proto::HighlyStructuredMessage* CallButton::mutable_displaytext() { + // @@protoc_insertion_point(field_mutable:proto.CallButton.displayText) + return _internal_mutable_displaytext(); +} +inline void CallButton::set_allocated_displaytext(::proto::HighlyStructuredMessage* displaytext) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete displaytext_; + } + if (displaytext) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(displaytext); + if (message_arena != submessage_arena) { + displaytext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, displaytext, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + displaytext_ = displaytext; + // @@protoc_insertion_point(field_set_allocated:proto.CallButton.displayText) +} + +// optional .proto.HighlyStructuredMessage phoneNumber = 2; +inline bool CallButton::_internal_has_phonenumber() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || phonenumber_ != nullptr); + return value; +} +inline bool CallButton::has_phonenumber() const { + return _internal_has_phonenumber(); +} +inline void CallButton::clear_phonenumber() { + if (phonenumber_ != nullptr) phonenumber_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::proto::HighlyStructuredMessage& CallButton::_internal_phonenumber() const { + const ::proto::HighlyStructuredMessage* p = phonenumber_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::HighlyStructuredMessage&>( + ::proto::_HighlyStructuredMessage_default_instance_); +} +inline const ::proto::HighlyStructuredMessage& CallButton::phonenumber() const { + // @@protoc_insertion_point(field_get:proto.CallButton.phoneNumber) + return _internal_phonenumber(); +} +inline void CallButton::unsafe_arena_set_allocated_phonenumber( + ::proto::HighlyStructuredMessage* phonenumber) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(phonenumber_); + } + phonenumber_ = phonenumber; + if (phonenumber) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.CallButton.phoneNumber) +} +inline ::proto::HighlyStructuredMessage* CallButton::release_phonenumber() { + _has_bits_[0] &= ~0x00000002u; + ::proto::HighlyStructuredMessage* temp = phonenumber_; + phonenumber_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::HighlyStructuredMessage* CallButton::unsafe_arena_release_phonenumber() { + // @@protoc_insertion_point(field_release:proto.CallButton.phoneNumber) + _has_bits_[0] &= ~0x00000002u; + ::proto::HighlyStructuredMessage* temp = phonenumber_; + phonenumber_ = nullptr; + return temp; +} +inline ::proto::HighlyStructuredMessage* CallButton::_internal_mutable_phonenumber() { + _has_bits_[0] |= 0x00000002u; + if (phonenumber_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArena()); + phonenumber_ = p; + } + return phonenumber_; +} +inline ::proto::HighlyStructuredMessage* CallButton::mutable_phonenumber() { + // @@protoc_insertion_point(field_mutable:proto.CallButton.phoneNumber) + return _internal_mutable_phonenumber(); +} +inline void CallButton::set_allocated_phonenumber(::proto::HighlyStructuredMessage* phonenumber) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete phonenumber_; + } + if (phonenumber) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(phonenumber); + if (message_arena != submessage_arena) { + phonenumber = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, phonenumber, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + phonenumber_ = phonenumber; + // @@protoc_insertion_point(field_set_allocated:proto.CallButton.phoneNumber) +} + +// ------------------------------------------------------------------- + +// TemplateButton + +// optional uint32 index = 4; +inline bool TemplateButton::_internal_has_index() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool TemplateButton::has_index() const { + return _internal_has_index(); +} +inline void TemplateButton::clear_index() { + index_ = 0u; + _has_bits_[0] &= ~0x00000001u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 TemplateButton::_internal_index() const { + return index_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 TemplateButton::index() const { + // @@protoc_insertion_point(field_get:proto.TemplateButton.index) + return _internal_index(); +} +inline void TemplateButton::_internal_set_index(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; + index_ = value; +} +inline void TemplateButton::set_index(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_index(value); + // @@protoc_insertion_point(field_set:proto.TemplateButton.index) +} + +// .proto.QuickReplyButton quickReplyButton = 1; +inline bool TemplateButton::_internal_has_quickreplybutton() const { + return button_case() == kQuickReplyButton; +} +inline bool TemplateButton::has_quickreplybutton() const { + return _internal_has_quickreplybutton(); +} +inline void TemplateButton::set_has_quickreplybutton() { + _oneof_case_[0] = kQuickReplyButton; +} +inline void TemplateButton::clear_quickreplybutton() { + if (_internal_has_quickreplybutton()) { + if (GetArena() == nullptr) { + delete button_.quickreplybutton_; + } + clear_has_button(); + } +} +inline ::proto::QuickReplyButton* TemplateButton::release_quickreplybutton() { + // @@protoc_insertion_point(field_release:proto.TemplateButton.quickReplyButton) + if (_internal_has_quickreplybutton()) { + clear_has_button(); + ::proto::QuickReplyButton* temp = button_.quickreplybutton_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + button_.quickreplybutton_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::QuickReplyButton& TemplateButton::_internal_quickreplybutton() const { + return _internal_has_quickreplybutton() + ? *button_.quickreplybutton_ + : reinterpret_cast< ::proto::QuickReplyButton&>(::proto::_QuickReplyButton_default_instance_); +} +inline const ::proto::QuickReplyButton& TemplateButton::quickreplybutton() const { + // @@protoc_insertion_point(field_get:proto.TemplateButton.quickReplyButton) + return _internal_quickreplybutton(); +} +inline ::proto::QuickReplyButton* TemplateButton::unsafe_arena_release_quickreplybutton() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.TemplateButton.quickReplyButton) + if (_internal_has_quickreplybutton()) { + clear_has_button(); + ::proto::QuickReplyButton* temp = button_.quickreplybutton_; + button_.quickreplybutton_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void TemplateButton::unsafe_arena_set_allocated_quickreplybutton(::proto::QuickReplyButton* quickreplybutton) { + clear_button(); + if (quickreplybutton) { + set_has_quickreplybutton(); + button_.quickreplybutton_ = quickreplybutton; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.TemplateButton.quickReplyButton) +} +inline ::proto::QuickReplyButton* TemplateButton::_internal_mutable_quickreplybutton() { + if (!_internal_has_quickreplybutton()) { + clear_button(); + set_has_quickreplybutton(); + button_.quickreplybutton_ = CreateMaybeMessage< ::proto::QuickReplyButton >(GetArena()); + } + return button_.quickreplybutton_; +} +inline ::proto::QuickReplyButton* TemplateButton::mutable_quickreplybutton() { + // @@protoc_insertion_point(field_mutable:proto.TemplateButton.quickReplyButton) + return _internal_mutable_quickreplybutton(); +} + +// .proto.URLButton urlButton = 2; +inline bool TemplateButton::_internal_has_urlbutton() const { + return button_case() == kUrlButton; +} +inline bool TemplateButton::has_urlbutton() const { + return _internal_has_urlbutton(); +} +inline void TemplateButton::set_has_urlbutton() { + _oneof_case_[0] = kUrlButton; +} +inline void TemplateButton::clear_urlbutton() { + if (_internal_has_urlbutton()) { + if (GetArena() == nullptr) { + delete button_.urlbutton_; + } + clear_has_button(); + } +} +inline ::proto::URLButton* TemplateButton::release_urlbutton() { + // @@protoc_insertion_point(field_release:proto.TemplateButton.urlButton) + if (_internal_has_urlbutton()) { + clear_has_button(); + ::proto::URLButton* temp = button_.urlbutton_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + button_.urlbutton_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::URLButton& TemplateButton::_internal_urlbutton() const { + return _internal_has_urlbutton() + ? *button_.urlbutton_ + : reinterpret_cast< ::proto::URLButton&>(::proto::_URLButton_default_instance_); +} +inline const ::proto::URLButton& TemplateButton::urlbutton() const { + // @@protoc_insertion_point(field_get:proto.TemplateButton.urlButton) + return _internal_urlbutton(); +} +inline ::proto::URLButton* TemplateButton::unsafe_arena_release_urlbutton() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.TemplateButton.urlButton) + if (_internal_has_urlbutton()) { + clear_has_button(); + ::proto::URLButton* temp = button_.urlbutton_; + button_.urlbutton_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void TemplateButton::unsafe_arena_set_allocated_urlbutton(::proto::URLButton* urlbutton) { + clear_button(); + if (urlbutton) { + set_has_urlbutton(); + button_.urlbutton_ = urlbutton; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.TemplateButton.urlButton) +} +inline ::proto::URLButton* TemplateButton::_internal_mutable_urlbutton() { + if (!_internal_has_urlbutton()) { + clear_button(); + set_has_urlbutton(); + button_.urlbutton_ = CreateMaybeMessage< ::proto::URLButton >(GetArena()); + } + return button_.urlbutton_; +} +inline ::proto::URLButton* TemplateButton::mutable_urlbutton() { + // @@protoc_insertion_point(field_mutable:proto.TemplateButton.urlButton) + return _internal_mutable_urlbutton(); +} + +// .proto.CallButton callButton = 3; +inline bool TemplateButton::_internal_has_callbutton() const { + return button_case() == kCallButton; +} +inline bool TemplateButton::has_callbutton() const { + return _internal_has_callbutton(); +} +inline void TemplateButton::set_has_callbutton() { + _oneof_case_[0] = kCallButton; +} +inline void TemplateButton::clear_callbutton() { + if (_internal_has_callbutton()) { + if (GetArena() == nullptr) { + delete button_.callbutton_; + } + clear_has_button(); + } +} +inline ::proto::CallButton* TemplateButton::release_callbutton() { + // @@protoc_insertion_point(field_release:proto.TemplateButton.callButton) + if (_internal_has_callbutton()) { + clear_has_button(); + ::proto::CallButton* temp = button_.callbutton_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + button_.callbutton_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::CallButton& TemplateButton::_internal_callbutton() const { + return _internal_has_callbutton() + ? *button_.callbutton_ + : reinterpret_cast< ::proto::CallButton&>(::proto::_CallButton_default_instance_); +} +inline const ::proto::CallButton& TemplateButton::callbutton() const { + // @@protoc_insertion_point(field_get:proto.TemplateButton.callButton) + return _internal_callbutton(); +} +inline ::proto::CallButton* TemplateButton::unsafe_arena_release_callbutton() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.TemplateButton.callButton) + if (_internal_has_callbutton()) { + clear_has_button(); + ::proto::CallButton* temp = button_.callbutton_; + button_.callbutton_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void TemplateButton::unsafe_arena_set_allocated_callbutton(::proto::CallButton* callbutton) { + clear_button(); + if (callbutton) { + set_has_callbutton(); + button_.callbutton_ = callbutton; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.TemplateButton.callButton) +} +inline ::proto::CallButton* TemplateButton::_internal_mutable_callbutton() { + if (!_internal_has_callbutton()) { + clear_button(); + set_has_callbutton(); + button_.callbutton_ = CreateMaybeMessage< ::proto::CallButton >(GetArena()); + } + return button_.callbutton_; +} +inline ::proto::CallButton* TemplateButton::mutable_callbutton() { + // @@protoc_insertion_point(field_mutable:proto.TemplateButton.callButton) + return _internal_mutable_callbutton(); +} + +inline bool TemplateButton::has_button() const { + return button_case() != BUTTON_NOT_SET; +} +inline void TemplateButton::clear_has_button() { + _oneof_case_[0] = BUTTON_NOT_SET; +} +inline TemplateButton::ButtonCase TemplateButton::button_case() const { + return TemplateButton::ButtonCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// Location + +// optional double degreesLatitude = 1; +inline bool Location::_internal_has_degreeslatitude() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool Location::has_degreeslatitude() const { + return _internal_has_degreeslatitude(); +} +inline void Location::clear_degreeslatitude() { + degreeslatitude_ = 0; + _has_bits_[0] &= ~0x00000002u; +} +inline double Location::_internal_degreeslatitude() const { + return degreeslatitude_; +} +inline double Location::degreeslatitude() const { + // @@protoc_insertion_point(field_get:proto.Location.degreesLatitude) + return _internal_degreeslatitude(); +} +inline void Location::_internal_set_degreeslatitude(double value) { + _has_bits_[0] |= 0x00000002u; + degreeslatitude_ = value; +} +inline void Location::set_degreeslatitude(double value) { + _internal_set_degreeslatitude(value); + // @@protoc_insertion_point(field_set:proto.Location.degreesLatitude) +} + +// optional double degreesLongitude = 2; +inline bool Location::_internal_has_degreeslongitude() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool Location::has_degreeslongitude() const { + return _internal_has_degreeslongitude(); +} +inline void Location::clear_degreeslongitude() { + degreeslongitude_ = 0; + _has_bits_[0] &= ~0x00000004u; +} +inline double Location::_internal_degreeslongitude() const { + return degreeslongitude_; +} +inline double Location::degreeslongitude() const { + // @@protoc_insertion_point(field_get:proto.Location.degreesLongitude) + return _internal_degreeslongitude(); +} +inline void Location::_internal_set_degreeslongitude(double value) { + _has_bits_[0] |= 0x00000004u; + degreeslongitude_ = value; +} +inline void Location::set_degreeslongitude(double value) { + _internal_set_degreeslongitude(value); + // @@protoc_insertion_point(field_set:proto.Location.degreesLongitude) +} + +// optional string name = 3; +inline bool Location::_internal_has_name() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool Location::has_name() const { + return _internal_has_name(); +} +inline void Location::clear_name() { + name_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& Location::name() const { + // @@protoc_insertion_point(field_get:proto.Location.name) + return _internal_name(); +} +inline void Location::set_name(const std::string& value) { + _internal_set_name(value); + // @@protoc_insertion_point(field_set:proto.Location.name) +} +inline std::string* Location::mutable_name() { + // @@protoc_insertion_point(field_mutable:proto.Location.name) + return _internal_mutable_name(); +} +inline const std::string& Location::_internal_name() const { + return name_.Get(); +} +inline void Location::_internal_set_name(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Location::set_name(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + name_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.Location.name) +} +inline void Location::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.Location.name) +} +inline void Location::set_name(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.Location.name) +} +inline std::string* Location::_internal_mutable_name() { + _has_bits_[0] |= 0x00000001u; + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Location::release_name() { + // @@protoc_insertion_point(field_release:proto.Location.name) + if (!_internal_has_name()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Location::set_allocated_name(std::string* name) { + if (name != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.Location.name) +} + +// ------------------------------------------------------------------- + +// Point + +// optional int32 xDeprecated = 1; +inline bool Point::_internal_has_xdeprecated() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool Point::has_xdeprecated() const { + return _internal_has_xdeprecated(); +} +inline void Point::clear_xdeprecated() { + xdeprecated_ = 0; + _has_bits_[0] &= ~0x00000001u; +} +inline ::PROTOBUF_NAMESPACE_ID::int32 Point::_internal_xdeprecated() const { + return xdeprecated_; +} +inline ::PROTOBUF_NAMESPACE_ID::int32 Point::xdeprecated() const { + // @@protoc_insertion_point(field_get:proto.Point.xDeprecated) + return _internal_xdeprecated(); +} +inline void Point::_internal_set_xdeprecated(::PROTOBUF_NAMESPACE_ID::int32 value) { + _has_bits_[0] |= 0x00000001u; + xdeprecated_ = value; +} +inline void Point::set_xdeprecated(::PROTOBUF_NAMESPACE_ID::int32 value) { + _internal_set_xdeprecated(value); + // @@protoc_insertion_point(field_set:proto.Point.xDeprecated) +} + +// optional int32 yDeprecated = 2; +inline bool Point::_internal_has_ydeprecated() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool Point::has_ydeprecated() const { + return _internal_has_ydeprecated(); +} +inline void Point::clear_ydeprecated() { + ydeprecated_ = 0; + _has_bits_[0] &= ~0x00000002u; +} +inline ::PROTOBUF_NAMESPACE_ID::int32 Point::_internal_ydeprecated() const { + return ydeprecated_; +} +inline ::PROTOBUF_NAMESPACE_ID::int32 Point::ydeprecated() const { + // @@protoc_insertion_point(field_get:proto.Point.yDeprecated) + return _internal_ydeprecated(); +} +inline void Point::_internal_set_ydeprecated(::PROTOBUF_NAMESPACE_ID::int32 value) { + _has_bits_[0] |= 0x00000002u; + ydeprecated_ = value; +} +inline void Point::set_ydeprecated(::PROTOBUF_NAMESPACE_ID::int32 value) { + _internal_set_ydeprecated(value); + // @@protoc_insertion_point(field_set:proto.Point.yDeprecated) +} + +// optional double x = 3; +inline bool Point::_internal_has_x() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool Point::has_x() const { + return _internal_has_x(); +} +inline void Point::clear_x() { + x_ = 0; + _has_bits_[0] &= ~0x00000004u; +} +inline double Point::_internal_x() const { + return x_; +} +inline double Point::x() const { + // @@protoc_insertion_point(field_get:proto.Point.x) + return _internal_x(); +} +inline void Point::_internal_set_x(double value) { + _has_bits_[0] |= 0x00000004u; + x_ = value; +} +inline void Point::set_x(double value) { + _internal_set_x(value); + // @@protoc_insertion_point(field_set:proto.Point.x) +} + +// optional double y = 4; +inline bool Point::_internal_has_y() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool Point::has_y() const { + return _internal_has_y(); +} +inline void Point::clear_y() { + y_ = 0; + _has_bits_[0] &= ~0x00000008u; +} +inline double Point::_internal_y() const { + return y_; +} +inline double Point::y() const { + // @@protoc_insertion_point(field_get:proto.Point.y) + return _internal_y(); +} +inline void Point::_internal_set_y(double value) { + _has_bits_[0] |= 0x00000008u; + y_ = value; +} +inline void Point::set_y(double value) { + _internal_set_y(value); + // @@protoc_insertion_point(field_set:proto.Point.y) +} + +// ------------------------------------------------------------------- + +// InteractiveAnnotation + +// repeated .proto.Point polygonVertices = 1; +inline int InteractiveAnnotation::_internal_polygonvertices_size() const { + return polygonvertices_.size(); +} +inline int InteractiveAnnotation::polygonvertices_size() const { + return _internal_polygonvertices_size(); +} +inline void InteractiveAnnotation::clear_polygonvertices() { + polygonvertices_.Clear(); +} +inline ::proto::Point* InteractiveAnnotation::mutable_polygonvertices(int index) { + // @@protoc_insertion_point(field_mutable:proto.InteractiveAnnotation.polygonVertices) + return polygonvertices_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Point >* +InteractiveAnnotation::mutable_polygonvertices() { + // @@protoc_insertion_point(field_mutable_list:proto.InteractiveAnnotation.polygonVertices) + return &polygonvertices_; +} +inline const ::proto::Point& InteractiveAnnotation::_internal_polygonvertices(int index) const { + return polygonvertices_.Get(index); +} +inline const ::proto::Point& InteractiveAnnotation::polygonvertices(int index) const { + // @@protoc_insertion_point(field_get:proto.InteractiveAnnotation.polygonVertices) + return _internal_polygonvertices(index); +} +inline ::proto::Point* InteractiveAnnotation::_internal_add_polygonvertices() { + return polygonvertices_.Add(); +} +inline ::proto::Point* InteractiveAnnotation::add_polygonvertices() { + // @@protoc_insertion_point(field_add:proto.InteractiveAnnotation.polygonVertices) + return _internal_add_polygonvertices(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Point >& +InteractiveAnnotation::polygonvertices() const { + // @@protoc_insertion_point(field_list:proto.InteractiveAnnotation.polygonVertices) + return polygonvertices_; +} + +// .proto.Location location = 2; +inline bool InteractiveAnnotation::_internal_has_location() const { + return action_case() == kLocation; +} +inline bool InteractiveAnnotation::has_location() const { + return _internal_has_location(); +} +inline void InteractiveAnnotation::set_has_location() { + _oneof_case_[0] = kLocation; +} +inline void InteractiveAnnotation::clear_location() { + if (_internal_has_location()) { + if (GetArena() == nullptr) { + delete action_.location_; + } + clear_has_action(); + } +} +inline ::proto::Location* InteractiveAnnotation::release_location() { + // @@protoc_insertion_point(field_release:proto.InteractiveAnnotation.location) + if (_internal_has_location()) { + clear_has_action(); + ::proto::Location* temp = action_.location_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + action_.location_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::Location& InteractiveAnnotation::_internal_location() const { + return _internal_has_location() + ? *action_.location_ + : reinterpret_cast< ::proto::Location&>(::proto::_Location_default_instance_); +} +inline const ::proto::Location& InteractiveAnnotation::location() const { + // @@protoc_insertion_point(field_get:proto.InteractiveAnnotation.location) + return _internal_location(); +} +inline ::proto::Location* InteractiveAnnotation::unsafe_arena_release_location() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.InteractiveAnnotation.location) + if (_internal_has_location()) { + clear_has_action(); + ::proto::Location* temp = action_.location_; + action_.location_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void InteractiveAnnotation::unsafe_arena_set_allocated_location(::proto::Location* location) { + clear_action(); + if (location) { + set_has_location(); + action_.location_ = location; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.InteractiveAnnotation.location) +} +inline ::proto::Location* InteractiveAnnotation::_internal_mutable_location() { + if (!_internal_has_location()) { + clear_action(); + set_has_location(); + action_.location_ = CreateMaybeMessage< ::proto::Location >(GetArena()); + } + return action_.location_; +} +inline ::proto::Location* InteractiveAnnotation::mutable_location() { + // @@protoc_insertion_point(field_mutable:proto.InteractiveAnnotation.location) + return _internal_mutable_location(); +} + +inline bool InteractiveAnnotation::has_action() const { + return action_case() != ACTION_NOT_SET; +} +inline void InteractiveAnnotation::clear_has_action() { + _oneof_case_[0] = ACTION_NOT_SET; +} +inline InteractiveAnnotation::ActionCase InteractiveAnnotation::action_case() const { + return InteractiveAnnotation::ActionCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// DeviceListMetadata + +// optional bytes senderKeyHash = 1; +inline bool DeviceListMetadata::_internal_has_senderkeyhash() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool DeviceListMetadata::has_senderkeyhash() const { + return _internal_has_senderkeyhash(); +} +inline void DeviceListMetadata::clear_senderkeyhash() { + senderkeyhash_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& DeviceListMetadata::senderkeyhash() const { + // @@protoc_insertion_point(field_get:proto.DeviceListMetadata.senderKeyHash) + return _internal_senderkeyhash(); +} +inline void DeviceListMetadata::set_senderkeyhash(const std::string& value) { + _internal_set_senderkeyhash(value); + // @@protoc_insertion_point(field_set:proto.DeviceListMetadata.senderKeyHash) +} +inline std::string* DeviceListMetadata::mutable_senderkeyhash() { + // @@protoc_insertion_point(field_mutable:proto.DeviceListMetadata.senderKeyHash) + return _internal_mutable_senderkeyhash(); +} +inline const std::string& DeviceListMetadata::_internal_senderkeyhash() const { + return senderkeyhash_.Get(); +} +inline void DeviceListMetadata::_internal_set_senderkeyhash(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + senderkeyhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DeviceListMetadata::set_senderkeyhash(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + senderkeyhash_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.DeviceListMetadata.senderKeyHash) +} +inline void DeviceListMetadata::set_senderkeyhash(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + senderkeyhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.DeviceListMetadata.senderKeyHash) +} +inline void DeviceListMetadata::set_senderkeyhash(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + senderkeyhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.DeviceListMetadata.senderKeyHash) +} +inline std::string* DeviceListMetadata::_internal_mutable_senderkeyhash() { + _has_bits_[0] |= 0x00000001u; + return senderkeyhash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DeviceListMetadata::release_senderkeyhash() { + // @@protoc_insertion_point(field_release:proto.DeviceListMetadata.senderKeyHash) + if (!_internal_has_senderkeyhash()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return senderkeyhash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DeviceListMetadata::set_allocated_senderkeyhash(std::string* senderkeyhash) { + if (senderkeyhash != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + senderkeyhash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), senderkeyhash, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.DeviceListMetadata.senderKeyHash) +} + +// optional uint64 senderTimestamp = 2; +inline bool DeviceListMetadata::_internal_has_sendertimestamp() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool DeviceListMetadata::has_sendertimestamp() const { + return _internal_has_sendertimestamp(); +} +inline void DeviceListMetadata::clear_sendertimestamp() { + sendertimestamp_ = PROTOBUF_ULONGLONG(0); + _has_bits_[0] &= ~0x00000004u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 DeviceListMetadata::_internal_sendertimestamp() const { + return sendertimestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 DeviceListMetadata::sendertimestamp() const { + // @@protoc_insertion_point(field_get:proto.DeviceListMetadata.senderTimestamp) + return _internal_sendertimestamp(); +} +inline void DeviceListMetadata::_internal_set_sendertimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _has_bits_[0] |= 0x00000004u; + sendertimestamp_ = value; +} +inline void DeviceListMetadata::set_sendertimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_sendertimestamp(value); + // @@protoc_insertion_point(field_set:proto.DeviceListMetadata.senderTimestamp) +} + +// optional bytes recipientKeyHash = 8; +inline bool DeviceListMetadata::_internal_has_recipientkeyhash() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool DeviceListMetadata::has_recipientkeyhash() const { + return _internal_has_recipientkeyhash(); +} +inline void DeviceListMetadata::clear_recipientkeyhash() { + recipientkeyhash_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& DeviceListMetadata::recipientkeyhash() const { + // @@protoc_insertion_point(field_get:proto.DeviceListMetadata.recipientKeyHash) + return _internal_recipientkeyhash(); +} +inline void DeviceListMetadata::set_recipientkeyhash(const std::string& value) { + _internal_set_recipientkeyhash(value); + // @@protoc_insertion_point(field_set:proto.DeviceListMetadata.recipientKeyHash) +} +inline std::string* DeviceListMetadata::mutable_recipientkeyhash() { + // @@protoc_insertion_point(field_mutable:proto.DeviceListMetadata.recipientKeyHash) + return _internal_mutable_recipientkeyhash(); +} +inline const std::string& DeviceListMetadata::_internal_recipientkeyhash() const { + return recipientkeyhash_.Get(); +} +inline void DeviceListMetadata::_internal_set_recipientkeyhash(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + recipientkeyhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DeviceListMetadata::set_recipientkeyhash(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + recipientkeyhash_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.DeviceListMetadata.recipientKeyHash) +} +inline void DeviceListMetadata::set_recipientkeyhash(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + recipientkeyhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.DeviceListMetadata.recipientKeyHash) +} +inline void DeviceListMetadata::set_recipientkeyhash(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + recipientkeyhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.DeviceListMetadata.recipientKeyHash) +} +inline std::string* DeviceListMetadata::_internal_mutable_recipientkeyhash() { + _has_bits_[0] |= 0x00000002u; + return recipientkeyhash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DeviceListMetadata::release_recipientkeyhash() { + // @@protoc_insertion_point(field_release:proto.DeviceListMetadata.recipientKeyHash) + if (!_internal_has_recipientkeyhash()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return recipientkeyhash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DeviceListMetadata::set_allocated_recipientkeyhash(std::string* recipientkeyhash) { + if (recipientkeyhash != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + recipientkeyhash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), recipientkeyhash, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.DeviceListMetadata.recipientKeyHash) +} + +// optional uint64 recipientTimestamp = 9; +inline bool DeviceListMetadata::_internal_has_recipienttimestamp() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool DeviceListMetadata::has_recipienttimestamp() const { + return _internal_has_recipienttimestamp(); +} +inline void DeviceListMetadata::clear_recipienttimestamp() { + recipienttimestamp_ = PROTOBUF_ULONGLONG(0); + _has_bits_[0] &= ~0x00000008u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 DeviceListMetadata::_internal_recipienttimestamp() const { + return recipienttimestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 DeviceListMetadata::recipienttimestamp() const { + // @@protoc_insertion_point(field_get:proto.DeviceListMetadata.recipientTimestamp) + return _internal_recipienttimestamp(); +} +inline void DeviceListMetadata::_internal_set_recipienttimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _has_bits_[0] |= 0x00000008u; + recipienttimestamp_ = value; +} +inline void DeviceListMetadata::set_recipienttimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_recipienttimestamp(value); + // @@protoc_insertion_point(field_set:proto.DeviceListMetadata.recipientTimestamp) +} + +// ------------------------------------------------------------------- + +// MessageContextInfo + +// optional .proto.DeviceListMetadata deviceListMetadata = 1; +inline bool MessageContextInfo::_internal_has_devicelistmetadata() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || devicelistmetadata_ != nullptr); + return value; +} +inline bool MessageContextInfo::has_devicelistmetadata() const { + return _internal_has_devicelistmetadata(); +} +inline void MessageContextInfo::clear_devicelistmetadata() { + if (devicelistmetadata_ != nullptr) devicelistmetadata_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::proto::DeviceListMetadata& MessageContextInfo::_internal_devicelistmetadata() const { + const ::proto::DeviceListMetadata* p = devicelistmetadata_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::DeviceListMetadata&>( + ::proto::_DeviceListMetadata_default_instance_); +} +inline const ::proto::DeviceListMetadata& MessageContextInfo::devicelistmetadata() const { + // @@protoc_insertion_point(field_get:proto.MessageContextInfo.deviceListMetadata) + return _internal_devicelistmetadata(); +} +inline void MessageContextInfo::unsafe_arena_set_allocated_devicelistmetadata( + ::proto::DeviceListMetadata* devicelistmetadata) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(devicelistmetadata_); + } + devicelistmetadata_ = devicelistmetadata; + if (devicelistmetadata) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.MessageContextInfo.deviceListMetadata) +} +inline ::proto::DeviceListMetadata* MessageContextInfo::release_devicelistmetadata() { + _has_bits_[0] &= ~0x00000001u; + ::proto::DeviceListMetadata* temp = devicelistmetadata_; + devicelistmetadata_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::DeviceListMetadata* MessageContextInfo::unsafe_arena_release_devicelistmetadata() { + // @@protoc_insertion_point(field_release:proto.MessageContextInfo.deviceListMetadata) + _has_bits_[0] &= ~0x00000001u; + ::proto::DeviceListMetadata* temp = devicelistmetadata_; + devicelistmetadata_ = nullptr; + return temp; +} +inline ::proto::DeviceListMetadata* MessageContextInfo::_internal_mutable_devicelistmetadata() { + _has_bits_[0] |= 0x00000001u; + if (devicelistmetadata_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::DeviceListMetadata>(GetArena()); + devicelistmetadata_ = p; + } + return devicelistmetadata_; +} +inline ::proto::DeviceListMetadata* MessageContextInfo::mutable_devicelistmetadata() { + // @@protoc_insertion_point(field_mutable:proto.MessageContextInfo.deviceListMetadata) + return _internal_mutable_devicelistmetadata(); +} +inline void MessageContextInfo::set_allocated_devicelistmetadata(::proto::DeviceListMetadata* devicelistmetadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete devicelistmetadata_; + } + if (devicelistmetadata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(devicelistmetadata); + if (message_arena != submessage_arena) { + devicelistmetadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, devicelistmetadata, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + devicelistmetadata_ = devicelistmetadata; + // @@protoc_insertion_point(field_set_allocated:proto.MessageContextInfo.deviceListMetadata) +} + +// ------------------------------------------------------------------- + +// AdReplyInfo + +// optional string advertiserName = 1; +inline bool AdReplyInfo::_internal_has_advertisername() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool AdReplyInfo::has_advertisername() const { + return _internal_has_advertisername(); +} +inline void AdReplyInfo::clear_advertisername() { + advertisername_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& AdReplyInfo::advertisername() const { + // @@protoc_insertion_point(field_get:proto.AdReplyInfo.advertiserName) + return _internal_advertisername(); +} +inline void AdReplyInfo::set_advertisername(const std::string& value) { + _internal_set_advertisername(value); + // @@protoc_insertion_point(field_set:proto.AdReplyInfo.advertiserName) +} +inline std::string* AdReplyInfo::mutable_advertisername() { + // @@protoc_insertion_point(field_mutable:proto.AdReplyInfo.advertiserName) + return _internal_mutable_advertisername(); +} +inline const std::string& AdReplyInfo::_internal_advertisername() const { + return advertisername_.Get(); +} +inline void AdReplyInfo::_internal_set_advertisername(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + advertisername_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AdReplyInfo::set_advertisername(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + advertisername_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.AdReplyInfo.advertiserName) +} +inline void AdReplyInfo::set_advertisername(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + advertisername_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.AdReplyInfo.advertiserName) +} +inline void AdReplyInfo::set_advertisername(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + advertisername_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.AdReplyInfo.advertiserName) +} +inline std::string* AdReplyInfo::_internal_mutable_advertisername() { + _has_bits_[0] |= 0x00000001u; + return advertisername_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AdReplyInfo::release_advertisername() { + // @@protoc_insertion_point(field_release:proto.AdReplyInfo.advertiserName) + if (!_internal_has_advertisername()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return advertisername_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AdReplyInfo::set_allocated_advertisername(std::string* advertisername) { + if (advertisername != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + advertisername_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), advertisername, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.AdReplyInfo.advertiserName) +} + +// optional .proto.AdReplyInfo.AdReplyInfoMediaType mediaType = 2; +inline bool AdReplyInfo::_internal_has_mediatype() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool AdReplyInfo::has_mediatype() const { + return _internal_has_mediatype(); +} +inline void AdReplyInfo::clear_mediatype() { + mediatype_ = 0; + _has_bits_[0] &= ~0x00000008u; +} +inline ::proto::AdReplyInfo_AdReplyInfoMediaType AdReplyInfo::_internal_mediatype() const { + return static_cast< ::proto::AdReplyInfo_AdReplyInfoMediaType >(mediatype_); +} +inline ::proto::AdReplyInfo_AdReplyInfoMediaType AdReplyInfo::mediatype() const { + // @@protoc_insertion_point(field_get:proto.AdReplyInfo.mediaType) + return _internal_mediatype(); +} +inline void AdReplyInfo::_internal_set_mediatype(::proto::AdReplyInfo_AdReplyInfoMediaType value) { + assert(::proto::AdReplyInfo_AdReplyInfoMediaType_IsValid(value)); + _has_bits_[0] |= 0x00000008u; + mediatype_ = value; +} +inline void AdReplyInfo::set_mediatype(::proto::AdReplyInfo_AdReplyInfoMediaType value) { + _internal_set_mediatype(value); + // @@protoc_insertion_point(field_set:proto.AdReplyInfo.mediaType) +} + +// optional bytes jpegThumbnail = 16; +inline bool AdReplyInfo::_internal_has_jpegthumbnail() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool AdReplyInfo::has_jpegthumbnail() const { + return _internal_has_jpegthumbnail(); +} +inline void AdReplyInfo::clear_jpegthumbnail() { + jpegthumbnail_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& AdReplyInfo::jpegthumbnail() const { + // @@protoc_insertion_point(field_get:proto.AdReplyInfo.jpegThumbnail) + return _internal_jpegthumbnail(); +} +inline void AdReplyInfo::set_jpegthumbnail(const std::string& value) { + _internal_set_jpegthumbnail(value); + // @@protoc_insertion_point(field_set:proto.AdReplyInfo.jpegThumbnail) +} +inline std::string* AdReplyInfo::mutable_jpegthumbnail() { + // @@protoc_insertion_point(field_mutable:proto.AdReplyInfo.jpegThumbnail) + return _internal_mutable_jpegthumbnail(); +} +inline const std::string& AdReplyInfo::_internal_jpegthumbnail() const { + return jpegthumbnail_.Get(); +} +inline void AdReplyInfo::_internal_set_jpegthumbnail(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AdReplyInfo::set_jpegthumbnail(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + jpegthumbnail_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.AdReplyInfo.jpegThumbnail) +} +inline void AdReplyInfo::set_jpegthumbnail(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.AdReplyInfo.jpegThumbnail) +} +inline void AdReplyInfo::set_jpegthumbnail(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.AdReplyInfo.jpegThumbnail) +} +inline std::string* AdReplyInfo::_internal_mutable_jpegthumbnail() { + _has_bits_[0] |= 0x00000002u; + return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AdReplyInfo::release_jpegthumbnail() { + // @@protoc_insertion_point(field_release:proto.AdReplyInfo.jpegThumbnail) + if (!_internal_has_jpegthumbnail()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AdReplyInfo::set_allocated_jpegthumbnail(std::string* jpegthumbnail) { + if (jpegthumbnail != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + jpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), jpegthumbnail, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.AdReplyInfo.jpegThumbnail) +} + +// optional string caption = 17; +inline bool AdReplyInfo::_internal_has_caption() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool AdReplyInfo::has_caption() const { + return _internal_has_caption(); +} +inline void AdReplyInfo::clear_caption() { + caption_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& AdReplyInfo::caption() const { + // @@protoc_insertion_point(field_get:proto.AdReplyInfo.caption) + return _internal_caption(); +} +inline void AdReplyInfo::set_caption(const std::string& value) { + _internal_set_caption(value); + // @@protoc_insertion_point(field_set:proto.AdReplyInfo.caption) +} +inline std::string* AdReplyInfo::mutable_caption() { + // @@protoc_insertion_point(field_mutable:proto.AdReplyInfo.caption) + return _internal_mutable_caption(); +} +inline const std::string& AdReplyInfo::_internal_caption() const { + return caption_.Get(); +} +inline void AdReplyInfo::_internal_set_caption(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AdReplyInfo::set_caption(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + caption_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.AdReplyInfo.caption) +} +inline void AdReplyInfo::set_caption(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.AdReplyInfo.caption) +} +inline void AdReplyInfo::set_caption(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.AdReplyInfo.caption) +} +inline std::string* AdReplyInfo::_internal_mutable_caption() { + _has_bits_[0] |= 0x00000004u; + return caption_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AdReplyInfo::release_caption() { + // @@protoc_insertion_point(field_release:proto.AdReplyInfo.caption) + if (!_internal_has_caption()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return caption_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AdReplyInfo::set_allocated_caption(std::string* caption) { + if (caption != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + caption_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), caption, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.AdReplyInfo.caption) +} + +// ------------------------------------------------------------------- + +// ExternalAdReplyInfo + +// optional string title = 1; +inline bool ExternalAdReplyInfo::_internal_has_title() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool ExternalAdReplyInfo::has_title() const { + return _internal_has_title(); +} +inline void ExternalAdReplyInfo::clear_title() { + title_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& ExternalAdReplyInfo::title() const { + // @@protoc_insertion_point(field_get:proto.ExternalAdReplyInfo.title) + return _internal_title(); +} +inline void ExternalAdReplyInfo::set_title(const std::string& value) { + _internal_set_title(value); + // @@protoc_insertion_point(field_set:proto.ExternalAdReplyInfo.title) +} +inline std::string* ExternalAdReplyInfo::mutable_title() { + // @@protoc_insertion_point(field_mutable:proto.ExternalAdReplyInfo.title) + return _internal_mutable_title(); +} +inline const std::string& ExternalAdReplyInfo::_internal_title() const { + return title_.Get(); +} +inline void ExternalAdReplyInfo::_internal_set_title(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ExternalAdReplyInfo::set_title(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + title_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ExternalAdReplyInfo.title) +} +inline void ExternalAdReplyInfo::set_title(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ExternalAdReplyInfo.title) +} +inline void ExternalAdReplyInfo::set_title(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ExternalAdReplyInfo.title) +} +inline std::string* ExternalAdReplyInfo::_internal_mutable_title() { + _has_bits_[0] |= 0x00000001u; + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ExternalAdReplyInfo::release_title() { + // @@protoc_insertion_point(field_release:proto.ExternalAdReplyInfo.title) + if (!_internal_has_title()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ExternalAdReplyInfo::set_allocated_title(std::string* title) { + if (title != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ExternalAdReplyInfo.title) +} + +// optional string body = 2; +inline bool ExternalAdReplyInfo::_internal_has_body() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool ExternalAdReplyInfo::has_body() const { + return _internal_has_body(); +} +inline void ExternalAdReplyInfo::clear_body() { + body_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& ExternalAdReplyInfo::body() const { + // @@protoc_insertion_point(field_get:proto.ExternalAdReplyInfo.body) + return _internal_body(); +} +inline void ExternalAdReplyInfo::set_body(const std::string& value) { + _internal_set_body(value); + // @@protoc_insertion_point(field_set:proto.ExternalAdReplyInfo.body) +} +inline std::string* ExternalAdReplyInfo::mutable_body() { + // @@protoc_insertion_point(field_mutable:proto.ExternalAdReplyInfo.body) + return _internal_mutable_body(); +} +inline const std::string& ExternalAdReplyInfo::_internal_body() const { + return body_.Get(); +} +inline void ExternalAdReplyInfo::_internal_set_body(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ExternalAdReplyInfo::set_body(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + body_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ExternalAdReplyInfo.body) +} +inline void ExternalAdReplyInfo::set_body(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ExternalAdReplyInfo.body) +} +inline void ExternalAdReplyInfo::set_body(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ExternalAdReplyInfo.body) +} +inline std::string* ExternalAdReplyInfo::_internal_mutable_body() { + _has_bits_[0] |= 0x00000002u; + return body_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ExternalAdReplyInfo::release_body() { + // @@protoc_insertion_point(field_release:proto.ExternalAdReplyInfo.body) + if (!_internal_has_body()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return body_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ExternalAdReplyInfo::set_allocated_body(std::string* body) { + if (body != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + body_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), body, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ExternalAdReplyInfo.body) +} + +// optional .proto.ExternalAdReplyInfo.ExternalAdReplyInfoMediaType mediaType = 3; +inline bool ExternalAdReplyInfo::_internal_has_mediatype() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + return value; +} +inline bool ExternalAdReplyInfo::has_mediatype() const { + return _internal_has_mediatype(); +} +inline void ExternalAdReplyInfo::clear_mediatype() { + mediatype_ = 0; + _has_bits_[0] &= ~0x00000100u; +} +inline ::proto::ExternalAdReplyInfo_ExternalAdReplyInfoMediaType ExternalAdReplyInfo::_internal_mediatype() const { + return static_cast< ::proto::ExternalAdReplyInfo_ExternalAdReplyInfoMediaType >(mediatype_); +} +inline ::proto::ExternalAdReplyInfo_ExternalAdReplyInfoMediaType ExternalAdReplyInfo::mediatype() const { + // @@protoc_insertion_point(field_get:proto.ExternalAdReplyInfo.mediaType) + return _internal_mediatype(); +} +inline void ExternalAdReplyInfo::_internal_set_mediatype(::proto::ExternalAdReplyInfo_ExternalAdReplyInfoMediaType value) { + assert(::proto::ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_IsValid(value)); + _has_bits_[0] |= 0x00000100u; + mediatype_ = value; +} +inline void ExternalAdReplyInfo::set_mediatype(::proto::ExternalAdReplyInfo_ExternalAdReplyInfoMediaType value) { + _internal_set_mediatype(value); + // @@protoc_insertion_point(field_set:proto.ExternalAdReplyInfo.mediaType) +} + +// optional string thumbnailUrl = 4; +inline bool ExternalAdReplyInfo::_internal_has_thumbnailurl() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool ExternalAdReplyInfo::has_thumbnailurl() const { + return _internal_has_thumbnailurl(); +} +inline void ExternalAdReplyInfo::clear_thumbnailurl() { + thumbnailurl_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& ExternalAdReplyInfo::thumbnailurl() const { + // @@protoc_insertion_point(field_get:proto.ExternalAdReplyInfo.thumbnailUrl) + return _internal_thumbnailurl(); +} +inline void ExternalAdReplyInfo::set_thumbnailurl(const std::string& value) { + _internal_set_thumbnailurl(value); + // @@protoc_insertion_point(field_set:proto.ExternalAdReplyInfo.thumbnailUrl) +} +inline std::string* ExternalAdReplyInfo::mutable_thumbnailurl() { + // @@protoc_insertion_point(field_mutable:proto.ExternalAdReplyInfo.thumbnailUrl) + return _internal_mutable_thumbnailurl(); +} +inline const std::string& ExternalAdReplyInfo::_internal_thumbnailurl() const { + return thumbnailurl_.Get(); +} +inline void ExternalAdReplyInfo::_internal_set_thumbnailurl(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + thumbnailurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ExternalAdReplyInfo::set_thumbnailurl(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + thumbnailurl_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ExternalAdReplyInfo.thumbnailUrl) +} +inline void ExternalAdReplyInfo::set_thumbnailurl(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + thumbnailurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ExternalAdReplyInfo.thumbnailUrl) +} +inline void ExternalAdReplyInfo::set_thumbnailurl(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + thumbnailurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ExternalAdReplyInfo.thumbnailUrl) +} +inline std::string* ExternalAdReplyInfo::_internal_mutable_thumbnailurl() { + _has_bits_[0] |= 0x00000004u; + return thumbnailurl_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ExternalAdReplyInfo::release_thumbnailurl() { + // @@protoc_insertion_point(field_release:proto.ExternalAdReplyInfo.thumbnailUrl) + if (!_internal_has_thumbnailurl()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return thumbnailurl_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ExternalAdReplyInfo::set_allocated_thumbnailurl(std::string* thumbnailurl) { + if (thumbnailurl != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + thumbnailurl_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnailurl, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ExternalAdReplyInfo.thumbnailUrl) +} + +// optional string mediaUrl = 5; +inline bool ExternalAdReplyInfo::_internal_has_mediaurl() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool ExternalAdReplyInfo::has_mediaurl() const { + return _internal_has_mediaurl(); +} +inline void ExternalAdReplyInfo::clear_mediaurl() { + mediaurl_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& ExternalAdReplyInfo::mediaurl() const { + // @@protoc_insertion_point(field_get:proto.ExternalAdReplyInfo.mediaUrl) + return _internal_mediaurl(); +} +inline void ExternalAdReplyInfo::set_mediaurl(const std::string& value) { + _internal_set_mediaurl(value); + // @@protoc_insertion_point(field_set:proto.ExternalAdReplyInfo.mediaUrl) +} +inline std::string* ExternalAdReplyInfo::mutable_mediaurl() { + // @@protoc_insertion_point(field_mutable:proto.ExternalAdReplyInfo.mediaUrl) + return _internal_mutable_mediaurl(); +} +inline const std::string& ExternalAdReplyInfo::_internal_mediaurl() const { + return mediaurl_.Get(); +} +inline void ExternalAdReplyInfo::_internal_set_mediaurl(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + mediaurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ExternalAdReplyInfo::set_mediaurl(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + mediaurl_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ExternalAdReplyInfo.mediaUrl) +} +inline void ExternalAdReplyInfo::set_mediaurl(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + mediaurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ExternalAdReplyInfo.mediaUrl) +} +inline void ExternalAdReplyInfo::set_mediaurl(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + mediaurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ExternalAdReplyInfo.mediaUrl) +} +inline std::string* ExternalAdReplyInfo::_internal_mutable_mediaurl() { + _has_bits_[0] |= 0x00000008u; + return mediaurl_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ExternalAdReplyInfo::release_mediaurl() { + // @@protoc_insertion_point(field_release:proto.ExternalAdReplyInfo.mediaUrl) + if (!_internal_has_mediaurl()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + return mediaurl_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ExternalAdReplyInfo::set_allocated_mediaurl(std::string* mediaurl) { + if (mediaurl != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + mediaurl_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mediaurl, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ExternalAdReplyInfo.mediaUrl) +} + +// optional bytes thumbnail = 6; +inline bool ExternalAdReplyInfo::_internal_has_thumbnail() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool ExternalAdReplyInfo::has_thumbnail() const { + return _internal_has_thumbnail(); +} +inline void ExternalAdReplyInfo::clear_thumbnail() { + thumbnail_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000010u; +} +inline const std::string& ExternalAdReplyInfo::thumbnail() const { + // @@protoc_insertion_point(field_get:proto.ExternalAdReplyInfo.thumbnail) + return _internal_thumbnail(); +} +inline void ExternalAdReplyInfo::set_thumbnail(const std::string& value) { + _internal_set_thumbnail(value); + // @@protoc_insertion_point(field_set:proto.ExternalAdReplyInfo.thumbnail) +} +inline std::string* ExternalAdReplyInfo::mutable_thumbnail() { + // @@protoc_insertion_point(field_mutable:proto.ExternalAdReplyInfo.thumbnail) + return _internal_mutable_thumbnail(); +} +inline const std::string& ExternalAdReplyInfo::_internal_thumbnail() const { + return thumbnail_.Get(); +} +inline void ExternalAdReplyInfo::_internal_set_thumbnail(const std::string& value) { + _has_bits_[0] |= 0x00000010u; + thumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ExternalAdReplyInfo::set_thumbnail(std::string&& value) { + _has_bits_[0] |= 0x00000010u; + thumbnail_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ExternalAdReplyInfo.thumbnail) +} +inline void ExternalAdReplyInfo::set_thumbnail(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000010u; + thumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ExternalAdReplyInfo.thumbnail) +} +inline void ExternalAdReplyInfo::set_thumbnail(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000010u; + thumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ExternalAdReplyInfo.thumbnail) +} +inline std::string* ExternalAdReplyInfo::_internal_mutable_thumbnail() { + _has_bits_[0] |= 0x00000010u; + return thumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ExternalAdReplyInfo::release_thumbnail() { + // @@protoc_insertion_point(field_release:proto.ExternalAdReplyInfo.thumbnail) + if (!_internal_has_thumbnail()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000010u; + return thumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ExternalAdReplyInfo::set_allocated_thumbnail(std::string* thumbnail) { + if (thumbnail != nullptr) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + thumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnail, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ExternalAdReplyInfo.thumbnail) +} + +// optional string sourceType = 7; +inline bool ExternalAdReplyInfo::_internal_has_sourcetype() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool ExternalAdReplyInfo::has_sourcetype() const { + return _internal_has_sourcetype(); +} +inline void ExternalAdReplyInfo::clear_sourcetype() { + sourcetype_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000020u; +} +inline const std::string& ExternalAdReplyInfo::sourcetype() const { + // @@protoc_insertion_point(field_get:proto.ExternalAdReplyInfo.sourceType) + return _internal_sourcetype(); +} +inline void ExternalAdReplyInfo::set_sourcetype(const std::string& value) { + _internal_set_sourcetype(value); + // @@protoc_insertion_point(field_set:proto.ExternalAdReplyInfo.sourceType) +} +inline std::string* ExternalAdReplyInfo::mutable_sourcetype() { + // @@protoc_insertion_point(field_mutable:proto.ExternalAdReplyInfo.sourceType) + return _internal_mutable_sourcetype(); +} +inline const std::string& ExternalAdReplyInfo::_internal_sourcetype() const { + return sourcetype_.Get(); +} +inline void ExternalAdReplyInfo::_internal_set_sourcetype(const std::string& value) { + _has_bits_[0] |= 0x00000020u; + sourcetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ExternalAdReplyInfo::set_sourcetype(std::string&& value) { + _has_bits_[0] |= 0x00000020u; + sourcetype_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ExternalAdReplyInfo.sourceType) +} +inline void ExternalAdReplyInfo::set_sourcetype(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000020u; + sourcetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ExternalAdReplyInfo.sourceType) +} +inline void ExternalAdReplyInfo::set_sourcetype(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000020u; + sourcetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ExternalAdReplyInfo.sourceType) +} +inline std::string* ExternalAdReplyInfo::_internal_mutable_sourcetype() { + _has_bits_[0] |= 0x00000020u; + return sourcetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ExternalAdReplyInfo::release_sourcetype() { + // @@protoc_insertion_point(field_release:proto.ExternalAdReplyInfo.sourceType) + if (!_internal_has_sourcetype()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000020u; + return sourcetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ExternalAdReplyInfo::set_allocated_sourcetype(std::string* sourcetype) { + if (sourcetype != nullptr) { + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + sourcetype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sourcetype, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ExternalAdReplyInfo.sourceType) +} + +// optional string sourceId = 8; +inline bool ExternalAdReplyInfo::_internal_has_sourceid() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool ExternalAdReplyInfo::has_sourceid() const { + return _internal_has_sourceid(); +} +inline void ExternalAdReplyInfo::clear_sourceid() { + sourceid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000040u; +} +inline const std::string& ExternalAdReplyInfo::sourceid() const { + // @@protoc_insertion_point(field_get:proto.ExternalAdReplyInfo.sourceId) + return _internal_sourceid(); +} +inline void ExternalAdReplyInfo::set_sourceid(const std::string& value) { + _internal_set_sourceid(value); + // @@protoc_insertion_point(field_set:proto.ExternalAdReplyInfo.sourceId) +} +inline std::string* ExternalAdReplyInfo::mutable_sourceid() { + // @@protoc_insertion_point(field_mutable:proto.ExternalAdReplyInfo.sourceId) + return _internal_mutable_sourceid(); +} +inline const std::string& ExternalAdReplyInfo::_internal_sourceid() const { + return sourceid_.Get(); +} +inline void ExternalAdReplyInfo::_internal_set_sourceid(const std::string& value) { + _has_bits_[0] |= 0x00000040u; + sourceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ExternalAdReplyInfo::set_sourceid(std::string&& value) { + _has_bits_[0] |= 0x00000040u; + sourceid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ExternalAdReplyInfo.sourceId) +} +inline void ExternalAdReplyInfo::set_sourceid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000040u; + sourceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ExternalAdReplyInfo.sourceId) +} +inline void ExternalAdReplyInfo::set_sourceid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000040u; + sourceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ExternalAdReplyInfo.sourceId) +} +inline std::string* ExternalAdReplyInfo::_internal_mutable_sourceid() { + _has_bits_[0] |= 0x00000040u; + return sourceid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ExternalAdReplyInfo::release_sourceid() { + // @@protoc_insertion_point(field_release:proto.ExternalAdReplyInfo.sourceId) + if (!_internal_has_sourceid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000040u; + return sourceid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ExternalAdReplyInfo::set_allocated_sourceid(std::string* sourceid) { + if (sourceid != nullptr) { + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + sourceid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sourceid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ExternalAdReplyInfo.sourceId) +} + +// optional string sourceUrl = 9; +inline bool ExternalAdReplyInfo::_internal_has_sourceurl() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + return value; +} +inline bool ExternalAdReplyInfo::has_sourceurl() const { + return _internal_has_sourceurl(); +} +inline void ExternalAdReplyInfo::clear_sourceurl() { + sourceurl_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000080u; +} +inline const std::string& ExternalAdReplyInfo::sourceurl() const { + // @@protoc_insertion_point(field_get:proto.ExternalAdReplyInfo.sourceUrl) + return _internal_sourceurl(); +} +inline void ExternalAdReplyInfo::set_sourceurl(const std::string& value) { + _internal_set_sourceurl(value); + // @@protoc_insertion_point(field_set:proto.ExternalAdReplyInfo.sourceUrl) +} +inline std::string* ExternalAdReplyInfo::mutable_sourceurl() { + // @@protoc_insertion_point(field_mutable:proto.ExternalAdReplyInfo.sourceUrl) + return _internal_mutable_sourceurl(); +} +inline const std::string& ExternalAdReplyInfo::_internal_sourceurl() const { + return sourceurl_.Get(); +} +inline void ExternalAdReplyInfo::_internal_set_sourceurl(const std::string& value) { + _has_bits_[0] |= 0x00000080u; + sourceurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ExternalAdReplyInfo::set_sourceurl(std::string&& value) { + _has_bits_[0] |= 0x00000080u; + sourceurl_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ExternalAdReplyInfo.sourceUrl) +} +inline void ExternalAdReplyInfo::set_sourceurl(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000080u; + sourceurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ExternalAdReplyInfo.sourceUrl) +} +inline void ExternalAdReplyInfo::set_sourceurl(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000080u; + sourceurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ExternalAdReplyInfo.sourceUrl) +} +inline std::string* ExternalAdReplyInfo::_internal_mutable_sourceurl() { + _has_bits_[0] |= 0x00000080u; + return sourceurl_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ExternalAdReplyInfo::release_sourceurl() { + // @@protoc_insertion_point(field_release:proto.ExternalAdReplyInfo.sourceUrl) + if (!_internal_has_sourceurl()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000080u; + return sourceurl_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ExternalAdReplyInfo::set_allocated_sourceurl(std::string* sourceurl) { + if (sourceurl != nullptr) { + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + sourceurl_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sourceurl, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ExternalAdReplyInfo.sourceUrl) +} + +// ------------------------------------------------------------------- + +// ContextInfo + +// optional string stanzaId = 1; +inline bool ContextInfo::_internal_has_stanzaid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool ContextInfo::has_stanzaid() const { + return _internal_has_stanzaid(); +} +inline void ContextInfo::clear_stanzaid() { + stanzaid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& ContextInfo::stanzaid() const { + // @@protoc_insertion_point(field_get:proto.ContextInfo.stanzaId) + return _internal_stanzaid(); +} +inline void ContextInfo::set_stanzaid(const std::string& value) { + _internal_set_stanzaid(value); + // @@protoc_insertion_point(field_set:proto.ContextInfo.stanzaId) +} +inline std::string* ContextInfo::mutable_stanzaid() { + // @@protoc_insertion_point(field_mutable:proto.ContextInfo.stanzaId) + return _internal_mutable_stanzaid(); +} +inline const std::string& ContextInfo::_internal_stanzaid() const { + return stanzaid_.Get(); +} +inline void ContextInfo::_internal_set_stanzaid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + stanzaid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ContextInfo::set_stanzaid(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + stanzaid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ContextInfo.stanzaId) +} +inline void ContextInfo::set_stanzaid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + stanzaid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ContextInfo.stanzaId) +} +inline void ContextInfo::set_stanzaid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + stanzaid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ContextInfo.stanzaId) +} +inline std::string* ContextInfo::_internal_mutable_stanzaid() { + _has_bits_[0] |= 0x00000001u; + return stanzaid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ContextInfo::release_stanzaid() { + // @@protoc_insertion_point(field_release:proto.ContextInfo.stanzaId) + if (!_internal_has_stanzaid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return stanzaid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ContextInfo::set_allocated_stanzaid(std::string* stanzaid) { + if (stanzaid != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + stanzaid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stanzaid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ContextInfo.stanzaId) +} + +// optional string participant = 2; +inline bool ContextInfo::_internal_has_participant() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool ContextInfo::has_participant() const { + return _internal_has_participant(); +} +inline void ContextInfo::clear_participant() { + participant_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& ContextInfo::participant() const { + // @@protoc_insertion_point(field_get:proto.ContextInfo.participant) + return _internal_participant(); +} +inline void ContextInfo::set_participant(const std::string& value) { + _internal_set_participant(value); + // @@protoc_insertion_point(field_set:proto.ContextInfo.participant) +} +inline std::string* ContextInfo::mutable_participant() { + // @@protoc_insertion_point(field_mutable:proto.ContextInfo.participant) + return _internal_mutable_participant(); +} +inline const std::string& ContextInfo::_internal_participant() const { + return participant_.Get(); +} +inline void ContextInfo::_internal_set_participant(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ContextInfo::set_participant(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + participant_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ContextInfo.participant) +} +inline void ContextInfo::set_participant(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ContextInfo.participant) +} +inline void ContextInfo::set_participant(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ContextInfo.participant) +} +inline std::string* ContextInfo::_internal_mutable_participant() { + _has_bits_[0] |= 0x00000002u; + return participant_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ContextInfo::release_participant() { + // @@protoc_insertion_point(field_release:proto.ContextInfo.participant) + if (!_internal_has_participant()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return participant_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ContextInfo::set_allocated_participant(std::string* participant) { + if (participant != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + participant_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), participant, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ContextInfo.participant) +} + +// optional .proto.Message quotedMessage = 3; +inline bool ContextInfo::_internal_has_quotedmessage() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + PROTOBUF_ASSUME(!value || quotedmessage_ != nullptr); + return value; +} +inline bool ContextInfo::has_quotedmessage() const { + return _internal_has_quotedmessage(); +} +inline void ContextInfo::clear_quotedmessage() { + if (quotedmessage_ != nullptr) quotedmessage_->Clear(); + _has_bits_[0] &= ~0x00000040u; +} +inline const ::proto::Message& ContextInfo::_internal_quotedmessage() const { + const ::proto::Message* p = quotedmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::Message&>( + ::proto::_Message_default_instance_); +} +inline const ::proto::Message& ContextInfo::quotedmessage() const { + // @@protoc_insertion_point(field_get:proto.ContextInfo.quotedMessage) + return _internal_quotedmessage(); +} +inline void ContextInfo::unsafe_arena_set_allocated_quotedmessage( + ::proto::Message* quotedmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(quotedmessage_); + } + quotedmessage_ = quotedmessage; + if (quotedmessage) { + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ContextInfo.quotedMessage) +} +inline ::proto::Message* ContextInfo::release_quotedmessage() { + _has_bits_[0] &= ~0x00000040u; + ::proto::Message* temp = quotedmessage_; + quotedmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::Message* ContextInfo::unsafe_arena_release_quotedmessage() { + // @@protoc_insertion_point(field_release:proto.ContextInfo.quotedMessage) + _has_bits_[0] &= ~0x00000040u; + ::proto::Message* temp = quotedmessage_; + quotedmessage_ = nullptr; + return temp; +} +inline ::proto::Message* ContextInfo::_internal_mutable_quotedmessage() { + _has_bits_[0] |= 0x00000040u; + if (quotedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::Message>(GetArena()); + quotedmessage_ = p; + } + return quotedmessage_; +} +inline ::proto::Message* ContextInfo::mutable_quotedmessage() { + // @@protoc_insertion_point(field_mutable:proto.ContextInfo.quotedMessage) + return _internal_mutable_quotedmessage(); +} +inline void ContextInfo::set_allocated_quotedmessage(::proto::Message* quotedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete quotedmessage_; + } + if (quotedmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(quotedmessage); + if (message_arena != submessage_arena) { + quotedmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, quotedmessage, submessage_arena); + } + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + quotedmessage_ = quotedmessage; + // @@protoc_insertion_point(field_set_allocated:proto.ContextInfo.quotedMessage) +} + +// optional string remoteJid = 4; +inline bool ContextInfo::_internal_has_remotejid() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool ContextInfo::has_remotejid() const { + return _internal_has_remotejid(); +} +inline void ContextInfo::clear_remotejid() { + remotejid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& ContextInfo::remotejid() const { + // @@protoc_insertion_point(field_get:proto.ContextInfo.remoteJid) + return _internal_remotejid(); +} +inline void ContextInfo::set_remotejid(const std::string& value) { + _internal_set_remotejid(value); + // @@protoc_insertion_point(field_set:proto.ContextInfo.remoteJid) +} +inline std::string* ContextInfo::mutable_remotejid() { + // @@protoc_insertion_point(field_mutable:proto.ContextInfo.remoteJid) + return _internal_mutable_remotejid(); +} +inline const std::string& ContextInfo::_internal_remotejid() const { + return remotejid_.Get(); +} +inline void ContextInfo::_internal_set_remotejid(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + remotejid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ContextInfo::set_remotejid(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + remotejid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ContextInfo.remoteJid) +} +inline void ContextInfo::set_remotejid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + remotejid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ContextInfo.remoteJid) +} +inline void ContextInfo::set_remotejid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + remotejid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ContextInfo.remoteJid) +} +inline std::string* ContextInfo::_internal_mutable_remotejid() { + _has_bits_[0] |= 0x00000004u; + return remotejid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ContextInfo::release_remotejid() { + // @@protoc_insertion_point(field_release:proto.ContextInfo.remoteJid) + if (!_internal_has_remotejid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return remotejid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ContextInfo::set_allocated_remotejid(std::string* remotejid) { + if (remotejid != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + remotejid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), remotejid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ContextInfo.remoteJid) +} + +// repeated string mentionedJid = 15; +inline int ContextInfo::_internal_mentionedjid_size() const { + return mentionedjid_.size(); +} +inline int ContextInfo::mentionedjid_size() const { + return _internal_mentionedjid_size(); +} +inline void ContextInfo::clear_mentionedjid() { + mentionedjid_.Clear(); +} +inline std::string* ContextInfo::add_mentionedjid() { + // @@protoc_insertion_point(field_add_mutable:proto.ContextInfo.mentionedJid) + return _internal_add_mentionedjid(); +} +inline const std::string& ContextInfo::_internal_mentionedjid(int index) const { + return mentionedjid_.Get(index); +} +inline const std::string& ContextInfo::mentionedjid(int index) const { + // @@protoc_insertion_point(field_get:proto.ContextInfo.mentionedJid) + return _internal_mentionedjid(index); +} +inline std::string* ContextInfo::mutable_mentionedjid(int index) { + // @@protoc_insertion_point(field_mutable:proto.ContextInfo.mentionedJid) + return mentionedjid_.Mutable(index); +} +inline void ContextInfo::set_mentionedjid(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:proto.ContextInfo.mentionedJid) + mentionedjid_.Mutable(index)->assign(value); +} +inline void ContextInfo::set_mentionedjid(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:proto.ContextInfo.mentionedJid) + mentionedjid_.Mutable(index)->assign(std::move(value)); +} +inline void ContextInfo::set_mentionedjid(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + mentionedjid_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:proto.ContextInfo.mentionedJid) +} +inline void ContextInfo::set_mentionedjid(int index, const char* value, size_t size) { + mentionedjid_.Mutable(index)->assign( + reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:proto.ContextInfo.mentionedJid) +} +inline std::string* ContextInfo::_internal_add_mentionedjid() { + return mentionedjid_.Add(); +} +inline void ContextInfo::add_mentionedjid(const std::string& value) { + mentionedjid_.Add()->assign(value); + // @@protoc_insertion_point(field_add:proto.ContextInfo.mentionedJid) +} +inline void ContextInfo::add_mentionedjid(std::string&& value) { + mentionedjid_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:proto.ContextInfo.mentionedJid) +} +inline void ContextInfo::add_mentionedjid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + mentionedjid_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:proto.ContextInfo.mentionedJid) +} +inline void ContextInfo::add_mentionedjid(const char* value, size_t size) { + mentionedjid_.Add()->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_add_pointer:proto.ContextInfo.mentionedJid) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& +ContextInfo::mentionedjid() const { + // @@protoc_insertion_point(field_list:proto.ContextInfo.mentionedJid) + return mentionedjid_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* +ContextInfo::mutable_mentionedjid() { + // @@protoc_insertion_point(field_mutable_list:proto.ContextInfo.mentionedJid) + return &mentionedjid_; +} + +// optional string conversionSource = 18; +inline bool ContextInfo::_internal_has_conversionsource() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool ContextInfo::has_conversionsource() const { + return _internal_has_conversionsource(); +} +inline void ContextInfo::clear_conversionsource() { + conversionsource_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& ContextInfo::conversionsource() const { + // @@protoc_insertion_point(field_get:proto.ContextInfo.conversionSource) + return _internal_conversionsource(); +} +inline void ContextInfo::set_conversionsource(const std::string& value) { + _internal_set_conversionsource(value); + // @@protoc_insertion_point(field_set:proto.ContextInfo.conversionSource) +} +inline std::string* ContextInfo::mutable_conversionsource() { + // @@protoc_insertion_point(field_mutable:proto.ContextInfo.conversionSource) + return _internal_mutable_conversionsource(); +} +inline const std::string& ContextInfo::_internal_conversionsource() const { + return conversionsource_.Get(); +} +inline void ContextInfo::_internal_set_conversionsource(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + conversionsource_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ContextInfo::set_conversionsource(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + conversionsource_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ContextInfo.conversionSource) +} +inline void ContextInfo::set_conversionsource(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + conversionsource_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ContextInfo.conversionSource) +} +inline void ContextInfo::set_conversionsource(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + conversionsource_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ContextInfo.conversionSource) +} +inline std::string* ContextInfo::_internal_mutable_conversionsource() { + _has_bits_[0] |= 0x00000008u; + return conversionsource_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ContextInfo::release_conversionsource() { + // @@protoc_insertion_point(field_release:proto.ContextInfo.conversionSource) + if (!_internal_has_conversionsource()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + return conversionsource_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ContextInfo::set_allocated_conversionsource(std::string* conversionsource) { + if (conversionsource != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + conversionsource_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), conversionsource, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ContextInfo.conversionSource) +} + +// optional bytes conversionData = 19; +inline bool ContextInfo::_internal_has_conversiondata() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool ContextInfo::has_conversiondata() const { + return _internal_has_conversiondata(); +} +inline void ContextInfo::clear_conversiondata() { + conversiondata_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000010u; +} +inline const std::string& ContextInfo::conversiondata() const { + // @@protoc_insertion_point(field_get:proto.ContextInfo.conversionData) + return _internal_conversiondata(); +} +inline void ContextInfo::set_conversiondata(const std::string& value) { + _internal_set_conversiondata(value); + // @@protoc_insertion_point(field_set:proto.ContextInfo.conversionData) +} +inline std::string* ContextInfo::mutable_conversiondata() { + // @@protoc_insertion_point(field_mutable:proto.ContextInfo.conversionData) + return _internal_mutable_conversiondata(); +} +inline const std::string& ContextInfo::_internal_conversiondata() const { + return conversiondata_.Get(); +} +inline void ContextInfo::_internal_set_conversiondata(const std::string& value) { + _has_bits_[0] |= 0x00000010u; + conversiondata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ContextInfo::set_conversiondata(std::string&& value) { + _has_bits_[0] |= 0x00000010u; + conversiondata_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ContextInfo.conversionData) +} +inline void ContextInfo::set_conversiondata(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000010u; + conversiondata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ContextInfo.conversionData) +} +inline void ContextInfo::set_conversiondata(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000010u; + conversiondata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ContextInfo.conversionData) +} +inline std::string* ContextInfo::_internal_mutable_conversiondata() { + _has_bits_[0] |= 0x00000010u; + return conversiondata_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ContextInfo::release_conversiondata() { + // @@protoc_insertion_point(field_release:proto.ContextInfo.conversionData) + if (!_internal_has_conversiondata()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000010u; + return conversiondata_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ContextInfo::set_allocated_conversiondata(std::string* conversiondata) { + if (conversiondata != nullptr) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + conversiondata_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), conversiondata, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ContextInfo.conversionData) +} + +// optional uint32 conversionDelaySeconds = 20; +inline bool ContextInfo::_internal_has_conversiondelayseconds() const { + bool value = (_has_bits_[0] & 0x00000400u) != 0; + return value; +} +inline bool ContextInfo::has_conversiondelayseconds() const { + return _internal_has_conversiondelayseconds(); +} +inline void ContextInfo::clear_conversiondelayseconds() { + conversiondelayseconds_ = 0u; + _has_bits_[0] &= ~0x00000400u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ContextInfo::_internal_conversiondelayseconds() const { + return conversiondelayseconds_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ContextInfo::conversiondelayseconds() const { + // @@protoc_insertion_point(field_get:proto.ContextInfo.conversionDelaySeconds) + return _internal_conversiondelayseconds(); +} +inline void ContextInfo::_internal_set_conversiondelayseconds(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000400u; + conversiondelayseconds_ = value; +} +inline void ContextInfo::set_conversiondelayseconds(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_conversiondelayseconds(value); + // @@protoc_insertion_point(field_set:proto.ContextInfo.conversionDelaySeconds) +} + +// optional uint32 forwardingScore = 21; +inline bool ContextInfo::_internal_has_forwardingscore() const { + bool value = (_has_bits_[0] & 0x00000800u) != 0; + return value; +} +inline bool ContextInfo::has_forwardingscore() const { + return _internal_has_forwardingscore(); +} +inline void ContextInfo::clear_forwardingscore() { + forwardingscore_ = 0u; + _has_bits_[0] &= ~0x00000800u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ContextInfo::_internal_forwardingscore() const { + return forwardingscore_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ContextInfo::forwardingscore() const { + // @@protoc_insertion_point(field_get:proto.ContextInfo.forwardingScore) + return _internal_forwardingscore(); +} +inline void ContextInfo::_internal_set_forwardingscore(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000800u; + forwardingscore_ = value; +} +inline void ContextInfo::set_forwardingscore(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_forwardingscore(value); + // @@protoc_insertion_point(field_set:proto.ContextInfo.forwardingScore) +} + +// optional bool isForwarded = 22; +inline bool ContextInfo::_internal_has_isforwarded() const { + bool value = (_has_bits_[0] & 0x00001000u) != 0; + return value; +} +inline bool ContextInfo::has_isforwarded() const { + return _internal_has_isforwarded(); +} +inline void ContextInfo::clear_isforwarded() { + isforwarded_ = false; + _has_bits_[0] &= ~0x00001000u; +} +inline bool ContextInfo::_internal_isforwarded() const { + return isforwarded_; +} +inline bool ContextInfo::isforwarded() const { + // @@protoc_insertion_point(field_get:proto.ContextInfo.isForwarded) + return _internal_isforwarded(); +} +inline void ContextInfo::_internal_set_isforwarded(bool value) { + _has_bits_[0] |= 0x00001000u; + isforwarded_ = value; +} +inline void ContextInfo::set_isforwarded(bool value) { + _internal_set_isforwarded(value); + // @@protoc_insertion_point(field_set:proto.ContextInfo.isForwarded) +} + +// optional .proto.AdReplyInfo quotedAd = 23; +inline bool ContextInfo::_internal_has_quotedad() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + PROTOBUF_ASSUME(!value || quotedad_ != nullptr); + return value; +} +inline bool ContextInfo::has_quotedad() const { + return _internal_has_quotedad(); +} +inline void ContextInfo::clear_quotedad() { + if (quotedad_ != nullptr) quotedad_->Clear(); + _has_bits_[0] &= ~0x00000080u; +} +inline const ::proto::AdReplyInfo& ContextInfo::_internal_quotedad() const { + const ::proto::AdReplyInfo* p = quotedad_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::AdReplyInfo&>( + ::proto::_AdReplyInfo_default_instance_); +} +inline const ::proto::AdReplyInfo& ContextInfo::quotedad() const { + // @@protoc_insertion_point(field_get:proto.ContextInfo.quotedAd) + return _internal_quotedad(); +} +inline void ContextInfo::unsafe_arena_set_allocated_quotedad( + ::proto::AdReplyInfo* quotedad) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(quotedad_); + } + quotedad_ = quotedad; + if (quotedad) { + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ContextInfo.quotedAd) +} +inline ::proto::AdReplyInfo* ContextInfo::release_quotedad() { + _has_bits_[0] &= ~0x00000080u; + ::proto::AdReplyInfo* temp = quotedad_; + quotedad_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::AdReplyInfo* ContextInfo::unsafe_arena_release_quotedad() { + // @@protoc_insertion_point(field_release:proto.ContextInfo.quotedAd) + _has_bits_[0] &= ~0x00000080u; + ::proto::AdReplyInfo* temp = quotedad_; + quotedad_ = nullptr; + return temp; +} +inline ::proto::AdReplyInfo* ContextInfo::_internal_mutable_quotedad() { + _has_bits_[0] |= 0x00000080u; + if (quotedad_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::AdReplyInfo>(GetArena()); + quotedad_ = p; + } + return quotedad_; +} +inline ::proto::AdReplyInfo* ContextInfo::mutable_quotedad() { + // @@protoc_insertion_point(field_mutable:proto.ContextInfo.quotedAd) + return _internal_mutable_quotedad(); +} +inline void ContextInfo::set_allocated_quotedad(::proto::AdReplyInfo* quotedad) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete quotedad_; + } + if (quotedad) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(quotedad); + if (message_arena != submessage_arena) { + quotedad = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, quotedad, submessage_arena); + } + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + quotedad_ = quotedad; + // @@protoc_insertion_point(field_set_allocated:proto.ContextInfo.quotedAd) +} + +// optional .proto.MessageKey placeholderKey = 24; +inline bool ContextInfo::_internal_has_placeholderkey() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + PROTOBUF_ASSUME(!value || placeholderkey_ != nullptr); + return value; +} +inline bool ContextInfo::has_placeholderkey() const { + return _internal_has_placeholderkey(); +} +inline void ContextInfo::clear_placeholderkey() { + if (placeholderkey_ != nullptr) placeholderkey_->Clear(); + _has_bits_[0] &= ~0x00000100u; +} +inline const ::proto::MessageKey& ContextInfo::_internal_placeholderkey() const { + const ::proto::MessageKey* p = placeholderkey_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::MessageKey&>( + ::proto::_MessageKey_default_instance_); +} +inline const ::proto::MessageKey& ContextInfo::placeholderkey() const { + // @@protoc_insertion_point(field_get:proto.ContextInfo.placeholderKey) + return _internal_placeholderkey(); +} +inline void ContextInfo::unsafe_arena_set_allocated_placeholderkey( + ::proto::MessageKey* placeholderkey) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(placeholderkey_); + } + placeholderkey_ = placeholderkey; + if (placeholderkey) { + _has_bits_[0] |= 0x00000100u; + } else { + _has_bits_[0] &= ~0x00000100u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ContextInfo.placeholderKey) +} +inline ::proto::MessageKey* ContextInfo::release_placeholderkey() { + _has_bits_[0] &= ~0x00000100u; + ::proto::MessageKey* temp = placeholderkey_; + placeholderkey_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::MessageKey* ContextInfo::unsafe_arena_release_placeholderkey() { + // @@protoc_insertion_point(field_release:proto.ContextInfo.placeholderKey) + _has_bits_[0] &= ~0x00000100u; + ::proto::MessageKey* temp = placeholderkey_; + placeholderkey_ = nullptr; + return temp; +} +inline ::proto::MessageKey* ContextInfo::_internal_mutable_placeholderkey() { + _has_bits_[0] |= 0x00000100u; + if (placeholderkey_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArena()); + placeholderkey_ = p; + } + return placeholderkey_; +} +inline ::proto::MessageKey* ContextInfo::mutable_placeholderkey() { + // @@protoc_insertion_point(field_mutable:proto.ContextInfo.placeholderKey) + return _internal_mutable_placeholderkey(); +} +inline void ContextInfo::set_allocated_placeholderkey(::proto::MessageKey* placeholderkey) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete placeholderkey_; + } + if (placeholderkey) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(placeholderkey); + if (message_arena != submessage_arena) { + placeholderkey = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, placeholderkey, submessage_arena); + } + _has_bits_[0] |= 0x00000100u; + } else { + _has_bits_[0] &= ~0x00000100u; + } + placeholderkey_ = placeholderkey; + // @@protoc_insertion_point(field_set_allocated:proto.ContextInfo.placeholderKey) +} + +// optional uint32 expiration = 25; +inline bool ContextInfo::_internal_has_expiration() const { + bool value = (_has_bits_[0] & 0x00002000u) != 0; + return value; +} +inline bool ContextInfo::has_expiration() const { + return _internal_has_expiration(); +} +inline void ContextInfo::clear_expiration() { + expiration_ = 0u; + _has_bits_[0] &= ~0x00002000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ContextInfo::_internal_expiration() const { + return expiration_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ContextInfo::expiration() const { + // @@protoc_insertion_point(field_get:proto.ContextInfo.expiration) + return _internal_expiration(); +} +inline void ContextInfo::_internal_set_expiration(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00002000u; + expiration_ = value; +} +inline void ContextInfo::set_expiration(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_expiration(value); + // @@protoc_insertion_point(field_set:proto.ContextInfo.expiration) +} + +// optional int64 ephemeralSettingTimestamp = 26; +inline bool ContextInfo::_internal_has_ephemeralsettingtimestamp() const { + bool value = (_has_bits_[0] & 0x00004000u) != 0; + return value; +} +inline bool ContextInfo::has_ephemeralsettingtimestamp() const { + return _internal_has_ephemeralsettingtimestamp(); +} +inline void ContextInfo::clear_ephemeralsettingtimestamp() { + ephemeralsettingtimestamp_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00004000u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ContextInfo::_internal_ephemeralsettingtimestamp() const { + return ephemeralsettingtimestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ContextInfo::ephemeralsettingtimestamp() const { + // @@protoc_insertion_point(field_get:proto.ContextInfo.ephemeralSettingTimestamp) + return _internal_ephemeralsettingtimestamp(); +} +inline void ContextInfo::_internal_set_ephemeralsettingtimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00004000u; + ephemeralsettingtimestamp_ = value; +} +inline void ContextInfo::set_ephemeralsettingtimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_ephemeralsettingtimestamp(value); + // @@protoc_insertion_point(field_set:proto.ContextInfo.ephemeralSettingTimestamp) +} + +// optional bytes ephemeralSharedSecret = 27; +inline bool ContextInfo::_internal_has_ephemeralsharedsecret() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool ContextInfo::has_ephemeralsharedsecret() const { + return _internal_has_ephemeralsharedsecret(); +} +inline void ContextInfo::clear_ephemeralsharedsecret() { + ephemeralsharedsecret_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000020u; +} +inline const std::string& ContextInfo::ephemeralsharedsecret() const { + // @@protoc_insertion_point(field_get:proto.ContextInfo.ephemeralSharedSecret) + return _internal_ephemeralsharedsecret(); +} +inline void ContextInfo::set_ephemeralsharedsecret(const std::string& value) { + _internal_set_ephemeralsharedsecret(value); + // @@protoc_insertion_point(field_set:proto.ContextInfo.ephemeralSharedSecret) +} +inline std::string* ContextInfo::mutable_ephemeralsharedsecret() { + // @@protoc_insertion_point(field_mutable:proto.ContextInfo.ephemeralSharedSecret) + return _internal_mutable_ephemeralsharedsecret(); +} +inline const std::string& ContextInfo::_internal_ephemeralsharedsecret() const { + return ephemeralsharedsecret_.Get(); +} +inline void ContextInfo::_internal_set_ephemeralsharedsecret(const std::string& value) { + _has_bits_[0] |= 0x00000020u; + ephemeralsharedsecret_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ContextInfo::set_ephemeralsharedsecret(std::string&& value) { + _has_bits_[0] |= 0x00000020u; + ephemeralsharedsecret_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ContextInfo.ephemeralSharedSecret) +} +inline void ContextInfo::set_ephemeralsharedsecret(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000020u; + ephemeralsharedsecret_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ContextInfo.ephemeralSharedSecret) +} +inline void ContextInfo::set_ephemeralsharedsecret(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000020u; + ephemeralsharedsecret_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ContextInfo.ephemeralSharedSecret) +} +inline std::string* ContextInfo::_internal_mutable_ephemeralsharedsecret() { + _has_bits_[0] |= 0x00000020u; + return ephemeralsharedsecret_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ContextInfo::release_ephemeralsharedsecret() { + // @@protoc_insertion_point(field_release:proto.ContextInfo.ephemeralSharedSecret) + if (!_internal_has_ephemeralsharedsecret()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000020u; + return ephemeralsharedsecret_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ContextInfo::set_allocated_ephemeralsharedsecret(std::string* ephemeralsharedsecret) { + if (ephemeralsharedsecret != nullptr) { + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + ephemeralsharedsecret_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ephemeralsharedsecret, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ContextInfo.ephemeralSharedSecret) +} + +// optional .proto.ExternalAdReplyInfo externalAdReply = 28; +inline bool ContextInfo::_internal_has_externaladreply() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + PROTOBUF_ASSUME(!value || externaladreply_ != nullptr); + return value; +} +inline bool ContextInfo::has_externaladreply() const { + return _internal_has_externaladreply(); +} +inline void ContextInfo::clear_externaladreply() { + if (externaladreply_ != nullptr) externaladreply_->Clear(); + _has_bits_[0] &= ~0x00000200u; +} +inline const ::proto::ExternalAdReplyInfo& ContextInfo::_internal_externaladreply() const { + const ::proto::ExternalAdReplyInfo* p = externaladreply_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ExternalAdReplyInfo&>( + ::proto::_ExternalAdReplyInfo_default_instance_); +} +inline const ::proto::ExternalAdReplyInfo& ContextInfo::externaladreply() const { + // @@protoc_insertion_point(field_get:proto.ContextInfo.externalAdReply) + return _internal_externaladreply(); +} +inline void ContextInfo::unsafe_arena_set_allocated_externaladreply( + ::proto::ExternalAdReplyInfo* externaladreply) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(externaladreply_); + } + externaladreply_ = externaladreply; + if (externaladreply) { + _has_bits_[0] |= 0x00000200u; + } else { + _has_bits_[0] &= ~0x00000200u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ContextInfo.externalAdReply) +} +inline ::proto::ExternalAdReplyInfo* ContextInfo::release_externaladreply() { + _has_bits_[0] &= ~0x00000200u; + ::proto::ExternalAdReplyInfo* temp = externaladreply_; + externaladreply_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ExternalAdReplyInfo* ContextInfo::unsafe_arena_release_externaladreply() { + // @@protoc_insertion_point(field_release:proto.ContextInfo.externalAdReply) + _has_bits_[0] &= ~0x00000200u; + ::proto::ExternalAdReplyInfo* temp = externaladreply_; + externaladreply_ = nullptr; + return temp; +} +inline ::proto::ExternalAdReplyInfo* ContextInfo::_internal_mutable_externaladreply() { + _has_bits_[0] |= 0x00000200u; + if (externaladreply_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ExternalAdReplyInfo>(GetArena()); + externaladreply_ = p; + } + return externaladreply_; +} +inline ::proto::ExternalAdReplyInfo* ContextInfo::mutable_externaladreply() { + // @@protoc_insertion_point(field_mutable:proto.ContextInfo.externalAdReply) + return _internal_mutable_externaladreply(); +} +inline void ContextInfo::set_allocated_externaladreply(::proto::ExternalAdReplyInfo* externaladreply) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete externaladreply_; + } + if (externaladreply) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(externaladreply); + if (message_arena != submessage_arena) { + externaladreply = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, externaladreply, submessage_arena); + } + _has_bits_[0] |= 0x00000200u; + } else { + _has_bits_[0] &= ~0x00000200u; + } + externaladreply_ = externaladreply; + // @@protoc_insertion_point(field_set_allocated:proto.ContextInfo.externalAdReply) +} + +// ------------------------------------------------------------------- + +// SenderKeyDistributionMessage + +// optional string groupId = 1; +inline bool SenderKeyDistributionMessage::_internal_has_groupid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool SenderKeyDistributionMessage::has_groupid() const { + return _internal_has_groupid(); +} +inline void SenderKeyDistributionMessage::clear_groupid() { + groupid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& SenderKeyDistributionMessage::groupid() const { + // @@protoc_insertion_point(field_get:proto.SenderKeyDistributionMessage.groupId) + return _internal_groupid(); +} +inline void SenderKeyDistributionMessage::set_groupid(const std::string& value) { + _internal_set_groupid(value); + // @@protoc_insertion_point(field_set:proto.SenderKeyDistributionMessage.groupId) +} +inline std::string* SenderKeyDistributionMessage::mutable_groupid() { + // @@protoc_insertion_point(field_mutable:proto.SenderKeyDistributionMessage.groupId) + return _internal_mutable_groupid(); +} +inline const std::string& SenderKeyDistributionMessage::_internal_groupid() const { + return groupid_.Get(); +} +inline void SenderKeyDistributionMessage::_internal_set_groupid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + groupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void SenderKeyDistributionMessage::set_groupid(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + groupid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.SenderKeyDistributionMessage.groupId) +} +inline void SenderKeyDistributionMessage::set_groupid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + groupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.SenderKeyDistributionMessage.groupId) +} +inline void SenderKeyDistributionMessage::set_groupid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + groupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.SenderKeyDistributionMessage.groupId) +} +inline std::string* SenderKeyDistributionMessage::_internal_mutable_groupid() { + _has_bits_[0] |= 0x00000001u; + return groupid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* SenderKeyDistributionMessage::release_groupid() { + // @@protoc_insertion_point(field_release:proto.SenderKeyDistributionMessage.groupId) + if (!_internal_has_groupid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return groupid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void SenderKeyDistributionMessage::set_allocated_groupid(std::string* groupid) { + if (groupid != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + groupid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), groupid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.SenderKeyDistributionMessage.groupId) +} + +// optional bytes axolotlSenderKeyDistributionMessage = 2; +inline bool SenderKeyDistributionMessage::_internal_has_axolotlsenderkeydistributionmessage() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool SenderKeyDistributionMessage::has_axolotlsenderkeydistributionmessage() const { + return _internal_has_axolotlsenderkeydistributionmessage(); +} +inline void SenderKeyDistributionMessage::clear_axolotlsenderkeydistributionmessage() { + axolotlsenderkeydistributionmessage_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& SenderKeyDistributionMessage::axolotlsenderkeydistributionmessage() const { + // @@protoc_insertion_point(field_get:proto.SenderKeyDistributionMessage.axolotlSenderKeyDistributionMessage) + return _internal_axolotlsenderkeydistributionmessage(); +} +inline void SenderKeyDistributionMessage::set_axolotlsenderkeydistributionmessage(const std::string& value) { + _internal_set_axolotlsenderkeydistributionmessage(value); + // @@protoc_insertion_point(field_set:proto.SenderKeyDistributionMessage.axolotlSenderKeyDistributionMessage) +} +inline std::string* SenderKeyDistributionMessage::mutable_axolotlsenderkeydistributionmessage() { + // @@protoc_insertion_point(field_mutable:proto.SenderKeyDistributionMessage.axolotlSenderKeyDistributionMessage) + return _internal_mutable_axolotlsenderkeydistributionmessage(); +} +inline const std::string& SenderKeyDistributionMessage::_internal_axolotlsenderkeydistributionmessage() const { + return axolotlsenderkeydistributionmessage_.Get(); +} +inline void SenderKeyDistributionMessage::_internal_set_axolotlsenderkeydistributionmessage(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + axolotlsenderkeydistributionmessage_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void SenderKeyDistributionMessage::set_axolotlsenderkeydistributionmessage(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + axolotlsenderkeydistributionmessage_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.SenderKeyDistributionMessage.axolotlSenderKeyDistributionMessage) +} +inline void SenderKeyDistributionMessage::set_axolotlsenderkeydistributionmessage(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + axolotlsenderkeydistributionmessage_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.SenderKeyDistributionMessage.axolotlSenderKeyDistributionMessage) +} +inline void SenderKeyDistributionMessage::set_axolotlsenderkeydistributionmessage(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + axolotlsenderkeydistributionmessage_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.SenderKeyDistributionMessage.axolotlSenderKeyDistributionMessage) +} +inline std::string* SenderKeyDistributionMessage::_internal_mutable_axolotlsenderkeydistributionmessage() { + _has_bits_[0] |= 0x00000002u; + return axolotlsenderkeydistributionmessage_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* SenderKeyDistributionMessage::release_axolotlsenderkeydistributionmessage() { + // @@protoc_insertion_point(field_release:proto.SenderKeyDistributionMessage.axolotlSenderKeyDistributionMessage) + if (!_internal_has_axolotlsenderkeydistributionmessage()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return axolotlsenderkeydistributionmessage_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void SenderKeyDistributionMessage::set_allocated_axolotlsenderkeydistributionmessage(std::string* axolotlsenderkeydistributionmessage) { + if (axolotlsenderkeydistributionmessage != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + axolotlsenderkeydistributionmessage_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), axolotlsenderkeydistributionmessage, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.SenderKeyDistributionMessage.axolotlSenderKeyDistributionMessage) +} + +// ------------------------------------------------------------------- + +// ImageMessage + +// optional string url = 1; +inline bool ImageMessage::_internal_has_url() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool ImageMessage::has_url() const { + return _internal_has_url(); +} +inline void ImageMessage::clear_url() { + url_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& ImageMessage::url() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.url) + return _internal_url(); +} +inline void ImageMessage::set_url(const std::string& value) { + _internal_set_url(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.url) +} +inline std::string* ImageMessage::mutable_url() { + // @@protoc_insertion_point(field_mutable:proto.ImageMessage.url) + return _internal_mutable_url(); +} +inline const std::string& ImageMessage::_internal_url() const { + return url_.Get(); +} +inline void ImageMessage::_internal_set_url(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ImageMessage::set_url(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + url_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ImageMessage.url) +} +inline void ImageMessage::set_url(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ImageMessage.url) +} +inline void ImageMessage::set_url(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ImageMessage.url) +} +inline std::string* ImageMessage::_internal_mutable_url() { + _has_bits_[0] |= 0x00000001u; + return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ImageMessage::release_url() { + // @@protoc_insertion_point(field_release:proto.ImageMessage.url) + if (!_internal_has_url()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ImageMessage::set_allocated_url(std::string* url) { + if (url != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), url, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.url) +} + +// optional string mimetype = 2; +inline bool ImageMessage::_internal_has_mimetype() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool ImageMessage::has_mimetype() const { + return _internal_has_mimetype(); +} +inline void ImageMessage::clear_mimetype() { + mimetype_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& ImageMessage::mimetype() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.mimetype) + return _internal_mimetype(); +} +inline void ImageMessage::set_mimetype(const std::string& value) { + _internal_set_mimetype(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.mimetype) +} +inline std::string* ImageMessage::mutable_mimetype() { + // @@protoc_insertion_point(field_mutable:proto.ImageMessage.mimetype) + return _internal_mutable_mimetype(); +} +inline const std::string& ImageMessage::_internal_mimetype() const { + return mimetype_.Get(); +} +inline void ImageMessage::_internal_set_mimetype(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ImageMessage::set_mimetype(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + mimetype_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ImageMessage.mimetype) +} +inline void ImageMessage::set_mimetype(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ImageMessage.mimetype) +} +inline void ImageMessage::set_mimetype(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ImageMessage.mimetype) +} +inline std::string* ImageMessage::_internal_mutable_mimetype() { + _has_bits_[0] |= 0x00000002u; + return mimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ImageMessage::release_mimetype() { + // @@protoc_insertion_point(field_release:proto.ImageMessage.mimetype) + if (!_internal_has_mimetype()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return mimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ImageMessage::set_allocated_mimetype(std::string* mimetype) { + if (mimetype != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + mimetype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mimetype, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.mimetype) +} + +// optional string caption = 3; +inline bool ImageMessage::_internal_has_caption() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool ImageMessage::has_caption() const { + return _internal_has_caption(); +} +inline void ImageMessage::clear_caption() { + caption_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& ImageMessage::caption() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.caption) + return _internal_caption(); +} +inline void ImageMessage::set_caption(const std::string& value) { + _internal_set_caption(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.caption) +} +inline std::string* ImageMessage::mutable_caption() { + // @@protoc_insertion_point(field_mutable:proto.ImageMessage.caption) + return _internal_mutable_caption(); +} +inline const std::string& ImageMessage::_internal_caption() const { + return caption_.Get(); +} +inline void ImageMessage::_internal_set_caption(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ImageMessage::set_caption(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + caption_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ImageMessage.caption) +} +inline void ImageMessage::set_caption(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ImageMessage.caption) +} +inline void ImageMessage::set_caption(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ImageMessage.caption) +} +inline std::string* ImageMessage::_internal_mutable_caption() { + _has_bits_[0] |= 0x00000004u; + return caption_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ImageMessage::release_caption() { + // @@protoc_insertion_point(field_release:proto.ImageMessage.caption) + if (!_internal_has_caption()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return caption_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ImageMessage::set_allocated_caption(std::string* caption) { + if (caption != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + caption_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), caption, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.caption) +} + +// optional bytes fileSha256 = 4; +inline bool ImageMessage::_internal_has_filesha256() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool ImageMessage::has_filesha256() const { + return _internal_has_filesha256(); +} +inline void ImageMessage::clear_filesha256() { + filesha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& ImageMessage::filesha256() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.fileSha256) + return _internal_filesha256(); +} +inline void ImageMessage::set_filesha256(const std::string& value) { + _internal_set_filesha256(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.fileSha256) +} +inline std::string* ImageMessage::mutable_filesha256() { + // @@protoc_insertion_point(field_mutable:proto.ImageMessage.fileSha256) + return _internal_mutable_filesha256(); +} +inline const std::string& ImageMessage::_internal_filesha256() const { + return filesha256_.Get(); +} +inline void ImageMessage::_internal_set_filesha256(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ImageMessage::set_filesha256(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + filesha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ImageMessage.fileSha256) +} +inline void ImageMessage::set_filesha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ImageMessage.fileSha256) +} +inline void ImageMessage::set_filesha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ImageMessage.fileSha256) +} +inline std::string* ImageMessage::_internal_mutable_filesha256() { + _has_bits_[0] |= 0x00000008u; + return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ImageMessage::release_filesha256() { + // @@protoc_insertion_point(field_release:proto.ImageMessage.fileSha256) + if (!_internal_has_filesha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ImageMessage::set_allocated_filesha256(std::string* filesha256) { + if (filesha256 != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + filesha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filesha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.fileSha256) +} + +// optional uint64 fileLength = 5; +inline bool ImageMessage::_internal_has_filelength() const { + bool value = (_has_bits_[0] & 0x00010000u) != 0; + return value; +} +inline bool ImageMessage::has_filelength() const { + return _internal_has_filelength(); +} +inline void ImageMessage::clear_filelength() { + filelength_ = PROTOBUF_ULONGLONG(0); + _has_bits_[0] &= ~0x00010000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 ImageMessage::_internal_filelength() const { + return filelength_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 ImageMessage::filelength() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.fileLength) + return _internal_filelength(); +} +inline void ImageMessage::_internal_set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _has_bits_[0] |= 0x00010000u; + filelength_ = value; +} +inline void ImageMessage::set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_filelength(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.fileLength) +} + +// optional uint32 height = 6; +inline bool ImageMessage::_internal_has_height() const { + bool value = (_has_bits_[0] & 0x00020000u) != 0; + return value; +} +inline bool ImageMessage::has_height() const { + return _internal_has_height(); +} +inline void ImageMessage::clear_height() { + height_ = 0u; + _has_bits_[0] &= ~0x00020000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ImageMessage::_internal_height() const { + return height_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ImageMessage::height() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.height) + return _internal_height(); +} +inline void ImageMessage::_internal_set_height(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00020000u; + height_ = value; +} +inline void ImageMessage::set_height(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_height(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.height) +} + +// optional uint32 width = 7; +inline bool ImageMessage::_internal_has_width() const { + bool value = (_has_bits_[0] & 0x00040000u) != 0; + return value; +} +inline bool ImageMessage::has_width() const { + return _internal_has_width(); +} +inline void ImageMessage::clear_width() { + width_ = 0u; + _has_bits_[0] &= ~0x00040000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ImageMessage::_internal_width() const { + return width_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ImageMessage::width() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.width) + return _internal_width(); +} +inline void ImageMessage::_internal_set_width(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00040000u; + width_ = value; +} +inline void ImageMessage::set_width(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_width(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.width) +} + +// optional bytes mediaKey = 8; +inline bool ImageMessage::_internal_has_mediakey() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool ImageMessage::has_mediakey() const { + return _internal_has_mediakey(); +} +inline void ImageMessage::clear_mediakey() { + mediakey_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000010u; +} +inline const std::string& ImageMessage::mediakey() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.mediaKey) + return _internal_mediakey(); +} +inline void ImageMessage::set_mediakey(const std::string& value) { + _internal_set_mediakey(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.mediaKey) +} +inline std::string* ImageMessage::mutable_mediakey() { + // @@protoc_insertion_point(field_mutable:proto.ImageMessage.mediaKey) + return _internal_mutable_mediakey(); +} +inline const std::string& ImageMessage::_internal_mediakey() const { + return mediakey_.Get(); +} +inline void ImageMessage::_internal_set_mediakey(const std::string& value) { + _has_bits_[0] |= 0x00000010u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ImageMessage::set_mediakey(std::string&& value) { + _has_bits_[0] |= 0x00000010u; + mediakey_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ImageMessage.mediaKey) +} +inline void ImageMessage::set_mediakey(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000010u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ImageMessage.mediaKey) +} +inline void ImageMessage::set_mediakey(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000010u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ImageMessage.mediaKey) +} +inline std::string* ImageMessage::_internal_mutable_mediakey() { + _has_bits_[0] |= 0x00000010u; + return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ImageMessage::release_mediakey() { + // @@protoc_insertion_point(field_release:proto.ImageMessage.mediaKey) + if (!_internal_has_mediakey()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000010u; + return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ImageMessage::set_allocated_mediakey(std::string* mediakey) { + if (mediakey != nullptr) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + mediakey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mediakey, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.mediaKey) +} + +// optional bytes fileEncSha256 = 9; +inline bool ImageMessage::_internal_has_fileencsha256() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool ImageMessage::has_fileencsha256() const { + return _internal_has_fileencsha256(); +} +inline void ImageMessage::clear_fileencsha256() { + fileencsha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000020u; +} +inline const std::string& ImageMessage::fileencsha256() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.fileEncSha256) + return _internal_fileencsha256(); +} +inline void ImageMessage::set_fileencsha256(const std::string& value) { + _internal_set_fileencsha256(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.fileEncSha256) +} +inline std::string* ImageMessage::mutable_fileencsha256() { + // @@protoc_insertion_point(field_mutable:proto.ImageMessage.fileEncSha256) + return _internal_mutable_fileencsha256(); +} +inline const std::string& ImageMessage::_internal_fileencsha256() const { + return fileencsha256_.Get(); +} +inline void ImageMessage::_internal_set_fileencsha256(const std::string& value) { + _has_bits_[0] |= 0x00000020u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ImageMessage::set_fileencsha256(std::string&& value) { + _has_bits_[0] |= 0x00000020u; + fileencsha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ImageMessage.fileEncSha256) +} +inline void ImageMessage::set_fileencsha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000020u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ImageMessage.fileEncSha256) +} +inline void ImageMessage::set_fileencsha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000020u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ImageMessage.fileEncSha256) +} +inline std::string* ImageMessage::_internal_mutable_fileencsha256() { + _has_bits_[0] |= 0x00000020u; + return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ImageMessage::release_fileencsha256() { + // @@protoc_insertion_point(field_release:proto.ImageMessage.fileEncSha256) + if (!_internal_has_fileencsha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000020u; + return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ImageMessage::set_allocated_fileencsha256(std::string* fileencsha256) { + if (fileencsha256 != nullptr) { + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + fileencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fileencsha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.fileEncSha256) +} + +// repeated .proto.InteractiveAnnotation interactiveAnnotations = 10; +inline int ImageMessage::_internal_interactiveannotations_size() const { + return interactiveannotations_.size(); +} +inline int ImageMessage::interactiveannotations_size() const { + return _internal_interactiveannotations_size(); +} +inline void ImageMessage::clear_interactiveannotations() { + interactiveannotations_.Clear(); +} +inline ::proto::InteractiveAnnotation* ImageMessage::mutable_interactiveannotations(int index) { + // @@protoc_insertion_point(field_mutable:proto.ImageMessage.interactiveAnnotations) + return interactiveannotations_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::InteractiveAnnotation >* +ImageMessage::mutable_interactiveannotations() { + // @@protoc_insertion_point(field_mutable_list:proto.ImageMessage.interactiveAnnotations) + return &interactiveannotations_; +} +inline const ::proto::InteractiveAnnotation& ImageMessage::_internal_interactiveannotations(int index) const { + return interactiveannotations_.Get(index); +} +inline const ::proto::InteractiveAnnotation& ImageMessage::interactiveannotations(int index) const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.interactiveAnnotations) + return _internal_interactiveannotations(index); +} +inline ::proto::InteractiveAnnotation* ImageMessage::_internal_add_interactiveannotations() { + return interactiveannotations_.Add(); +} +inline ::proto::InteractiveAnnotation* ImageMessage::add_interactiveannotations() { + // @@protoc_insertion_point(field_add:proto.ImageMessage.interactiveAnnotations) + return _internal_add_interactiveannotations(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::InteractiveAnnotation >& +ImageMessage::interactiveannotations() const { + // @@protoc_insertion_point(field_list:proto.ImageMessage.interactiveAnnotations) + return interactiveannotations_; +} + +// optional string directPath = 11; +inline bool ImageMessage::_internal_has_directpath() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool ImageMessage::has_directpath() const { + return _internal_has_directpath(); +} +inline void ImageMessage::clear_directpath() { + directpath_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000040u; +} +inline const std::string& ImageMessage::directpath() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.directPath) + return _internal_directpath(); +} +inline void ImageMessage::set_directpath(const std::string& value) { + _internal_set_directpath(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.directPath) +} +inline std::string* ImageMessage::mutable_directpath() { + // @@protoc_insertion_point(field_mutable:proto.ImageMessage.directPath) + return _internal_mutable_directpath(); +} +inline const std::string& ImageMessage::_internal_directpath() const { + return directpath_.Get(); +} +inline void ImageMessage::_internal_set_directpath(const std::string& value) { + _has_bits_[0] |= 0x00000040u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ImageMessage::set_directpath(std::string&& value) { + _has_bits_[0] |= 0x00000040u; + directpath_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ImageMessage.directPath) +} +inline void ImageMessage::set_directpath(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000040u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ImageMessage.directPath) +} +inline void ImageMessage::set_directpath(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000040u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ImageMessage.directPath) +} +inline std::string* ImageMessage::_internal_mutable_directpath() { + _has_bits_[0] |= 0x00000040u; + return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ImageMessage::release_directpath() { + // @@protoc_insertion_point(field_release:proto.ImageMessage.directPath) + if (!_internal_has_directpath()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000040u; + return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ImageMessage::set_allocated_directpath(std::string* directpath) { + if (directpath != nullptr) { + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + directpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), directpath, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.directPath) +} + +// optional int64 mediaKeyTimestamp = 12; +inline bool ImageMessage::_internal_has_mediakeytimestamp() const { + bool value = (_has_bits_[0] & 0x00080000u) != 0; + return value; +} +inline bool ImageMessage::has_mediakeytimestamp() const { + return _internal_has_mediakeytimestamp(); +} +inline void ImageMessage::clear_mediakeytimestamp() { + mediakeytimestamp_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00080000u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ImageMessage::_internal_mediakeytimestamp() const { + return mediakeytimestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ImageMessage::mediakeytimestamp() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.mediaKeyTimestamp) + return _internal_mediakeytimestamp(); +} +inline void ImageMessage::_internal_set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00080000u; + mediakeytimestamp_ = value; +} +inline void ImageMessage::set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_mediakeytimestamp(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.mediaKeyTimestamp) +} + +// optional bytes jpegThumbnail = 16; +inline bool ImageMessage::_internal_has_jpegthumbnail() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + return value; +} +inline bool ImageMessage::has_jpegthumbnail() const { + return _internal_has_jpegthumbnail(); +} +inline void ImageMessage::clear_jpegthumbnail() { + jpegthumbnail_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000080u; +} +inline const std::string& ImageMessage::jpegthumbnail() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.jpegThumbnail) + return _internal_jpegthumbnail(); +} +inline void ImageMessage::set_jpegthumbnail(const std::string& value) { + _internal_set_jpegthumbnail(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.jpegThumbnail) +} +inline std::string* ImageMessage::mutable_jpegthumbnail() { + // @@protoc_insertion_point(field_mutable:proto.ImageMessage.jpegThumbnail) + return _internal_mutable_jpegthumbnail(); +} +inline const std::string& ImageMessage::_internal_jpegthumbnail() const { + return jpegthumbnail_.Get(); +} +inline void ImageMessage::_internal_set_jpegthumbnail(const std::string& value) { + _has_bits_[0] |= 0x00000080u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ImageMessage::set_jpegthumbnail(std::string&& value) { + _has_bits_[0] |= 0x00000080u; + jpegthumbnail_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ImageMessage.jpegThumbnail) +} +inline void ImageMessage::set_jpegthumbnail(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000080u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ImageMessage.jpegThumbnail) +} +inline void ImageMessage::set_jpegthumbnail(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000080u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ImageMessage.jpegThumbnail) +} +inline std::string* ImageMessage::_internal_mutable_jpegthumbnail() { + _has_bits_[0] |= 0x00000080u; + return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ImageMessage::release_jpegthumbnail() { + // @@protoc_insertion_point(field_release:proto.ImageMessage.jpegThumbnail) + if (!_internal_has_jpegthumbnail()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000080u; + return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ImageMessage::set_allocated_jpegthumbnail(std::string* jpegthumbnail) { + if (jpegthumbnail != nullptr) { + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + jpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), jpegthumbnail, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.jpegThumbnail) +} + +// optional .proto.ContextInfo contextInfo = 17; +inline bool ImageMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00008000u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool ImageMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void ImageMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00008000u; +} +inline const ::proto::ContextInfo& ImageMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& ImageMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.contextInfo) + return _internal_contextinfo(); +} +inline void ImageMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00008000u; + } else { + _has_bits_[0] &= ~0x00008000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ImageMessage.contextInfo) +} +inline ::proto::ContextInfo* ImageMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00008000u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* ImageMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.ImageMessage.contextInfo) + _has_bits_[0] &= ~0x00008000u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* ImageMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00008000u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* ImageMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.ImageMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void ImageMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00008000u; + } else { + _has_bits_[0] &= ~0x00008000u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.contextInfo) +} + +// optional bytes firstScanSidecar = 18; +inline bool ImageMessage::_internal_has_firstscansidecar() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + return value; +} +inline bool ImageMessage::has_firstscansidecar() const { + return _internal_has_firstscansidecar(); +} +inline void ImageMessage::clear_firstscansidecar() { + firstscansidecar_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000100u; +} +inline const std::string& ImageMessage::firstscansidecar() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.firstScanSidecar) + return _internal_firstscansidecar(); +} +inline void ImageMessage::set_firstscansidecar(const std::string& value) { + _internal_set_firstscansidecar(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.firstScanSidecar) +} +inline std::string* ImageMessage::mutable_firstscansidecar() { + // @@protoc_insertion_point(field_mutable:proto.ImageMessage.firstScanSidecar) + return _internal_mutable_firstscansidecar(); +} +inline const std::string& ImageMessage::_internal_firstscansidecar() const { + return firstscansidecar_.Get(); +} +inline void ImageMessage::_internal_set_firstscansidecar(const std::string& value) { + _has_bits_[0] |= 0x00000100u; + firstscansidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ImageMessage::set_firstscansidecar(std::string&& value) { + _has_bits_[0] |= 0x00000100u; + firstscansidecar_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ImageMessage.firstScanSidecar) +} +inline void ImageMessage::set_firstscansidecar(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000100u; + firstscansidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ImageMessage.firstScanSidecar) +} +inline void ImageMessage::set_firstscansidecar(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000100u; + firstscansidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ImageMessage.firstScanSidecar) +} +inline std::string* ImageMessage::_internal_mutable_firstscansidecar() { + _has_bits_[0] |= 0x00000100u; + return firstscansidecar_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ImageMessage::release_firstscansidecar() { + // @@protoc_insertion_point(field_release:proto.ImageMessage.firstScanSidecar) + if (!_internal_has_firstscansidecar()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000100u; + return firstscansidecar_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ImageMessage::set_allocated_firstscansidecar(std::string* firstscansidecar) { + if (firstscansidecar != nullptr) { + _has_bits_[0] |= 0x00000100u; + } else { + _has_bits_[0] &= ~0x00000100u; + } + firstscansidecar_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), firstscansidecar, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.firstScanSidecar) +} + +// optional uint32 firstScanLength = 19; +inline bool ImageMessage::_internal_has_firstscanlength() const { + bool value = (_has_bits_[0] & 0x00100000u) != 0; + return value; +} +inline bool ImageMessage::has_firstscanlength() const { + return _internal_has_firstscanlength(); +} +inline void ImageMessage::clear_firstscanlength() { + firstscanlength_ = 0u; + _has_bits_[0] &= ~0x00100000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ImageMessage::_internal_firstscanlength() const { + return firstscanlength_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ImageMessage::firstscanlength() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.firstScanLength) + return _internal_firstscanlength(); +} +inline void ImageMessage::_internal_set_firstscanlength(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00100000u; + firstscanlength_ = value; +} +inline void ImageMessage::set_firstscanlength(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_firstscanlength(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.firstScanLength) +} + +// optional uint32 experimentGroupId = 20; +inline bool ImageMessage::_internal_has_experimentgroupid() const { + bool value = (_has_bits_[0] & 0x00200000u) != 0; + return value; +} +inline bool ImageMessage::has_experimentgroupid() const { + return _internal_has_experimentgroupid(); +} +inline void ImageMessage::clear_experimentgroupid() { + experimentgroupid_ = 0u; + _has_bits_[0] &= ~0x00200000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ImageMessage::_internal_experimentgroupid() const { + return experimentgroupid_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ImageMessage::experimentgroupid() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.experimentGroupId) + return _internal_experimentgroupid(); +} +inline void ImageMessage::_internal_set_experimentgroupid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00200000u; + experimentgroupid_ = value; +} +inline void ImageMessage::set_experimentgroupid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_experimentgroupid(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.experimentGroupId) +} + +// optional bytes scansSidecar = 21; +inline bool ImageMessage::_internal_has_scanssidecar() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + return value; +} +inline bool ImageMessage::has_scanssidecar() const { + return _internal_has_scanssidecar(); +} +inline void ImageMessage::clear_scanssidecar() { + scanssidecar_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000200u; +} +inline const std::string& ImageMessage::scanssidecar() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.scansSidecar) + return _internal_scanssidecar(); +} +inline void ImageMessage::set_scanssidecar(const std::string& value) { + _internal_set_scanssidecar(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.scansSidecar) +} +inline std::string* ImageMessage::mutable_scanssidecar() { + // @@protoc_insertion_point(field_mutable:proto.ImageMessage.scansSidecar) + return _internal_mutable_scanssidecar(); +} +inline const std::string& ImageMessage::_internal_scanssidecar() const { + return scanssidecar_.Get(); +} +inline void ImageMessage::_internal_set_scanssidecar(const std::string& value) { + _has_bits_[0] |= 0x00000200u; + scanssidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ImageMessage::set_scanssidecar(std::string&& value) { + _has_bits_[0] |= 0x00000200u; + scanssidecar_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ImageMessage.scansSidecar) +} +inline void ImageMessage::set_scanssidecar(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000200u; + scanssidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ImageMessage.scansSidecar) +} +inline void ImageMessage::set_scanssidecar(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000200u; + scanssidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ImageMessage.scansSidecar) +} +inline std::string* ImageMessage::_internal_mutable_scanssidecar() { + _has_bits_[0] |= 0x00000200u; + return scanssidecar_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ImageMessage::release_scanssidecar() { + // @@protoc_insertion_point(field_release:proto.ImageMessage.scansSidecar) + if (!_internal_has_scanssidecar()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000200u; + return scanssidecar_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ImageMessage::set_allocated_scanssidecar(std::string* scanssidecar) { + if (scanssidecar != nullptr) { + _has_bits_[0] |= 0x00000200u; + } else { + _has_bits_[0] &= ~0x00000200u; + } + scanssidecar_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), scanssidecar, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.scansSidecar) +} + +// repeated uint32 scanLengths = 22; +inline int ImageMessage::_internal_scanlengths_size() const { + return scanlengths_.size(); +} +inline int ImageMessage::scanlengths_size() const { + return _internal_scanlengths_size(); +} +inline void ImageMessage::clear_scanlengths() { + scanlengths_.Clear(); +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ImageMessage::_internal_scanlengths(int index) const { + return scanlengths_.Get(index); +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ImageMessage::scanlengths(int index) const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.scanLengths) + return _internal_scanlengths(index); +} +inline void ImageMessage::set_scanlengths(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value) { + scanlengths_.Set(index, value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.scanLengths) +} +inline void ImageMessage::_internal_add_scanlengths(::PROTOBUF_NAMESPACE_ID::uint32 value) { + scanlengths_.Add(value); +} +inline void ImageMessage::add_scanlengths(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_add_scanlengths(value); + // @@protoc_insertion_point(field_add:proto.ImageMessage.scanLengths) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& +ImageMessage::_internal_scanlengths() const { + return scanlengths_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& +ImageMessage::scanlengths() const { + // @@protoc_insertion_point(field_list:proto.ImageMessage.scanLengths) + return _internal_scanlengths(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* +ImageMessage::_internal_mutable_scanlengths() { + return &scanlengths_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* +ImageMessage::mutable_scanlengths() { + // @@protoc_insertion_point(field_mutable_list:proto.ImageMessage.scanLengths) + return _internal_mutable_scanlengths(); +} + +// optional bytes midQualityFileSha256 = 23; +inline bool ImageMessage::_internal_has_midqualityfilesha256() const { + bool value = (_has_bits_[0] & 0x00000400u) != 0; + return value; +} +inline bool ImageMessage::has_midqualityfilesha256() const { + return _internal_has_midqualityfilesha256(); +} +inline void ImageMessage::clear_midqualityfilesha256() { + midqualityfilesha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000400u; +} +inline const std::string& ImageMessage::midqualityfilesha256() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.midQualityFileSha256) + return _internal_midqualityfilesha256(); +} +inline void ImageMessage::set_midqualityfilesha256(const std::string& value) { + _internal_set_midqualityfilesha256(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.midQualityFileSha256) +} +inline std::string* ImageMessage::mutable_midqualityfilesha256() { + // @@protoc_insertion_point(field_mutable:proto.ImageMessage.midQualityFileSha256) + return _internal_mutable_midqualityfilesha256(); +} +inline const std::string& ImageMessage::_internal_midqualityfilesha256() const { + return midqualityfilesha256_.Get(); +} +inline void ImageMessage::_internal_set_midqualityfilesha256(const std::string& value) { + _has_bits_[0] |= 0x00000400u; + midqualityfilesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ImageMessage::set_midqualityfilesha256(std::string&& value) { + _has_bits_[0] |= 0x00000400u; + midqualityfilesha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ImageMessage.midQualityFileSha256) +} +inline void ImageMessage::set_midqualityfilesha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000400u; + midqualityfilesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ImageMessage.midQualityFileSha256) +} +inline void ImageMessage::set_midqualityfilesha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000400u; + midqualityfilesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ImageMessage.midQualityFileSha256) +} +inline std::string* ImageMessage::_internal_mutable_midqualityfilesha256() { + _has_bits_[0] |= 0x00000400u; + return midqualityfilesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ImageMessage::release_midqualityfilesha256() { + // @@protoc_insertion_point(field_release:proto.ImageMessage.midQualityFileSha256) + if (!_internal_has_midqualityfilesha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000400u; + return midqualityfilesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ImageMessage::set_allocated_midqualityfilesha256(std::string* midqualityfilesha256) { + if (midqualityfilesha256 != nullptr) { + _has_bits_[0] |= 0x00000400u; + } else { + _has_bits_[0] &= ~0x00000400u; + } + midqualityfilesha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), midqualityfilesha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.midQualityFileSha256) +} + +// optional bytes midQualityFileEncSha256 = 24; +inline bool ImageMessage::_internal_has_midqualityfileencsha256() const { + bool value = (_has_bits_[0] & 0x00000800u) != 0; + return value; +} +inline bool ImageMessage::has_midqualityfileencsha256() const { + return _internal_has_midqualityfileencsha256(); +} +inline void ImageMessage::clear_midqualityfileencsha256() { + midqualityfileencsha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000800u; +} +inline const std::string& ImageMessage::midqualityfileencsha256() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.midQualityFileEncSha256) + return _internal_midqualityfileencsha256(); +} +inline void ImageMessage::set_midqualityfileencsha256(const std::string& value) { + _internal_set_midqualityfileencsha256(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.midQualityFileEncSha256) +} +inline std::string* ImageMessage::mutable_midqualityfileencsha256() { + // @@protoc_insertion_point(field_mutable:proto.ImageMessage.midQualityFileEncSha256) + return _internal_mutable_midqualityfileencsha256(); +} +inline const std::string& ImageMessage::_internal_midqualityfileencsha256() const { + return midqualityfileencsha256_.Get(); +} +inline void ImageMessage::_internal_set_midqualityfileencsha256(const std::string& value) { + _has_bits_[0] |= 0x00000800u; + midqualityfileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ImageMessage::set_midqualityfileencsha256(std::string&& value) { + _has_bits_[0] |= 0x00000800u; + midqualityfileencsha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ImageMessage.midQualityFileEncSha256) +} +inline void ImageMessage::set_midqualityfileencsha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000800u; + midqualityfileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ImageMessage.midQualityFileEncSha256) +} +inline void ImageMessage::set_midqualityfileencsha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000800u; + midqualityfileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ImageMessage.midQualityFileEncSha256) +} +inline std::string* ImageMessage::_internal_mutable_midqualityfileencsha256() { + _has_bits_[0] |= 0x00000800u; + return midqualityfileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ImageMessage::release_midqualityfileencsha256() { + // @@protoc_insertion_point(field_release:proto.ImageMessage.midQualityFileEncSha256) + if (!_internal_has_midqualityfileencsha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000800u; + return midqualityfileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ImageMessage::set_allocated_midqualityfileencsha256(std::string* midqualityfileencsha256) { + if (midqualityfileencsha256 != nullptr) { + _has_bits_[0] |= 0x00000800u; + } else { + _has_bits_[0] &= ~0x00000800u; + } + midqualityfileencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), midqualityfileencsha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.midQualityFileEncSha256) +} + +// optional bool viewOnce = 25; +inline bool ImageMessage::_internal_has_viewonce() const { + bool value = (_has_bits_[0] & 0x00400000u) != 0; + return value; +} +inline bool ImageMessage::has_viewonce() const { + return _internal_has_viewonce(); +} +inline void ImageMessage::clear_viewonce() { + viewonce_ = false; + _has_bits_[0] &= ~0x00400000u; +} +inline bool ImageMessage::_internal_viewonce() const { + return viewonce_; +} +inline bool ImageMessage::viewonce() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.viewOnce) + return _internal_viewonce(); +} +inline void ImageMessage::_internal_set_viewonce(bool value) { + _has_bits_[0] |= 0x00400000u; + viewonce_ = value; +} +inline void ImageMessage::set_viewonce(bool value) { + _internal_set_viewonce(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.viewOnce) +} + +// optional string thumbnailDirectPath = 26; +inline bool ImageMessage::_internal_has_thumbnaildirectpath() const { + bool value = (_has_bits_[0] & 0x00001000u) != 0; + return value; +} +inline bool ImageMessage::has_thumbnaildirectpath() const { + return _internal_has_thumbnaildirectpath(); +} +inline void ImageMessage::clear_thumbnaildirectpath() { + thumbnaildirectpath_.ClearToEmpty(); + _has_bits_[0] &= ~0x00001000u; +} +inline const std::string& ImageMessage::thumbnaildirectpath() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.thumbnailDirectPath) + return _internal_thumbnaildirectpath(); +} +inline void ImageMessage::set_thumbnaildirectpath(const std::string& value) { + _internal_set_thumbnaildirectpath(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.thumbnailDirectPath) +} +inline std::string* ImageMessage::mutable_thumbnaildirectpath() { + // @@protoc_insertion_point(field_mutable:proto.ImageMessage.thumbnailDirectPath) + return _internal_mutable_thumbnaildirectpath(); +} +inline const std::string& ImageMessage::_internal_thumbnaildirectpath() const { + return thumbnaildirectpath_.Get(); +} +inline void ImageMessage::_internal_set_thumbnaildirectpath(const std::string& value) { + _has_bits_[0] |= 0x00001000u; + thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ImageMessage::set_thumbnaildirectpath(std::string&& value) { + _has_bits_[0] |= 0x00001000u; + thumbnaildirectpath_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ImageMessage.thumbnailDirectPath) +} +inline void ImageMessage::set_thumbnaildirectpath(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00001000u; + thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ImageMessage.thumbnailDirectPath) +} +inline void ImageMessage::set_thumbnaildirectpath(const char* value, + size_t size) { + _has_bits_[0] |= 0x00001000u; + thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ImageMessage.thumbnailDirectPath) +} +inline std::string* ImageMessage::_internal_mutable_thumbnaildirectpath() { + _has_bits_[0] |= 0x00001000u; + return thumbnaildirectpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ImageMessage::release_thumbnaildirectpath() { + // @@protoc_insertion_point(field_release:proto.ImageMessage.thumbnailDirectPath) + if (!_internal_has_thumbnaildirectpath()) { + return nullptr; + } + _has_bits_[0] &= ~0x00001000u; + return thumbnaildirectpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ImageMessage::set_allocated_thumbnaildirectpath(std::string* thumbnaildirectpath) { + if (thumbnaildirectpath != nullptr) { + _has_bits_[0] |= 0x00001000u; + } else { + _has_bits_[0] &= ~0x00001000u; + } + thumbnaildirectpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnaildirectpath, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.thumbnailDirectPath) +} + +// optional bytes thumbnailSha256 = 27; +inline bool ImageMessage::_internal_has_thumbnailsha256() const { + bool value = (_has_bits_[0] & 0x00002000u) != 0; + return value; +} +inline bool ImageMessage::has_thumbnailsha256() const { + return _internal_has_thumbnailsha256(); +} +inline void ImageMessage::clear_thumbnailsha256() { + thumbnailsha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00002000u; +} +inline const std::string& ImageMessage::thumbnailsha256() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.thumbnailSha256) + return _internal_thumbnailsha256(); +} +inline void ImageMessage::set_thumbnailsha256(const std::string& value) { + _internal_set_thumbnailsha256(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.thumbnailSha256) +} +inline std::string* ImageMessage::mutable_thumbnailsha256() { + // @@protoc_insertion_point(field_mutable:proto.ImageMessage.thumbnailSha256) + return _internal_mutable_thumbnailsha256(); +} +inline const std::string& ImageMessage::_internal_thumbnailsha256() const { + return thumbnailsha256_.Get(); +} +inline void ImageMessage::_internal_set_thumbnailsha256(const std::string& value) { + _has_bits_[0] |= 0x00002000u; + thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ImageMessage::set_thumbnailsha256(std::string&& value) { + _has_bits_[0] |= 0x00002000u; + thumbnailsha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ImageMessage.thumbnailSha256) +} +inline void ImageMessage::set_thumbnailsha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00002000u; + thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ImageMessage.thumbnailSha256) +} +inline void ImageMessage::set_thumbnailsha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00002000u; + thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ImageMessage.thumbnailSha256) +} +inline std::string* ImageMessage::_internal_mutable_thumbnailsha256() { + _has_bits_[0] |= 0x00002000u; + return thumbnailsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ImageMessage::release_thumbnailsha256() { + // @@protoc_insertion_point(field_release:proto.ImageMessage.thumbnailSha256) + if (!_internal_has_thumbnailsha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00002000u; + return thumbnailsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ImageMessage::set_allocated_thumbnailsha256(std::string* thumbnailsha256) { + if (thumbnailsha256 != nullptr) { + _has_bits_[0] |= 0x00002000u; + } else { + _has_bits_[0] &= ~0x00002000u; + } + thumbnailsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnailsha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.thumbnailSha256) +} + +// optional bytes thumbnailEncSha256 = 28; +inline bool ImageMessage::_internal_has_thumbnailencsha256() const { + bool value = (_has_bits_[0] & 0x00004000u) != 0; + return value; +} +inline bool ImageMessage::has_thumbnailencsha256() const { + return _internal_has_thumbnailencsha256(); +} +inline void ImageMessage::clear_thumbnailencsha256() { + thumbnailencsha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00004000u; +} +inline const std::string& ImageMessage::thumbnailencsha256() const { + // @@protoc_insertion_point(field_get:proto.ImageMessage.thumbnailEncSha256) + return _internal_thumbnailencsha256(); +} +inline void ImageMessage::set_thumbnailencsha256(const std::string& value) { + _internal_set_thumbnailencsha256(value); + // @@protoc_insertion_point(field_set:proto.ImageMessage.thumbnailEncSha256) +} +inline std::string* ImageMessage::mutable_thumbnailencsha256() { + // @@protoc_insertion_point(field_mutable:proto.ImageMessage.thumbnailEncSha256) + return _internal_mutable_thumbnailencsha256(); +} +inline const std::string& ImageMessage::_internal_thumbnailencsha256() const { + return thumbnailencsha256_.Get(); +} +inline void ImageMessage::_internal_set_thumbnailencsha256(const std::string& value) { + _has_bits_[0] |= 0x00004000u; + thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ImageMessage::set_thumbnailencsha256(std::string&& value) { + _has_bits_[0] |= 0x00004000u; + thumbnailencsha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ImageMessage.thumbnailEncSha256) +} +inline void ImageMessage::set_thumbnailencsha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00004000u; + thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ImageMessage.thumbnailEncSha256) +} +inline void ImageMessage::set_thumbnailencsha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00004000u; + thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ImageMessage.thumbnailEncSha256) +} +inline std::string* ImageMessage::_internal_mutable_thumbnailencsha256() { + _has_bits_[0] |= 0x00004000u; + return thumbnailencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ImageMessage::release_thumbnailencsha256() { + // @@protoc_insertion_point(field_release:proto.ImageMessage.thumbnailEncSha256) + if (!_internal_has_thumbnailencsha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00004000u; + return thumbnailencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ImageMessage::set_allocated_thumbnailencsha256(std::string* thumbnailencsha256) { + if (thumbnailencsha256 != nullptr) { + _has_bits_[0] |= 0x00004000u; + } else { + _has_bits_[0] &= ~0x00004000u; + } + thumbnailencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnailencsha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.thumbnailEncSha256) +} + +// ------------------------------------------------------------------- + +// InvoiceMessage + +// optional string note = 1; +inline bool InvoiceMessage::_internal_has_note() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool InvoiceMessage::has_note() const { + return _internal_has_note(); +} +inline void InvoiceMessage::clear_note() { + note_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& InvoiceMessage::note() const { + // @@protoc_insertion_point(field_get:proto.InvoiceMessage.note) + return _internal_note(); +} +inline void InvoiceMessage::set_note(const std::string& value) { + _internal_set_note(value); + // @@protoc_insertion_point(field_set:proto.InvoiceMessage.note) +} +inline std::string* InvoiceMessage::mutable_note() { + // @@protoc_insertion_point(field_mutable:proto.InvoiceMessage.note) + return _internal_mutable_note(); +} +inline const std::string& InvoiceMessage::_internal_note() const { + return note_.Get(); +} +inline void InvoiceMessage::_internal_set_note(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + note_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void InvoiceMessage::set_note(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + note_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.InvoiceMessage.note) +} +inline void InvoiceMessage::set_note(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + note_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.InvoiceMessage.note) +} +inline void InvoiceMessage::set_note(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + note_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.InvoiceMessage.note) +} +inline std::string* InvoiceMessage::_internal_mutable_note() { + _has_bits_[0] |= 0x00000001u; + return note_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* InvoiceMessage::release_note() { + // @@protoc_insertion_point(field_release:proto.InvoiceMessage.note) + if (!_internal_has_note()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return note_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void InvoiceMessage::set_allocated_note(std::string* note) { + if (note != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + note_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), note, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.InvoiceMessage.note) +} + +// optional string token = 2; +inline bool InvoiceMessage::_internal_has_token() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool InvoiceMessage::has_token() const { + return _internal_has_token(); +} +inline void InvoiceMessage::clear_token() { + token_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& InvoiceMessage::token() const { + // @@protoc_insertion_point(field_get:proto.InvoiceMessage.token) + return _internal_token(); +} +inline void InvoiceMessage::set_token(const std::string& value) { + _internal_set_token(value); + // @@protoc_insertion_point(field_set:proto.InvoiceMessage.token) +} +inline std::string* InvoiceMessage::mutable_token() { + // @@protoc_insertion_point(field_mutable:proto.InvoiceMessage.token) + return _internal_mutable_token(); +} +inline const std::string& InvoiceMessage::_internal_token() const { + return token_.Get(); +} +inline void InvoiceMessage::_internal_set_token(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void InvoiceMessage::set_token(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + token_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.InvoiceMessage.token) +} +inline void InvoiceMessage::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.InvoiceMessage.token) +} +inline void InvoiceMessage::set_token(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.InvoiceMessage.token) +} +inline std::string* InvoiceMessage::_internal_mutable_token() { + _has_bits_[0] |= 0x00000002u; + return token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* InvoiceMessage::release_token() { + // @@protoc_insertion_point(field_release:proto.InvoiceMessage.token) + if (!_internal_has_token()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void InvoiceMessage::set_allocated_token(std::string* token) { + if (token != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), token, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.InvoiceMessage.token) +} + +// optional .proto.InvoiceMessage.InvoiceMessageAttachmentType attachmentType = 3; +inline bool InvoiceMessage::_internal_has_attachmenttype() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + return value; +} +inline bool InvoiceMessage::has_attachmenttype() const { + return _internal_has_attachmenttype(); +} +inline void InvoiceMessage::clear_attachmenttype() { + attachmenttype_ = 0; + _has_bits_[0] &= ~0x00000200u; +} +inline ::proto::InvoiceMessage_InvoiceMessageAttachmentType InvoiceMessage::_internal_attachmenttype() const { + return static_cast< ::proto::InvoiceMessage_InvoiceMessageAttachmentType >(attachmenttype_); +} +inline ::proto::InvoiceMessage_InvoiceMessageAttachmentType InvoiceMessage::attachmenttype() const { + // @@protoc_insertion_point(field_get:proto.InvoiceMessage.attachmentType) + return _internal_attachmenttype(); +} +inline void InvoiceMessage::_internal_set_attachmenttype(::proto::InvoiceMessage_InvoiceMessageAttachmentType value) { + assert(::proto::InvoiceMessage_InvoiceMessageAttachmentType_IsValid(value)); + _has_bits_[0] |= 0x00000200u; + attachmenttype_ = value; +} +inline void InvoiceMessage::set_attachmenttype(::proto::InvoiceMessage_InvoiceMessageAttachmentType value) { + _internal_set_attachmenttype(value); + // @@protoc_insertion_point(field_set:proto.InvoiceMessage.attachmentType) +} + +// optional string attachmentMimetype = 4; +inline bool InvoiceMessage::_internal_has_attachmentmimetype() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool InvoiceMessage::has_attachmentmimetype() const { + return _internal_has_attachmentmimetype(); +} +inline void InvoiceMessage::clear_attachmentmimetype() { + attachmentmimetype_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& InvoiceMessage::attachmentmimetype() const { + // @@protoc_insertion_point(field_get:proto.InvoiceMessage.attachmentMimetype) + return _internal_attachmentmimetype(); +} +inline void InvoiceMessage::set_attachmentmimetype(const std::string& value) { + _internal_set_attachmentmimetype(value); + // @@protoc_insertion_point(field_set:proto.InvoiceMessage.attachmentMimetype) +} +inline std::string* InvoiceMessage::mutable_attachmentmimetype() { + // @@protoc_insertion_point(field_mutable:proto.InvoiceMessage.attachmentMimetype) + return _internal_mutable_attachmentmimetype(); +} +inline const std::string& InvoiceMessage::_internal_attachmentmimetype() const { + return attachmentmimetype_.Get(); +} +inline void InvoiceMessage::_internal_set_attachmentmimetype(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + attachmentmimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void InvoiceMessage::set_attachmentmimetype(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + attachmentmimetype_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.InvoiceMessage.attachmentMimetype) +} +inline void InvoiceMessage::set_attachmentmimetype(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + attachmentmimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.InvoiceMessage.attachmentMimetype) +} +inline void InvoiceMessage::set_attachmentmimetype(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + attachmentmimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.InvoiceMessage.attachmentMimetype) +} +inline std::string* InvoiceMessage::_internal_mutable_attachmentmimetype() { + _has_bits_[0] |= 0x00000004u; + return attachmentmimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* InvoiceMessage::release_attachmentmimetype() { + // @@protoc_insertion_point(field_release:proto.InvoiceMessage.attachmentMimetype) + if (!_internal_has_attachmentmimetype()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return attachmentmimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void InvoiceMessage::set_allocated_attachmentmimetype(std::string* attachmentmimetype) { + if (attachmentmimetype != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + attachmentmimetype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), attachmentmimetype, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.InvoiceMessage.attachmentMimetype) +} + +// optional bytes attachmentMediaKey = 5; +inline bool InvoiceMessage::_internal_has_attachmentmediakey() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool InvoiceMessage::has_attachmentmediakey() const { + return _internal_has_attachmentmediakey(); +} +inline void InvoiceMessage::clear_attachmentmediakey() { + attachmentmediakey_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& InvoiceMessage::attachmentmediakey() const { + // @@protoc_insertion_point(field_get:proto.InvoiceMessage.attachmentMediaKey) + return _internal_attachmentmediakey(); +} +inline void InvoiceMessage::set_attachmentmediakey(const std::string& value) { + _internal_set_attachmentmediakey(value); + // @@protoc_insertion_point(field_set:proto.InvoiceMessage.attachmentMediaKey) +} +inline std::string* InvoiceMessage::mutable_attachmentmediakey() { + // @@protoc_insertion_point(field_mutable:proto.InvoiceMessage.attachmentMediaKey) + return _internal_mutable_attachmentmediakey(); +} +inline const std::string& InvoiceMessage::_internal_attachmentmediakey() const { + return attachmentmediakey_.Get(); +} +inline void InvoiceMessage::_internal_set_attachmentmediakey(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + attachmentmediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void InvoiceMessage::set_attachmentmediakey(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + attachmentmediakey_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.InvoiceMessage.attachmentMediaKey) +} +inline void InvoiceMessage::set_attachmentmediakey(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + attachmentmediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.InvoiceMessage.attachmentMediaKey) +} +inline void InvoiceMessage::set_attachmentmediakey(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + attachmentmediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.InvoiceMessage.attachmentMediaKey) +} +inline std::string* InvoiceMessage::_internal_mutable_attachmentmediakey() { + _has_bits_[0] |= 0x00000008u; + return attachmentmediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* InvoiceMessage::release_attachmentmediakey() { + // @@protoc_insertion_point(field_release:proto.InvoiceMessage.attachmentMediaKey) + if (!_internal_has_attachmentmediakey()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + return attachmentmediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void InvoiceMessage::set_allocated_attachmentmediakey(std::string* attachmentmediakey) { + if (attachmentmediakey != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + attachmentmediakey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), attachmentmediakey, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.InvoiceMessage.attachmentMediaKey) +} + +// optional int64 attachmentMediaKeyTimestamp = 6; +inline bool InvoiceMessage::_internal_has_attachmentmediakeytimestamp() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + return value; +} +inline bool InvoiceMessage::has_attachmentmediakeytimestamp() const { + return _internal_has_attachmentmediakeytimestamp(); +} +inline void InvoiceMessage::clear_attachmentmediakeytimestamp() { + attachmentmediakeytimestamp_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00000100u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 InvoiceMessage::_internal_attachmentmediakeytimestamp() const { + return attachmentmediakeytimestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 InvoiceMessage::attachmentmediakeytimestamp() const { + // @@protoc_insertion_point(field_get:proto.InvoiceMessage.attachmentMediaKeyTimestamp) + return _internal_attachmentmediakeytimestamp(); +} +inline void InvoiceMessage::_internal_set_attachmentmediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00000100u; + attachmentmediakeytimestamp_ = value; +} +inline void InvoiceMessage::set_attachmentmediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_attachmentmediakeytimestamp(value); + // @@protoc_insertion_point(field_set:proto.InvoiceMessage.attachmentMediaKeyTimestamp) +} + +// optional bytes attachmentFileSha256 = 7; +inline bool InvoiceMessage::_internal_has_attachmentfilesha256() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool InvoiceMessage::has_attachmentfilesha256() const { + return _internal_has_attachmentfilesha256(); +} +inline void InvoiceMessage::clear_attachmentfilesha256() { + attachmentfilesha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000010u; +} +inline const std::string& InvoiceMessage::attachmentfilesha256() const { + // @@protoc_insertion_point(field_get:proto.InvoiceMessage.attachmentFileSha256) + return _internal_attachmentfilesha256(); +} +inline void InvoiceMessage::set_attachmentfilesha256(const std::string& value) { + _internal_set_attachmentfilesha256(value); + // @@protoc_insertion_point(field_set:proto.InvoiceMessage.attachmentFileSha256) +} +inline std::string* InvoiceMessage::mutable_attachmentfilesha256() { + // @@protoc_insertion_point(field_mutable:proto.InvoiceMessage.attachmentFileSha256) + return _internal_mutable_attachmentfilesha256(); +} +inline const std::string& InvoiceMessage::_internal_attachmentfilesha256() const { + return attachmentfilesha256_.Get(); +} +inline void InvoiceMessage::_internal_set_attachmentfilesha256(const std::string& value) { + _has_bits_[0] |= 0x00000010u; + attachmentfilesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void InvoiceMessage::set_attachmentfilesha256(std::string&& value) { + _has_bits_[0] |= 0x00000010u; + attachmentfilesha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.InvoiceMessage.attachmentFileSha256) +} +inline void InvoiceMessage::set_attachmentfilesha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000010u; + attachmentfilesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.InvoiceMessage.attachmentFileSha256) +} +inline void InvoiceMessage::set_attachmentfilesha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000010u; + attachmentfilesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.InvoiceMessage.attachmentFileSha256) +} +inline std::string* InvoiceMessage::_internal_mutable_attachmentfilesha256() { + _has_bits_[0] |= 0x00000010u; + return attachmentfilesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* InvoiceMessage::release_attachmentfilesha256() { + // @@protoc_insertion_point(field_release:proto.InvoiceMessage.attachmentFileSha256) + if (!_internal_has_attachmentfilesha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000010u; + return attachmentfilesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void InvoiceMessage::set_allocated_attachmentfilesha256(std::string* attachmentfilesha256) { + if (attachmentfilesha256 != nullptr) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + attachmentfilesha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), attachmentfilesha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.InvoiceMessage.attachmentFileSha256) +} + +// optional bytes attachmentFileEncSha256 = 8; +inline bool InvoiceMessage::_internal_has_attachmentfileencsha256() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool InvoiceMessage::has_attachmentfileencsha256() const { + return _internal_has_attachmentfileencsha256(); +} +inline void InvoiceMessage::clear_attachmentfileencsha256() { + attachmentfileencsha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000020u; +} +inline const std::string& InvoiceMessage::attachmentfileencsha256() const { + // @@protoc_insertion_point(field_get:proto.InvoiceMessage.attachmentFileEncSha256) + return _internal_attachmentfileencsha256(); +} +inline void InvoiceMessage::set_attachmentfileencsha256(const std::string& value) { + _internal_set_attachmentfileencsha256(value); + // @@protoc_insertion_point(field_set:proto.InvoiceMessage.attachmentFileEncSha256) +} +inline std::string* InvoiceMessage::mutable_attachmentfileencsha256() { + // @@protoc_insertion_point(field_mutable:proto.InvoiceMessage.attachmentFileEncSha256) + return _internal_mutable_attachmentfileencsha256(); +} +inline const std::string& InvoiceMessage::_internal_attachmentfileencsha256() const { + return attachmentfileencsha256_.Get(); +} +inline void InvoiceMessage::_internal_set_attachmentfileencsha256(const std::string& value) { + _has_bits_[0] |= 0x00000020u; + attachmentfileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void InvoiceMessage::set_attachmentfileencsha256(std::string&& value) { + _has_bits_[0] |= 0x00000020u; + attachmentfileencsha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.InvoiceMessage.attachmentFileEncSha256) +} +inline void InvoiceMessage::set_attachmentfileencsha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000020u; + attachmentfileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.InvoiceMessage.attachmentFileEncSha256) +} +inline void InvoiceMessage::set_attachmentfileencsha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000020u; + attachmentfileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.InvoiceMessage.attachmentFileEncSha256) +} +inline std::string* InvoiceMessage::_internal_mutable_attachmentfileencsha256() { + _has_bits_[0] |= 0x00000020u; + return attachmentfileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* InvoiceMessage::release_attachmentfileencsha256() { + // @@protoc_insertion_point(field_release:proto.InvoiceMessage.attachmentFileEncSha256) + if (!_internal_has_attachmentfileencsha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000020u; + return attachmentfileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void InvoiceMessage::set_allocated_attachmentfileencsha256(std::string* attachmentfileencsha256) { + if (attachmentfileencsha256 != nullptr) { + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + attachmentfileencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), attachmentfileencsha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.InvoiceMessage.attachmentFileEncSha256) +} + +// optional string attachmentDirectPath = 9; +inline bool InvoiceMessage::_internal_has_attachmentdirectpath() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool InvoiceMessage::has_attachmentdirectpath() const { + return _internal_has_attachmentdirectpath(); +} +inline void InvoiceMessage::clear_attachmentdirectpath() { + attachmentdirectpath_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000040u; +} +inline const std::string& InvoiceMessage::attachmentdirectpath() const { + // @@protoc_insertion_point(field_get:proto.InvoiceMessage.attachmentDirectPath) + return _internal_attachmentdirectpath(); +} +inline void InvoiceMessage::set_attachmentdirectpath(const std::string& value) { + _internal_set_attachmentdirectpath(value); + // @@protoc_insertion_point(field_set:proto.InvoiceMessage.attachmentDirectPath) +} +inline std::string* InvoiceMessage::mutable_attachmentdirectpath() { + // @@protoc_insertion_point(field_mutable:proto.InvoiceMessage.attachmentDirectPath) + return _internal_mutable_attachmentdirectpath(); +} +inline const std::string& InvoiceMessage::_internal_attachmentdirectpath() const { + return attachmentdirectpath_.Get(); +} +inline void InvoiceMessage::_internal_set_attachmentdirectpath(const std::string& value) { + _has_bits_[0] |= 0x00000040u; + attachmentdirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void InvoiceMessage::set_attachmentdirectpath(std::string&& value) { + _has_bits_[0] |= 0x00000040u; + attachmentdirectpath_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.InvoiceMessage.attachmentDirectPath) +} +inline void InvoiceMessage::set_attachmentdirectpath(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000040u; + attachmentdirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.InvoiceMessage.attachmentDirectPath) +} +inline void InvoiceMessage::set_attachmentdirectpath(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000040u; + attachmentdirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.InvoiceMessage.attachmentDirectPath) +} +inline std::string* InvoiceMessage::_internal_mutable_attachmentdirectpath() { + _has_bits_[0] |= 0x00000040u; + return attachmentdirectpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* InvoiceMessage::release_attachmentdirectpath() { + // @@protoc_insertion_point(field_release:proto.InvoiceMessage.attachmentDirectPath) + if (!_internal_has_attachmentdirectpath()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000040u; + return attachmentdirectpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void InvoiceMessage::set_allocated_attachmentdirectpath(std::string* attachmentdirectpath) { + if (attachmentdirectpath != nullptr) { + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + attachmentdirectpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), attachmentdirectpath, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.InvoiceMessage.attachmentDirectPath) +} + +// optional bytes attachmentJpegThumbnail = 10; +inline bool InvoiceMessage::_internal_has_attachmentjpegthumbnail() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + return value; +} +inline bool InvoiceMessage::has_attachmentjpegthumbnail() const { + return _internal_has_attachmentjpegthumbnail(); +} +inline void InvoiceMessage::clear_attachmentjpegthumbnail() { + attachmentjpegthumbnail_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000080u; +} +inline const std::string& InvoiceMessage::attachmentjpegthumbnail() const { + // @@protoc_insertion_point(field_get:proto.InvoiceMessage.attachmentJpegThumbnail) + return _internal_attachmentjpegthumbnail(); +} +inline void InvoiceMessage::set_attachmentjpegthumbnail(const std::string& value) { + _internal_set_attachmentjpegthumbnail(value); + // @@protoc_insertion_point(field_set:proto.InvoiceMessage.attachmentJpegThumbnail) +} +inline std::string* InvoiceMessage::mutable_attachmentjpegthumbnail() { + // @@protoc_insertion_point(field_mutable:proto.InvoiceMessage.attachmentJpegThumbnail) + return _internal_mutable_attachmentjpegthumbnail(); +} +inline const std::string& InvoiceMessage::_internal_attachmentjpegthumbnail() const { + return attachmentjpegthumbnail_.Get(); +} +inline void InvoiceMessage::_internal_set_attachmentjpegthumbnail(const std::string& value) { + _has_bits_[0] |= 0x00000080u; + attachmentjpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void InvoiceMessage::set_attachmentjpegthumbnail(std::string&& value) { + _has_bits_[0] |= 0x00000080u; + attachmentjpegthumbnail_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.InvoiceMessage.attachmentJpegThumbnail) +} +inline void InvoiceMessage::set_attachmentjpegthumbnail(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000080u; + attachmentjpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.InvoiceMessage.attachmentJpegThumbnail) +} +inline void InvoiceMessage::set_attachmentjpegthumbnail(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000080u; + attachmentjpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.InvoiceMessage.attachmentJpegThumbnail) +} +inline std::string* InvoiceMessage::_internal_mutable_attachmentjpegthumbnail() { + _has_bits_[0] |= 0x00000080u; + return attachmentjpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* InvoiceMessage::release_attachmentjpegthumbnail() { + // @@protoc_insertion_point(field_release:proto.InvoiceMessage.attachmentJpegThumbnail) + if (!_internal_has_attachmentjpegthumbnail()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000080u; + return attachmentjpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void InvoiceMessage::set_allocated_attachmentjpegthumbnail(std::string* attachmentjpegthumbnail) { + if (attachmentjpegthumbnail != nullptr) { + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + attachmentjpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), attachmentjpegthumbnail, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.InvoiceMessage.attachmentJpegThumbnail) +} + +// ------------------------------------------------------------------- + +// ContactMessage + +// optional string displayName = 1; +inline bool ContactMessage::_internal_has_displayname() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool ContactMessage::has_displayname() const { + return _internal_has_displayname(); +} +inline void ContactMessage::clear_displayname() { + displayname_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& ContactMessage::displayname() const { + // @@protoc_insertion_point(field_get:proto.ContactMessage.displayName) + return _internal_displayname(); +} +inline void ContactMessage::set_displayname(const std::string& value) { + _internal_set_displayname(value); + // @@protoc_insertion_point(field_set:proto.ContactMessage.displayName) +} +inline std::string* ContactMessage::mutable_displayname() { + // @@protoc_insertion_point(field_mutable:proto.ContactMessage.displayName) + return _internal_mutable_displayname(); +} +inline const std::string& ContactMessage::_internal_displayname() const { + return displayname_.Get(); +} +inline void ContactMessage::_internal_set_displayname(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ContactMessage::set_displayname(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + displayname_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ContactMessage.displayName) +} +inline void ContactMessage::set_displayname(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ContactMessage.displayName) +} +inline void ContactMessage::set_displayname(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ContactMessage.displayName) +} +inline std::string* ContactMessage::_internal_mutable_displayname() { + _has_bits_[0] |= 0x00000001u; + return displayname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ContactMessage::release_displayname() { + // @@protoc_insertion_point(field_release:proto.ContactMessage.displayName) + if (!_internal_has_displayname()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return displayname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ContactMessage::set_allocated_displayname(std::string* displayname) { + if (displayname != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + displayname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), displayname, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ContactMessage.displayName) +} + +// optional string vcard = 16; +inline bool ContactMessage::_internal_has_vcard() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool ContactMessage::has_vcard() const { + return _internal_has_vcard(); +} +inline void ContactMessage::clear_vcard() { + vcard_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& ContactMessage::vcard() const { + // @@protoc_insertion_point(field_get:proto.ContactMessage.vcard) + return _internal_vcard(); +} +inline void ContactMessage::set_vcard(const std::string& value) { + _internal_set_vcard(value); + // @@protoc_insertion_point(field_set:proto.ContactMessage.vcard) +} +inline std::string* ContactMessage::mutable_vcard() { + // @@protoc_insertion_point(field_mutable:proto.ContactMessage.vcard) + return _internal_mutable_vcard(); +} +inline const std::string& ContactMessage::_internal_vcard() const { + return vcard_.Get(); +} +inline void ContactMessage::_internal_set_vcard(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + vcard_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ContactMessage::set_vcard(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + vcard_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ContactMessage.vcard) +} +inline void ContactMessage::set_vcard(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + vcard_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ContactMessage.vcard) +} +inline void ContactMessage::set_vcard(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + vcard_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ContactMessage.vcard) +} +inline std::string* ContactMessage::_internal_mutable_vcard() { + _has_bits_[0] |= 0x00000002u; + return vcard_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ContactMessage::release_vcard() { + // @@protoc_insertion_point(field_release:proto.ContactMessage.vcard) + if (!_internal_has_vcard()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return vcard_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ContactMessage::set_allocated_vcard(std::string* vcard) { + if (vcard != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + vcard_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vcard, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ContactMessage.vcard) +} + +// optional .proto.ContextInfo contextInfo = 17; +inline bool ContactMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool ContactMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void ContactMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00000004u; +} +inline const ::proto::ContextInfo& ContactMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& ContactMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.ContactMessage.contextInfo) + return _internal_contextinfo(); +} +inline void ContactMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ContactMessage.contextInfo) +} +inline ::proto::ContextInfo* ContactMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00000004u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* ContactMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.ContactMessage.contextInfo) + _has_bits_[0] &= ~0x00000004u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* ContactMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00000004u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* ContactMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.ContactMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void ContactMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.ContactMessage.contextInfo) +} + +// ------------------------------------------------------------------- + +// LocationMessage + +// optional double degreesLatitude = 1; +inline bool LocationMessage::_internal_has_degreeslatitude() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool LocationMessage::has_degreeslatitude() const { + return _internal_has_degreeslatitude(); +} +inline void LocationMessage::clear_degreeslatitude() { + degreeslatitude_ = 0; + _has_bits_[0] &= ~0x00000040u; +} +inline double LocationMessage::_internal_degreeslatitude() const { + return degreeslatitude_; +} +inline double LocationMessage::degreeslatitude() const { + // @@protoc_insertion_point(field_get:proto.LocationMessage.degreesLatitude) + return _internal_degreeslatitude(); +} +inline void LocationMessage::_internal_set_degreeslatitude(double value) { + _has_bits_[0] |= 0x00000040u; + degreeslatitude_ = value; +} +inline void LocationMessage::set_degreeslatitude(double value) { + _internal_set_degreeslatitude(value); + // @@protoc_insertion_point(field_set:proto.LocationMessage.degreesLatitude) +} + +// optional double degreesLongitude = 2; +inline bool LocationMessage::_internal_has_degreeslongitude() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + return value; +} +inline bool LocationMessage::has_degreeslongitude() const { + return _internal_has_degreeslongitude(); +} +inline void LocationMessage::clear_degreeslongitude() { + degreeslongitude_ = 0; + _has_bits_[0] &= ~0x00000080u; +} +inline double LocationMessage::_internal_degreeslongitude() const { + return degreeslongitude_; +} +inline double LocationMessage::degreeslongitude() const { + // @@protoc_insertion_point(field_get:proto.LocationMessage.degreesLongitude) + return _internal_degreeslongitude(); +} +inline void LocationMessage::_internal_set_degreeslongitude(double value) { + _has_bits_[0] |= 0x00000080u; + degreeslongitude_ = value; +} +inline void LocationMessage::set_degreeslongitude(double value) { + _internal_set_degreeslongitude(value); + // @@protoc_insertion_point(field_set:proto.LocationMessage.degreesLongitude) +} + +// optional string name = 3; +inline bool LocationMessage::_internal_has_name() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool LocationMessage::has_name() const { + return _internal_has_name(); +} +inline void LocationMessage::clear_name() { + name_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& LocationMessage::name() const { + // @@protoc_insertion_point(field_get:proto.LocationMessage.name) + return _internal_name(); +} +inline void LocationMessage::set_name(const std::string& value) { + _internal_set_name(value); + // @@protoc_insertion_point(field_set:proto.LocationMessage.name) +} +inline std::string* LocationMessage::mutable_name() { + // @@protoc_insertion_point(field_mutable:proto.LocationMessage.name) + return _internal_mutable_name(); +} +inline const std::string& LocationMessage::_internal_name() const { + return name_.Get(); +} +inline void LocationMessage::_internal_set_name(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void LocationMessage::set_name(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + name_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.LocationMessage.name) +} +inline void LocationMessage::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.LocationMessage.name) +} +inline void LocationMessage::set_name(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.LocationMessage.name) +} +inline std::string* LocationMessage::_internal_mutable_name() { + _has_bits_[0] |= 0x00000001u; + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* LocationMessage::release_name() { + // @@protoc_insertion_point(field_release:proto.LocationMessage.name) + if (!_internal_has_name()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void LocationMessage::set_allocated_name(std::string* name) { + if (name != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.LocationMessage.name) +} + +// optional string address = 4; +inline bool LocationMessage::_internal_has_address() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool LocationMessage::has_address() const { + return _internal_has_address(); +} +inline void LocationMessage::clear_address() { + address_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& LocationMessage::address() const { + // @@protoc_insertion_point(field_get:proto.LocationMessage.address) + return _internal_address(); +} +inline void LocationMessage::set_address(const std::string& value) { + _internal_set_address(value); + // @@protoc_insertion_point(field_set:proto.LocationMessage.address) +} +inline std::string* LocationMessage::mutable_address() { + // @@protoc_insertion_point(field_mutable:proto.LocationMessage.address) + return _internal_mutable_address(); +} +inline const std::string& LocationMessage::_internal_address() const { + return address_.Get(); +} +inline void LocationMessage::_internal_set_address(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void LocationMessage::set_address(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + address_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.LocationMessage.address) +} +inline void LocationMessage::set_address(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.LocationMessage.address) +} +inline void LocationMessage::set_address(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.LocationMessage.address) +} +inline std::string* LocationMessage::_internal_mutable_address() { + _has_bits_[0] |= 0x00000002u; + return address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* LocationMessage::release_address() { + // @@protoc_insertion_point(field_release:proto.LocationMessage.address) + if (!_internal_has_address()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void LocationMessage::set_allocated_address(std::string* address) { + if (address != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), address, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.LocationMessage.address) +} + +// optional string url = 5; +inline bool LocationMessage::_internal_has_url() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool LocationMessage::has_url() const { + return _internal_has_url(); +} +inline void LocationMessage::clear_url() { + url_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& LocationMessage::url() const { + // @@protoc_insertion_point(field_get:proto.LocationMessage.url) + return _internal_url(); +} +inline void LocationMessage::set_url(const std::string& value) { + _internal_set_url(value); + // @@protoc_insertion_point(field_set:proto.LocationMessage.url) +} +inline std::string* LocationMessage::mutable_url() { + // @@protoc_insertion_point(field_mutable:proto.LocationMessage.url) + return _internal_mutable_url(); +} +inline const std::string& LocationMessage::_internal_url() const { + return url_.Get(); +} +inline void LocationMessage::_internal_set_url(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void LocationMessage::set_url(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + url_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.LocationMessage.url) +} +inline void LocationMessage::set_url(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.LocationMessage.url) +} +inline void LocationMessage::set_url(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.LocationMessage.url) +} +inline std::string* LocationMessage::_internal_mutable_url() { + _has_bits_[0] |= 0x00000004u; + return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* LocationMessage::release_url() { + // @@protoc_insertion_point(field_release:proto.LocationMessage.url) + if (!_internal_has_url()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void LocationMessage::set_allocated_url(std::string* url) { + if (url != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), url, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.LocationMessage.url) +} + +// optional bool isLive = 6; +inline bool LocationMessage::_internal_has_islive() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + return value; +} +inline bool LocationMessage::has_islive() const { + return _internal_has_islive(); +} +inline void LocationMessage::clear_islive() { + islive_ = false; + _has_bits_[0] &= ~0x00000100u; +} +inline bool LocationMessage::_internal_islive() const { + return islive_; +} +inline bool LocationMessage::islive() const { + // @@protoc_insertion_point(field_get:proto.LocationMessage.isLive) + return _internal_islive(); +} +inline void LocationMessage::_internal_set_islive(bool value) { + _has_bits_[0] |= 0x00000100u; + islive_ = value; +} +inline void LocationMessage::set_islive(bool value) { + _internal_set_islive(value); + // @@protoc_insertion_point(field_set:proto.LocationMessage.isLive) +} + +// optional uint32 accuracyInMeters = 7; +inline bool LocationMessage::_internal_has_accuracyinmeters() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + return value; +} +inline bool LocationMessage::has_accuracyinmeters() const { + return _internal_has_accuracyinmeters(); +} +inline void LocationMessage::clear_accuracyinmeters() { + accuracyinmeters_ = 0u; + _has_bits_[0] &= ~0x00000200u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 LocationMessage::_internal_accuracyinmeters() const { + return accuracyinmeters_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 LocationMessage::accuracyinmeters() const { + // @@protoc_insertion_point(field_get:proto.LocationMessage.accuracyInMeters) + return _internal_accuracyinmeters(); +} +inline void LocationMessage::_internal_set_accuracyinmeters(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000200u; + accuracyinmeters_ = value; +} +inline void LocationMessage::set_accuracyinmeters(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_accuracyinmeters(value); + // @@protoc_insertion_point(field_set:proto.LocationMessage.accuracyInMeters) +} + +// optional float speedInMps = 8; +inline bool LocationMessage::_internal_has_speedinmps() const { + bool value = (_has_bits_[0] & 0x00000400u) != 0; + return value; +} +inline bool LocationMessage::has_speedinmps() const { + return _internal_has_speedinmps(); +} +inline void LocationMessage::clear_speedinmps() { + speedinmps_ = 0; + _has_bits_[0] &= ~0x00000400u; +} +inline float LocationMessage::_internal_speedinmps() const { + return speedinmps_; +} +inline float LocationMessage::speedinmps() const { + // @@protoc_insertion_point(field_get:proto.LocationMessage.speedInMps) + return _internal_speedinmps(); +} +inline void LocationMessage::_internal_set_speedinmps(float value) { + _has_bits_[0] |= 0x00000400u; + speedinmps_ = value; +} +inline void LocationMessage::set_speedinmps(float value) { + _internal_set_speedinmps(value); + // @@protoc_insertion_point(field_set:proto.LocationMessage.speedInMps) +} + +// optional uint32 degreesClockwiseFromMagneticNorth = 9; +inline bool LocationMessage::_internal_has_degreesclockwisefrommagneticnorth() const { + bool value = (_has_bits_[0] & 0x00000800u) != 0; + return value; +} +inline bool LocationMessage::has_degreesclockwisefrommagneticnorth() const { + return _internal_has_degreesclockwisefrommagneticnorth(); +} +inline void LocationMessage::clear_degreesclockwisefrommagneticnorth() { + degreesclockwisefrommagneticnorth_ = 0u; + _has_bits_[0] &= ~0x00000800u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 LocationMessage::_internal_degreesclockwisefrommagneticnorth() const { + return degreesclockwisefrommagneticnorth_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 LocationMessage::degreesclockwisefrommagneticnorth() const { + // @@protoc_insertion_point(field_get:proto.LocationMessage.degreesClockwiseFromMagneticNorth) + return _internal_degreesclockwisefrommagneticnorth(); +} +inline void LocationMessage::_internal_set_degreesclockwisefrommagneticnorth(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000800u; + degreesclockwisefrommagneticnorth_ = value; +} +inline void LocationMessage::set_degreesclockwisefrommagneticnorth(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_degreesclockwisefrommagneticnorth(value); + // @@protoc_insertion_point(field_set:proto.LocationMessage.degreesClockwiseFromMagneticNorth) +} + +// optional string comment = 11; +inline bool LocationMessage::_internal_has_comment() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool LocationMessage::has_comment() const { + return _internal_has_comment(); +} +inline void LocationMessage::clear_comment() { + comment_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& LocationMessage::comment() const { + // @@protoc_insertion_point(field_get:proto.LocationMessage.comment) + return _internal_comment(); +} +inline void LocationMessage::set_comment(const std::string& value) { + _internal_set_comment(value); + // @@protoc_insertion_point(field_set:proto.LocationMessage.comment) +} +inline std::string* LocationMessage::mutable_comment() { + // @@protoc_insertion_point(field_mutable:proto.LocationMessage.comment) + return _internal_mutable_comment(); +} +inline const std::string& LocationMessage::_internal_comment() const { + return comment_.Get(); +} +inline void LocationMessage::_internal_set_comment(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + comment_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void LocationMessage::set_comment(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + comment_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.LocationMessage.comment) +} +inline void LocationMessage::set_comment(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + comment_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.LocationMessage.comment) +} +inline void LocationMessage::set_comment(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + comment_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.LocationMessage.comment) +} +inline std::string* LocationMessage::_internal_mutable_comment() { + _has_bits_[0] |= 0x00000008u; + return comment_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* LocationMessage::release_comment() { + // @@protoc_insertion_point(field_release:proto.LocationMessage.comment) + if (!_internal_has_comment()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + return comment_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void LocationMessage::set_allocated_comment(std::string* comment) { + if (comment != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + comment_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), comment, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.LocationMessage.comment) +} + +// optional bytes jpegThumbnail = 16; +inline bool LocationMessage::_internal_has_jpegthumbnail() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool LocationMessage::has_jpegthumbnail() const { + return _internal_has_jpegthumbnail(); +} +inline void LocationMessage::clear_jpegthumbnail() { + jpegthumbnail_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000010u; +} +inline const std::string& LocationMessage::jpegthumbnail() const { + // @@protoc_insertion_point(field_get:proto.LocationMessage.jpegThumbnail) + return _internal_jpegthumbnail(); +} +inline void LocationMessage::set_jpegthumbnail(const std::string& value) { + _internal_set_jpegthumbnail(value); + // @@protoc_insertion_point(field_set:proto.LocationMessage.jpegThumbnail) +} +inline std::string* LocationMessage::mutable_jpegthumbnail() { + // @@protoc_insertion_point(field_mutable:proto.LocationMessage.jpegThumbnail) + return _internal_mutable_jpegthumbnail(); +} +inline const std::string& LocationMessage::_internal_jpegthumbnail() const { + return jpegthumbnail_.Get(); +} +inline void LocationMessage::_internal_set_jpegthumbnail(const std::string& value) { + _has_bits_[0] |= 0x00000010u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void LocationMessage::set_jpegthumbnail(std::string&& value) { + _has_bits_[0] |= 0x00000010u; + jpegthumbnail_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.LocationMessage.jpegThumbnail) +} +inline void LocationMessage::set_jpegthumbnail(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000010u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.LocationMessage.jpegThumbnail) +} +inline void LocationMessage::set_jpegthumbnail(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000010u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.LocationMessage.jpegThumbnail) +} +inline std::string* LocationMessage::_internal_mutable_jpegthumbnail() { + _has_bits_[0] |= 0x00000010u; + return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* LocationMessage::release_jpegthumbnail() { + // @@protoc_insertion_point(field_release:proto.LocationMessage.jpegThumbnail) + if (!_internal_has_jpegthumbnail()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000010u; + return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void LocationMessage::set_allocated_jpegthumbnail(std::string* jpegthumbnail) { + if (jpegthumbnail != nullptr) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + jpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), jpegthumbnail, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.LocationMessage.jpegThumbnail) +} + +// optional .proto.ContextInfo contextInfo = 17; +inline bool LocationMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool LocationMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void LocationMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00000020u; +} +inline const ::proto::ContextInfo& LocationMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& LocationMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.LocationMessage.contextInfo) + return _internal_contextinfo(); +} +inline void LocationMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.LocationMessage.contextInfo) +} +inline ::proto::ContextInfo* LocationMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00000020u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* LocationMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.LocationMessage.contextInfo) + _has_bits_[0] &= ~0x00000020u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* LocationMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00000020u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* LocationMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.LocationMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void LocationMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.LocationMessage.contextInfo) +} + +// ------------------------------------------------------------------- + +// ExtendedTextMessage + +// optional string text = 1; +inline bool ExtendedTextMessage::_internal_has_text() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool ExtendedTextMessage::has_text() const { + return _internal_has_text(); +} +inline void ExtendedTextMessage::clear_text() { + text_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& ExtendedTextMessage::text() const { + // @@protoc_insertion_point(field_get:proto.ExtendedTextMessage.text) + return _internal_text(); +} +inline void ExtendedTextMessage::set_text(const std::string& value) { + _internal_set_text(value); + // @@protoc_insertion_point(field_set:proto.ExtendedTextMessage.text) +} +inline std::string* ExtendedTextMessage::mutable_text() { + // @@protoc_insertion_point(field_mutable:proto.ExtendedTextMessage.text) + return _internal_mutable_text(); +} +inline const std::string& ExtendedTextMessage::_internal_text() const { + return text_.Get(); +} +inline void ExtendedTextMessage::_internal_set_text(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ExtendedTextMessage::set_text(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + text_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ExtendedTextMessage.text) +} +inline void ExtendedTextMessage::set_text(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ExtendedTextMessage.text) +} +inline void ExtendedTextMessage::set_text(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ExtendedTextMessage.text) +} +inline std::string* ExtendedTextMessage::_internal_mutable_text() { + _has_bits_[0] |= 0x00000001u; + return text_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ExtendedTextMessage::release_text() { + // @@protoc_insertion_point(field_release:proto.ExtendedTextMessage.text) + if (!_internal_has_text()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return text_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ExtendedTextMessage::set_allocated_text(std::string* text) { + if (text != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + text_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), text, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ExtendedTextMessage.text) +} + +// optional string matchedText = 2; +inline bool ExtendedTextMessage::_internal_has_matchedtext() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool ExtendedTextMessage::has_matchedtext() const { + return _internal_has_matchedtext(); +} +inline void ExtendedTextMessage::clear_matchedtext() { + matchedtext_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& ExtendedTextMessage::matchedtext() const { + // @@protoc_insertion_point(field_get:proto.ExtendedTextMessage.matchedText) + return _internal_matchedtext(); +} +inline void ExtendedTextMessage::set_matchedtext(const std::string& value) { + _internal_set_matchedtext(value); + // @@protoc_insertion_point(field_set:proto.ExtendedTextMessage.matchedText) +} +inline std::string* ExtendedTextMessage::mutable_matchedtext() { + // @@protoc_insertion_point(field_mutable:proto.ExtendedTextMessage.matchedText) + return _internal_mutable_matchedtext(); +} +inline const std::string& ExtendedTextMessage::_internal_matchedtext() const { + return matchedtext_.Get(); +} +inline void ExtendedTextMessage::_internal_set_matchedtext(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + matchedtext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ExtendedTextMessage::set_matchedtext(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + matchedtext_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ExtendedTextMessage.matchedText) +} +inline void ExtendedTextMessage::set_matchedtext(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + matchedtext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ExtendedTextMessage.matchedText) +} +inline void ExtendedTextMessage::set_matchedtext(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + matchedtext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ExtendedTextMessage.matchedText) +} +inline std::string* ExtendedTextMessage::_internal_mutable_matchedtext() { + _has_bits_[0] |= 0x00000002u; + return matchedtext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ExtendedTextMessage::release_matchedtext() { + // @@protoc_insertion_point(field_release:proto.ExtendedTextMessage.matchedText) + if (!_internal_has_matchedtext()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return matchedtext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ExtendedTextMessage::set_allocated_matchedtext(std::string* matchedtext) { + if (matchedtext != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + matchedtext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), matchedtext, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ExtendedTextMessage.matchedText) +} + +// optional string canonicalUrl = 4; +inline bool ExtendedTextMessage::_internal_has_canonicalurl() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool ExtendedTextMessage::has_canonicalurl() const { + return _internal_has_canonicalurl(); +} +inline void ExtendedTextMessage::clear_canonicalurl() { + canonicalurl_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& ExtendedTextMessage::canonicalurl() const { + // @@protoc_insertion_point(field_get:proto.ExtendedTextMessage.canonicalUrl) + return _internal_canonicalurl(); +} +inline void ExtendedTextMessage::set_canonicalurl(const std::string& value) { + _internal_set_canonicalurl(value); + // @@protoc_insertion_point(field_set:proto.ExtendedTextMessage.canonicalUrl) +} +inline std::string* ExtendedTextMessage::mutable_canonicalurl() { + // @@protoc_insertion_point(field_mutable:proto.ExtendedTextMessage.canonicalUrl) + return _internal_mutable_canonicalurl(); +} +inline const std::string& ExtendedTextMessage::_internal_canonicalurl() const { + return canonicalurl_.Get(); +} +inline void ExtendedTextMessage::_internal_set_canonicalurl(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + canonicalurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ExtendedTextMessage::set_canonicalurl(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + canonicalurl_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ExtendedTextMessage.canonicalUrl) +} +inline void ExtendedTextMessage::set_canonicalurl(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + canonicalurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ExtendedTextMessage.canonicalUrl) +} +inline void ExtendedTextMessage::set_canonicalurl(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + canonicalurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ExtendedTextMessage.canonicalUrl) +} +inline std::string* ExtendedTextMessage::_internal_mutable_canonicalurl() { + _has_bits_[0] |= 0x00000004u; + return canonicalurl_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ExtendedTextMessage::release_canonicalurl() { + // @@protoc_insertion_point(field_release:proto.ExtendedTextMessage.canonicalUrl) + if (!_internal_has_canonicalurl()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return canonicalurl_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ExtendedTextMessage::set_allocated_canonicalurl(std::string* canonicalurl) { + if (canonicalurl != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + canonicalurl_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), canonicalurl, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ExtendedTextMessage.canonicalUrl) +} + +// optional string description = 5; +inline bool ExtendedTextMessage::_internal_has_description() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool ExtendedTextMessage::has_description() const { + return _internal_has_description(); +} +inline void ExtendedTextMessage::clear_description() { + description_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& ExtendedTextMessage::description() const { + // @@protoc_insertion_point(field_get:proto.ExtendedTextMessage.description) + return _internal_description(); +} +inline void ExtendedTextMessage::set_description(const std::string& value) { + _internal_set_description(value); + // @@protoc_insertion_point(field_set:proto.ExtendedTextMessage.description) +} +inline std::string* ExtendedTextMessage::mutable_description() { + // @@protoc_insertion_point(field_mutable:proto.ExtendedTextMessage.description) + return _internal_mutable_description(); +} +inline const std::string& ExtendedTextMessage::_internal_description() const { + return description_.Get(); +} +inline void ExtendedTextMessage::_internal_set_description(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ExtendedTextMessage::set_description(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + description_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ExtendedTextMessage.description) +} +inline void ExtendedTextMessage::set_description(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ExtendedTextMessage.description) +} +inline void ExtendedTextMessage::set_description(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ExtendedTextMessage.description) +} +inline std::string* ExtendedTextMessage::_internal_mutable_description() { + _has_bits_[0] |= 0x00000008u; + return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ExtendedTextMessage::release_description() { + // @@protoc_insertion_point(field_release:proto.ExtendedTextMessage.description) + if (!_internal_has_description()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ExtendedTextMessage::set_allocated_description(std::string* description) { + if (description != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ExtendedTextMessage.description) +} + +// optional string title = 6; +inline bool ExtendedTextMessage::_internal_has_title() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool ExtendedTextMessage::has_title() const { + return _internal_has_title(); +} +inline void ExtendedTextMessage::clear_title() { + title_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000010u; +} +inline const std::string& ExtendedTextMessage::title() const { + // @@protoc_insertion_point(field_get:proto.ExtendedTextMessage.title) + return _internal_title(); +} +inline void ExtendedTextMessage::set_title(const std::string& value) { + _internal_set_title(value); + // @@protoc_insertion_point(field_set:proto.ExtendedTextMessage.title) +} +inline std::string* ExtendedTextMessage::mutable_title() { + // @@protoc_insertion_point(field_mutable:proto.ExtendedTextMessage.title) + return _internal_mutable_title(); +} +inline const std::string& ExtendedTextMessage::_internal_title() const { + return title_.Get(); +} +inline void ExtendedTextMessage::_internal_set_title(const std::string& value) { + _has_bits_[0] |= 0x00000010u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ExtendedTextMessage::set_title(std::string&& value) { + _has_bits_[0] |= 0x00000010u; + title_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ExtendedTextMessage.title) +} +inline void ExtendedTextMessage::set_title(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000010u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ExtendedTextMessage.title) +} +inline void ExtendedTextMessage::set_title(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000010u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ExtendedTextMessage.title) +} +inline std::string* ExtendedTextMessage::_internal_mutable_title() { + _has_bits_[0] |= 0x00000010u; + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ExtendedTextMessage::release_title() { + // @@protoc_insertion_point(field_release:proto.ExtendedTextMessage.title) + if (!_internal_has_title()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000010u; + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ExtendedTextMessage::set_allocated_title(std::string* title) { + if (title != nullptr) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ExtendedTextMessage.title) +} + +// optional fixed32 textArgb = 7; +inline bool ExtendedTextMessage::_internal_has_textargb() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + return value; +} +inline bool ExtendedTextMessage::has_textargb() const { + return _internal_has_textargb(); +} +inline void ExtendedTextMessage::clear_textargb() { + textargb_ = 0u; + _has_bits_[0] &= ~0x00000080u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ExtendedTextMessage::_internal_textargb() const { + return textargb_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ExtendedTextMessage::textargb() const { + // @@protoc_insertion_point(field_get:proto.ExtendedTextMessage.textArgb) + return _internal_textargb(); +} +inline void ExtendedTextMessage::_internal_set_textargb(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000080u; + textargb_ = value; +} +inline void ExtendedTextMessage::set_textargb(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_textargb(value); + // @@protoc_insertion_point(field_set:proto.ExtendedTextMessage.textArgb) +} + +// optional fixed32 backgroundArgb = 8; +inline bool ExtendedTextMessage::_internal_has_backgroundargb() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + return value; +} +inline bool ExtendedTextMessage::has_backgroundargb() const { + return _internal_has_backgroundargb(); +} +inline void ExtendedTextMessage::clear_backgroundargb() { + backgroundargb_ = 0u; + _has_bits_[0] &= ~0x00000100u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ExtendedTextMessage::_internal_backgroundargb() const { + return backgroundargb_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ExtendedTextMessage::backgroundargb() const { + // @@protoc_insertion_point(field_get:proto.ExtendedTextMessage.backgroundArgb) + return _internal_backgroundargb(); +} +inline void ExtendedTextMessage::_internal_set_backgroundargb(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000100u; + backgroundargb_ = value; +} +inline void ExtendedTextMessage::set_backgroundargb(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_backgroundargb(value); + // @@protoc_insertion_point(field_set:proto.ExtendedTextMessage.backgroundArgb) +} + +// optional .proto.ExtendedTextMessage.ExtendedTextMessageFontType font = 9; +inline bool ExtendedTextMessage::_internal_has_font() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + return value; +} +inline bool ExtendedTextMessage::has_font() const { + return _internal_has_font(); +} +inline void ExtendedTextMessage::clear_font() { + font_ = 0; + _has_bits_[0] &= ~0x00000200u; +} +inline ::proto::ExtendedTextMessage_ExtendedTextMessageFontType ExtendedTextMessage::_internal_font() const { + return static_cast< ::proto::ExtendedTextMessage_ExtendedTextMessageFontType >(font_); +} +inline ::proto::ExtendedTextMessage_ExtendedTextMessageFontType ExtendedTextMessage::font() const { + // @@protoc_insertion_point(field_get:proto.ExtendedTextMessage.font) + return _internal_font(); +} +inline void ExtendedTextMessage::_internal_set_font(::proto::ExtendedTextMessage_ExtendedTextMessageFontType value) { + assert(::proto::ExtendedTextMessage_ExtendedTextMessageFontType_IsValid(value)); + _has_bits_[0] |= 0x00000200u; + font_ = value; +} +inline void ExtendedTextMessage::set_font(::proto::ExtendedTextMessage_ExtendedTextMessageFontType value) { + _internal_set_font(value); + // @@protoc_insertion_point(field_set:proto.ExtendedTextMessage.font) +} + +// optional .proto.ExtendedTextMessage.ExtendedTextMessagePreviewType previewType = 10; +inline bool ExtendedTextMessage::_internal_has_previewtype() const { + bool value = (_has_bits_[0] & 0x00000400u) != 0; + return value; +} +inline bool ExtendedTextMessage::has_previewtype() const { + return _internal_has_previewtype(); +} +inline void ExtendedTextMessage::clear_previewtype() { + previewtype_ = 0; + _has_bits_[0] &= ~0x00000400u; +} +inline ::proto::ExtendedTextMessage_ExtendedTextMessagePreviewType ExtendedTextMessage::_internal_previewtype() const { + return static_cast< ::proto::ExtendedTextMessage_ExtendedTextMessagePreviewType >(previewtype_); +} +inline ::proto::ExtendedTextMessage_ExtendedTextMessagePreviewType ExtendedTextMessage::previewtype() const { + // @@protoc_insertion_point(field_get:proto.ExtendedTextMessage.previewType) + return _internal_previewtype(); +} +inline void ExtendedTextMessage::_internal_set_previewtype(::proto::ExtendedTextMessage_ExtendedTextMessagePreviewType value) { + assert(::proto::ExtendedTextMessage_ExtendedTextMessagePreviewType_IsValid(value)); + _has_bits_[0] |= 0x00000400u; + previewtype_ = value; +} +inline void ExtendedTextMessage::set_previewtype(::proto::ExtendedTextMessage_ExtendedTextMessagePreviewType value) { + _internal_set_previewtype(value); + // @@protoc_insertion_point(field_set:proto.ExtendedTextMessage.previewType) +} + +// optional bytes jpegThumbnail = 16; +inline bool ExtendedTextMessage::_internal_has_jpegthumbnail() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool ExtendedTextMessage::has_jpegthumbnail() const { + return _internal_has_jpegthumbnail(); +} +inline void ExtendedTextMessage::clear_jpegthumbnail() { + jpegthumbnail_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000020u; +} +inline const std::string& ExtendedTextMessage::jpegthumbnail() const { + // @@protoc_insertion_point(field_get:proto.ExtendedTextMessage.jpegThumbnail) + return _internal_jpegthumbnail(); +} +inline void ExtendedTextMessage::set_jpegthumbnail(const std::string& value) { + _internal_set_jpegthumbnail(value); + // @@protoc_insertion_point(field_set:proto.ExtendedTextMessage.jpegThumbnail) +} +inline std::string* ExtendedTextMessage::mutable_jpegthumbnail() { + // @@protoc_insertion_point(field_mutable:proto.ExtendedTextMessage.jpegThumbnail) + return _internal_mutable_jpegthumbnail(); +} +inline const std::string& ExtendedTextMessage::_internal_jpegthumbnail() const { + return jpegthumbnail_.Get(); +} +inline void ExtendedTextMessage::_internal_set_jpegthumbnail(const std::string& value) { + _has_bits_[0] |= 0x00000020u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ExtendedTextMessage::set_jpegthumbnail(std::string&& value) { + _has_bits_[0] |= 0x00000020u; + jpegthumbnail_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ExtendedTextMessage.jpegThumbnail) +} +inline void ExtendedTextMessage::set_jpegthumbnail(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000020u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ExtendedTextMessage.jpegThumbnail) +} +inline void ExtendedTextMessage::set_jpegthumbnail(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000020u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ExtendedTextMessage.jpegThumbnail) +} +inline std::string* ExtendedTextMessage::_internal_mutable_jpegthumbnail() { + _has_bits_[0] |= 0x00000020u; + return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ExtendedTextMessage::release_jpegthumbnail() { + // @@protoc_insertion_point(field_release:proto.ExtendedTextMessage.jpegThumbnail) + if (!_internal_has_jpegthumbnail()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000020u; + return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ExtendedTextMessage::set_allocated_jpegthumbnail(std::string* jpegthumbnail) { + if (jpegthumbnail != nullptr) { + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + jpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), jpegthumbnail, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ExtendedTextMessage.jpegThumbnail) +} + +// optional .proto.ContextInfo contextInfo = 17; +inline bool ExtendedTextMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool ExtendedTextMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void ExtendedTextMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00000040u; +} +inline const ::proto::ContextInfo& ExtendedTextMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& ExtendedTextMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.ExtendedTextMessage.contextInfo) + return _internal_contextinfo(); +} +inline void ExtendedTextMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ExtendedTextMessage.contextInfo) +} +inline ::proto::ContextInfo* ExtendedTextMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00000040u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* ExtendedTextMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.ExtendedTextMessage.contextInfo) + _has_bits_[0] &= ~0x00000040u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* ExtendedTextMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00000040u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* ExtendedTextMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.ExtendedTextMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void ExtendedTextMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.ExtendedTextMessage.contextInfo) +} + +// optional bool doNotPlayInline = 18; +inline bool ExtendedTextMessage::_internal_has_donotplayinline() const { + bool value = (_has_bits_[0] & 0x00000800u) != 0; + return value; +} +inline bool ExtendedTextMessage::has_donotplayinline() const { + return _internal_has_donotplayinline(); +} +inline void ExtendedTextMessage::clear_donotplayinline() { + donotplayinline_ = false; + _has_bits_[0] &= ~0x00000800u; +} +inline bool ExtendedTextMessage::_internal_donotplayinline() const { + return donotplayinline_; +} +inline bool ExtendedTextMessage::donotplayinline() const { + // @@protoc_insertion_point(field_get:proto.ExtendedTextMessage.doNotPlayInline) + return _internal_donotplayinline(); +} +inline void ExtendedTextMessage::_internal_set_donotplayinline(bool value) { + _has_bits_[0] |= 0x00000800u; + donotplayinline_ = value; +} +inline void ExtendedTextMessage::set_donotplayinline(bool value) { + _internal_set_donotplayinline(value); + // @@protoc_insertion_point(field_set:proto.ExtendedTextMessage.doNotPlayInline) +} + +// ------------------------------------------------------------------- + +// DocumentMessage + +// optional string url = 1; +inline bool DocumentMessage::_internal_has_url() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool DocumentMessage::has_url() const { + return _internal_has_url(); +} +inline void DocumentMessage::clear_url() { + url_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& DocumentMessage::url() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.url) + return _internal_url(); +} +inline void DocumentMessage::set_url(const std::string& value) { + _internal_set_url(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.url) +} +inline std::string* DocumentMessage::mutable_url() { + // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.url) + return _internal_mutable_url(); +} +inline const std::string& DocumentMessage::_internal_url() const { + return url_.Get(); +} +inline void DocumentMessage::_internal_set_url(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DocumentMessage::set_url(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + url_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.DocumentMessage.url) +} +inline void DocumentMessage::set_url(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.DocumentMessage.url) +} +inline void DocumentMessage::set_url(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.DocumentMessage.url) +} +inline std::string* DocumentMessage::_internal_mutable_url() { + _has_bits_[0] |= 0x00000001u; + return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DocumentMessage::release_url() { + // @@protoc_insertion_point(field_release:proto.DocumentMessage.url) + if (!_internal_has_url()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DocumentMessage::set_allocated_url(std::string* url) { + if (url != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), url, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.url) +} + +// optional string mimetype = 2; +inline bool DocumentMessage::_internal_has_mimetype() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool DocumentMessage::has_mimetype() const { + return _internal_has_mimetype(); +} +inline void DocumentMessage::clear_mimetype() { + mimetype_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& DocumentMessage::mimetype() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.mimetype) + return _internal_mimetype(); +} +inline void DocumentMessage::set_mimetype(const std::string& value) { + _internal_set_mimetype(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.mimetype) +} +inline std::string* DocumentMessage::mutable_mimetype() { + // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.mimetype) + return _internal_mutable_mimetype(); +} +inline const std::string& DocumentMessage::_internal_mimetype() const { + return mimetype_.Get(); +} +inline void DocumentMessage::_internal_set_mimetype(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DocumentMessage::set_mimetype(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + mimetype_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.DocumentMessage.mimetype) +} +inline void DocumentMessage::set_mimetype(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.DocumentMessage.mimetype) +} +inline void DocumentMessage::set_mimetype(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.DocumentMessage.mimetype) +} +inline std::string* DocumentMessage::_internal_mutable_mimetype() { + _has_bits_[0] |= 0x00000002u; + return mimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DocumentMessage::release_mimetype() { + // @@protoc_insertion_point(field_release:proto.DocumentMessage.mimetype) + if (!_internal_has_mimetype()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return mimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DocumentMessage::set_allocated_mimetype(std::string* mimetype) { + if (mimetype != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + mimetype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mimetype, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.mimetype) +} + +// optional string title = 3; +inline bool DocumentMessage::_internal_has_title() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool DocumentMessage::has_title() const { + return _internal_has_title(); +} +inline void DocumentMessage::clear_title() { + title_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& DocumentMessage::title() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.title) + return _internal_title(); +} +inline void DocumentMessage::set_title(const std::string& value) { + _internal_set_title(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.title) +} +inline std::string* DocumentMessage::mutable_title() { + // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.title) + return _internal_mutable_title(); +} +inline const std::string& DocumentMessage::_internal_title() const { + return title_.Get(); +} +inline void DocumentMessage::_internal_set_title(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DocumentMessage::set_title(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + title_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.DocumentMessage.title) +} +inline void DocumentMessage::set_title(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.DocumentMessage.title) +} +inline void DocumentMessage::set_title(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.DocumentMessage.title) +} +inline std::string* DocumentMessage::_internal_mutable_title() { + _has_bits_[0] |= 0x00000004u; + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DocumentMessage::release_title() { + // @@protoc_insertion_point(field_release:proto.DocumentMessage.title) + if (!_internal_has_title()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DocumentMessage::set_allocated_title(std::string* title) { + if (title != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.title) +} + +// optional bytes fileSha256 = 4; +inline bool DocumentMessage::_internal_has_filesha256() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool DocumentMessage::has_filesha256() const { + return _internal_has_filesha256(); +} +inline void DocumentMessage::clear_filesha256() { + filesha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& DocumentMessage::filesha256() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.fileSha256) + return _internal_filesha256(); +} +inline void DocumentMessage::set_filesha256(const std::string& value) { + _internal_set_filesha256(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.fileSha256) +} +inline std::string* DocumentMessage::mutable_filesha256() { + // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.fileSha256) + return _internal_mutable_filesha256(); +} +inline const std::string& DocumentMessage::_internal_filesha256() const { + return filesha256_.Get(); +} +inline void DocumentMessage::_internal_set_filesha256(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DocumentMessage::set_filesha256(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + filesha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.DocumentMessage.fileSha256) +} +inline void DocumentMessage::set_filesha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.DocumentMessage.fileSha256) +} +inline void DocumentMessage::set_filesha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.DocumentMessage.fileSha256) +} +inline std::string* DocumentMessage::_internal_mutable_filesha256() { + _has_bits_[0] |= 0x00000008u; + return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DocumentMessage::release_filesha256() { + // @@protoc_insertion_point(field_release:proto.DocumentMessage.fileSha256) + if (!_internal_has_filesha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DocumentMessage::set_allocated_filesha256(std::string* filesha256) { + if (filesha256 != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + filesha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filesha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.fileSha256) +} + +// optional uint64 fileLength = 5; +inline bool DocumentMessage::_internal_has_filelength() const { + bool value = (_has_bits_[0] & 0x00002000u) != 0; + return value; +} +inline bool DocumentMessage::has_filelength() const { + return _internal_has_filelength(); +} +inline void DocumentMessage::clear_filelength() { + filelength_ = PROTOBUF_ULONGLONG(0); + _has_bits_[0] &= ~0x00002000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 DocumentMessage::_internal_filelength() const { + return filelength_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 DocumentMessage::filelength() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.fileLength) + return _internal_filelength(); +} +inline void DocumentMessage::_internal_set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _has_bits_[0] |= 0x00002000u; + filelength_ = value; +} +inline void DocumentMessage::set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_filelength(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.fileLength) +} + +// optional uint32 pageCount = 6; +inline bool DocumentMessage::_internal_has_pagecount() const { + bool value = (_has_bits_[0] & 0x00004000u) != 0; + return value; +} +inline bool DocumentMessage::has_pagecount() const { + return _internal_has_pagecount(); +} +inline void DocumentMessage::clear_pagecount() { + pagecount_ = 0u; + _has_bits_[0] &= ~0x00004000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 DocumentMessage::_internal_pagecount() const { + return pagecount_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 DocumentMessage::pagecount() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.pageCount) + return _internal_pagecount(); +} +inline void DocumentMessage::_internal_set_pagecount(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00004000u; + pagecount_ = value; +} +inline void DocumentMessage::set_pagecount(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_pagecount(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.pageCount) +} + +// optional bytes mediaKey = 7; +inline bool DocumentMessage::_internal_has_mediakey() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool DocumentMessage::has_mediakey() const { + return _internal_has_mediakey(); +} +inline void DocumentMessage::clear_mediakey() { + mediakey_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000010u; +} +inline const std::string& DocumentMessage::mediakey() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.mediaKey) + return _internal_mediakey(); +} +inline void DocumentMessage::set_mediakey(const std::string& value) { + _internal_set_mediakey(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.mediaKey) +} +inline std::string* DocumentMessage::mutable_mediakey() { + // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.mediaKey) + return _internal_mutable_mediakey(); +} +inline const std::string& DocumentMessage::_internal_mediakey() const { + return mediakey_.Get(); +} +inline void DocumentMessage::_internal_set_mediakey(const std::string& value) { + _has_bits_[0] |= 0x00000010u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DocumentMessage::set_mediakey(std::string&& value) { + _has_bits_[0] |= 0x00000010u; + mediakey_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.DocumentMessage.mediaKey) +} +inline void DocumentMessage::set_mediakey(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000010u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.DocumentMessage.mediaKey) +} +inline void DocumentMessage::set_mediakey(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000010u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.DocumentMessage.mediaKey) +} +inline std::string* DocumentMessage::_internal_mutable_mediakey() { + _has_bits_[0] |= 0x00000010u; + return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DocumentMessage::release_mediakey() { + // @@protoc_insertion_point(field_release:proto.DocumentMessage.mediaKey) + if (!_internal_has_mediakey()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000010u; + return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DocumentMessage::set_allocated_mediakey(std::string* mediakey) { + if (mediakey != nullptr) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + mediakey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mediakey, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.mediaKey) +} + +// optional string fileName = 8; +inline bool DocumentMessage::_internal_has_filename() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool DocumentMessage::has_filename() const { + return _internal_has_filename(); +} +inline void DocumentMessage::clear_filename() { + filename_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000020u; +} +inline const std::string& DocumentMessage::filename() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.fileName) + return _internal_filename(); +} +inline void DocumentMessage::set_filename(const std::string& value) { + _internal_set_filename(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.fileName) +} +inline std::string* DocumentMessage::mutable_filename() { + // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.fileName) + return _internal_mutable_filename(); +} +inline const std::string& DocumentMessage::_internal_filename() const { + return filename_.Get(); +} +inline void DocumentMessage::_internal_set_filename(const std::string& value) { + _has_bits_[0] |= 0x00000020u; + filename_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DocumentMessage::set_filename(std::string&& value) { + _has_bits_[0] |= 0x00000020u; + filename_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.DocumentMessage.fileName) +} +inline void DocumentMessage::set_filename(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000020u; + filename_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.DocumentMessage.fileName) +} +inline void DocumentMessage::set_filename(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000020u; + filename_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.DocumentMessage.fileName) +} +inline std::string* DocumentMessage::_internal_mutable_filename() { + _has_bits_[0] |= 0x00000020u; + return filename_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DocumentMessage::release_filename() { + // @@protoc_insertion_point(field_release:proto.DocumentMessage.fileName) + if (!_internal_has_filename()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000020u; + return filename_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DocumentMessage::set_allocated_filename(std::string* filename) { + if (filename != nullptr) { + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + filename_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filename, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.fileName) +} + +// optional bytes fileEncSha256 = 9; +inline bool DocumentMessage::_internal_has_fileencsha256() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool DocumentMessage::has_fileencsha256() const { + return _internal_has_fileencsha256(); +} +inline void DocumentMessage::clear_fileencsha256() { + fileencsha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000040u; +} +inline const std::string& DocumentMessage::fileencsha256() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.fileEncSha256) + return _internal_fileencsha256(); +} +inline void DocumentMessage::set_fileencsha256(const std::string& value) { + _internal_set_fileencsha256(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.fileEncSha256) +} +inline std::string* DocumentMessage::mutable_fileencsha256() { + // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.fileEncSha256) + return _internal_mutable_fileencsha256(); +} +inline const std::string& DocumentMessage::_internal_fileencsha256() const { + return fileencsha256_.Get(); +} +inline void DocumentMessage::_internal_set_fileencsha256(const std::string& value) { + _has_bits_[0] |= 0x00000040u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DocumentMessage::set_fileencsha256(std::string&& value) { + _has_bits_[0] |= 0x00000040u; + fileencsha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.DocumentMessage.fileEncSha256) +} +inline void DocumentMessage::set_fileencsha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000040u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.DocumentMessage.fileEncSha256) +} +inline void DocumentMessage::set_fileencsha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000040u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.DocumentMessage.fileEncSha256) +} +inline std::string* DocumentMessage::_internal_mutable_fileencsha256() { + _has_bits_[0] |= 0x00000040u; + return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DocumentMessage::release_fileencsha256() { + // @@protoc_insertion_point(field_release:proto.DocumentMessage.fileEncSha256) + if (!_internal_has_fileencsha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000040u; + return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DocumentMessage::set_allocated_fileencsha256(std::string* fileencsha256) { + if (fileencsha256 != nullptr) { + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + fileencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fileencsha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.fileEncSha256) +} + +// optional string directPath = 10; +inline bool DocumentMessage::_internal_has_directpath() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + return value; +} +inline bool DocumentMessage::has_directpath() const { + return _internal_has_directpath(); +} +inline void DocumentMessage::clear_directpath() { + directpath_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000080u; +} +inline const std::string& DocumentMessage::directpath() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.directPath) + return _internal_directpath(); +} +inline void DocumentMessage::set_directpath(const std::string& value) { + _internal_set_directpath(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.directPath) +} +inline std::string* DocumentMessage::mutable_directpath() { + // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.directPath) + return _internal_mutable_directpath(); +} +inline const std::string& DocumentMessage::_internal_directpath() const { + return directpath_.Get(); +} +inline void DocumentMessage::_internal_set_directpath(const std::string& value) { + _has_bits_[0] |= 0x00000080u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DocumentMessage::set_directpath(std::string&& value) { + _has_bits_[0] |= 0x00000080u; + directpath_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.DocumentMessage.directPath) +} +inline void DocumentMessage::set_directpath(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000080u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.DocumentMessage.directPath) +} +inline void DocumentMessage::set_directpath(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000080u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.DocumentMessage.directPath) +} +inline std::string* DocumentMessage::_internal_mutable_directpath() { + _has_bits_[0] |= 0x00000080u; + return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DocumentMessage::release_directpath() { + // @@protoc_insertion_point(field_release:proto.DocumentMessage.directPath) + if (!_internal_has_directpath()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000080u; + return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DocumentMessage::set_allocated_directpath(std::string* directpath) { + if (directpath != nullptr) { + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + directpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), directpath, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.directPath) +} + +// optional int64 mediaKeyTimestamp = 11; +inline bool DocumentMessage::_internal_has_mediakeytimestamp() const { + bool value = (_has_bits_[0] & 0x00010000u) != 0; + return value; +} +inline bool DocumentMessage::has_mediakeytimestamp() const { + return _internal_has_mediakeytimestamp(); +} +inline void DocumentMessage::clear_mediakeytimestamp() { + mediakeytimestamp_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00010000u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 DocumentMessage::_internal_mediakeytimestamp() const { + return mediakeytimestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 DocumentMessage::mediakeytimestamp() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.mediaKeyTimestamp) + return _internal_mediakeytimestamp(); +} +inline void DocumentMessage::_internal_set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00010000u; + mediakeytimestamp_ = value; +} +inline void DocumentMessage::set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_mediakeytimestamp(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.mediaKeyTimestamp) +} + +// optional bool contactVcard = 12; +inline bool DocumentMessage::_internal_has_contactvcard() const { + bool value = (_has_bits_[0] & 0x00008000u) != 0; + return value; +} +inline bool DocumentMessage::has_contactvcard() const { + return _internal_has_contactvcard(); +} +inline void DocumentMessage::clear_contactvcard() { + contactvcard_ = false; + _has_bits_[0] &= ~0x00008000u; +} +inline bool DocumentMessage::_internal_contactvcard() const { + return contactvcard_; +} +inline bool DocumentMessage::contactvcard() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.contactVcard) + return _internal_contactvcard(); +} +inline void DocumentMessage::_internal_set_contactvcard(bool value) { + _has_bits_[0] |= 0x00008000u; + contactvcard_ = value; +} +inline void DocumentMessage::set_contactvcard(bool value) { + _internal_set_contactvcard(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.contactVcard) +} + +// optional string thumbnailDirectPath = 13; +inline bool DocumentMessage::_internal_has_thumbnaildirectpath() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + return value; +} +inline bool DocumentMessage::has_thumbnaildirectpath() const { + return _internal_has_thumbnaildirectpath(); +} +inline void DocumentMessage::clear_thumbnaildirectpath() { + thumbnaildirectpath_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000100u; +} +inline const std::string& DocumentMessage::thumbnaildirectpath() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.thumbnailDirectPath) + return _internal_thumbnaildirectpath(); +} +inline void DocumentMessage::set_thumbnaildirectpath(const std::string& value) { + _internal_set_thumbnaildirectpath(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.thumbnailDirectPath) +} +inline std::string* DocumentMessage::mutable_thumbnaildirectpath() { + // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.thumbnailDirectPath) + return _internal_mutable_thumbnaildirectpath(); +} +inline const std::string& DocumentMessage::_internal_thumbnaildirectpath() const { + return thumbnaildirectpath_.Get(); +} +inline void DocumentMessage::_internal_set_thumbnaildirectpath(const std::string& value) { + _has_bits_[0] |= 0x00000100u; + thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DocumentMessage::set_thumbnaildirectpath(std::string&& value) { + _has_bits_[0] |= 0x00000100u; + thumbnaildirectpath_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.DocumentMessage.thumbnailDirectPath) +} +inline void DocumentMessage::set_thumbnaildirectpath(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000100u; + thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.DocumentMessage.thumbnailDirectPath) +} +inline void DocumentMessage::set_thumbnaildirectpath(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000100u; + thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.DocumentMessage.thumbnailDirectPath) +} +inline std::string* DocumentMessage::_internal_mutable_thumbnaildirectpath() { + _has_bits_[0] |= 0x00000100u; + return thumbnaildirectpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DocumentMessage::release_thumbnaildirectpath() { + // @@protoc_insertion_point(field_release:proto.DocumentMessage.thumbnailDirectPath) + if (!_internal_has_thumbnaildirectpath()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000100u; + return thumbnaildirectpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DocumentMessage::set_allocated_thumbnaildirectpath(std::string* thumbnaildirectpath) { + if (thumbnaildirectpath != nullptr) { + _has_bits_[0] |= 0x00000100u; + } else { + _has_bits_[0] &= ~0x00000100u; + } + thumbnaildirectpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnaildirectpath, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.thumbnailDirectPath) +} + +// optional bytes thumbnailSha256 = 14; +inline bool DocumentMessage::_internal_has_thumbnailsha256() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + return value; +} +inline bool DocumentMessage::has_thumbnailsha256() const { + return _internal_has_thumbnailsha256(); +} +inline void DocumentMessage::clear_thumbnailsha256() { + thumbnailsha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000200u; +} +inline const std::string& DocumentMessage::thumbnailsha256() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.thumbnailSha256) + return _internal_thumbnailsha256(); +} +inline void DocumentMessage::set_thumbnailsha256(const std::string& value) { + _internal_set_thumbnailsha256(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.thumbnailSha256) +} +inline std::string* DocumentMessage::mutable_thumbnailsha256() { + // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.thumbnailSha256) + return _internal_mutable_thumbnailsha256(); +} +inline const std::string& DocumentMessage::_internal_thumbnailsha256() const { + return thumbnailsha256_.Get(); +} +inline void DocumentMessage::_internal_set_thumbnailsha256(const std::string& value) { + _has_bits_[0] |= 0x00000200u; + thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DocumentMessage::set_thumbnailsha256(std::string&& value) { + _has_bits_[0] |= 0x00000200u; + thumbnailsha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.DocumentMessage.thumbnailSha256) +} +inline void DocumentMessage::set_thumbnailsha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000200u; + thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.DocumentMessage.thumbnailSha256) +} +inline void DocumentMessage::set_thumbnailsha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000200u; + thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.DocumentMessage.thumbnailSha256) +} +inline std::string* DocumentMessage::_internal_mutable_thumbnailsha256() { + _has_bits_[0] |= 0x00000200u; + return thumbnailsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DocumentMessage::release_thumbnailsha256() { + // @@protoc_insertion_point(field_release:proto.DocumentMessage.thumbnailSha256) + if (!_internal_has_thumbnailsha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000200u; + return thumbnailsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DocumentMessage::set_allocated_thumbnailsha256(std::string* thumbnailsha256) { + if (thumbnailsha256 != nullptr) { + _has_bits_[0] |= 0x00000200u; + } else { + _has_bits_[0] &= ~0x00000200u; + } + thumbnailsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnailsha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.thumbnailSha256) +} + +// optional bytes thumbnailEncSha256 = 15; +inline bool DocumentMessage::_internal_has_thumbnailencsha256() const { + bool value = (_has_bits_[0] & 0x00000400u) != 0; + return value; +} +inline bool DocumentMessage::has_thumbnailencsha256() const { + return _internal_has_thumbnailencsha256(); +} +inline void DocumentMessage::clear_thumbnailencsha256() { + thumbnailencsha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000400u; +} +inline const std::string& DocumentMessage::thumbnailencsha256() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.thumbnailEncSha256) + return _internal_thumbnailencsha256(); +} +inline void DocumentMessage::set_thumbnailencsha256(const std::string& value) { + _internal_set_thumbnailencsha256(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.thumbnailEncSha256) +} +inline std::string* DocumentMessage::mutable_thumbnailencsha256() { + // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.thumbnailEncSha256) + return _internal_mutable_thumbnailencsha256(); +} +inline const std::string& DocumentMessage::_internal_thumbnailencsha256() const { + return thumbnailencsha256_.Get(); +} +inline void DocumentMessage::_internal_set_thumbnailencsha256(const std::string& value) { + _has_bits_[0] |= 0x00000400u; + thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DocumentMessage::set_thumbnailencsha256(std::string&& value) { + _has_bits_[0] |= 0x00000400u; + thumbnailencsha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.DocumentMessage.thumbnailEncSha256) +} +inline void DocumentMessage::set_thumbnailencsha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000400u; + thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.DocumentMessage.thumbnailEncSha256) +} +inline void DocumentMessage::set_thumbnailencsha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000400u; + thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.DocumentMessage.thumbnailEncSha256) +} +inline std::string* DocumentMessage::_internal_mutable_thumbnailencsha256() { + _has_bits_[0] |= 0x00000400u; + return thumbnailencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DocumentMessage::release_thumbnailencsha256() { + // @@protoc_insertion_point(field_release:proto.DocumentMessage.thumbnailEncSha256) + if (!_internal_has_thumbnailencsha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000400u; + return thumbnailencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DocumentMessage::set_allocated_thumbnailencsha256(std::string* thumbnailencsha256) { + if (thumbnailencsha256 != nullptr) { + _has_bits_[0] |= 0x00000400u; + } else { + _has_bits_[0] &= ~0x00000400u; + } + thumbnailencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnailencsha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.thumbnailEncSha256) +} + +// optional bytes jpegThumbnail = 16; +inline bool DocumentMessage::_internal_has_jpegthumbnail() const { + bool value = (_has_bits_[0] & 0x00000800u) != 0; + return value; +} +inline bool DocumentMessage::has_jpegthumbnail() const { + return _internal_has_jpegthumbnail(); +} +inline void DocumentMessage::clear_jpegthumbnail() { + jpegthumbnail_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000800u; +} +inline const std::string& DocumentMessage::jpegthumbnail() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.jpegThumbnail) + return _internal_jpegthumbnail(); +} +inline void DocumentMessage::set_jpegthumbnail(const std::string& value) { + _internal_set_jpegthumbnail(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.jpegThumbnail) +} +inline std::string* DocumentMessage::mutable_jpegthumbnail() { + // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.jpegThumbnail) + return _internal_mutable_jpegthumbnail(); +} +inline const std::string& DocumentMessage::_internal_jpegthumbnail() const { + return jpegthumbnail_.Get(); +} +inline void DocumentMessage::_internal_set_jpegthumbnail(const std::string& value) { + _has_bits_[0] |= 0x00000800u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DocumentMessage::set_jpegthumbnail(std::string&& value) { + _has_bits_[0] |= 0x00000800u; + jpegthumbnail_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.DocumentMessage.jpegThumbnail) +} +inline void DocumentMessage::set_jpegthumbnail(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000800u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.DocumentMessage.jpegThumbnail) +} +inline void DocumentMessage::set_jpegthumbnail(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000800u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.DocumentMessage.jpegThumbnail) +} +inline std::string* DocumentMessage::_internal_mutable_jpegthumbnail() { + _has_bits_[0] |= 0x00000800u; + return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DocumentMessage::release_jpegthumbnail() { + // @@protoc_insertion_point(field_release:proto.DocumentMessage.jpegThumbnail) + if (!_internal_has_jpegthumbnail()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000800u; + return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DocumentMessage::set_allocated_jpegthumbnail(std::string* jpegthumbnail) { + if (jpegthumbnail != nullptr) { + _has_bits_[0] |= 0x00000800u; + } else { + _has_bits_[0] &= ~0x00000800u; + } + jpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), jpegthumbnail, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.jpegThumbnail) +} + +// optional .proto.ContextInfo contextInfo = 17; +inline bool DocumentMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00001000u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool DocumentMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void DocumentMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00001000u; +} +inline const ::proto::ContextInfo& DocumentMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& DocumentMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.contextInfo) + return _internal_contextinfo(); +} +inline void DocumentMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00001000u; + } else { + _has_bits_[0] &= ~0x00001000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.DocumentMessage.contextInfo) +} +inline ::proto::ContextInfo* DocumentMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00001000u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* DocumentMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.DocumentMessage.contextInfo) + _has_bits_[0] &= ~0x00001000u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* DocumentMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00001000u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* DocumentMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void DocumentMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00001000u; + } else { + _has_bits_[0] &= ~0x00001000u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.contextInfo) +} + +// optional uint32 thumbnailHeight = 18; +inline bool DocumentMessage::_internal_has_thumbnailheight() const { + bool value = (_has_bits_[0] & 0x00020000u) != 0; + return value; +} +inline bool DocumentMessage::has_thumbnailheight() const { + return _internal_has_thumbnailheight(); +} +inline void DocumentMessage::clear_thumbnailheight() { + thumbnailheight_ = 0u; + _has_bits_[0] &= ~0x00020000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 DocumentMessage::_internal_thumbnailheight() const { + return thumbnailheight_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 DocumentMessage::thumbnailheight() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.thumbnailHeight) + return _internal_thumbnailheight(); +} +inline void DocumentMessage::_internal_set_thumbnailheight(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00020000u; + thumbnailheight_ = value; +} +inline void DocumentMessage::set_thumbnailheight(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_thumbnailheight(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.thumbnailHeight) +} + +// optional uint32 thumbnailWidth = 19; +inline bool DocumentMessage::_internal_has_thumbnailwidth() const { + bool value = (_has_bits_[0] & 0x00040000u) != 0; + return value; +} +inline bool DocumentMessage::has_thumbnailwidth() const { + return _internal_has_thumbnailwidth(); +} +inline void DocumentMessage::clear_thumbnailwidth() { + thumbnailwidth_ = 0u; + _has_bits_[0] &= ~0x00040000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 DocumentMessage::_internal_thumbnailwidth() const { + return thumbnailwidth_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 DocumentMessage::thumbnailwidth() const { + // @@protoc_insertion_point(field_get:proto.DocumentMessage.thumbnailWidth) + return _internal_thumbnailwidth(); +} +inline void DocumentMessage::_internal_set_thumbnailwidth(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00040000u; + thumbnailwidth_ = value; +} +inline void DocumentMessage::set_thumbnailwidth(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_thumbnailwidth(value); + // @@protoc_insertion_point(field_set:proto.DocumentMessage.thumbnailWidth) +} + +// ------------------------------------------------------------------- + +// AudioMessage + +// optional string url = 1; +inline bool AudioMessage::_internal_has_url() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool AudioMessage::has_url() const { + return _internal_has_url(); +} +inline void AudioMessage::clear_url() { + url_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& AudioMessage::url() const { + // @@protoc_insertion_point(field_get:proto.AudioMessage.url) + return _internal_url(); +} +inline void AudioMessage::set_url(const std::string& value) { + _internal_set_url(value); + // @@protoc_insertion_point(field_set:proto.AudioMessage.url) +} +inline std::string* AudioMessage::mutable_url() { + // @@protoc_insertion_point(field_mutable:proto.AudioMessage.url) + return _internal_mutable_url(); +} +inline const std::string& AudioMessage::_internal_url() const { + return url_.Get(); +} +inline void AudioMessage::_internal_set_url(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AudioMessage::set_url(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + url_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.AudioMessage.url) +} +inline void AudioMessage::set_url(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.AudioMessage.url) +} +inline void AudioMessage::set_url(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.AudioMessage.url) +} +inline std::string* AudioMessage::_internal_mutable_url() { + _has_bits_[0] |= 0x00000001u; + return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AudioMessage::release_url() { + // @@protoc_insertion_point(field_release:proto.AudioMessage.url) + if (!_internal_has_url()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AudioMessage::set_allocated_url(std::string* url) { + if (url != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), url, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.AudioMessage.url) +} + +// optional string mimetype = 2; +inline bool AudioMessage::_internal_has_mimetype() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool AudioMessage::has_mimetype() const { + return _internal_has_mimetype(); +} +inline void AudioMessage::clear_mimetype() { + mimetype_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& AudioMessage::mimetype() const { + // @@protoc_insertion_point(field_get:proto.AudioMessage.mimetype) + return _internal_mimetype(); +} +inline void AudioMessage::set_mimetype(const std::string& value) { + _internal_set_mimetype(value); + // @@protoc_insertion_point(field_set:proto.AudioMessage.mimetype) +} +inline std::string* AudioMessage::mutable_mimetype() { + // @@protoc_insertion_point(field_mutable:proto.AudioMessage.mimetype) + return _internal_mutable_mimetype(); +} +inline const std::string& AudioMessage::_internal_mimetype() const { + return mimetype_.Get(); +} +inline void AudioMessage::_internal_set_mimetype(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AudioMessage::set_mimetype(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + mimetype_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.AudioMessage.mimetype) +} +inline void AudioMessage::set_mimetype(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.AudioMessage.mimetype) +} +inline void AudioMessage::set_mimetype(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.AudioMessage.mimetype) +} +inline std::string* AudioMessage::_internal_mutable_mimetype() { + _has_bits_[0] |= 0x00000002u; + return mimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AudioMessage::release_mimetype() { + // @@protoc_insertion_point(field_release:proto.AudioMessage.mimetype) + if (!_internal_has_mimetype()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return mimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AudioMessage::set_allocated_mimetype(std::string* mimetype) { + if (mimetype != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + mimetype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mimetype, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.AudioMessage.mimetype) +} + +// optional bytes fileSha256 = 3; +inline bool AudioMessage::_internal_has_filesha256() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool AudioMessage::has_filesha256() const { + return _internal_has_filesha256(); +} +inline void AudioMessage::clear_filesha256() { + filesha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& AudioMessage::filesha256() const { + // @@protoc_insertion_point(field_get:proto.AudioMessage.fileSha256) + return _internal_filesha256(); +} +inline void AudioMessage::set_filesha256(const std::string& value) { + _internal_set_filesha256(value); + // @@protoc_insertion_point(field_set:proto.AudioMessage.fileSha256) +} +inline std::string* AudioMessage::mutable_filesha256() { + // @@protoc_insertion_point(field_mutable:proto.AudioMessage.fileSha256) + return _internal_mutable_filesha256(); +} +inline const std::string& AudioMessage::_internal_filesha256() const { + return filesha256_.Get(); +} +inline void AudioMessage::_internal_set_filesha256(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AudioMessage::set_filesha256(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + filesha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.AudioMessage.fileSha256) +} +inline void AudioMessage::set_filesha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.AudioMessage.fileSha256) +} +inline void AudioMessage::set_filesha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.AudioMessage.fileSha256) +} +inline std::string* AudioMessage::_internal_mutable_filesha256() { + _has_bits_[0] |= 0x00000004u; + return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AudioMessage::release_filesha256() { + // @@protoc_insertion_point(field_release:proto.AudioMessage.fileSha256) + if (!_internal_has_filesha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AudioMessage::set_allocated_filesha256(std::string* filesha256) { + if (filesha256 != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + filesha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filesha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.AudioMessage.fileSha256) +} + +// optional uint64 fileLength = 4; +inline bool AudioMessage::_internal_has_filelength() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + return value; +} +inline bool AudioMessage::has_filelength() const { + return _internal_has_filelength(); +} +inline void AudioMessage::clear_filelength() { + filelength_ = PROTOBUF_ULONGLONG(0); + _has_bits_[0] &= ~0x00000100u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 AudioMessage::_internal_filelength() const { + return filelength_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 AudioMessage::filelength() const { + // @@protoc_insertion_point(field_get:proto.AudioMessage.fileLength) + return _internal_filelength(); +} +inline void AudioMessage::_internal_set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _has_bits_[0] |= 0x00000100u; + filelength_ = value; +} +inline void AudioMessage::set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_filelength(value); + // @@protoc_insertion_point(field_set:proto.AudioMessage.fileLength) +} + +// optional uint32 seconds = 5; +inline bool AudioMessage::_internal_has_seconds() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + return value; +} +inline bool AudioMessage::has_seconds() const { + return _internal_has_seconds(); +} +inline void AudioMessage::clear_seconds() { + seconds_ = 0u; + _has_bits_[0] &= ~0x00000200u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 AudioMessage::_internal_seconds() const { + return seconds_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 AudioMessage::seconds() const { + // @@protoc_insertion_point(field_get:proto.AudioMessage.seconds) + return _internal_seconds(); +} +inline void AudioMessage::_internal_set_seconds(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000200u; + seconds_ = value; +} +inline void AudioMessage::set_seconds(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_seconds(value); + // @@protoc_insertion_point(field_set:proto.AudioMessage.seconds) +} + +// optional bool ptt = 6; +inline bool AudioMessage::_internal_has_ptt() const { + bool value = (_has_bits_[0] & 0x00000400u) != 0; + return value; +} +inline bool AudioMessage::has_ptt() const { + return _internal_has_ptt(); +} +inline void AudioMessage::clear_ptt() { + ptt_ = false; + _has_bits_[0] &= ~0x00000400u; +} +inline bool AudioMessage::_internal_ptt() const { + return ptt_; +} +inline bool AudioMessage::ptt() const { + // @@protoc_insertion_point(field_get:proto.AudioMessage.ptt) + return _internal_ptt(); +} +inline void AudioMessage::_internal_set_ptt(bool value) { + _has_bits_[0] |= 0x00000400u; + ptt_ = value; +} +inline void AudioMessage::set_ptt(bool value) { + _internal_set_ptt(value); + // @@protoc_insertion_point(field_set:proto.AudioMessage.ptt) +} + +// optional bytes mediaKey = 7; +inline bool AudioMessage::_internal_has_mediakey() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool AudioMessage::has_mediakey() const { + return _internal_has_mediakey(); +} +inline void AudioMessage::clear_mediakey() { + mediakey_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& AudioMessage::mediakey() const { + // @@protoc_insertion_point(field_get:proto.AudioMessage.mediaKey) + return _internal_mediakey(); +} +inline void AudioMessage::set_mediakey(const std::string& value) { + _internal_set_mediakey(value); + // @@protoc_insertion_point(field_set:proto.AudioMessage.mediaKey) +} +inline std::string* AudioMessage::mutable_mediakey() { + // @@protoc_insertion_point(field_mutable:proto.AudioMessage.mediaKey) + return _internal_mutable_mediakey(); +} +inline const std::string& AudioMessage::_internal_mediakey() const { + return mediakey_.Get(); +} +inline void AudioMessage::_internal_set_mediakey(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AudioMessage::set_mediakey(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + mediakey_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.AudioMessage.mediaKey) +} +inline void AudioMessage::set_mediakey(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.AudioMessage.mediaKey) +} +inline void AudioMessage::set_mediakey(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.AudioMessage.mediaKey) +} +inline std::string* AudioMessage::_internal_mutable_mediakey() { + _has_bits_[0] |= 0x00000008u; + return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AudioMessage::release_mediakey() { + // @@protoc_insertion_point(field_release:proto.AudioMessage.mediaKey) + if (!_internal_has_mediakey()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AudioMessage::set_allocated_mediakey(std::string* mediakey) { + if (mediakey != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + mediakey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mediakey, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.AudioMessage.mediaKey) +} + +// optional bytes fileEncSha256 = 8; +inline bool AudioMessage::_internal_has_fileencsha256() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool AudioMessage::has_fileencsha256() const { + return _internal_has_fileencsha256(); +} +inline void AudioMessage::clear_fileencsha256() { + fileencsha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000010u; +} +inline const std::string& AudioMessage::fileencsha256() const { + // @@protoc_insertion_point(field_get:proto.AudioMessage.fileEncSha256) + return _internal_fileencsha256(); +} +inline void AudioMessage::set_fileencsha256(const std::string& value) { + _internal_set_fileencsha256(value); + // @@protoc_insertion_point(field_set:proto.AudioMessage.fileEncSha256) +} +inline std::string* AudioMessage::mutable_fileencsha256() { + // @@protoc_insertion_point(field_mutable:proto.AudioMessage.fileEncSha256) + return _internal_mutable_fileencsha256(); +} +inline const std::string& AudioMessage::_internal_fileencsha256() const { + return fileencsha256_.Get(); +} +inline void AudioMessage::_internal_set_fileencsha256(const std::string& value) { + _has_bits_[0] |= 0x00000010u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AudioMessage::set_fileencsha256(std::string&& value) { + _has_bits_[0] |= 0x00000010u; + fileencsha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.AudioMessage.fileEncSha256) +} +inline void AudioMessage::set_fileencsha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000010u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.AudioMessage.fileEncSha256) +} +inline void AudioMessage::set_fileencsha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000010u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.AudioMessage.fileEncSha256) +} +inline std::string* AudioMessage::_internal_mutable_fileencsha256() { + _has_bits_[0] |= 0x00000010u; + return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AudioMessage::release_fileencsha256() { + // @@protoc_insertion_point(field_release:proto.AudioMessage.fileEncSha256) + if (!_internal_has_fileencsha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000010u; + return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AudioMessage::set_allocated_fileencsha256(std::string* fileencsha256) { + if (fileencsha256 != nullptr) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + fileencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fileencsha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.AudioMessage.fileEncSha256) +} + +// optional string directPath = 9; +inline bool AudioMessage::_internal_has_directpath() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool AudioMessage::has_directpath() const { + return _internal_has_directpath(); +} +inline void AudioMessage::clear_directpath() { + directpath_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000020u; +} +inline const std::string& AudioMessage::directpath() const { + // @@protoc_insertion_point(field_get:proto.AudioMessage.directPath) + return _internal_directpath(); +} +inline void AudioMessage::set_directpath(const std::string& value) { + _internal_set_directpath(value); + // @@protoc_insertion_point(field_set:proto.AudioMessage.directPath) +} +inline std::string* AudioMessage::mutable_directpath() { + // @@protoc_insertion_point(field_mutable:proto.AudioMessage.directPath) + return _internal_mutable_directpath(); +} +inline const std::string& AudioMessage::_internal_directpath() const { + return directpath_.Get(); +} +inline void AudioMessage::_internal_set_directpath(const std::string& value) { + _has_bits_[0] |= 0x00000020u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AudioMessage::set_directpath(std::string&& value) { + _has_bits_[0] |= 0x00000020u; + directpath_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.AudioMessage.directPath) +} +inline void AudioMessage::set_directpath(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000020u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.AudioMessage.directPath) +} +inline void AudioMessage::set_directpath(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000020u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.AudioMessage.directPath) +} +inline std::string* AudioMessage::_internal_mutable_directpath() { + _has_bits_[0] |= 0x00000020u; + return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AudioMessage::release_directpath() { + // @@protoc_insertion_point(field_release:proto.AudioMessage.directPath) + if (!_internal_has_directpath()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000020u; + return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AudioMessage::set_allocated_directpath(std::string* directpath) { + if (directpath != nullptr) { + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + directpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), directpath, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.AudioMessage.directPath) +} + +// optional int64 mediaKeyTimestamp = 10; +inline bool AudioMessage::_internal_has_mediakeytimestamp() const { + bool value = (_has_bits_[0] & 0x00000800u) != 0; + return value; +} +inline bool AudioMessage::has_mediakeytimestamp() const { + return _internal_has_mediakeytimestamp(); +} +inline void AudioMessage::clear_mediakeytimestamp() { + mediakeytimestamp_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00000800u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 AudioMessage::_internal_mediakeytimestamp() const { + return mediakeytimestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 AudioMessage::mediakeytimestamp() const { + // @@protoc_insertion_point(field_get:proto.AudioMessage.mediaKeyTimestamp) + return _internal_mediakeytimestamp(); +} +inline void AudioMessage::_internal_set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00000800u; + mediakeytimestamp_ = value; +} +inline void AudioMessage::set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_mediakeytimestamp(value); + // @@protoc_insertion_point(field_set:proto.AudioMessage.mediaKeyTimestamp) +} + +// optional .proto.ContextInfo contextInfo = 17; +inline bool AudioMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool AudioMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void AudioMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00000080u; +} +inline const ::proto::ContextInfo& AudioMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& AudioMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.AudioMessage.contextInfo) + return _internal_contextinfo(); +} +inline void AudioMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.AudioMessage.contextInfo) +} +inline ::proto::ContextInfo* AudioMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00000080u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* AudioMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.AudioMessage.contextInfo) + _has_bits_[0] &= ~0x00000080u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* AudioMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00000080u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* AudioMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.AudioMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void AudioMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.AudioMessage.contextInfo) +} + +// optional bytes streamingSidecar = 18; +inline bool AudioMessage::_internal_has_streamingsidecar() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool AudioMessage::has_streamingsidecar() const { + return _internal_has_streamingsidecar(); +} +inline void AudioMessage::clear_streamingsidecar() { + streamingsidecar_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000040u; +} +inline const std::string& AudioMessage::streamingsidecar() const { + // @@protoc_insertion_point(field_get:proto.AudioMessage.streamingSidecar) + return _internal_streamingsidecar(); +} +inline void AudioMessage::set_streamingsidecar(const std::string& value) { + _internal_set_streamingsidecar(value); + // @@protoc_insertion_point(field_set:proto.AudioMessage.streamingSidecar) +} +inline std::string* AudioMessage::mutable_streamingsidecar() { + // @@protoc_insertion_point(field_mutable:proto.AudioMessage.streamingSidecar) + return _internal_mutable_streamingsidecar(); +} +inline const std::string& AudioMessage::_internal_streamingsidecar() const { + return streamingsidecar_.Get(); +} +inline void AudioMessage::_internal_set_streamingsidecar(const std::string& value) { + _has_bits_[0] |= 0x00000040u; + streamingsidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AudioMessage::set_streamingsidecar(std::string&& value) { + _has_bits_[0] |= 0x00000040u; + streamingsidecar_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.AudioMessage.streamingSidecar) +} +inline void AudioMessage::set_streamingsidecar(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000040u; + streamingsidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.AudioMessage.streamingSidecar) +} +inline void AudioMessage::set_streamingsidecar(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000040u; + streamingsidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.AudioMessage.streamingSidecar) +} +inline std::string* AudioMessage::_internal_mutable_streamingsidecar() { + _has_bits_[0] |= 0x00000040u; + return streamingsidecar_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AudioMessage::release_streamingsidecar() { + // @@protoc_insertion_point(field_release:proto.AudioMessage.streamingSidecar) + if (!_internal_has_streamingsidecar()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000040u; + return streamingsidecar_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AudioMessage::set_allocated_streamingsidecar(std::string* streamingsidecar) { + if (streamingsidecar != nullptr) { + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + streamingsidecar_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), streamingsidecar, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.AudioMessage.streamingSidecar) +} + +// ------------------------------------------------------------------- + +// VideoMessage + +// optional string url = 1; +inline bool VideoMessage::_internal_has_url() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool VideoMessage::has_url() const { + return _internal_has_url(); +} +inline void VideoMessage::clear_url() { + url_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& VideoMessage::url() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.url) + return _internal_url(); +} +inline void VideoMessage::set_url(const std::string& value) { + _internal_set_url(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.url) +} +inline std::string* VideoMessage::mutable_url() { + // @@protoc_insertion_point(field_mutable:proto.VideoMessage.url) + return _internal_mutable_url(); +} +inline const std::string& VideoMessage::_internal_url() const { + return url_.Get(); +} +inline void VideoMessage::_internal_set_url(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void VideoMessage::set_url(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + url_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.VideoMessage.url) +} +inline void VideoMessage::set_url(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.VideoMessage.url) +} +inline void VideoMessage::set_url(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.VideoMessage.url) +} +inline std::string* VideoMessage::_internal_mutable_url() { + _has_bits_[0] |= 0x00000001u; + return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* VideoMessage::release_url() { + // @@protoc_insertion_point(field_release:proto.VideoMessage.url) + if (!_internal_has_url()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void VideoMessage::set_allocated_url(std::string* url) { + if (url != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), url, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.url) +} + +// optional string mimetype = 2; +inline bool VideoMessage::_internal_has_mimetype() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool VideoMessage::has_mimetype() const { + return _internal_has_mimetype(); +} +inline void VideoMessage::clear_mimetype() { + mimetype_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& VideoMessage::mimetype() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.mimetype) + return _internal_mimetype(); +} +inline void VideoMessage::set_mimetype(const std::string& value) { + _internal_set_mimetype(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.mimetype) +} +inline std::string* VideoMessage::mutable_mimetype() { + // @@protoc_insertion_point(field_mutable:proto.VideoMessage.mimetype) + return _internal_mutable_mimetype(); +} +inline const std::string& VideoMessage::_internal_mimetype() const { + return mimetype_.Get(); +} +inline void VideoMessage::_internal_set_mimetype(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void VideoMessage::set_mimetype(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + mimetype_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.VideoMessage.mimetype) +} +inline void VideoMessage::set_mimetype(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.VideoMessage.mimetype) +} +inline void VideoMessage::set_mimetype(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.VideoMessage.mimetype) +} +inline std::string* VideoMessage::_internal_mutable_mimetype() { + _has_bits_[0] |= 0x00000002u; + return mimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* VideoMessage::release_mimetype() { + // @@protoc_insertion_point(field_release:proto.VideoMessage.mimetype) + if (!_internal_has_mimetype()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return mimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void VideoMessage::set_allocated_mimetype(std::string* mimetype) { + if (mimetype != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + mimetype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mimetype, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.mimetype) +} + +// optional bytes fileSha256 = 3; +inline bool VideoMessage::_internal_has_filesha256() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool VideoMessage::has_filesha256() const { + return _internal_has_filesha256(); +} +inline void VideoMessage::clear_filesha256() { + filesha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& VideoMessage::filesha256() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.fileSha256) + return _internal_filesha256(); +} +inline void VideoMessage::set_filesha256(const std::string& value) { + _internal_set_filesha256(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.fileSha256) +} +inline std::string* VideoMessage::mutable_filesha256() { + // @@protoc_insertion_point(field_mutable:proto.VideoMessage.fileSha256) + return _internal_mutable_filesha256(); +} +inline const std::string& VideoMessage::_internal_filesha256() const { + return filesha256_.Get(); +} +inline void VideoMessage::_internal_set_filesha256(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void VideoMessage::set_filesha256(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + filesha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.VideoMessage.fileSha256) +} +inline void VideoMessage::set_filesha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.VideoMessage.fileSha256) +} +inline void VideoMessage::set_filesha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.VideoMessage.fileSha256) +} +inline std::string* VideoMessage::_internal_mutable_filesha256() { + _has_bits_[0] |= 0x00000004u; + return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* VideoMessage::release_filesha256() { + // @@protoc_insertion_point(field_release:proto.VideoMessage.fileSha256) + if (!_internal_has_filesha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void VideoMessage::set_allocated_filesha256(std::string* filesha256) { + if (filesha256 != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + filesha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filesha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.fileSha256) +} + +// optional uint64 fileLength = 4; +inline bool VideoMessage::_internal_has_filelength() const { + bool value = (_has_bits_[0] & 0x00002000u) != 0; + return value; +} +inline bool VideoMessage::has_filelength() const { + return _internal_has_filelength(); +} +inline void VideoMessage::clear_filelength() { + filelength_ = PROTOBUF_ULONGLONG(0); + _has_bits_[0] &= ~0x00002000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 VideoMessage::_internal_filelength() const { + return filelength_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 VideoMessage::filelength() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.fileLength) + return _internal_filelength(); +} +inline void VideoMessage::_internal_set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _has_bits_[0] |= 0x00002000u; + filelength_ = value; +} +inline void VideoMessage::set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_filelength(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.fileLength) +} + +// optional uint32 seconds = 5; +inline bool VideoMessage::_internal_has_seconds() const { + bool value = (_has_bits_[0] & 0x00004000u) != 0; + return value; +} +inline bool VideoMessage::has_seconds() const { + return _internal_has_seconds(); +} +inline void VideoMessage::clear_seconds() { + seconds_ = 0u; + _has_bits_[0] &= ~0x00004000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 VideoMessage::_internal_seconds() const { + return seconds_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 VideoMessage::seconds() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.seconds) + return _internal_seconds(); +} +inline void VideoMessage::_internal_set_seconds(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00004000u; + seconds_ = value; +} +inline void VideoMessage::set_seconds(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_seconds(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.seconds) +} + +// optional bytes mediaKey = 6; +inline bool VideoMessage::_internal_has_mediakey() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool VideoMessage::has_mediakey() const { + return _internal_has_mediakey(); +} +inline void VideoMessage::clear_mediakey() { + mediakey_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& VideoMessage::mediakey() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.mediaKey) + return _internal_mediakey(); +} +inline void VideoMessage::set_mediakey(const std::string& value) { + _internal_set_mediakey(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.mediaKey) +} +inline std::string* VideoMessage::mutable_mediakey() { + // @@protoc_insertion_point(field_mutable:proto.VideoMessage.mediaKey) + return _internal_mutable_mediakey(); +} +inline const std::string& VideoMessage::_internal_mediakey() const { + return mediakey_.Get(); +} +inline void VideoMessage::_internal_set_mediakey(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void VideoMessage::set_mediakey(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + mediakey_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.VideoMessage.mediaKey) +} +inline void VideoMessage::set_mediakey(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.VideoMessage.mediaKey) +} +inline void VideoMessage::set_mediakey(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.VideoMessage.mediaKey) +} +inline std::string* VideoMessage::_internal_mutable_mediakey() { + _has_bits_[0] |= 0x00000008u; + return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* VideoMessage::release_mediakey() { + // @@protoc_insertion_point(field_release:proto.VideoMessage.mediaKey) + if (!_internal_has_mediakey()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void VideoMessage::set_allocated_mediakey(std::string* mediakey) { + if (mediakey != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + mediakey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mediakey, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.mediaKey) +} + +// optional string caption = 7; +inline bool VideoMessage::_internal_has_caption() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool VideoMessage::has_caption() const { + return _internal_has_caption(); +} +inline void VideoMessage::clear_caption() { + caption_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000010u; +} +inline const std::string& VideoMessage::caption() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.caption) + return _internal_caption(); +} +inline void VideoMessage::set_caption(const std::string& value) { + _internal_set_caption(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.caption) +} +inline std::string* VideoMessage::mutable_caption() { + // @@protoc_insertion_point(field_mutable:proto.VideoMessage.caption) + return _internal_mutable_caption(); +} +inline const std::string& VideoMessage::_internal_caption() const { + return caption_.Get(); +} +inline void VideoMessage::_internal_set_caption(const std::string& value) { + _has_bits_[0] |= 0x00000010u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void VideoMessage::set_caption(std::string&& value) { + _has_bits_[0] |= 0x00000010u; + caption_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.VideoMessage.caption) +} +inline void VideoMessage::set_caption(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000010u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.VideoMessage.caption) +} +inline void VideoMessage::set_caption(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000010u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.VideoMessage.caption) +} +inline std::string* VideoMessage::_internal_mutable_caption() { + _has_bits_[0] |= 0x00000010u; + return caption_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* VideoMessage::release_caption() { + // @@protoc_insertion_point(field_release:proto.VideoMessage.caption) + if (!_internal_has_caption()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000010u; + return caption_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void VideoMessage::set_allocated_caption(std::string* caption) { + if (caption != nullptr) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + caption_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), caption, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.caption) +} + +// optional bool gifPlayback = 8; +inline bool VideoMessage::_internal_has_gifplayback() const { + bool value = (_has_bits_[0] & 0x00020000u) != 0; + return value; +} +inline bool VideoMessage::has_gifplayback() const { + return _internal_has_gifplayback(); +} +inline void VideoMessage::clear_gifplayback() { + gifplayback_ = false; + _has_bits_[0] &= ~0x00020000u; +} +inline bool VideoMessage::_internal_gifplayback() const { + return gifplayback_; +} +inline bool VideoMessage::gifplayback() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.gifPlayback) + return _internal_gifplayback(); +} +inline void VideoMessage::_internal_set_gifplayback(bool value) { + _has_bits_[0] |= 0x00020000u; + gifplayback_ = value; +} +inline void VideoMessage::set_gifplayback(bool value) { + _internal_set_gifplayback(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.gifPlayback) +} + +// optional uint32 height = 9; +inline bool VideoMessage::_internal_has_height() const { + bool value = (_has_bits_[0] & 0x00008000u) != 0; + return value; +} +inline bool VideoMessage::has_height() const { + return _internal_has_height(); +} +inline void VideoMessage::clear_height() { + height_ = 0u; + _has_bits_[0] &= ~0x00008000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 VideoMessage::_internal_height() const { + return height_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 VideoMessage::height() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.height) + return _internal_height(); +} +inline void VideoMessage::_internal_set_height(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00008000u; + height_ = value; +} +inline void VideoMessage::set_height(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_height(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.height) +} + +// optional uint32 width = 10; +inline bool VideoMessage::_internal_has_width() const { + bool value = (_has_bits_[0] & 0x00010000u) != 0; + return value; +} +inline bool VideoMessage::has_width() const { + return _internal_has_width(); +} +inline void VideoMessage::clear_width() { + width_ = 0u; + _has_bits_[0] &= ~0x00010000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 VideoMessage::_internal_width() const { + return width_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 VideoMessage::width() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.width) + return _internal_width(); +} +inline void VideoMessage::_internal_set_width(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00010000u; + width_ = value; +} +inline void VideoMessage::set_width(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_width(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.width) +} + +// optional bytes fileEncSha256 = 11; +inline bool VideoMessage::_internal_has_fileencsha256() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool VideoMessage::has_fileencsha256() const { + return _internal_has_fileencsha256(); +} +inline void VideoMessage::clear_fileencsha256() { + fileencsha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000020u; +} +inline const std::string& VideoMessage::fileencsha256() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.fileEncSha256) + return _internal_fileencsha256(); +} +inline void VideoMessage::set_fileencsha256(const std::string& value) { + _internal_set_fileencsha256(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.fileEncSha256) +} +inline std::string* VideoMessage::mutable_fileencsha256() { + // @@protoc_insertion_point(field_mutable:proto.VideoMessage.fileEncSha256) + return _internal_mutable_fileencsha256(); +} +inline const std::string& VideoMessage::_internal_fileencsha256() const { + return fileencsha256_.Get(); +} +inline void VideoMessage::_internal_set_fileencsha256(const std::string& value) { + _has_bits_[0] |= 0x00000020u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void VideoMessage::set_fileencsha256(std::string&& value) { + _has_bits_[0] |= 0x00000020u; + fileencsha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.VideoMessage.fileEncSha256) +} +inline void VideoMessage::set_fileencsha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000020u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.VideoMessage.fileEncSha256) +} +inline void VideoMessage::set_fileencsha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000020u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.VideoMessage.fileEncSha256) +} +inline std::string* VideoMessage::_internal_mutable_fileencsha256() { + _has_bits_[0] |= 0x00000020u; + return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* VideoMessage::release_fileencsha256() { + // @@protoc_insertion_point(field_release:proto.VideoMessage.fileEncSha256) + if (!_internal_has_fileencsha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000020u; + return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void VideoMessage::set_allocated_fileencsha256(std::string* fileencsha256) { + if (fileencsha256 != nullptr) { + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + fileencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fileencsha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.fileEncSha256) +} + +// repeated .proto.InteractiveAnnotation interactiveAnnotations = 12; +inline int VideoMessage::_internal_interactiveannotations_size() const { + return interactiveannotations_.size(); +} +inline int VideoMessage::interactiveannotations_size() const { + return _internal_interactiveannotations_size(); +} +inline void VideoMessage::clear_interactiveannotations() { + interactiveannotations_.Clear(); +} +inline ::proto::InteractiveAnnotation* VideoMessage::mutable_interactiveannotations(int index) { + // @@protoc_insertion_point(field_mutable:proto.VideoMessage.interactiveAnnotations) + return interactiveannotations_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::InteractiveAnnotation >* +VideoMessage::mutable_interactiveannotations() { + // @@protoc_insertion_point(field_mutable_list:proto.VideoMessage.interactiveAnnotations) + return &interactiveannotations_; +} +inline const ::proto::InteractiveAnnotation& VideoMessage::_internal_interactiveannotations(int index) const { + return interactiveannotations_.Get(index); +} +inline const ::proto::InteractiveAnnotation& VideoMessage::interactiveannotations(int index) const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.interactiveAnnotations) + return _internal_interactiveannotations(index); +} +inline ::proto::InteractiveAnnotation* VideoMessage::_internal_add_interactiveannotations() { + return interactiveannotations_.Add(); +} +inline ::proto::InteractiveAnnotation* VideoMessage::add_interactiveannotations() { + // @@protoc_insertion_point(field_add:proto.VideoMessage.interactiveAnnotations) + return _internal_add_interactiveannotations(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::InteractiveAnnotation >& +VideoMessage::interactiveannotations() const { + // @@protoc_insertion_point(field_list:proto.VideoMessage.interactiveAnnotations) + return interactiveannotations_; +} + +// optional string directPath = 13; +inline bool VideoMessage::_internal_has_directpath() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool VideoMessage::has_directpath() const { + return _internal_has_directpath(); +} +inline void VideoMessage::clear_directpath() { + directpath_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000040u; +} +inline const std::string& VideoMessage::directpath() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.directPath) + return _internal_directpath(); +} +inline void VideoMessage::set_directpath(const std::string& value) { + _internal_set_directpath(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.directPath) +} +inline std::string* VideoMessage::mutable_directpath() { + // @@protoc_insertion_point(field_mutable:proto.VideoMessage.directPath) + return _internal_mutable_directpath(); +} +inline const std::string& VideoMessage::_internal_directpath() const { + return directpath_.Get(); +} +inline void VideoMessage::_internal_set_directpath(const std::string& value) { + _has_bits_[0] |= 0x00000040u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void VideoMessage::set_directpath(std::string&& value) { + _has_bits_[0] |= 0x00000040u; + directpath_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.VideoMessage.directPath) +} +inline void VideoMessage::set_directpath(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000040u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.VideoMessage.directPath) +} +inline void VideoMessage::set_directpath(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000040u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.VideoMessage.directPath) +} +inline std::string* VideoMessage::_internal_mutable_directpath() { + _has_bits_[0] |= 0x00000040u; + return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* VideoMessage::release_directpath() { + // @@protoc_insertion_point(field_release:proto.VideoMessage.directPath) + if (!_internal_has_directpath()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000040u; + return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void VideoMessage::set_allocated_directpath(std::string* directpath) { + if (directpath != nullptr) { + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + directpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), directpath, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.directPath) +} + +// optional int64 mediaKeyTimestamp = 14; +inline bool VideoMessage::_internal_has_mediakeytimestamp() const { + bool value = (_has_bits_[0] & 0x00080000u) != 0; + return value; +} +inline bool VideoMessage::has_mediakeytimestamp() const { + return _internal_has_mediakeytimestamp(); +} +inline void VideoMessage::clear_mediakeytimestamp() { + mediakeytimestamp_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00080000u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 VideoMessage::_internal_mediakeytimestamp() const { + return mediakeytimestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 VideoMessage::mediakeytimestamp() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.mediaKeyTimestamp) + return _internal_mediakeytimestamp(); +} +inline void VideoMessage::_internal_set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00080000u; + mediakeytimestamp_ = value; +} +inline void VideoMessage::set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_mediakeytimestamp(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.mediaKeyTimestamp) +} + +// optional bytes jpegThumbnail = 16; +inline bool VideoMessage::_internal_has_jpegthumbnail() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + return value; +} +inline bool VideoMessage::has_jpegthumbnail() const { + return _internal_has_jpegthumbnail(); +} +inline void VideoMessage::clear_jpegthumbnail() { + jpegthumbnail_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000080u; +} +inline const std::string& VideoMessage::jpegthumbnail() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.jpegThumbnail) + return _internal_jpegthumbnail(); +} +inline void VideoMessage::set_jpegthumbnail(const std::string& value) { + _internal_set_jpegthumbnail(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.jpegThumbnail) +} +inline std::string* VideoMessage::mutable_jpegthumbnail() { + // @@protoc_insertion_point(field_mutable:proto.VideoMessage.jpegThumbnail) + return _internal_mutable_jpegthumbnail(); +} +inline const std::string& VideoMessage::_internal_jpegthumbnail() const { + return jpegthumbnail_.Get(); +} +inline void VideoMessage::_internal_set_jpegthumbnail(const std::string& value) { + _has_bits_[0] |= 0x00000080u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void VideoMessage::set_jpegthumbnail(std::string&& value) { + _has_bits_[0] |= 0x00000080u; + jpegthumbnail_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.VideoMessage.jpegThumbnail) +} +inline void VideoMessage::set_jpegthumbnail(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000080u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.VideoMessage.jpegThumbnail) +} +inline void VideoMessage::set_jpegthumbnail(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000080u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.VideoMessage.jpegThumbnail) +} +inline std::string* VideoMessage::_internal_mutable_jpegthumbnail() { + _has_bits_[0] |= 0x00000080u; + return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* VideoMessage::release_jpegthumbnail() { + // @@protoc_insertion_point(field_release:proto.VideoMessage.jpegThumbnail) + if (!_internal_has_jpegthumbnail()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000080u; + return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void VideoMessage::set_allocated_jpegthumbnail(std::string* jpegthumbnail) { + if (jpegthumbnail != nullptr) { + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + jpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), jpegthumbnail, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.jpegThumbnail) +} + +// optional .proto.ContextInfo contextInfo = 17; +inline bool VideoMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00001000u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool VideoMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void VideoMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00001000u; +} +inline const ::proto::ContextInfo& VideoMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& VideoMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.contextInfo) + return _internal_contextinfo(); +} +inline void VideoMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00001000u; + } else { + _has_bits_[0] &= ~0x00001000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.VideoMessage.contextInfo) +} +inline ::proto::ContextInfo* VideoMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00001000u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* VideoMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.VideoMessage.contextInfo) + _has_bits_[0] &= ~0x00001000u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* VideoMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00001000u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* VideoMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.VideoMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void VideoMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00001000u; + } else { + _has_bits_[0] &= ~0x00001000u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.contextInfo) +} + +// optional bytes streamingSidecar = 18; +inline bool VideoMessage::_internal_has_streamingsidecar() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + return value; +} +inline bool VideoMessage::has_streamingsidecar() const { + return _internal_has_streamingsidecar(); +} +inline void VideoMessage::clear_streamingsidecar() { + streamingsidecar_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000100u; +} +inline const std::string& VideoMessage::streamingsidecar() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.streamingSidecar) + return _internal_streamingsidecar(); +} +inline void VideoMessage::set_streamingsidecar(const std::string& value) { + _internal_set_streamingsidecar(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.streamingSidecar) +} +inline std::string* VideoMessage::mutable_streamingsidecar() { + // @@protoc_insertion_point(field_mutable:proto.VideoMessage.streamingSidecar) + return _internal_mutable_streamingsidecar(); +} +inline const std::string& VideoMessage::_internal_streamingsidecar() const { + return streamingsidecar_.Get(); +} +inline void VideoMessage::_internal_set_streamingsidecar(const std::string& value) { + _has_bits_[0] |= 0x00000100u; + streamingsidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void VideoMessage::set_streamingsidecar(std::string&& value) { + _has_bits_[0] |= 0x00000100u; + streamingsidecar_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.VideoMessage.streamingSidecar) +} +inline void VideoMessage::set_streamingsidecar(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000100u; + streamingsidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.VideoMessage.streamingSidecar) +} +inline void VideoMessage::set_streamingsidecar(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000100u; + streamingsidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.VideoMessage.streamingSidecar) +} +inline std::string* VideoMessage::_internal_mutable_streamingsidecar() { + _has_bits_[0] |= 0x00000100u; + return streamingsidecar_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* VideoMessage::release_streamingsidecar() { + // @@protoc_insertion_point(field_release:proto.VideoMessage.streamingSidecar) + if (!_internal_has_streamingsidecar()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000100u; + return streamingsidecar_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void VideoMessage::set_allocated_streamingsidecar(std::string* streamingsidecar) { + if (streamingsidecar != nullptr) { + _has_bits_[0] |= 0x00000100u; + } else { + _has_bits_[0] &= ~0x00000100u; + } + streamingsidecar_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), streamingsidecar, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.streamingSidecar) +} + +// optional .proto.VideoMessage.VideoMessageAttribution gifAttribution = 19; +inline bool VideoMessage::_internal_has_gifattribution() const { + bool value = (_has_bits_[0] & 0x00100000u) != 0; + return value; +} +inline bool VideoMessage::has_gifattribution() const { + return _internal_has_gifattribution(); +} +inline void VideoMessage::clear_gifattribution() { + gifattribution_ = 0; + _has_bits_[0] &= ~0x00100000u; +} +inline ::proto::VideoMessage_VideoMessageAttribution VideoMessage::_internal_gifattribution() const { + return static_cast< ::proto::VideoMessage_VideoMessageAttribution >(gifattribution_); +} +inline ::proto::VideoMessage_VideoMessageAttribution VideoMessage::gifattribution() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.gifAttribution) + return _internal_gifattribution(); +} +inline void VideoMessage::_internal_set_gifattribution(::proto::VideoMessage_VideoMessageAttribution value) { + assert(::proto::VideoMessage_VideoMessageAttribution_IsValid(value)); + _has_bits_[0] |= 0x00100000u; + gifattribution_ = value; +} +inline void VideoMessage::set_gifattribution(::proto::VideoMessage_VideoMessageAttribution value) { + _internal_set_gifattribution(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.gifAttribution) +} + +// optional bool viewOnce = 20; +inline bool VideoMessage::_internal_has_viewonce() const { + bool value = (_has_bits_[0] & 0x00040000u) != 0; + return value; +} +inline bool VideoMessage::has_viewonce() const { + return _internal_has_viewonce(); +} +inline void VideoMessage::clear_viewonce() { + viewonce_ = false; + _has_bits_[0] &= ~0x00040000u; +} +inline bool VideoMessage::_internal_viewonce() const { + return viewonce_; +} +inline bool VideoMessage::viewonce() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.viewOnce) + return _internal_viewonce(); +} +inline void VideoMessage::_internal_set_viewonce(bool value) { + _has_bits_[0] |= 0x00040000u; + viewonce_ = value; +} +inline void VideoMessage::set_viewonce(bool value) { + _internal_set_viewonce(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.viewOnce) +} + +// optional string thumbnailDirectPath = 21; +inline bool VideoMessage::_internal_has_thumbnaildirectpath() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + return value; +} +inline bool VideoMessage::has_thumbnaildirectpath() const { + return _internal_has_thumbnaildirectpath(); +} +inline void VideoMessage::clear_thumbnaildirectpath() { + thumbnaildirectpath_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000200u; +} +inline const std::string& VideoMessage::thumbnaildirectpath() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.thumbnailDirectPath) + return _internal_thumbnaildirectpath(); +} +inline void VideoMessage::set_thumbnaildirectpath(const std::string& value) { + _internal_set_thumbnaildirectpath(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.thumbnailDirectPath) +} +inline std::string* VideoMessage::mutable_thumbnaildirectpath() { + // @@protoc_insertion_point(field_mutable:proto.VideoMessage.thumbnailDirectPath) + return _internal_mutable_thumbnaildirectpath(); +} +inline const std::string& VideoMessage::_internal_thumbnaildirectpath() const { + return thumbnaildirectpath_.Get(); +} +inline void VideoMessage::_internal_set_thumbnaildirectpath(const std::string& value) { + _has_bits_[0] |= 0x00000200u; + thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void VideoMessage::set_thumbnaildirectpath(std::string&& value) { + _has_bits_[0] |= 0x00000200u; + thumbnaildirectpath_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.VideoMessage.thumbnailDirectPath) +} +inline void VideoMessage::set_thumbnaildirectpath(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000200u; + thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.VideoMessage.thumbnailDirectPath) +} +inline void VideoMessage::set_thumbnaildirectpath(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000200u; + thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.VideoMessage.thumbnailDirectPath) +} +inline std::string* VideoMessage::_internal_mutable_thumbnaildirectpath() { + _has_bits_[0] |= 0x00000200u; + return thumbnaildirectpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* VideoMessage::release_thumbnaildirectpath() { + // @@protoc_insertion_point(field_release:proto.VideoMessage.thumbnailDirectPath) + if (!_internal_has_thumbnaildirectpath()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000200u; + return thumbnaildirectpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void VideoMessage::set_allocated_thumbnaildirectpath(std::string* thumbnaildirectpath) { + if (thumbnaildirectpath != nullptr) { + _has_bits_[0] |= 0x00000200u; + } else { + _has_bits_[0] &= ~0x00000200u; + } + thumbnaildirectpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnaildirectpath, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.thumbnailDirectPath) +} + +// optional bytes thumbnailSha256 = 22; +inline bool VideoMessage::_internal_has_thumbnailsha256() const { + bool value = (_has_bits_[0] & 0x00000400u) != 0; + return value; +} +inline bool VideoMessage::has_thumbnailsha256() const { + return _internal_has_thumbnailsha256(); +} +inline void VideoMessage::clear_thumbnailsha256() { + thumbnailsha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000400u; +} +inline const std::string& VideoMessage::thumbnailsha256() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.thumbnailSha256) + return _internal_thumbnailsha256(); +} +inline void VideoMessage::set_thumbnailsha256(const std::string& value) { + _internal_set_thumbnailsha256(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.thumbnailSha256) +} +inline std::string* VideoMessage::mutable_thumbnailsha256() { + // @@protoc_insertion_point(field_mutable:proto.VideoMessage.thumbnailSha256) + return _internal_mutable_thumbnailsha256(); +} +inline const std::string& VideoMessage::_internal_thumbnailsha256() const { + return thumbnailsha256_.Get(); +} +inline void VideoMessage::_internal_set_thumbnailsha256(const std::string& value) { + _has_bits_[0] |= 0x00000400u; + thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void VideoMessage::set_thumbnailsha256(std::string&& value) { + _has_bits_[0] |= 0x00000400u; + thumbnailsha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.VideoMessage.thumbnailSha256) +} +inline void VideoMessage::set_thumbnailsha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000400u; + thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.VideoMessage.thumbnailSha256) +} +inline void VideoMessage::set_thumbnailsha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000400u; + thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.VideoMessage.thumbnailSha256) +} +inline std::string* VideoMessage::_internal_mutable_thumbnailsha256() { + _has_bits_[0] |= 0x00000400u; + return thumbnailsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* VideoMessage::release_thumbnailsha256() { + // @@protoc_insertion_point(field_release:proto.VideoMessage.thumbnailSha256) + if (!_internal_has_thumbnailsha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000400u; + return thumbnailsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void VideoMessage::set_allocated_thumbnailsha256(std::string* thumbnailsha256) { + if (thumbnailsha256 != nullptr) { + _has_bits_[0] |= 0x00000400u; + } else { + _has_bits_[0] &= ~0x00000400u; + } + thumbnailsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnailsha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.thumbnailSha256) +} + +// optional bytes thumbnailEncSha256 = 23; +inline bool VideoMessage::_internal_has_thumbnailencsha256() const { + bool value = (_has_bits_[0] & 0x00000800u) != 0; + return value; +} +inline bool VideoMessage::has_thumbnailencsha256() const { + return _internal_has_thumbnailencsha256(); +} +inline void VideoMessage::clear_thumbnailencsha256() { + thumbnailencsha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000800u; +} +inline const std::string& VideoMessage::thumbnailencsha256() const { + // @@protoc_insertion_point(field_get:proto.VideoMessage.thumbnailEncSha256) + return _internal_thumbnailencsha256(); +} +inline void VideoMessage::set_thumbnailencsha256(const std::string& value) { + _internal_set_thumbnailencsha256(value); + // @@protoc_insertion_point(field_set:proto.VideoMessage.thumbnailEncSha256) +} +inline std::string* VideoMessage::mutable_thumbnailencsha256() { + // @@protoc_insertion_point(field_mutable:proto.VideoMessage.thumbnailEncSha256) + return _internal_mutable_thumbnailencsha256(); +} +inline const std::string& VideoMessage::_internal_thumbnailencsha256() const { + return thumbnailencsha256_.Get(); +} +inline void VideoMessage::_internal_set_thumbnailencsha256(const std::string& value) { + _has_bits_[0] |= 0x00000800u; + thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void VideoMessage::set_thumbnailencsha256(std::string&& value) { + _has_bits_[0] |= 0x00000800u; + thumbnailencsha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.VideoMessage.thumbnailEncSha256) +} +inline void VideoMessage::set_thumbnailencsha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000800u; + thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.VideoMessage.thumbnailEncSha256) +} +inline void VideoMessage::set_thumbnailencsha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000800u; + thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.VideoMessage.thumbnailEncSha256) +} +inline std::string* VideoMessage::_internal_mutable_thumbnailencsha256() { + _has_bits_[0] |= 0x00000800u; + return thumbnailencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* VideoMessage::release_thumbnailencsha256() { + // @@protoc_insertion_point(field_release:proto.VideoMessage.thumbnailEncSha256) + if (!_internal_has_thumbnailencsha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000800u; + return thumbnailencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void VideoMessage::set_allocated_thumbnailencsha256(std::string* thumbnailencsha256) { + if (thumbnailencsha256 != nullptr) { + _has_bits_[0] |= 0x00000800u; + } else { + _has_bits_[0] &= ~0x00000800u; + } + thumbnailencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnailencsha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.thumbnailEncSha256) +} + +// ------------------------------------------------------------------- + +// Call + +// optional bytes callKey = 1; +inline bool Call::_internal_has_callkey() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool Call::has_callkey() const { + return _internal_has_callkey(); +} +inline void Call::clear_callkey() { + callkey_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& Call::callkey() const { + // @@protoc_insertion_point(field_get:proto.Call.callKey) + return _internal_callkey(); +} +inline void Call::set_callkey(const std::string& value) { + _internal_set_callkey(value); + // @@protoc_insertion_point(field_set:proto.Call.callKey) +} +inline std::string* Call::mutable_callkey() { + // @@protoc_insertion_point(field_mutable:proto.Call.callKey) + return _internal_mutable_callkey(); +} +inline const std::string& Call::_internal_callkey() const { + return callkey_.Get(); +} +inline void Call::_internal_set_callkey(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + callkey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Call::set_callkey(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + callkey_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.Call.callKey) +} +inline void Call::set_callkey(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + callkey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.Call.callKey) +} +inline void Call::set_callkey(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + callkey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.Call.callKey) +} +inline std::string* Call::_internal_mutable_callkey() { + _has_bits_[0] |= 0x00000001u; + return callkey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Call::release_callkey() { + // @@protoc_insertion_point(field_release:proto.Call.callKey) + if (!_internal_has_callkey()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return callkey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Call::set_allocated_callkey(std::string* callkey) { + if (callkey != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + callkey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), callkey, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.Call.callKey) +} + +// ------------------------------------------------------------------- + +// Chat + +// optional string displayName = 1; +inline bool Chat::_internal_has_displayname() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool Chat::has_displayname() const { + return _internal_has_displayname(); +} +inline void Chat::clear_displayname() { + displayname_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& Chat::displayname() const { + // @@protoc_insertion_point(field_get:proto.Chat.displayName) + return _internal_displayname(); +} +inline void Chat::set_displayname(const std::string& value) { + _internal_set_displayname(value); + // @@protoc_insertion_point(field_set:proto.Chat.displayName) +} +inline std::string* Chat::mutable_displayname() { + // @@protoc_insertion_point(field_mutable:proto.Chat.displayName) + return _internal_mutable_displayname(); +} +inline const std::string& Chat::_internal_displayname() const { + return displayname_.Get(); +} +inline void Chat::_internal_set_displayname(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Chat::set_displayname(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + displayname_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.Chat.displayName) +} +inline void Chat::set_displayname(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.Chat.displayName) +} +inline void Chat::set_displayname(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.Chat.displayName) +} +inline std::string* Chat::_internal_mutable_displayname() { + _has_bits_[0] |= 0x00000001u; + return displayname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Chat::release_displayname() { + // @@protoc_insertion_point(field_release:proto.Chat.displayName) + if (!_internal_has_displayname()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return displayname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Chat::set_allocated_displayname(std::string* displayname) { + if (displayname != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + displayname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), displayname, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.Chat.displayName) +} + +// optional string id = 2; +inline bool Chat::_internal_has_id() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool Chat::has_id() const { + return _internal_has_id(); +} +inline void Chat::clear_id() { + id_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& Chat::id() const { + // @@protoc_insertion_point(field_get:proto.Chat.id) + return _internal_id(); +} +inline void Chat::set_id(const std::string& value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:proto.Chat.id) +} +inline std::string* Chat::mutable_id() { + // @@protoc_insertion_point(field_mutable:proto.Chat.id) + return _internal_mutable_id(); +} +inline const std::string& Chat::_internal_id() const { + return id_.Get(); +} +inline void Chat::_internal_set_id(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Chat::set_id(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.Chat.id) +} +inline void Chat::set_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.Chat.id) +} +inline void Chat::set_id(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.Chat.id) +} +inline std::string* Chat::_internal_mutable_id() { + _has_bits_[0] |= 0x00000002u; + return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Chat::release_id() { + // @@protoc_insertion_point(field_release:proto.Chat.id) + if (!_internal_has_id()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Chat::set_allocated_id(std::string* id) { + if (id != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.Chat.id) +} + +// ------------------------------------------------------------------- + +// ProtocolMessage + +// optional .proto.MessageKey key = 1; +inline bool ProtocolMessage::_internal_has_key() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || key_ != nullptr); + return value; +} +inline bool ProtocolMessage::has_key() const { + return _internal_has_key(); +} +inline void ProtocolMessage::clear_key() { + if (key_ != nullptr) key_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::proto::MessageKey& ProtocolMessage::_internal_key() const { + const ::proto::MessageKey* p = key_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::MessageKey&>( + ::proto::_MessageKey_default_instance_); +} +inline const ::proto::MessageKey& ProtocolMessage::key() const { + // @@protoc_insertion_point(field_get:proto.ProtocolMessage.key) + return _internal_key(); +} +inline void ProtocolMessage::unsafe_arena_set_allocated_key( + ::proto::MessageKey* key) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(key_); + } + key_ = key; + if (key) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ProtocolMessage.key) +} +inline ::proto::MessageKey* ProtocolMessage::release_key() { + _has_bits_[0] &= ~0x00000001u; + ::proto::MessageKey* temp = key_; + key_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::MessageKey* ProtocolMessage::unsafe_arena_release_key() { + // @@protoc_insertion_point(field_release:proto.ProtocolMessage.key) + _has_bits_[0] &= ~0x00000001u; + ::proto::MessageKey* temp = key_; + key_ = nullptr; + return temp; +} +inline ::proto::MessageKey* ProtocolMessage::_internal_mutable_key() { + _has_bits_[0] |= 0x00000001u; + if (key_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArena()); + key_ = p; + } + return key_; +} +inline ::proto::MessageKey* ProtocolMessage::mutable_key() { + // @@protoc_insertion_point(field_mutable:proto.ProtocolMessage.key) + return _internal_mutable_key(); +} +inline void ProtocolMessage::set_allocated_key(::proto::MessageKey* key) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete key_; + } + if (key) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(key); + if (message_arena != submessage_arena) { + key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, key, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + key_ = key; + // @@protoc_insertion_point(field_set_allocated:proto.ProtocolMessage.key) +} + +// optional .proto.ProtocolMessage.ProtocolMessageType type = 2; +inline bool ProtocolMessage::_internal_has_type() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool ProtocolMessage::has_type() const { + return _internal_has_type(); +} +inline void ProtocolMessage::clear_type() { + type_ = 0; + _has_bits_[0] &= ~0x00000040u; +} +inline ::proto::ProtocolMessage_ProtocolMessageType ProtocolMessage::_internal_type() const { + return static_cast< ::proto::ProtocolMessage_ProtocolMessageType >(type_); +} +inline ::proto::ProtocolMessage_ProtocolMessageType ProtocolMessage::type() const { + // @@protoc_insertion_point(field_get:proto.ProtocolMessage.type) + return _internal_type(); +} +inline void ProtocolMessage::_internal_set_type(::proto::ProtocolMessage_ProtocolMessageType value) { + assert(::proto::ProtocolMessage_ProtocolMessageType_IsValid(value)); + _has_bits_[0] |= 0x00000040u; + type_ = value; +} +inline void ProtocolMessage::set_type(::proto::ProtocolMessage_ProtocolMessageType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:proto.ProtocolMessage.type) +} + +// optional uint32 ephemeralExpiration = 4; +inline bool ProtocolMessage::_internal_has_ephemeralexpiration() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + return value; +} +inline bool ProtocolMessage::has_ephemeralexpiration() const { + return _internal_has_ephemeralexpiration(); +} +inline void ProtocolMessage::clear_ephemeralexpiration() { + ephemeralexpiration_ = 0u; + _has_bits_[0] &= ~0x00000080u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ProtocolMessage::_internal_ephemeralexpiration() const { + return ephemeralexpiration_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ProtocolMessage::ephemeralexpiration() const { + // @@protoc_insertion_point(field_get:proto.ProtocolMessage.ephemeralExpiration) + return _internal_ephemeralexpiration(); +} +inline void ProtocolMessage::_internal_set_ephemeralexpiration(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000080u; + ephemeralexpiration_ = value; +} +inline void ProtocolMessage::set_ephemeralexpiration(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_ephemeralexpiration(value); + // @@protoc_insertion_point(field_set:proto.ProtocolMessage.ephemeralExpiration) +} + +// optional int64 ephemeralSettingTimestamp = 5; +inline bool ProtocolMessage::_internal_has_ephemeralsettingtimestamp() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + return value; +} +inline bool ProtocolMessage::has_ephemeralsettingtimestamp() const { + return _internal_has_ephemeralsettingtimestamp(); +} +inline void ProtocolMessage::clear_ephemeralsettingtimestamp() { + ephemeralsettingtimestamp_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00000100u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ProtocolMessage::_internal_ephemeralsettingtimestamp() const { + return ephemeralsettingtimestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ProtocolMessage::ephemeralsettingtimestamp() const { + // @@protoc_insertion_point(field_get:proto.ProtocolMessage.ephemeralSettingTimestamp) + return _internal_ephemeralsettingtimestamp(); +} +inline void ProtocolMessage::_internal_set_ephemeralsettingtimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00000100u; + ephemeralsettingtimestamp_ = value; +} +inline void ProtocolMessage::set_ephemeralsettingtimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_ephemeralsettingtimestamp(value); + // @@protoc_insertion_point(field_set:proto.ProtocolMessage.ephemeralSettingTimestamp) +} + +// optional .proto.HistorySyncNotification historySyncNotification = 6; +inline bool ProtocolMessage::_internal_has_historysyncnotification() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || historysyncnotification_ != nullptr); + return value; +} +inline bool ProtocolMessage::has_historysyncnotification() const { + return _internal_has_historysyncnotification(); +} +inline void ProtocolMessage::clear_historysyncnotification() { + if (historysyncnotification_ != nullptr) historysyncnotification_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::proto::HistorySyncNotification& ProtocolMessage::_internal_historysyncnotification() const { + const ::proto::HistorySyncNotification* p = historysyncnotification_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::HistorySyncNotification&>( + ::proto::_HistorySyncNotification_default_instance_); +} +inline const ::proto::HistorySyncNotification& ProtocolMessage::historysyncnotification() const { + // @@protoc_insertion_point(field_get:proto.ProtocolMessage.historySyncNotification) + return _internal_historysyncnotification(); +} +inline void ProtocolMessage::unsafe_arena_set_allocated_historysyncnotification( + ::proto::HistorySyncNotification* historysyncnotification) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(historysyncnotification_); + } + historysyncnotification_ = historysyncnotification; + if (historysyncnotification) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ProtocolMessage.historySyncNotification) +} +inline ::proto::HistorySyncNotification* ProtocolMessage::release_historysyncnotification() { + _has_bits_[0] &= ~0x00000002u; + ::proto::HistorySyncNotification* temp = historysyncnotification_; + historysyncnotification_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::HistorySyncNotification* ProtocolMessage::unsafe_arena_release_historysyncnotification() { + // @@protoc_insertion_point(field_release:proto.ProtocolMessage.historySyncNotification) + _has_bits_[0] &= ~0x00000002u; + ::proto::HistorySyncNotification* temp = historysyncnotification_; + historysyncnotification_ = nullptr; + return temp; +} +inline ::proto::HistorySyncNotification* ProtocolMessage::_internal_mutable_historysyncnotification() { + _has_bits_[0] |= 0x00000002u; + if (historysyncnotification_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::HistorySyncNotification>(GetArena()); + historysyncnotification_ = p; + } + return historysyncnotification_; +} +inline ::proto::HistorySyncNotification* ProtocolMessage::mutable_historysyncnotification() { + // @@protoc_insertion_point(field_mutable:proto.ProtocolMessage.historySyncNotification) + return _internal_mutable_historysyncnotification(); +} +inline void ProtocolMessage::set_allocated_historysyncnotification(::proto::HistorySyncNotification* historysyncnotification) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete historysyncnotification_; + } + if (historysyncnotification) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(historysyncnotification); + if (message_arena != submessage_arena) { + historysyncnotification = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, historysyncnotification, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + historysyncnotification_ = historysyncnotification; + // @@protoc_insertion_point(field_set_allocated:proto.ProtocolMessage.historySyncNotification) +} + +// optional .proto.AppStateSyncKeyShare appStateSyncKeyShare = 7; +inline bool ProtocolMessage::_internal_has_appstatesynckeyshare() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || appstatesynckeyshare_ != nullptr); + return value; +} +inline bool ProtocolMessage::has_appstatesynckeyshare() const { + return _internal_has_appstatesynckeyshare(); +} +inline void ProtocolMessage::clear_appstatesynckeyshare() { + if (appstatesynckeyshare_ != nullptr) appstatesynckeyshare_->Clear(); + _has_bits_[0] &= ~0x00000004u; +} +inline const ::proto::AppStateSyncKeyShare& ProtocolMessage::_internal_appstatesynckeyshare() const { + const ::proto::AppStateSyncKeyShare* p = appstatesynckeyshare_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::AppStateSyncKeyShare&>( + ::proto::_AppStateSyncKeyShare_default_instance_); +} +inline const ::proto::AppStateSyncKeyShare& ProtocolMessage::appstatesynckeyshare() const { + // @@protoc_insertion_point(field_get:proto.ProtocolMessage.appStateSyncKeyShare) + return _internal_appstatesynckeyshare(); +} +inline void ProtocolMessage::unsafe_arena_set_allocated_appstatesynckeyshare( + ::proto::AppStateSyncKeyShare* appstatesynckeyshare) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(appstatesynckeyshare_); + } + appstatesynckeyshare_ = appstatesynckeyshare; + if (appstatesynckeyshare) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ProtocolMessage.appStateSyncKeyShare) +} +inline ::proto::AppStateSyncKeyShare* ProtocolMessage::release_appstatesynckeyshare() { + _has_bits_[0] &= ~0x00000004u; + ::proto::AppStateSyncKeyShare* temp = appstatesynckeyshare_; + appstatesynckeyshare_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::AppStateSyncKeyShare* ProtocolMessage::unsafe_arena_release_appstatesynckeyshare() { + // @@protoc_insertion_point(field_release:proto.ProtocolMessage.appStateSyncKeyShare) + _has_bits_[0] &= ~0x00000004u; + ::proto::AppStateSyncKeyShare* temp = appstatesynckeyshare_; + appstatesynckeyshare_ = nullptr; + return temp; +} +inline ::proto::AppStateSyncKeyShare* ProtocolMessage::_internal_mutable_appstatesynckeyshare() { + _has_bits_[0] |= 0x00000004u; + if (appstatesynckeyshare_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::AppStateSyncKeyShare>(GetArena()); + appstatesynckeyshare_ = p; + } + return appstatesynckeyshare_; +} +inline ::proto::AppStateSyncKeyShare* ProtocolMessage::mutable_appstatesynckeyshare() { + // @@protoc_insertion_point(field_mutable:proto.ProtocolMessage.appStateSyncKeyShare) + return _internal_mutable_appstatesynckeyshare(); +} +inline void ProtocolMessage::set_allocated_appstatesynckeyshare(::proto::AppStateSyncKeyShare* appstatesynckeyshare) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete appstatesynckeyshare_; + } + if (appstatesynckeyshare) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(appstatesynckeyshare); + if (message_arena != submessage_arena) { + appstatesynckeyshare = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, appstatesynckeyshare, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + appstatesynckeyshare_ = appstatesynckeyshare; + // @@protoc_insertion_point(field_set_allocated:proto.ProtocolMessage.appStateSyncKeyShare) +} + +// optional .proto.AppStateSyncKeyRequest appStateSyncKeyRequest = 8; +inline bool ProtocolMessage::_internal_has_appstatesynckeyrequest() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + PROTOBUF_ASSUME(!value || appstatesynckeyrequest_ != nullptr); + return value; +} +inline bool ProtocolMessage::has_appstatesynckeyrequest() const { + return _internal_has_appstatesynckeyrequest(); +} +inline void ProtocolMessage::clear_appstatesynckeyrequest() { + if (appstatesynckeyrequest_ != nullptr) appstatesynckeyrequest_->Clear(); + _has_bits_[0] &= ~0x00000008u; +} +inline const ::proto::AppStateSyncKeyRequest& ProtocolMessage::_internal_appstatesynckeyrequest() const { + const ::proto::AppStateSyncKeyRequest* p = appstatesynckeyrequest_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::AppStateSyncKeyRequest&>( + ::proto::_AppStateSyncKeyRequest_default_instance_); +} +inline const ::proto::AppStateSyncKeyRequest& ProtocolMessage::appstatesynckeyrequest() const { + // @@protoc_insertion_point(field_get:proto.ProtocolMessage.appStateSyncKeyRequest) + return _internal_appstatesynckeyrequest(); +} +inline void ProtocolMessage::unsafe_arena_set_allocated_appstatesynckeyrequest( + ::proto::AppStateSyncKeyRequest* appstatesynckeyrequest) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(appstatesynckeyrequest_); + } + appstatesynckeyrequest_ = appstatesynckeyrequest; + if (appstatesynckeyrequest) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ProtocolMessage.appStateSyncKeyRequest) +} +inline ::proto::AppStateSyncKeyRequest* ProtocolMessage::release_appstatesynckeyrequest() { + _has_bits_[0] &= ~0x00000008u; + ::proto::AppStateSyncKeyRequest* temp = appstatesynckeyrequest_; + appstatesynckeyrequest_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::AppStateSyncKeyRequest* ProtocolMessage::unsafe_arena_release_appstatesynckeyrequest() { + // @@protoc_insertion_point(field_release:proto.ProtocolMessage.appStateSyncKeyRequest) + _has_bits_[0] &= ~0x00000008u; + ::proto::AppStateSyncKeyRequest* temp = appstatesynckeyrequest_; + appstatesynckeyrequest_ = nullptr; + return temp; +} +inline ::proto::AppStateSyncKeyRequest* ProtocolMessage::_internal_mutable_appstatesynckeyrequest() { + _has_bits_[0] |= 0x00000008u; + if (appstatesynckeyrequest_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::AppStateSyncKeyRequest>(GetArena()); + appstatesynckeyrequest_ = p; + } + return appstatesynckeyrequest_; +} +inline ::proto::AppStateSyncKeyRequest* ProtocolMessage::mutable_appstatesynckeyrequest() { + // @@protoc_insertion_point(field_mutable:proto.ProtocolMessage.appStateSyncKeyRequest) + return _internal_mutable_appstatesynckeyrequest(); +} +inline void ProtocolMessage::set_allocated_appstatesynckeyrequest(::proto::AppStateSyncKeyRequest* appstatesynckeyrequest) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete appstatesynckeyrequest_; + } + if (appstatesynckeyrequest) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(appstatesynckeyrequest); + if (message_arena != submessage_arena) { + appstatesynckeyrequest = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, appstatesynckeyrequest, submessage_arena); + } + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + appstatesynckeyrequest_ = appstatesynckeyrequest; + // @@protoc_insertion_point(field_set_allocated:proto.ProtocolMessage.appStateSyncKeyRequest) +} + +// optional .proto.InitialSecurityNotificationSettingSync initialSecurityNotificationSettingSync = 9; +inline bool ProtocolMessage::_internal_has_initialsecuritynotificationsettingsync() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + PROTOBUF_ASSUME(!value || initialsecuritynotificationsettingsync_ != nullptr); + return value; +} +inline bool ProtocolMessage::has_initialsecuritynotificationsettingsync() const { + return _internal_has_initialsecuritynotificationsettingsync(); +} +inline void ProtocolMessage::clear_initialsecuritynotificationsettingsync() { + if (initialsecuritynotificationsettingsync_ != nullptr) initialsecuritynotificationsettingsync_->Clear(); + _has_bits_[0] &= ~0x00000010u; +} +inline const ::proto::InitialSecurityNotificationSettingSync& ProtocolMessage::_internal_initialsecuritynotificationsettingsync() const { + const ::proto::InitialSecurityNotificationSettingSync* p = initialsecuritynotificationsettingsync_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::InitialSecurityNotificationSettingSync&>( + ::proto::_InitialSecurityNotificationSettingSync_default_instance_); +} +inline const ::proto::InitialSecurityNotificationSettingSync& ProtocolMessage::initialsecuritynotificationsettingsync() const { + // @@protoc_insertion_point(field_get:proto.ProtocolMessage.initialSecurityNotificationSettingSync) + return _internal_initialsecuritynotificationsettingsync(); +} +inline void ProtocolMessage::unsafe_arena_set_allocated_initialsecuritynotificationsettingsync( + ::proto::InitialSecurityNotificationSettingSync* initialsecuritynotificationsettingsync) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(initialsecuritynotificationsettingsync_); + } + initialsecuritynotificationsettingsync_ = initialsecuritynotificationsettingsync; + if (initialsecuritynotificationsettingsync) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ProtocolMessage.initialSecurityNotificationSettingSync) +} +inline ::proto::InitialSecurityNotificationSettingSync* ProtocolMessage::release_initialsecuritynotificationsettingsync() { + _has_bits_[0] &= ~0x00000010u; + ::proto::InitialSecurityNotificationSettingSync* temp = initialsecuritynotificationsettingsync_; + initialsecuritynotificationsettingsync_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::InitialSecurityNotificationSettingSync* ProtocolMessage::unsafe_arena_release_initialsecuritynotificationsettingsync() { + // @@protoc_insertion_point(field_release:proto.ProtocolMessage.initialSecurityNotificationSettingSync) + _has_bits_[0] &= ~0x00000010u; + ::proto::InitialSecurityNotificationSettingSync* temp = initialsecuritynotificationsettingsync_; + initialsecuritynotificationsettingsync_ = nullptr; + return temp; +} +inline ::proto::InitialSecurityNotificationSettingSync* ProtocolMessage::_internal_mutable_initialsecuritynotificationsettingsync() { + _has_bits_[0] |= 0x00000010u; + if (initialsecuritynotificationsettingsync_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::InitialSecurityNotificationSettingSync>(GetArena()); + initialsecuritynotificationsettingsync_ = p; + } + return initialsecuritynotificationsettingsync_; +} +inline ::proto::InitialSecurityNotificationSettingSync* ProtocolMessage::mutable_initialsecuritynotificationsettingsync() { + // @@protoc_insertion_point(field_mutable:proto.ProtocolMessage.initialSecurityNotificationSettingSync) + return _internal_mutable_initialsecuritynotificationsettingsync(); +} +inline void ProtocolMessage::set_allocated_initialsecuritynotificationsettingsync(::proto::InitialSecurityNotificationSettingSync* initialsecuritynotificationsettingsync) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete initialsecuritynotificationsettingsync_; + } + if (initialsecuritynotificationsettingsync) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(initialsecuritynotificationsettingsync); + if (message_arena != submessage_arena) { + initialsecuritynotificationsettingsync = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, initialsecuritynotificationsettingsync, submessage_arena); + } + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + initialsecuritynotificationsettingsync_ = initialsecuritynotificationsettingsync; + // @@protoc_insertion_point(field_set_allocated:proto.ProtocolMessage.initialSecurityNotificationSettingSync) +} + +// optional .proto.AppStateFatalExceptionNotification appStateFatalExceptionNotification = 10; +inline bool ProtocolMessage::_internal_has_appstatefatalexceptionnotification() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + PROTOBUF_ASSUME(!value || appstatefatalexceptionnotification_ != nullptr); + return value; +} +inline bool ProtocolMessage::has_appstatefatalexceptionnotification() const { + return _internal_has_appstatefatalexceptionnotification(); +} +inline void ProtocolMessage::clear_appstatefatalexceptionnotification() { + if (appstatefatalexceptionnotification_ != nullptr) appstatefatalexceptionnotification_->Clear(); + _has_bits_[0] &= ~0x00000020u; +} +inline const ::proto::AppStateFatalExceptionNotification& ProtocolMessage::_internal_appstatefatalexceptionnotification() const { + const ::proto::AppStateFatalExceptionNotification* p = appstatefatalexceptionnotification_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::AppStateFatalExceptionNotification&>( + ::proto::_AppStateFatalExceptionNotification_default_instance_); +} +inline const ::proto::AppStateFatalExceptionNotification& ProtocolMessage::appstatefatalexceptionnotification() const { + // @@protoc_insertion_point(field_get:proto.ProtocolMessage.appStateFatalExceptionNotification) + return _internal_appstatefatalexceptionnotification(); +} +inline void ProtocolMessage::unsafe_arena_set_allocated_appstatefatalexceptionnotification( + ::proto::AppStateFatalExceptionNotification* appstatefatalexceptionnotification) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(appstatefatalexceptionnotification_); + } + appstatefatalexceptionnotification_ = appstatefatalexceptionnotification; + if (appstatefatalexceptionnotification) { + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ProtocolMessage.appStateFatalExceptionNotification) +} +inline ::proto::AppStateFatalExceptionNotification* ProtocolMessage::release_appstatefatalexceptionnotification() { + _has_bits_[0] &= ~0x00000020u; + ::proto::AppStateFatalExceptionNotification* temp = appstatefatalexceptionnotification_; + appstatefatalexceptionnotification_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::AppStateFatalExceptionNotification* ProtocolMessage::unsafe_arena_release_appstatefatalexceptionnotification() { + // @@protoc_insertion_point(field_release:proto.ProtocolMessage.appStateFatalExceptionNotification) + _has_bits_[0] &= ~0x00000020u; + ::proto::AppStateFatalExceptionNotification* temp = appstatefatalexceptionnotification_; + appstatefatalexceptionnotification_ = nullptr; + return temp; +} +inline ::proto::AppStateFatalExceptionNotification* ProtocolMessage::_internal_mutable_appstatefatalexceptionnotification() { + _has_bits_[0] |= 0x00000020u; + if (appstatefatalexceptionnotification_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::AppStateFatalExceptionNotification>(GetArena()); + appstatefatalexceptionnotification_ = p; + } + return appstatefatalexceptionnotification_; +} +inline ::proto::AppStateFatalExceptionNotification* ProtocolMessage::mutable_appstatefatalexceptionnotification() { + // @@protoc_insertion_point(field_mutable:proto.ProtocolMessage.appStateFatalExceptionNotification) + return _internal_mutable_appstatefatalexceptionnotification(); +} +inline void ProtocolMessage::set_allocated_appstatefatalexceptionnotification(::proto::AppStateFatalExceptionNotification* appstatefatalexceptionnotification) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete appstatefatalexceptionnotification_; + } + if (appstatefatalexceptionnotification) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(appstatefatalexceptionnotification); + if (message_arena != submessage_arena) { + appstatefatalexceptionnotification = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, appstatefatalexceptionnotification, submessage_arena); + } + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + appstatefatalexceptionnotification_ = appstatefatalexceptionnotification; + // @@protoc_insertion_point(field_set_allocated:proto.ProtocolMessage.appStateFatalExceptionNotification) +} + +// ------------------------------------------------------------------- + +// HistorySyncNotification + +// optional bytes fileSha256 = 1; +inline bool HistorySyncNotification::_internal_has_filesha256() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool HistorySyncNotification::has_filesha256() const { + return _internal_has_filesha256(); +} +inline void HistorySyncNotification::clear_filesha256() { + filesha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& HistorySyncNotification::filesha256() const { + // @@protoc_insertion_point(field_get:proto.HistorySyncNotification.fileSha256) + return _internal_filesha256(); +} +inline void HistorySyncNotification::set_filesha256(const std::string& value) { + _internal_set_filesha256(value); + // @@protoc_insertion_point(field_set:proto.HistorySyncNotification.fileSha256) +} +inline std::string* HistorySyncNotification::mutable_filesha256() { + // @@protoc_insertion_point(field_mutable:proto.HistorySyncNotification.fileSha256) + return _internal_mutable_filesha256(); +} +inline const std::string& HistorySyncNotification::_internal_filesha256() const { + return filesha256_.Get(); +} +inline void HistorySyncNotification::_internal_set_filesha256(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HistorySyncNotification::set_filesha256(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + filesha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HistorySyncNotification.fileSha256) +} +inline void HistorySyncNotification::set_filesha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HistorySyncNotification.fileSha256) +} +inline void HistorySyncNotification::set_filesha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HistorySyncNotification.fileSha256) +} +inline std::string* HistorySyncNotification::_internal_mutable_filesha256() { + _has_bits_[0] |= 0x00000001u; + return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HistorySyncNotification::release_filesha256() { + // @@protoc_insertion_point(field_release:proto.HistorySyncNotification.fileSha256) + if (!_internal_has_filesha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HistorySyncNotification::set_allocated_filesha256(std::string* filesha256) { + if (filesha256 != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + filesha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filesha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HistorySyncNotification.fileSha256) +} + +// optional uint64 fileLength = 2; +inline bool HistorySyncNotification::_internal_has_filelength() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool HistorySyncNotification::has_filelength() const { + return _internal_has_filelength(); +} +inline void HistorySyncNotification::clear_filelength() { + filelength_ = PROTOBUF_ULONGLONG(0); + _has_bits_[0] &= ~0x00000020u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 HistorySyncNotification::_internal_filelength() const { + return filelength_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 HistorySyncNotification::filelength() const { + // @@protoc_insertion_point(field_get:proto.HistorySyncNotification.fileLength) + return _internal_filelength(); +} +inline void HistorySyncNotification::_internal_set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _has_bits_[0] |= 0x00000020u; + filelength_ = value; +} +inline void HistorySyncNotification::set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_filelength(value); + // @@protoc_insertion_point(field_set:proto.HistorySyncNotification.fileLength) +} + +// optional bytes mediaKey = 3; +inline bool HistorySyncNotification::_internal_has_mediakey() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool HistorySyncNotification::has_mediakey() const { + return _internal_has_mediakey(); +} +inline void HistorySyncNotification::clear_mediakey() { + mediakey_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& HistorySyncNotification::mediakey() const { + // @@protoc_insertion_point(field_get:proto.HistorySyncNotification.mediaKey) + return _internal_mediakey(); +} +inline void HistorySyncNotification::set_mediakey(const std::string& value) { + _internal_set_mediakey(value); + // @@protoc_insertion_point(field_set:proto.HistorySyncNotification.mediaKey) +} +inline std::string* HistorySyncNotification::mutable_mediakey() { + // @@protoc_insertion_point(field_mutable:proto.HistorySyncNotification.mediaKey) + return _internal_mutable_mediakey(); +} +inline const std::string& HistorySyncNotification::_internal_mediakey() const { + return mediakey_.Get(); +} +inline void HistorySyncNotification::_internal_set_mediakey(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HistorySyncNotification::set_mediakey(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + mediakey_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HistorySyncNotification.mediaKey) +} +inline void HistorySyncNotification::set_mediakey(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HistorySyncNotification.mediaKey) +} +inline void HistorySyncNotification::set_mediakey(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HistorySyncNotification.mediaKey) +} +inline std::string* HistorySyncNotification::_internal_mutable_mediakey() { + _has_bits_[0] |= 0x00000002u; + return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HistorySyncNotification::release_mediakey() { + // @@protoc_insertion_point(field_release:proto.HistorySyncNotification.mediaKey) + if (!_internal_has_mediakey()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HistorySyncNotification::set_allocated_mediakey(std::string* mediakey) { + if (mediakey != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + mediakey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mediakey, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HistorySyncNotification.mediaKey) +} + +// optional bytes fileEncSha256 = 4; +inline bool HistorySyncNotification::_internal_has_fileencsha256() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool HistorySyncNotification::has_fileencsha256() const { + return _internal_has_fileencsha256(); +} +inline void HistorySyncNotification::clear_fileencsha256() { + fileencsha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& HistorySyncNotification::fileencsha256() const { + // @@protoc_insertion_point(field_get:proto.HistorySyncNotification.fileEncSha256) + return _internal_fileencsha256(); +} +inline void HistorySyncNotification::set_fileencsha256(const std::string& value) { + _internal_set_fileencsha256(value); + // @@protoc_insertion_point(field_set:proto.HistorySyncNotification.fileEncSha256) +} +inline std::string* HistorySyncNotification::mutable_fileencsha256() { + // @@protoc_insertion_point(field_mutable:proto.HistorySyncNotification.fileEncSha256) + return _internal_mutable_fileencsha256(); +} +inline const std::string& HistorySyncNotification::_internal_fileencsha256() const { + return fileencsha256_.Get(); +} +inline void HistorySyncNotification::_internal_set_fileencsha256(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HistorySyncNotification::set_fileencsha256(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + fileencsha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HistorySyncNotification.fileEncSha256) +} +inline void HistorySyncNotification::set_fileencsha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HistorySyncNotification.fileEncSha256) +} +inline void HistorySyncNotification::set_fileencsha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HistorySyncNotification.fileEncSha256) +} +inline std::string* HistorySyncNotification::_internal_mutable_fileencsha256() { + _has_bits_[0] |= 0x00000004u; + return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HistorySyncNotification::release_fileencsha256() { + // @@protoc_insertion_point(field_release:proto.HistorySyncNotification.fileEncSha256) + if (!_internal_has_fileencsha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HistorySyncNotification::set_allocated_fileencsha256(std::string* fileencsha256) { + if (fileencsha256 != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + fileencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fileencsha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HistorySyncNotification.fileEncSha256) +} + +// optional string directPath = 5; +inline bool HistorySyncNotification::_internal_has_directpath() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool HistorySyncNotification::has_directpath() const { + return _internal_has_directpath(); +} +inline void HistorySyncNotification::clear_directpath() { + directpath_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& HistorySyncNotification::directpath() const { + // @@protoc_insertion_point(field_get:proto.HistorySyncNotification.directPath) + return _internal_directpath(); +} +inline void HistorySyncNotification::set_directpath(const std::string& value) { + _internal_set_directpath(value); + // @@protoc_insertion_point(field_set:proto.HistorySyncNotification.directPath) +} +inline std::string* HistorySyncNotification::mutable_directpath() { + // @@protoc_insertion_point(field_mutable:proto.HistorySyncNotification.directPath) + return _internal_mutable_directpath(); +} +inline const std::string& HistorySyncNotification::_internal_directpath() const { + return directpath_.Get(); +} +inline void HistorySyncNotification::_internal_set_directpath(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HistorySyncNotification::set_directpath(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + directpath_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HistorySyncNotification.directPath) +} +inline void HistorySyncNotification::set_directpath(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HistorySyncNotification.directPath) +} +inline void HistorySyncNotification::set_directpath(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HistorySyncNotification.directPath) +} +inline std::string* HistorySyncNotification::_internal_mutable_directpath() { + _has_bits_[0] |= 0x00000008u; + return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HistorySyncNotification::release_directpath() { + // @@protoc_insertion_point(field_release:proto.HistorySyncNotification.directPath) + if (!_internal_has_directpath()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HistorySyncNotification::set_allocated_directpath(std::string* directpath) { + if (directpath != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + directpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), directpath, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HistorySyncNotification.directPath) +} + +// optional .proto.HistorySyncNotification.HistorySyncNotificationHistorySyncType syncType = 6; +inline bool HistorySyncNotification::_internal_has_synctype() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool HistorySyncNotification::has_synctype() const { + return _internal_has_synctype(); +} +inline void HistorySyncNotification::clear_synctype() { + synctype_ = 0; + _has_bits_[0] &= ~0x00000040u; +} +inline ::proto::HistorySyncNotification_HistorySyncNotificationHistorySyncType HistorySyncNotification::_internal_synctype() const { + return static_cast< ::proto::HistorySyncNotification_HistorySyncNotificationHistorySyncType >(synctype_); +} +inline ::proto::HistorySyncNotification_HistorySyncNotificationHistorySyncType HistorySyncNotification::synctype() const { + // @@protoc_insertion_point(field_get:proto.HistorySyncNotification.syncType) + return _internal_synctype(); +} +inline void HistorySyncNotification::_internal_set_synctype(::proto::HistorySyncNotification_HistorySyncNotificationHistorySyncType value) { + assert(::proto::HistorySyncNotification_HistorySyncNotificationHistorySyncType_IsValid(value)); + _has_bits_[0] |= 0x00000040u; + synctype_ = value; +} +inline void HistorySyncNotification::set_synctype(::proto::HistorySyncNotification_HistorySyncNotificationHistorySyncType value) { + _internal_set_synctype(value); + // @@protoc_insertion_point(field_set:proto.HistorySyncNotification.syncType) +} + +// optional uint32 chunkOrder = 7; +inline bool HistorySyncNotification::_internal_has_chunkorder() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + return value; +} +inline bool HistorySyncNotification::has_chunkorder() const { + return _internal_has_chunkorder(); +} +inline void HistorySyncNotification::clear_chunkorder() { + chunkorder_ = 0u; + _has_bits_[0] &= ~0x00000080u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 HistorySyncNotification::_internal_chunkorder() const { + return chunkorder_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 HistorySyncNotification::chunkorder() const { + // @@protoc_insertion_point(field_get:proto.HistorySyncNotification.chunkOrder) + return _internal_chunkorder(); +} +inline void HistorySyncNotification::_internal_set_chunkorder(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000080u; + chunkorder_ = value; +} +inline void HistorySyncNotification::set_chunkorder(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_chunkorder(value); + // @@protoc_insertion_point(field_set:proto.HistorySyncNotification.chunkOrder) +} + +// optional string originalMessageId = 8; +inline bool HistorySyncNotification::_internal_has_originalmessageid() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool HistorySyncNotification::has_originalmessageid() const { + return _internal_has_originalmessageid(); +} +inline void HistorySyncNotification::clear_originalmessageid() { + originalmessageid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000010u; +} +inline const std::string& HistorySyncNotification::originalmessageid() const { + // @@protoc_insertion_point(field_get:proto.HistorySyncNotification.originalMessageId) + return _internal_originalmessageid(); +} +inline void HistorySyncNotification::set_originalmessageid(const std::string& value) { + _internal_set_originalmessageid(value); + // @@protoc_insertion_point(field_set:proto.HistorySyncNotification.originalMessageId) +} +inline std::string* HistorySyncNotification::mutable_originalmessageid() { + // @@protoc_insertion_point(field_mutable:proto.HistorySyncNotification.originalMessageId) + return _internal_mutable_originalmessageid(); +} +inline const std::string& HistorySyncNotification::_internal_originalmessageid() const { + return originalmessageid_.Get(); +} +inline void HistorySyncNotification::_internal_set_originalmessageid(const std::string& value) { + _has_bits_[0] |= 0x00000010u; + originalmessageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HistorySyncNotification::set_originalmessageid(std::string&& value) { + _has_bits_[0] |= 0x00000010u; + originalmessageid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HistorySyncNotification.originalMessageId) +} +inline void HistorySyncNotification::set_originalmessageid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000010u; + originalmessageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HistorySyncNotification.originalMessageId) +} +inline void HistorySyncNotification::set_originalmessageid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000010u; + originalmessageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HistorySyncNotification.originalMessageId) +} +inline std::string* HistorySyncNotification::_internal_mutable_originalmessageid() { + _has_bits_[0] |= 0x00000010u; + return originalmessageid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HistorySyncNotification::release_originalmessageid() { + // @@protoc_insertion_point(field_release:proto.HistorySyncNotification.originalMessageId) + if (!_internal_has_originalmessageid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000010u; + return originalmessageid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HistorySyncNotification::set_allocated_originalmessageid(std::string* originalmessageid) { + if (originalmessageid != nullptr) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + originalmessageid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), originalmessageid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HistorySyncNotification.originalMessageId) +} + +// ------------------------------------------------------------------- + +// AppStateSyncKey + +// optional .proto.AppStateSyncKeyId keyId = 1; +inline bool AppStateSyncKey::_internal_has_keyid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || keyid_ != nullptr); + return value; +} +inline bool AppStateSyncKey::has_keyid() const { + return _internal_has_keyid(); +} +inline void AppStateSyncKey::clear_keyid() { + if (keyid_ != nullptr) keyid_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::proto::AppStateSyncKeyId& AppStateSyncKey::_internal_keyid() const { + const ::proto::AppStateSyncKeyId* p = keyid_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::AppStateSyncKeyId&>( + ::proto::_AppStateSyncKeyId_default_instance_); +} +inline const ::proto::AppStateSyncKeyId& AppStateSyncKey::keyid() const { + // @@protoc_insertion_point(field_get:proto.AppStateSyncKey.keyId) + return _internal_keyid(); +} +inline void AppStateSyncKey::unsafe_arena_set_allocated_keyid( + ::proto::AppStateSyncKeyId* keyid) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(keyid_); + } + keyid_ = keyid; + if (keyid) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.AppStateSyncKey.keyId) +} +inline ::proto::AppStateSyncKeyId* AppStateSyncKey::release_keyid() { + _has_bits_[0] &= ~0x00000001u; + ::proto::AppStateSyncKeyId* temp = keyid_; + keyid_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::AppStateSyncKeyId* AppStateSyncKey::unsafe_arena_release_keyid() { + // @@protoc_insertion_point(field_release:proto.AppStateSyncKey.keyId) + _has_bits_[0] &= ~0x00000001u; + ::proto::AppStateSyncKeyId* temp = keyid_; + keyid_ = nullptr; + return temp; +} +inline ::proto::AppStateSyncKeyId* AppStateSyncKey::_internal_mutable_keyid() { + _has_bits_[0] |= 0x00000001u; + if (keyid_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::AppStateSyncKeyId>(GetArena()); + keyid_ = p; + } + return keyid_; +} +inline ::proto::AppStateSyncKeyId* AppStateSyncKey::mutable_keyid() { + // @@protoc_insertion_point(field_mutable:proto.AppStateSyncKey.keyId) + return _internal_mutable_keyid(); +} +inline void AppStateSyncKey::set_allocated_keyid(::proto::AppStateSyncKeyId* keyid) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete keyid_; + } + if (keyid) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(keyid); + if (message_arena != submessage_arena) { + keyid = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, keyid, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + keyid_ = keyid; + // @@protoc_insertion_point(field_set_allocated:proto.AppStateSyncKey.keyId) +} + +// optional .proto.AppStateSyncKeyData keyData = 2; +inline bool AppStateSyncKey::_internal_has_keydata() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || keydata_ != nullptr); + return value; +} +inline bool AppStateSyncKey::has_keydata() const { + return _internal_has_keydata(); +} +inline void AppStateSyncKey::clear_keydata() { + if (keydata_ != nullptr) keydata_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::proto::AppStateSyncKeyData& AppStateSyncKey::_internal_keydata() const { + const ::proto::AppStateSyncKeyData* p = keydata_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::AppStateSyncKeyData&>( + ::proto::_AppStateSyncKeyData_default_instance_); +} +inline const ::proto::AppStateSyncKeyData& AppStateSyncKey::keydata() const { + // @@protoc_insertion_point(field_get:proto.AppStateSyncKey.keyData) + return _internal_keydata(); +} +inline void AppStateSyncKey::unsafe_arena_set_allocated_keydata( + ::proto::AppStateSyncKeyData* keydata) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(keydata_); + } + keydata_ = keydata; + if (keydata) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.AppStateSyncKey.keyData) +} +inline ::proto::AppStateSyncKeyData* AppStateSyncKey::release_keydata() { + _has_bits_[0] &= ~0x00000002u; + ::proto::AppStateSyncKeyData* temp = keydata_; + keydata_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::AppStateSyncKeyData* AppStateSyncKey::unsafe_arena_release_keydata() { + // @@protoc_insertion_point(field_release:proto.AppStateSyncKey.keyData) + _has_bits_[0] &= ~0x00000002u; + ::proto::AppStateSyncKeyData* temp = keydata_; + keydata_ = nullptr; + return temp; +} +inline ::proto::AppStateSyncKeyData* AppStateSyncKey::_internal_mutable_keydata() { + _has_bits_[0] |= 0x00000002u; + if (keydata_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::AppStateSyncKeyData>(GetArena()); + keydata_ = p; + } + return keydata_; +} +inline ::proto::AppStateSyncKeyData* AppStateSyncKey::mutable_keydata() { + // @@protoc_insertion_point(field_mutable:proto.AppStateSyncKey.keyData) + return _internal_mutable_keydata(); +} +inline void AppStateSyncKey::set_allocated_keydata(::proto::AppStateSyncKeyData* keydata) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete keydata_; + } + if (keydata) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(keydata); + if (message_arena != submessage_arena) { + keydata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, keydata, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + keydata_ = keydata; + // @@protoc_insertion_point(field_set_allocated:proto.AppStateSyncKey.keyData) +} + +// ------------------------------------------------------------------- + +// AppStateSyncKeyId + +// optional bytes keyId = 1; +inline bool AppStateSyncKeyId::_internal_has_keyid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool AppStateSyncKeyId::has_keyid() const { + return _internal_has_keyid(); +} +inline void AppStateSyncKeyId::clear_keyid() { + keyid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& AppStateSyncKeyId::keyid() const { + // @@protoc_insertion_point(field_get:proto.AppStateSyncKeyId.keyId) + return _internal_keyid(); +} +inline void AppStateSyncKeyId::set_keyid(const std::string& value) { + _internal_set_keyid(value); + // @@protoc_insertion_point(field_set:proto.AppStateSyncKeyId.keyId) +} +inline std::string* AppStateSyncKeyId::mutable_keyid() { + // @@protoc_insertion_point(field_mutable:proto.AppStateSyncKeyId.keyId) + return _internal_mutable_keyid(); +} +inline const std::string& AppStateSyncKeyId::_internal_keyid() const { + return keyid_.Get(); +} +inline void AppStateSyncKeyId::_internal_set_keyid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + keyid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AppStateSyncKeyId::set_keyid(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + keyid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.AppStateSyncKeyId.keyId) +} +inline void AppStateSyncKeyId::set_keyid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + keyid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.AppStateSyncKeyId.keyId) +} +inline void AppStateSyncKeyId::set_keyid(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + keyid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.AppStateSyncKeyId.keyId) +} +inline std::string* AppStateSyncKeyId::_internal_mutable_keyid() { + _has_bits_[0] |= 0x00000001u; + return keyid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AppStateSyncKeyId::release_keyid() { + // @@protoc_insertion_point(field_release:proto.AppStateSyncKeyId.keyId) + if (!_internal_has_keyid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return keyid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AppStateSyncKeyId::set_allocated_keyid(std::string* keyid) { + if (keyid != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + keyid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), keyid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.AppStateSyncKeyId.keyId) +} + +// ------------------------------------------------------------------- + +// AppStateSyncKeyFingerprint + +// optional uint32 rawId = 1; +inline bool AppStateSyncKeyFingerprint::_internal_has_rawid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool AppStateSyncKeyFingerprint::has_rawid() const { + return _internal_has_rawid(); +} +inline void AppStateSyncKeyFingerprint::clear_rawid() { + rawid_ = 0u; + _has_bits_[0] &= ~0x00000001u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 AppStateSyncKeyFingerprint::_internal_rawid() const { + return rawid_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 AppStateSyncKeyFingerprint::rawid() const { + // @@protoc_insertion_point(field_get:proto.AppStateSyncKeyFingerprint.rawId) + return _internal_rawid(); +} +inline void AppStateSyncKeyFingerprint::_internal_set_rawid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; + rawid_ = value; +} +inline void AppStateSyncKeyFingerprint::set_rawid(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_rawid(value); + // @@protoc_insertion_point(field_set:proto.AppStateSyncKeyFingerprint.rawId) +} + +// optional uint32 currentIndex = 2; +inline bool AppStateSyncKeyFingerprint::_internal_has_currentindex() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool AppStateSyncKeyFingerprint::has_currentindex() const { + return _internal_has_currentindex(); +} +inline void AppStateSyncKeyFingerprint::clear_currentindex() { + currentindex_ = 0u; + _has_bits_[0] &= ~0x00000002u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 AppStateSyncKeyFingerprint::_internal_currentindex() const { + return currentindex_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 AppStateSyncKeyFingerprint::currentindex() const { + // @@protoc_insertion_point(field_get:proto.AppStateSyncKeyFingerprint.currentIndex) + return _internal_currentindex(); +} +inline void AppStateSyncKeyFingerprint::_internal_set_currentindex(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; + currentindex_ = value; +} +inline void AppStateSyncKeyFingerprint::set_currentindex(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_currentindex(value); + // @@protoc_insertion_point(field_set:proto.AppStateSyncKeyFingerprint.currentIndex) +} + +// repeated uint32 deviceIndexes = 3 [packed = true]; +inline int AppStateSyncKeyFingerprint::_internal_deviceindexes_size() const { + return deviceindexes_.size(); +} +inline int AppStateSyncKeyFingerprint::deviceindexes_size() const { + return _internal_deviceindexes_size(); +} +inline void AppStateSyncKeyFingerprint::clear_deviceindexes() { + deviceindexes_.Clear(); +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 AppStateSyncKeyFingerprint::_internal_deviceindexes(int index) const { + return deviceindexes_.Get(index); +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 AppStateSyncKeyFingerprint::deviceindexes(int index) const { + // @@protoc_insertion_point(field_get:proto.AppStateSyncKeyFingerprint.deviceIndexes) + return _internal_deviceindexes(index); +} +inline void AppStateSyncKeyFingerprint::set_deviceindexes(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value) { + deviceindexes_.Set(index, value); + // @@protoc_insertion_point(field_set:proto.AppStateSyncKeyFingerprint.deviceIndexes) +} +inline void AppStateSyncKeyFingerprint::_internal_add_deviceindexes(::PROTOBUF_NAMESPACE_ID::uint32 value) { + deviceindexes_.Add(value); +} +inline void AppStateSyncKeyFingerprint::add_deviceindexes(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_add_deviceindexes(value); + // @@protoc_insertion_point(field_add:proto.AppStateSyncKeyFingerprint.deviceIndexes) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& +AppStateSyncKeyFingerprint::_internal_deviceindexes() const { + return deviceindexes_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >& +AppStateSyncKeyFingerprint::deviceindexes() const { + // @@protoc_insertion_point(field_list:proto.AppStateSyncKeyFingerprint.deviceIndexes) + return _internal_deviceindexes(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* +AppStateSyncKeyFingerprint::_internal_mutable_deviceindexes() { + return &deviceindexes_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >* +AppStateSyncKeyFingerprint::mutable_deviceindexes() { + // @@protoc_insertion_point(field_mutable_list:proto.AppStateSyncKeyFingerprint.deviceIndexes) + return _internal_mutable_deviceindexes(); +} + +// ------------------------------------------------------------------- + +// AppStateSyncKeyData + +// optional bytes keyData = 1; +inline bool AppStateSyncKeyData::_internal_has_keydata() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool AppStateSyncKeyData::has_keydata() const { + return _internal_has_keydata(); +} +inline void AppStateSyncKeyData::clear_keydata() { + keydata_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& AppStateSyncKeyData::keydata() const { + // @@protoc_insertion_point(field_get:proto.AppStateSyncKeyData.keyData) + return _internal_keydata(); +} +inline void AppStateSyncKeyData::set_keydata(const std::string& value) { + _internal_set_keydata(value); + // @@protoc_insertion_point(field_set:proto.AppStateSyncKeyData.keyData) +} +inline std::string* AppStateSyncKeyData::mutable_keydata() { + // @@protoc_insertion_point(field_mutable:proto.AppStateSyncKeyData.keyData) + return _internal_mutable_keydata(); +} +inline const std::string& AppStateSyncKeyData::_internal_keydata() const { + return keydata_.Get(); +} +inline void AppStateSyncKeyData::_internal_set_keydata(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + keydata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void AppStateSyncKeyData::set_keydata(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + keydata_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.AppStateSyncKeyData.keyData) +} +inline void AppStateSyncKeyData::set_keydata(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + keydata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.AppStateSyncKeyData.keyData) +} +inline void AppStateSyncKeyData::set_keydata(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + keydata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.AppStateSyncKeyData.keyData) +} +inline std::string* AppStateSyncKeyData::_internal_mutable_keydata() { + _has_bits_[0] |= 0x00000001u; + return keydata_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* AppStateSyncKeyData::release_keydata() { + // @@protoc_insertion_point(field_release:proto.AppStateSyncKeyData.keyData) + if (!_internal_has_keydata()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return keydata_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void AppStateSyncKeyData::set_allocated_keydata(std::string* keydata) { + if (keydata != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + keydata_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), keydata, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.AppStateSyncKeyData.keyData) +} + +// optional .proto.AppStateSyncKeyFingerprint fingerprint = 2; +inline bool AppStateSyncKeyData::_internal_has_fingerprint() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || fingerprint_ != nullptr); + return value; +} +inline bool AppStateSyncKeyData::has_fingerprint() const { + return _internal_has_fingerprint(); +} +inline void AppStateSyncKeyData::clear_fingerprint() { + if (fingerprint_ != nullptr) fingerprint_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::proto::AppStateSyncKeyFingerprint& AppStateSyncKeyData::_internal_fingerprint() const { + const ::proto::AppStateSyncKeyFingerprint* p = fingerprint_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::AppStateSyncKeyFingerprint&>( + ::proto::_AppStateSyncKeyFingerprint_default_instance_); +} +inline const ::proto::AppStateSyncKeyFingerprint& AppStateSyncKeyData::fingerprint() const { + // @@protoc_insertion_point(field_get:proto.AppStateSyncKeyData.fingerprint) + return _internal_fingerprint(); +} +inline void AppStateSyncKeyData::unsafe_arena_set_allocated_fingerprint( + ::proto::AppStateSyncKeyFingerprint* fingerprint) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fingerprint_); + } + fingerprint_ = fingerprint; + if (fingerprint) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.AppStateSyncKeyData.fingerprint) +} +inline ::proto::AppStateSyncKeyFingerprint* AppStateSyncKeyData::release_fingerprint() { + _has_bits_[0] &= ~0x00000002u; + ::proto::AppStateSyncKeyFingerprint* temp = fingerprint_; + fingerprint_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::AppStateSyncKeyFingerprint* AppStateSyncKeyData::unsafe_arena_release_fingerprint() { + // @@protoc_insertion_point(field_release:proto.AppStateSyncKeyData.fingerprint) + _has_bits_[0] &= ~0x00000002u; + ::proto::AppStateSyncKeyFingerprint* temp = fingerprint_; + fingerprint_ = nullptr; + return temp; +} +inline ::proto::AppStateSyncKeyFingerprint* AppStateSyncKeyData::_internal_mutable_fingerprint() { + _has_bits_[0] |= 0x00000002u; + if (fingerprint_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::AppStateSyncKeyFingerprint>(GetArena()); + fingerprint_ = p; + } + return fingerprint_; +} +inline ::proto::AppStateSyncKeyFingerprint* AppStateSyncKeyData::mutable_fingerprint() { + // @@protoc_insertion_point(field_mutable:proto.AppStateSyncKeyData.fingerprint) + return _internal_mutable_fingerprint(); +} +inline void AppStateSyncKeyData::set_allocated_fingerprint(::proto::AppStateSyncKeyFingerprint* fingerprint) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete fingerprint_; + } + if (fingerprint) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(fingerprint); + if (message_arena != submessage_arena) { + fingerprint = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, fingerprint, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + fingerprint_ = fingerprint; + // @@protoc_insertion_point(field_set_allocated:proto.AppStateSyncKeyData.fingerprint) +} + +// optional int64 timestamp = 3; +inline bool AppStateSyncKeyData::_internal_has_timestamp() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool AppStateSyncKeyData::has_timestamp() const { + return _internal_has_timestamp(); +} +inline void AppStateSyncKeyData::clear_timestamp() { + timestamp_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00000004u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 AppStateSyncKeyData::_internal_timestamp() const { + return timestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 AppStateSyncKeyData::timestamp() const { + // @@protoc_insertion_point(field_get:proto.AppStateSyncKeyData.timestamp) + return _internal_timestamp(); +} +inline void AppStateSyncKeyData::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00000004u; + timestamp_ = value; +} +inline void AppStateSyncKeyData::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_timestamp(value); + // @@protoc_insertion_point(field_set:proto.AppStateSyncKeyData.timestamp) +} + +// ------------------------------------------------------------------- + +// AppStateSyncKeyShare + +// repeated .proto.AppStateSyncKey keys = 1; +inline int AppStateSyncKeyShare::_internal_keys_size() const { + return keys_.size(); +} +inline int AppStateSyncKeyShare::keys_size() const { + return _internal_keys_size(); +} +inline void AppStateSyncKeyShare::clear_keys() { + keys_.Clear(); +} +inline ::proto::AppStateSyncKey* AppStateSyncKeyShare::mutable_keys(int index) { + // @@protoc_insertion_point(field_mutable:proto.AppStateSyncKeyShare.keys) + return keys_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::AppStateSyncKey >* +AppStateSyncKeyShare::mutable_keys() { + // @@protoc_insertion_point(field_mutable_list:proto.AppStateSyncKeyShare.keys) + return &keys_; +} +inline const ::proto::AppStateSyncKey& AppStateSyncKeyShare::_internal_keys(int index) const { + return keys_.Get(index); +} +inline const ::proto::AppStateSyncKey& AppStateSyncKeyShare::keys(int index) const { + // @@protoc_insertion_point(field_get:proto.AppStateSyncKeyShare.keys) + return _internal_keys(index); +} +inline ::proto::AppStateSyncKey* AppStateSyncKeyShare::_internal_add_keys() { + return keys_.Add(); +} +inline ::proto::AppStateSyncKey* AppStateSyncKeyShare::add_keys() { + // @@protoc_insertion_point(field_add:proto.AppStateSyncKeyShare.keys) + return _internal_add_keys(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::AppStateSyncKey >& +AppStateSyncKeyShare::keys() const { + // @@protoc_insertion_point(field_list:proto.AppStateSyncKeyShare.keys) + return keys_; +} + +// ------------------------------------------------------------------- + +// AppStateSyncKeyRequest + +// repeated .proto.AppStateSyncKeyId keyIds = 1; +inline int AppStateSyncKeyRequest::_internal_keyids_size() const { + return keyids_.size(); +} +inline int AppStateSyncKeyRequest::keyids_size() const { + return _internal_keyids_size(); +} +inline void AppStateSyncKeyRequest::clear_keyids() { + keyids_.Clear(); +} +inline ::proto::AppStateSyncKeyId* AppStateSyncKeyRequest::mutable_keyids(int index) { + // @@protoc_insertion_point(field_mutable:proto.AppStateSyncKeyRequest.keyIds) + return keyids_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::AppStateSyncKeyId >* +AppStateSyncKeyRequest::mutable_keyids() { + // @@protoc_insertion_point(field_mutable_list:proto.AppStateSyncKeyRequest.keyIds) + return &keyids_; +} +inline const ::proto::AppStateSyncKeyId& AppStateSyncKeyRequest::_internal_keyids(int index) const { + return keyids_.Get(index); +} +inline const ::proto::AppStateSyncKeyId& AppStateSyncKeyRequest::keyids(int index) const { + // @@protoc_insertion_point(field_get:proto.AppStateSyncKeyRequest.keyIds) + return _internal_keyids(index); +} +inline ::proto::AppStateSyncKeyId* AppStateSyncKeyRequest::_internal_add_keyids() { + return keyids_.Add(); +} +inline ::proto::AppStateSyncKeyId* AppStateSyncKeyRequest::add_keyids() { + // @@protoc_insertion_point(field_add:proto.AppStateSyncKeyRequest.keyIds) + return _internal_add_keyids(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::AppStateSyncKeyId >& +AppStateSyncKeyRequest::keyids() const { + // @@protoc_insertion_point(field_list:proto.AppStateSyncKeyRequest.keyIds) + return keyids_; +} + +// ------------------------------------------------------------------- + +// AppStateFatalExceptionNotification + +// repeated string collectionNames = 1; +inline int AppStateFatalExceptionNotification::_internal_collectionnames_size() const { + return collectionnames_.size(); +} +inline int AppStateFatalExceptionNotification::collectionnames_size() const { + return _internal_collectionnames_size(); +} +inline void AppStateFatalExceptionNotification::clear_collectionnames() { + collectionnames_.Clear(); +} +inline std::string* AppStateFatalExceptionNotification::add_collectionnames() { + // @@protoc_insertion_point(field_add_mutable:proto.AppStateFatalExceptionNotification.collectionNames) + return _internal_add_collectionnames(); +} +inline const std::string& AppStateFatalExceptionNotification::_internal_collectionnames(int index) const { + return collectionnames_.Get(index); +} +inline const std::string& AppStateFatalExceptionNotification::collectionnames(int index) const { + // @@protoc_insertion_point(field_get:proto.AppStateFatalExceptionNotification.collectionNames) + return _internal_collectionnames(index); +} +inline std::string* AppStateFatalExceptionNotification::mutable_collectionnames(int index) { + // @@protoc_insertion_point(field_mutable:proto.AppStateFatalExceptionNotification.collectionNames) + return collectionnames_.Mutable(index); +} +inline void AppStateFatalExceptionNotification::set_collectionnames(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:proto.AppStateFatalExceptionNotification.collectionNames) + collectionnames_.Mutable(index)->assign(value); +} +inline void AppStateFatalExceptionNotification::set_collectionnames(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:proto.AppStateFatalExceptionNotification.collectionNames) + collectionnames_.Mutable(index)->assign(std::move(value)); +} +inline void AppStateFatalExceptionNotification::set_collectionnames(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + collectionnames_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:proto.AppStateFatalExceptionNotification.collectionNames) +} +inline void AppStateFatalExceptionNotification::set_collectionnames(int index, const char* value, size_t size) { + collectionnames_.Mutable(index)->assign( + reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:proto.AppStateFatalExceptionNotification.collectionNames) +} +inline std::string* AppStateFatalExceptionNotification::_internal_add_collectionnames() { + return collectionnames_.Add(); +} +inline void AppStateFatalExceptionNotification::add_collectionnames(const std::string& value) { + collectionnames_.Add()->assign(value); + // @@protoc_insertion_point(field_add:proto.AppStateFatalExceptionNotification.collectionNames) +} +inline void AppStateFatalExceptionNotification::add_collectionnames(std::string&& value) { + collectionnames_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:proto.AppStateFatalExceptionNotification.collectionNames) +} +inline void AppStateFatalExceptionNotification::add_collectionnames(const char* value) { + GOOGLE_DCHECK(value != nullptr); + collectionnames_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:proto.AppStateFatalExceptionNotification.collectionNames) +} +inline void AppStateFatalExceptionNotification::add_collectionnames(const char* value, size_t size) { + collectionnames_.Add()->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_add_pointer:proto.AppStateFatalExceptionNotification.collectionNames) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& +AppStateFatalExceptionNotification::collectionnames() const { + // @@protoc_insertion_point(field_list:proto.AppStateFatalExceptionNotification.collectionNames) + return collectionnames_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* +AppStateFatalExceptionNotification::mutable_collectionnames() { + // @@protoc_insertion_point(field_mutable_list:proto.AppStateFatalExceptionNotification.collectionNames) + return &collectionnames_; +} + +// optional int64 timestamp = 2; +inline bool AppStateFatalExceptionNotification::_internal_has_timestamp() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool AppStateFatalExceptionNotification::has_timestamp() const { + return _internal_has_timestamp(); +} +inline void AppStateFatalExceptionNotification::clear_timestamp() { + timestamp_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00000001u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 AppStateFatalExceptionNotification::_internal_timestamp() const { + return timestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 AppStateFatalExceptionNotification::timestamp() const { + // @@protoc_insertion_point(field_get:proto.AppStateFatalExceptionNotification.timestamp) + return _internal_timestamp(); +} +inline void AppStateFatalExceptionNotification::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00000001u; + timestamp_ = value; +} +inline void AppStateFatalExceptionNotification::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_timestamp(value); + // @@protoc_insertion_point(field_set:proto.AppStateFatalExceptionNotification.timestamp) +} + +// ------------------------------------------------------------------- + +// InitialSecurityNotificationSettingSync + +// optional bool securityNotificationEnabled = 1; +inline bool InitialSecurityNotificationSettingSync::_internal_has_securitynotificationenabled() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool InitialSecurityNotificationSettingSync::has_securitynotificationenabled() const { + return _internal_has_securitynotificationenabled(); +} +inline void InitialSecurityNotificationSettingSync::clear_securitynotificationenabled() { + securitynotificationenabled_ = false; + _has_bits_[0] &= ~0x00000001u; +} +inline bool InitialSecurityNotificationSettingSync::_internal_securitynotificationenabled() const { + return securitynotificationenabled_; +} +inline bool InitialSecurityNotificationSettingSync::securitynotificationenabled() const { + // @@protoc_insertion_point(field_get:proto.InitialSecurityNotificationSettingSync.securityNotificationEnabled) + return _internal_securitynotificationenabled(); +} +inline void InitialSecurityNotificationSettingSync::_internal_set_securitynotificationenabled(bool value) { + _has_bits_[0] |= 0x00000001u; + securitynotificationenabled_ = value; +} +inline void InitialSecurityNotificationSettingSync::set_securitynotificationenabled(bool value) { + _internal_set_securitynotificationenabled(value); + // @@protoc_insertion_point(field_set:proto.InitialSecurityNotificationSettingSync.securityNotificationEnabled) +} + +// ------------------------------------------------------------------- + +// ContactsArrayMessage + +// optional string displayName = 1; +inline bool ContactsArrayMessage::_internal_has_displayname() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool ContactsArrayMessage::has_displayname() const { + return _internal_has_displayname(); +} +inline void ContactsArrayMessage::clear_displayname() { + displayname_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& ContactsArrayMessage::displayname() const { + // @@protoc_insertion_point(field_get:proto.ContactsArrayMessage.displayName) + return _internal_displayname(); +} +inline void ContactsArrayMessage::set_displayname(const std::string& value) { + _internal_set_displayname(value); + // @@protoc_insertion_point(field_set:proto.ContactsArrayMessage.displayName) +} +inline std::string* ContactsArrayMessage::mutable_displayname() { + // @@protoc_insertion_point(field_mutable:proto.ContactsArrayMessage.displayName) + return _internal_mutable_displayname(); +} +inline const std::string& ContactsArrayMessage::_internal_displayname() const { + return displayname_.Get(); +} +inline void ContactsArrayMessage::_internal_set_displayname(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ContactsArrayMessage::set_displayname(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + displayname_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ContactsArrayMessage.displayName) +} +inline void ContactsArrayMessage::set_displayname(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ContactsArrayMessage.displayName) +} +inline void ContactsArrayMessage::set_displayname(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ContactsArrayMessage.displayName) +} +inline std::string* ContactsArrayMessage::_internal_mutable_displayname() { + _has_bits_[0] |= 0x00000001u; + return displayname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ContactsArrayMessage::release_displayname() { + // @@protoc_insertion_point(field_release:proto.ContactsArrayMessage.displayName) + if (!_internal_has_displayname()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return displayname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ContactsArrayMessage::set_allocated_displayname(std::string* displayname) { + if (displayname != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + displayname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), displayname, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ContactsArrayMessage.displayName) +} + +// repeated .proto.ContactMessage contacts = 2; +inline int ContactsArrayMessage::_internal_contacts_size() const { + return contacts_.size(); +} +inline int ContactsArrayMessage::contacts_size() const { + return _internal_contacts_size(); +} +inline void ContactsArrayMessage::clear_contacts() { + contacts_.Clear(); +} +inline ::proto::ContactMessage* ContactsArrayMessage::mutable_contacts(int index) { + // @@protoc_insertion_point(field_mutable:proto.ContactsArrayMessage.contacts) + return contacts_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::ContactMessage >* +ContactsArrayMessage::mutable_contacts() { + // @@protoc_insertion_point(field_mutable_list:proto.ContactsArrayMessage.contacts) + return &contacts_; +} +inline const ::proto::ContactMessage& ContactsArrayMessage::_internal_contacts(int index) const { + return contacts_.Get(index); +} +inline const ::proto::ContactMessage& ContactsArrayMessage::contacts(int index) const { + // @@protoc_insertion_point(field_get:proto.ContactsArrayMessage.contacts) + return _internal_contacts(index); +} +inline ::proto::ContactMessage* ContactsArrayMessage::_internal_add_contacts() { + return contacts_.Add(); +} +inline ::proto::ContactMessage* ContactsArrayMessage::add_contacts() { + // @@protoc_insertion_point(field_add:proto.ContactsArrayMessage.contacts) + return _internal_add_contacts(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::ContactMessage >& +ContactsArrayMessage::contacts() const { + // @@protoc_insertion_point(field_list:proto.ContactsArrayMessage.contacts) + return contacts_; +} + +// optional .proto.ContextInfo contextInfo = 17; +inline bool ContactsArrayMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool ContactsArrayMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void ContactsArrayMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::proto::ContextInfo& ContactsArrayMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& ContactsArrayMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.ContactsArrayMessage.contextInfo) + return _internal_contextinfo(); +} +inline void ContactsArrayMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ContactsArrayMessage.contextInfo) +} +inline ::proto::ContextInfo* ContactsArrayMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00000002u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* ContactsArrayMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.ContactsArrayMessage.contextInfo) + _has_bits_[0] &= ~0x00000002u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* ContactsArrayMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00000002u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* ContactsArrayMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.ContactsArrayMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void ContactsArrayMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.ContactsArrayMessage.contextInfo) +} + +// ------------------------------------------------------------------- + +// HSMCurrency + +// optional string currencyCode = 1; +inline bool HSMCurrency::_internal_has_currencycode() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool HSMCurrency::has_currencycode() const { + return _internal_has_currencycode(); +} +inline void HSMCurrency::clear_currencycode() { + currencycode_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& HSMCurrency::currencycode() const { + // @@protoc_insertion_point(field_get:proto.HSMCurrency.currencyCode) + return _internal_currencycode(); +} +inline void HSMCurrency::set_currencycode(const std::string& value) { + _internal_set_currencycode(value); + // @@protoc_insertion_point(field_set:proto.HSMCurrency.currencyCode) +} +inline std::string* HSMCurrency::mutable_currencycode() { + // @@protoc_insertion_point(field_mutable:proto.HSMCurrency.currencyCode) + return _internal_mutable_currencycode(); +} +inline const std::string& HSMCurrency::_internal_currencycode() const { + return currencycode_.Get(); +} +inline void HSMCurrency::_internal_set_currencycode(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HSMCurrency::set_currencycode(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + currencycode_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HSMCurrency.currencyCode) +} +inline void HSMCurrency::set_currencycode(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HSMCurrency.currencyCode) +} +inline void HSMCurrency::set_currencycode(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HSMCurrency.currencyCode) +} +inline std::string* HSMCurrency::_internal_mutable_currencycode() { + _has_bits_[0] |= 0x00000001u; + return currencycode_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HSMCurrency::release_currencycode() { + // @@protoc_insertion_point(field_release:proto.HSMCurrency.currencyCode) + if (!_internal_has_currencycode()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return currencycode_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HSMCurrency::set_allocated_currencycode(std::string* currencycode) { + if (currencycode != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + currencycode_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), currencycode, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HSMCurrency.currencyCode) +} + +// optional int64 amount1000 = 2; +inline bool HSMCurrency::_internal_has_amount1000() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool HSMCurrency::has_amount1000() const { + return _internal_has_amount1000(); +} +inline void HSMCurrency::clear_amount1000() { + amount1000_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00000002u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 HSMCurrency::_internal_amount1000() const { + return amount1000_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 HSMCurrency::amount1000() const { + // @@protoc_insertion_point(field_get:proto.HSMCurrency.amount1000) + return _internal_amount1000(); +} +inline void HSMCurrency::_internal_set_amount1000(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00000002u; + amount1000_ = value; +} +inline void HSMCurrency::set_amount1000(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_amount1000(value); + // @@protoc_insertion_point(field_set:proto.HSMCurrency.amount1000) +} + +// ------------------------------------------------------------------- + +// HSMDateTimeComponent + +// optional .proto.HSMDateTimeComponent.HSMDateTimeComponentDayOfWeekType dayOfWeek = 1; +inline bool HSMDateTimeComponent::_internal_has_dayofweek() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool HSMDateTimeComponent::has_dayofweek() const { + return _internal_has_dayofweek(); +} +inline void HSMDateTimeComponent::clear_dayofweek() { + dayofweek_ = 1; + _has_bits_[0] &= ~0x00000020u; +} +inline ::proto::HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComponent::_internal_dayofweek() const { + return static_cast< ::proto::HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType >(dayofweek_); +} +inline ::proto::HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType HSMDateTimeComponent::dayofweek() const { + // @@protoc_insertion_point(field_get:proto.HSMDateTimeComponent.dayOfWeek) + return _internal_dayofweek(); +} +inline void HSMDateTimeComponent::_internal_set_dayofweek(::proto::HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType value) { + assert(::proto::HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_IsValid(value)); + _has_bits_[0] |= 0x00000020u; + dayofweek_ = value; +} +inline void HSMDateTimeComponent::set_dayofweek(::proto::HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType value) { + _internal_set_dayofweek(value); + // @@protoc_insertion_point(field_set:proto.HSMDateTimeComponent.dayOfWeek) +} + +// optional uint32 year = 2; +inline bool HSMDateTimeComponent::_internal_has_year() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool HSMDateTimeComponent::has_year() const { + return _internal_has_year(); +} +inline void HSMDateTimeComponent::clear_year() { + year_ = 0u; + _has_bits_[0] &= ~0x00000001u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 HSMDateTimeComponent::_internal_year() const { + return year_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 HSMDateTimeComponent::year() const { + // @@protoc_insertion_point(field_get:proto.HSMDateTimeComponent.year) + return _internal_year(); +} +inline void HSMDateTimeComponent::_internal_set_year(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000001u; + year_ = value; +} +inline void HSMDateTimeComponent::set_year(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_year(value); + // @@protoc_insertion_point(field_set:proto.HSMDateTimeComponent.year) +} + +// optional uint32 month = 3; +inline bool HSMDateTimeComponent::_internal_has_month() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool HSMDateTimeComponent::has_month() const { + return _internal_has_month(); +} +inline void HSMDateTimeComponent::clear_month() { + month_ = 0u; + _has_bits_[0] &= ~0x00000002u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 HSMDateTimeComponent::_internal_month() const { + return month_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 HSMDateTimeComponent::month() const { + // @@protoc_insertion_point(field_get:proto.HSMDateTimeComponent.month) + return _internal_month(); +} +inline void HSMDateTimeComponent::_internal_set_month(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; + month_ = value; +} +inline void HSMDateTimeComponent::set_month(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_month(value); + // @@protoc_insertion_point(field_set:proto.HSMDateTimeComponent.month) +} + +// optional uint32 dayOfMonth = 4; +inline bool HSMDateTimeComponent::_internal_has_dayofmonth() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool HSMDateTimeComponent::has_dayofmonth() const { + return _internal_has_dayofmonth(); +} +inline void HSMDateTimeComponent::clear_dayofmonth() { + dayofmonth_ = 0u; + _has_bits_[0] &= ~0x00000004u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 HSMDateTimeComponent::_internal_dayofmonth() const { + return dayofmonth_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 HSMDateTimeComponent::dayofmonth() const { + // @@protoc_insertion_point(field_get:proto.HSMDateTimeComponent.dayOfMonth) + return _internal_dayofmonth(); +} +inline void HSMDateTimeComponent::_internal_set_dayofmonth(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; + dayofmonth_ = value; +} +inline void HSMDateTimeComponent::set_dayofmonth(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_dayofmonth(value); + // @@protoc_insertion_point(field_set:proto.HSMDateTimeComponent.dayOfMonth) +} + +// optional uint32 hour = 5; +inline bool HSMDateTimeComponent::_internal_has_hour() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool HSMDateTimeComponent::has_hour() const { + return _internal_has_hour(); +} +inline void HSMDateTimeComponent::clear_hour() { + hour_ = 0u; + _has_bits_[0] &= ~0x00000008u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 HSMDateTimeComponent::_internal_hour() const { + return hour_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 HSMDateTimeComponent::hour() const { + // @@protoc_insertion_point(field_get:proto.HSMDateTimeComponent.hour) + return _internal_hour(); +} +inline void HSMDateTimeComponent::_internal_set_hour(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000008u; + hour_ = value; +} +inline void HSMDateTimeComponent::set_hour(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_hour(value); + // @@protoc_insertion_point(field_set:proto.HSMDateTimeComponent.hour) +} + +// optional uint32 minute = 6; +inline bool HSMDateTimeComponent::_internal_has_minute() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool HSMDateTimeComponent::has_minute() const { + return _internal_has_minute(); +} +inline void HSMDateTimeComponent::clear_minute() { + minute_ = 0u; + _has_bits_[0] &= ~0x00000010u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 HSMDateTimeComponent::_internal_minute() const { + return minute_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 HSMDateTimeComponent::minute() const { + // @@protoc_insertion_point(field_get:proto.HSMDateTimeComponent.minute) + return _internal_minute(); +} +inline void HSMDateTimeComponent::_internal_set_minute(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000010u; + minute_ = value; +} +inline void HSMDateTimeComponent::set_minute(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_minute(value); + // @@protoc_insertion_point(field_set:proto.HSMDateTimeComponent.minute) +} + +// optional .proto.HSMDateTimeComponent.HSMDateTimeComponentCalendarType calendar = 7; +inline bool HSMDateTimeComponent::_internal_has_calendar() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool HSMDateTimeComponent::has_calendar() const { + return _internal_has_calendar(); +} +inline void HSMDateTimeComponent::clear_calendar() { + calendar_ = 1; + _has_bits_[0] &= ~0x00000040u; +} +inline ::proto::HSMDateTimeComponent_HSMDateTimeComponentCalendarType HSMDateTimeComponent::_internal_calendar() const { + return static_cast< ::proto::HSMDateTimeComponent_HSMDateTimeComponentCalendarType >(calendar_); +} +inline ::proto::HSMDateTimeComponent_HSMDateTimeComponentCalendarType HSMDateTimeComponent::calendar() const { + // @@protoc_insertion_point(field_get:proto.HSMDateTimeComponent.calendar) + return _internal_calendar(); +} +inline void HSMDateTimeComponent::_internal_set_calendar(::proto::HSMDateTimeComponent_HSMDateTimeComponentCalendarType value) { + assert(::proto::HSMDateTimeComponent_HSMDateTimeComponentCalendarType_IsValid(value)); + _has_bits_[0] |= 0x00000040u; + calendar_ = value; +} +inline void HSMDateTimeComponent::set_calendar(::proto::HSMDateTimeComponent_HSMDateTimeComponentCalendarType value) { + _internal_set_calendar(value); + // @@protoc_insertion_point(field_set:proto.HSMDateTimeComponent.calendar) +} + +// ------------------------------------------------------------------- + +// HSMDateTimeUnixEpoch + +// optional int64 timestamp = 1; +inline bool HSMDateTimeUnixEpoch::_internal_has_timestamp() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool HSMDateTimeUnixEpoch::has_timestamp() const { + return _internal_has_timestamp(); +} +inline void HSMDateTimeUnixEpoch::clear_timestamp() { + timestamp_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00000001u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 HSMDateTimeUnixEpoch::_internal_timestamp() const { + return timestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 HSMDateTimeUnixEpoch::timestamp() const { + // @@protoc_insertion_point(field_get:proto.HSMDateTimeUnixEpoch.timestamp) + return _internal_timestamp(); +} +inline void HSMDateTimeUnixEpoch::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00000001u; + timestamp_ = value; +} +inline void HSMDateTimeUnixEpoch::set_timestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_timestamp(value); + // @@protoc_insertion_point(field_set:proto.HSMDateTimeUnixEpoch.timestamp) +} + +// ------------------------------------------------------------------- + +// HSMDateTime + +// .proto.HSMDateTimeComponent component = 1; +inline bool HSMDateTime::_internal_has_component() const { + return datetimeOneof_case() == kComponent; +} +inline bool HSMDateTime::has_component() const { + return _internal_has_component(); +} +inline void HSMDateTime::set_has_component() { + _oneof_case_[0] = kComponent; +} +inline void HSMDateTime::clear_component() { + if (_internal_has_component()) { + if (GetArena() == nullptr) { + delete datetimeOneof_.component_; + } + clear_has_datetimeOneof(); + } +} +inline ::proto::HSMDateTimeComponent* HSMDateTime::release_component() { + // @@protoc_insertion_point(field_release:proto.HSMDateTime.component) + if (_internal_has_component()) { + clear_has_datetimeOneof(); + ::proto::HSMDateTimeComponent* temp = datetimeOneof_.component_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + datetimeOneof_.component_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::HSMDateTimeComponent& HSMDateTime::_internal_component() const { + return _internal_has_component() + ? *datetimeOneof_.component_ + : reinterpret_cast< ::proto::HSMDateTimeComponent&>(::proto::_HSMDateTimeComponent_default_instance_); +} +inline const ::proto::HSMDateTimeComponent& HSMDateTime::component() const { + // @@protoc_insertion_point(field_get:proto.HSMDateTime.component) + return _internal_component(); +} +inline ::proto::HSMDateTimeComponent* HSMDateTime::unsafe_arena_release_component() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.HSMDateTime.component) + if (_internal_has_component()) { + clear_has_datetimeOneof(); + ::proto::HSMDateTimeComponent* temp = datetimeOneof_.component_; + datetimeOneof_.component_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void HSMDateTime::unsafe_arena_set_allocated_component(::proto::HSMDateTimeComponent* component) { + clear_datetimeOneof(); + if (component) { + set_has_component(); + datetimeOneof_.component_ = component; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.HSMDateTime.component) +} +inline ::proto::HSMDateTimeComponent* HSMDateTime::_internal_mutable_component() { + if (!_internal_has_component()) { + clear_datetimeOneof(); + set_has_component(); + datetimeOneof_.component_ = CreateMaybeMessage< ::proto::HSMDateTimeComponent >(GetArena()); + } + return datetimeOneof_.component_; +} +inline ::proto::HSMDateTimeComponent* HSMDateTime::mutable_component() { + // @@protoc_insertion_point(field_mutable:proto.HSMDateTime.component) + return _internal_mutable_component(); +} + +// .proto.HSMDateTimeUnixEpoch unixEpoch = 2; +inline bool HSMDateTime::_internal_has_unixepoch() const { + return datetimeOneof_case() == kUnixEpoch; +} +inline bool HSMDateTime::has_unixepoch() const { + return _internal_has_unixepoch(); +} +inline void HSMDateTime::set_has_unixepoch() { + _oneof_case_[0] = kUnixEpoch; +} +inline void HSMDateTime::clear_unixepoch() { + if (_internal_has_unixepoch()) { + if (GetArena() == nullptr) { + delete datetimeOneof_.unixepoch_; + } + clear_has_datetimeOneof(); + } +} +inline ::proto::HSMDateTimeUnixEpoch* HSMDateTime::release_unixepoch() { + // @@protoc_insertion_point(field_release:proto.HSMDateTime.unixEpoch) + if (_internal_has_unixepoch()) { + clear_has_datetimeOneof(); + ::proto::HSMDateTimeUnixEpoch* temp = datetimeOneof_.unixepoch_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + datetimeOneof_.unixepoch_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::HSMDateTimeUnixEpoch& HSMDateTime::_internal_unixepoch() const { + return _internal_has_unixepoch() + ? *datetimeOneof_.unixepoch_ + : reinterpret_cast< ::proto::HSMDateTimeUnixEpoch&>(::proto::_HSMDateTimeUnixEpoch_default_instance_); +} +inline const ::proto::HSMDateTimeUnixEpoch& HSMDateTime::unixepoch() const { + // @@protoc_insertion_point(field_get:proto.HSMDateTime.unixEpoch) + return _internal_unixepoch(); +} +inline ::proto::HSMDateTimeUnixEpoch* HSMDateTime::unsafe_arena_release_unixepoch() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.HSMDateTime.unixEpoch) + if (_internal_has_unixepoch()) { + clear_has_datetimeOneof(); + ::proto::HSMDateTimeUnixEpoch* temp = datetimeOneof_.unixepoch_; + datetimeOneof_.unixepoch_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void HSMDateTime::unsafe_arena_set_allocated_unixepoch(::proto::HSMDateTimeUnixEpoch* unixepoch) { + clear_datetimeOneof(); + if (unixepoch) { + set_has_unixepoch(); + datetimeOneof_.unixepoch_ = unixepoch; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.HSMDateTime.unixEpoch) +} +inline ::proto::HSMDateTimeUnixEpoch* HSMDateTime::_internal_mutable_unixepoch() { + if (!_internal_has_unixepoch()) { + clear_datetimeOneof(); + set_has_unixepoch(); + datetimeOneof_.unixepoch_ = CreateMaybeMessage< ::proto::HSMDateTimeUnixEpoch >(GetArena()); + } + return datetimeOneof_.unixepoch_; +} +inline ::proto::HSMDateTimeUnixEpoch* HSMDateTime::mutable_unixepoch() { + // @@protoc_insertion_point(field_mutable:proto.HSMDateTime.unixEpoch) + return _internal_mutable_unixepoch(); +} + +inline bool HSMDateTime::has_datetimeOneof() const { + return datetimeOneof_case() != DATETIMEONEOF_NOT_SET; +} +inline void HSMDateTime::clear_has_datetimeOneof() { + _oneof_case_[0] = DATETIMEONEOF_NOT_SET; +} +inline HSMDateTime::DatetimeOneofCase HSMDateTime::datetimeOneof_case() const { + return HSMDateTime::DatetimeOneofCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// HSMLocalizableParameter + +// optional string default = 1; +inline bool HSMLocalizableParameter::_internal_has_default_() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool HSMLocalizableParameter::has_default_() const { + return _internal_has_default_(); +} +inline void HSMLocalizableParameter::clear_default_() { + default__.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& HSMLocalizableParameter::default_() const { + // @@protoc_insertion_point(field_get:proto.HSMLocalizableParameter.default) + return _internal_default_(); +} +inline void HSMLocalizableParameter::set_default_(const std::string& value) { + _internal_set_default_(value); + // @@protoc_insertion_point(field_set:proto.HSMLocalizableParameter.default) +} +inline std::string* HSMLocalizableParameter::mutable_default_() { + // @@protoc_insertion_point(field_mutable:proto.HSMLocalizableParameter.default) + return _internal_mutable_default_(); +} +inline const std::string& HSMLocalizableParameter::_internal_default_() const { + return default__.Get(); +} +inline void HSMLocalizableParameter::_internal_set_default_(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + default__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HSMLocalizableParameter::set_default_(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + default__.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HSMLocalizableParameter.default) +} +inline void HSMLocalizableParameter::set_default_(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + default__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HSMLocalizableParameter.default) +} +inline void HSMLocalizableParameter::set_default_(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + default__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HSMLocalizableParameter.default) +} +inline std::string* HSMLocalizableParameter::_internal_mutable_default_() { + _has_bits_[0] |= 0x00000001u; + return default__.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HSMLocalizableParameter::release_default_() { + // @@protoc_insertion_point(field_release:proto.HSMLocalizableParameter.default) + if (!_internal_has_default_()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return default__.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HSMLocalizableParameter::set_allocated_default_(std::string* default_) { + if (default_ != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + default__.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), default_, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HSMLocalizableParameter.default) +} + +// .proto.HSMCurrency currency = 2; +inline bool HSMLocalizableParameter::_internal_has_currency() const { + return paramOneof_case() == kCurrency; +} +inline bool HSMLocalizableParameter::has_currency() const { + return _internal_has_currency(); +} +inline void HSMLocalizableParameter::set_has_currency() { + _oneof_case_[0] = kCurrency; +} +inline void HSMLocalizableParameter::clear_currency() { + if (_internal_has_currency()) { + if (GetArena() == nullptr) { + delete paramOneof_.currency_; + } + clear_has_paramOneof(); + } +} +inline ::proto::HSMCurrency* HSMLocalizableParameter::release_currency() { + // @@protoc_insertion_point(field_release:proto.HSMLocalizableParameter.currency) + if (_internal_has_currency()) { + clear_has_paramOneof(); + ::proto::HSMCurrency* temp = paramOneof_.currency_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + paramOneof_.currency_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::HSMCurrency& HSMLocalizableParameter::_internal_currency() const { + return _internal_has_currency() + ? *paramOneof_.currency_ + : reinterpret_cast< ::proto::HSMCurrency&>(::proto::_HSMCurrency_default_instance_); +} +inline const ::proto::HSMCurrency& HSMLocalizableParameter::currency() const { + // @@protoc_insertion_point(field_get:proto.HSMLocalizableParameter.currency) + return _internal_currency(); +} +inline ::proto::HSMCurrency* HSMLocalizableParameter::unsafe_arena_release_currency() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.HSMLocalizableParameter.currency) + if (_internal_has_currency()) { + clear_has_paramOneof(); + ::proto::HSMCurrency* temp = paramOneof_.currency_; + paramOneof_.currency_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void HSMLocalizableParameter::unsafe_arena_set_allocated_currency(::proto::HSMCurrency* currency) { + clear_paramOneof(); + if (currency) { + set_has_currency(); + paramOneof_.currency_ = currency; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.HSMLocalizableParameter.currency) +} +inline ::proto::HSMCurrency* HSMLocalizableParameter::_internal_mutable_currency() { + if (!_internal_has_currency()) { + clear_paramOneof(); + set_has_currency(); + paramOneof_.currency_ = CreateMaybeMessage< ::proto::HSMCurrency >(GetArena()); + } + return paramOneof_.currency_; +} +inline ::proto::HSMCurrency* HSMLocalizableParameter::mutable_currency() { + // @@protoc_insertion_point(field_mutable:proto.HSMLocalizableParameter.currency) + return _internal_mutable_currency(); +} + +// .proto.HSMDateTime dateTime = 3; +inline bool HSMLocalizableParameter::_internal_has_datetime() const { + return paramOneof_case() == kDateTime; +} +inline bool HSMLocalizableParameter::has_datetime() const { + return _internal_has_datetime(); +} +inline void HSMLocalizableParameter::set_has_datetime() { + _oneof_case_[0] = kDateTime; +} +inline void HSMLocalizableParameter::clear_datetime() { + if (_internal_has_datetime()) { + if (GetArena() == nullptr) { + delete paramOneof_.datetime_; + } + clear_has_paramOneof(); + } +} +inline ::proto::HSMDateTime* HSMLocalizableParameter::release_datetime() { + // @@protoc_insertion_point(field_release:proto.HSMLocalizableParameter.dateTime) + if (_internal_has_datetime()) { + clear_has_paramOneof(); + ::proto::HSMDateTime* temp = paramOneof_.datetime_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + paramOneof_.datetime_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::HSMDateTime& HSMLocalizableParameter::_internal_datetime() const { + return _internal_has_datetime() + ? *paramOneof_.datetime_ + : reinterpret_cast< ::proto::HSMDateTime&>(::proto::_HSMDateTime_default_instance_); +} +inline const ::proto::HSMDateTime& HSMLocalizableParameter::datetime() const { + // @@protoc_insertion_point(field_get:proto.HSMLocalizableParameter.dateTime) + return _internal_datetime(); +} +inline ::proto::HSMDateTime* HSMLocalizableParameter::unsafe_arena_release_datetime() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.HSMLocalizableParameter.dateTime) + if (_internal_has_datetime()) { + clear_has_paramOneof(); + ::proto::HSMDateTime* temp = paramOneof_.datetime_; + paramOneof_.datetime_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void HSMLocalizableParameter::unsafe_arena_set_allocated_datetime(::proto::HSMDateTime* datetime) { + clear_paramOneof(); + if (datetime) { + set_has_datetime(); + paramOneof_.datetime_ = datetime; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.HSMLocalizableParameter.dateTime) +} +inline ::proto::HSMDateTime* HSMLocalizableParameter::_internal_mutable_datetime() { + if (!_internal_has_datetime()) { + clear_paramOneof(); + set_has_datetime(); + paramOneof_.datetime_ = CreateMaybeMessage< ::proto::HSMDateTime >(GetArena()); + } + return paramOneof_.datetime_; +} +inline ::proto::HSMDateTime* HSMLocalizableParameter::mutable_datetime() { + // @@protoc_insertion_point(field_mutable:proto.HSMLocalizableParameter.dateTime) + return _internal_mutable_datetime(); +} + +inline bool HSMLocalizableParameter::has_paramOneof() const { + return paramOneof_case() != PARAMONEOF_NOT_SET; +} +inline void HSMLocalizableParameter::clear_has_paramOneof() { + _oneof_case_[0] = PARAMONEOF_NOT_SET; +} +inline HSMLocalizableParameter::ParamOneofCase HSMLocalizableParameter::paramOneof_case() const { + return HSMLocalizableParameter::ParamOneofCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// HighlyStructuredMessage + +// optional string namespace = 1; +inline bool HighlyStructuredMessage::_internal_has_namespace_() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool HighlyStructuredMessage::has_namespace_() const { + return _internal_has_namespace_(); +} +inline void HighlyStructuredMessage::clear_namespace_() { + namespace__.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& HighlyStructuredMessage::namespace_() const { + // @@protoc_insertion_point(field_get:proto.HighlyStructuredMessage.namespace) + return _internal_namespace_(); +} +inline void HighlyStructuredMessage::set_namespace_(const std::string& value) { + _internal_set_namespace_(value); + // @@protoc_insertion_point(field_set:proto.HighlyStructuredMessage.namespace) +} +inline std::string* HighlyStructuredMessage::mutable_namespace_() { + // @@protoc_insertion_point(field_mutable:proto.HighlyStructuredMessage.namespace) + return _internal_mutable_namespace_(); +} +inline const std::string& HighlyStructuredMessage::_internal_namespace_() const { + return namespace__.Get(); +} +inline void HighlyStructuredMessage::_internal_set_namespace_(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + namespace__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HighlyStructuredMessage::set_namespace_(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + namespace__.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HighlyStructuredMessage.namespace) +} +inline void HighlyStructuredMessage::set_namespace_(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + namespace__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HighlyStructuredMessage.namespace) +} +inline void HighlyStructuredMessage::set_namespace_(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + namespace__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HighlyStructuredMessage.namespace) +} +inline std::string* HighlyStructuredMessage::_internal_mutable_namespace_() { + _has_bits_[0] |= 0x00000001u; + return namespace__.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HighlyStructuredMessage::release_namespace_() { + // @@protoc_insertion_point(field_release:proto.HighlyStructuredMessage.namespace) + if (!_internal_has_namespace_()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return namespace__.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HighlyStructuredMessage::set_allocated_namespace_(std::string* namespace_) { + if (namespace_ != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + namespace__.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), namespace_, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HighlyStructuredMessage.namespace) +} + +// optional string elementName = 2; +inline bool HighlyStructuredMessage::_internal_has_elementname() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool HighlyStructuredMessage::has_elementname() const { + return _internal_has_elementname(); +} +inline void HighlyStructuredMessage::clear_elementname() { + elementname_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& HighlyStructuredMessage::elementname() const { + // @@protoc_insertion_point(field_get:proto.HighlyStructuredMessage.elementName) + return _internal_elementname(); +} +inline void HighlyStructuredMessage::set_elementname(const std::string& value) { + _internal_set_elementname(value); + // @@protoc_insertion_point(field_set:proto.HighlyStructuredMessage.elementName) +} +inline std::string* HighlyStructuredMessage::mutable_elementname() { + // @@protoc_insertion_point(field_mutable:proto.HighlyStructuredMessage.elementName) + return _internal_mutable_elementname(); +} +inline const std::string& HighlyStructuredMessage::_internal_elementname() const { + return elementname_.Get(); +} +inline void HighlyStructuredMessage::_internal_set_elementname(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + elementname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HighlyStructuredMessage::set_elementname(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + elementname_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HighlyStructuredMessage.elementName) +} +inline void HighlyStructuredMessage::set_elementname(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + elementname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HighlyStructuredMessage.elementName) +} +inline void HighlyStructuredMessage::set_elementname(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + elementname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HighlyStructuredMessage.elementName) +} +inline std::string* HighlyStructuredMessage::_internal_mutable_elementname() { + _has_bits_[0] |= 0x00000002u; + return elementname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HighlyStructuredMessage::release_elementname() { + // @@protoc_insertion_point(field_release:proto.HighlyStructuredMessage.elementName) + if (!_internal_has_elementname()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return elementname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HighlyStructuredMessage::set_allocated_elementname(std::string* elementname) { + if (elementname != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + elementname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), elementname, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HighlyStructuredMessage.elementName) +} + +// repeated string params = 3; +inline int HighlyStructuredMessage::_internal_params_size() const { + return params_.size(); +} +inline int HighlyStructuredMessage::params_size() const { + return _internal_params_size(); +} +inline void HighlyStructuredMessage::clear_params() { + params_.Clear(); +} +inline std::string* HighlyStructuredMessage::add_params() { + // @@protoc_insertion_point(field_add_mutable:proto.HighlyStructuredMessage.params) + return _internal_add_params(); +} +inline const std::string& HighlyStructuredMessage::_internal_params(int index) const { + return params_.Get(index); +} +inline const std::string& HighlyStructuredMessage::params(int index) const { + // @@protoc_insertion_point(field_get:proto.HighlyStructuredMessage.params) + return _internal_params(index); +} +inline std::string* HighlyStructuredMessage::mutable_params(int index) { + // @@protoc_insertion_point(field_mutable:proto.HighlyStructuredMessage.params) + return params_.Mutable(index); +} +inline void HighlyStructuredMessage::set_params(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:proto.HighlyStructuredMessage.params) + params_.Mutable(index)->assign(value); +} +inline void HighlyStructuredMessage::set_params(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:proto.HighlyStructuredMessage.params) + params_.Mutable(index)->assign(std::move(value)); +} +inline void HighlyStructuredMessage::set_params(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + params_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:proto.HighlyStructuredMessage.params) +} +inline void HighlyStructuredMessage::set_params(int index, const char* value, size_t size) { + params_.Mutable(index)->assign( + reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:proto.HighlyStructuredMessage.params) +} +inline std::string* HighlyStructuredMessage::_internal_add_params() { + return params_.Add(); +} +inline void HighlyStructuredMessage::add_params(const std::string& value) { + params_.Add()->assign(value); + // @@protoc_insertion_point(field_add:proto.HighlyStructuredMessage.params) +} +inline void HighlyStructuredMessage::add_params(std::string&& value) { + params_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:proto.HighlyStructuredMessage.params) +} +inline void HighlyStructuredMessage::add_params(const char* value) { + GOOGLE_DCHECK(value != nullptr); + params_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:proto.HighlyStructuredMessage.params) +} +inline void HighlyStructuredMessage::add_params(const char* value, size_t size) { + params_.Add()->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_add_pointer:proto.HighlyStructuredMessage.params) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& +HighlyStructuredMessage::params() const { + // @@protoc_insertion_point(field_list:proto.HighlyStructuredMessage.params) + return params_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* +HighlyStructuredMessage::mutable_params() { + // @@protoc_insertion_point(field_mutable_list:proto.HighlyStructuredMessage.params) + return ¶ms_; +} + +// optional string fallbackLg = 4; +inline bool HighlyStructuredMessage::_internal_has_fallbacklg() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool HighlyStructuredMessage::has_fallbacklg() const { + return _internal_has_fallbacklg(); +} +inline void HighlyStructuredMessage::clear_fallbacklg() { + fallbacklg_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& HighlyStructuredMessage::fallbacklg() const { + // @@protoc_insertion_point(field_get:proto.HighlyStructuredMessage.fallbackLg) + return _internal_fallbacklg(); +} +inline void HighlyStructuredMessage::set_fallbacklg(const std::string& value) { + _internal_set_fallbacklg(value); + // @@protoc_insertion_point(field_set:proto.HighlyStructuredMessage.fallbackLg) +} +inline std::string* HighlyStructuredMessage::mutable_fallbacklg() { + // @@protoc_insertion_point(field_mutable:proto.HighlyStructuredMessage.fallbackLg) + return _internal_mutable_fallbacklg(); +} +inline const std::string& HighlyStructuredMessage::_internal_fallbacklg() const { + return fallbacklg_.Get(); +} +inline void HighlyStructuredMessage::_internal_set_fallbacklg(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + fallbacklg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HighlyStructuredMessage::set_fallbacklg(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + fallbacklg_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HighlyStructuredMessage.fallbackLg) +} +inline void HighlyStructuredMessage::set_fallbacklg(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + fallbacklg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HighlyStructuredMessage.fallbackLg) +} +inline void HighlyStructuredMessage::set_fallbacklg(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + fallbacklg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HighlyStructuredMessage.fallbackLg) +} +inline std::string* HighlyStructuredMessage::_internal_mutable_fallbacklg() { + _has_bits_[0] |= 0x00000004u; + return fallbacklg_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HighlyStructuredMessage::release_fallbacklg() { + // @@protoc_insertion_point(field_release:proto.HighlyStructuredMessage.fallbackLg) + if (!_internal_has_fallbacklg()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return fallbacklg_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HighlyStructuredMessage::set_allocated_fallbacklg(std::string* fallbacklg) { + if (fallbacklg != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + fallbacklg_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fallbacklg, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HighlyStructuredMessage.fallbackLg) +} + +// optional string fallbackLc = 5; +inline bool HighlyStructuredMessage::_internal_has_fallbacklc() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool HighlyStructuredMessage::has_fallbacklc() const { + return _internal_has_fallbacklc(); +} +inline void HighlyStructuredMessage::clear_fallbacklc() { + fallbacklc_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& HighlyStructuredMessage::fallbacklc() const { + // @@protoc_insertion_point(field_get:proto.HighlyStructuredMessage.fallbackLc) + return _internal_fallbacklc(); +} +inline void HighlyStructuredMessage::set_fallbacklc(const std::string& value) { + _internal_set_fallbacklc(value); + // @@protoc_insertion_point(field_set:proto.HighlyStructuredMessage.fallbackLc) +} +inline std::string* HighlyStructuredMessage::mutable_fallbacklc() { + // @@protoc_insertion_point(field_mutable:proto.HighlyStructuredMessage.fallbackLc) + return _internal_mutable_fallbacklc(); +} +inline const std::string& HighlyStructuredMessage::_internal_fallbacklc() const { + return fallbacklc_.Get(); +} +inline void HighlyStructuredMessage::_internal_set_fallbacklc(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + fallbacklc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HighlyStructuredMessage::set_fallbacklc(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + fallbacklc_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HighlyStructuredMessage.fallbackLc) +} +inline void HighlyStructuredMessage::set_fallbacklc(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + fallbacklc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HighlyStructuredMessage.fallbackLc) +} +inline void HighlyStructuredMessage::set_fallbacklc(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + fallbacklc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HighlyStructuredMessage.fallbackLc) +} +inline std::string* HighlyStructuredMessage::_internal_mutable_fallbacklc() { + _has_bits_[0] |= 0x00000008u; + return fallbacklc_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HighlyStructuredMessage::release_fallbacklc() { + // @@protoc_insertion_point(field_release:proto.HighlyStructuredMessage.fallbackLc) + if (!_internal_has_fallbacklc()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + return fallbacklc_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HighlyStructuredMessage::set_allocated_fallbacklc(std::string* fallbacklc) { + if (fallbacklc != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + fallbacklc_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fallbacklc, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HighlyStructuredMessage.fallbackLc) +} + +// repeated .proto.HSMLocalizableParameter localizableParams = 6; +inline int HighlyStructuredMessage::_internal_localizableparams_size() const { + return localizableparams_.size(); +} +inline int HighlyStructuredMessage::localizableparams_size() const { + return _internal_localizableparams_size(); +} +inline void HighlyStructuredMessage::clear_localizableparams() { + localizableparams_.Clear(); +} +inline ::proto::HSMLocalizableParameter* HighlyStructuredMessage::mutable_localizableparams(int index) { + // @@protoc_insertion_point(field_mutable:proto.HighlyStructuredMessage.localizableParams) + return localizableparams_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::HSMLocalizableParameter >* +HighlyStructuredMessage::mutable_localizableparams() { + // @@protoc_insertion_point(field_mutable_list:proto.HighlyStructuredMessage.localizableParams) + return &localizableparams_; +} +inline const ::proto::HSMLocalizableParameter& HighlyStructuredMessage::_internal_localizableparams(int index) const { + return localizableparams_.Get(index); +} +inline const ::proto::HSMLocalizableParameter& HighlyStructuredMessage::localizableparams(int index) const { + // @@protoc_insertion_point(field_get:proto.HighlyStructuredMessage.localizableParams) + return _internal_localizableparams(index); +} +inline ::proto::HSMLocalizableParameter* HighlyStructuredMessage::_internal_add_localizableparams() { + return localizableparams_.Add(); +} +inline ::proto::HSMLocalizableParameter* HighlyStructuredMessage::add_localizableparams() { + // @@protoc_insertion_point(field_add:proto.HighlyStructuredMessage.localizableParams) + return _internal_add_localizableparams(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::HSMLocalizableParameter >& +HighlyStructuredMessage::localizableparams() const { + // @@protoc_insertion_point(field_list:proto.HighlyStructuredMessage.localizableParams) + return localizableparams_; +} + +// optional string deterministicLg = 7; +inline bool HighlyStructuredMessage::_internal_has_deterministiclg() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool HighlyStructuredMessage::has_deterministiclg() const { + return _internal_has_deterministiclg(); +} +inline void HighlyStructuredMessage::clear_deterministiclg() { + deterministiclg_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000010u; +} +inline const std::string& HighlyStructuredMessage::deterministiclg() const { + // @@protoc_insertion_point(field_get:proto.HighlyStructuredMessage.deterministicLg) + return _internal_deterministiclg(); +} +inline void HighlyStructuredMessage::set_deterministiclg(const std::string& value) { + _internal_set_deterministiclg(value); + // @@protoc_insertion_point(field_set:proto.HighlyStructuredMessage.deterministicLg) +} +inline std::string* HighlyStructuredMessage::mutable_deterministiclg() { + // @@protoc_insertion_point(field_mutable:proto.HighlyStructuredMessage.deterministicLg) + return _internal_mutable_deterministiclg(); +} +inline const std::string& HighlyStructuredMessage::_internal_deterministiclg() const { + return deterministiclg_.Get(); +} +inline void HighlyStructuredMessage::_internal_set_deterministiclg(const std::string& value) { + _has_bits_[0] |= 0x00000010u; + deterministiclg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HighlyStructuredMessage::set_deterministiclg(std::string&& value) { + _has_bits_[0] |= 0x00000010u; + deterministiclg_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HighlyStructuredMessage.deterministicLg) +} +inline void HighlyStructuredMessage::set_deterministiclg(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000010u; + deterministiclg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HighlyStructuredMessage.deterministicLg) +} +inline void HighlyStructuredMessage::set_deterministiclg(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000010u; + deterministiclg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HighlyStructuredMessage.deterministicLg) +} +inline std::string* HighlyStructuredMessage::_internal_mutable_deterministiclg() { + _has_bits_[0] |= 0x00000010u; + return deterministiclg_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HighlyStructuredMessage::release_deterministiclg() { + // @@protoc_insertion_point(field_release:proto.HighlyStructuredMessage.deterministicLg) + if (!_internal_has_deterministiclg()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000010u; + return deterministiclg_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HighlyStructuredMessage::set_allocated_deterministiclg(std::string* deterministiclg) { + if (deterministiclg != nullptr) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + deterministiclg_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), deterministiclg, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HighlyStructuredMessage.deterministicLg) +} + +// optional string deterministicLc = 8; +inline bool HighlyStructuredMessage::_internal_has_deterministiclc() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool HighlyStructuredMessage::has_deterministiclc() const { + return _internal_has_deterministiclc(); +} +inline void HighlyStructuredMessage::clear_deterministiclc() { + deterministiclc_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000020u; +} +inline const std::string& HighlyStructuredMessage::deterministiclc() const { + // @@protoc_insertion_point(field_get:proto.HighlyStructuredMessage.deterministicLc) + return _internal_deterministiclc(); +} +inline void HighlyStructuredMessage::set_deterministiclc(const std::string& value) { + _internal_set_deterministiclc(value); + // @@protoc_insertion_point(field_set:proto.HighlyStructuredMessage.deterministicLc) +} +inline std::string* HighlyStructuredMessage::mutable_deterministiclc() { + // @@protoc_insertion_point(field_mutable:proto.HighlyStructuredMessage.deterministicLc) + return _internal_mutable_deterministiclc(); +} +inline const std::string& HighlyStructuredMessage::_internal_deterministiclc() const { + return deterministiclc_.Get(); +} +inline void HighlyStructuredMessage::_internal_set_deterministiclc(const std::string& value) { + _has_bits_[0] |= 0x00000020u; + deterministiclc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HighlyStructuredMessage::set_deterministiclc(std::string&& value) { + _has_bits_[0] |= 0x00000020u; + deterministiclc_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HighlyStructuredMessage.deterministicLc) +} +inline void HighlyStructuredMessage::set_deterministiclc(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000020u; + deterministiclc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HighlyStructuredMessage.deterministicLc) +} +inline void HighlyStructuredMessage::set_deterministiclc(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000020u; + deterministiclc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HighlyStructuredMessage.deterministicLc) +} +inline std::string* HighlyStructuredMessage::_internal_mutable_deterministiclc() { + _has_bits_[0] |= 0x00000020u; + return deterministiclc_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HighlyStructuredMessage::release_deterministiclc() { + // @@protoc_insertion_point(field_release:proto.HighlyStructuredMessage.deterministicLc) + if (!_internal_has_deterministiclc()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000020u; + return deterministiclc_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HighlyStructuredMessage::set_allocated_deterministiclc(std::string* deterministiclc) { + if (deterministiclc != nullptr) { + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + deterministiclc_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), deterministiclc, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HighlyStructuredMessage.deterministicLc) +} + +// optional .proto.TemplateMessage hydratedHsm = 9; +inline bool HighlyStructuredMessage::_internal_has_hydratedhsm() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + PROTOBUF_ASSUME(!value || hydratedhsm_ != nullptr); + return value; +} +inline bool HighlyStructuredMessage::has_hydratedhsm() const { + return _internal_has_hydratedhsm(); +} +inline void HighlyStructuredMessage::clear_hydratedhsm() { + if (hydratedhsm_ != nullptr) hydratedhsm_->Clear(); + _has_bits_[0] &= ~0x00000040u; +} +inline const ::proto::TemplateMessage& HighlyStructuredMessage::_internal_hydratedhsm() const { + const ::proto::TemplateMessage* p = hydratedhsm_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::TemplateMessage&>( + ::proto::_TemplateMessage_default_instance_); +} +inline const ::proto::TemplateMessage& HighlyStructuredMessage::hydratedhsm() const { + // @@protoc_insertion_point(field_get:proto.HighlyStructuredMessage.hydratedHsm) + return _internal_hydratedhsm(); +} +inline void HighlyStructuredMessage::unsafe_arena_set_allocated_hydratedhsm( + ::proto::TemplateMessage* hydratedhsm) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(hydratedhsm_); + } + hydratedhsm_ = hydratedhsm; + if (hydratedhsm) { + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.HighlyStructuredMessage.hydratedHsm) +} +inline ::proto::TemplateMessage* HighlyStructuredMessage::release_hydratedhsm() { + _has_bits_[0] &= ~0x00000040u; + ::proto::TemplateMessage* temp = hydratedhsm_; + hydratedhsm_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::TemplateMessage* HighlyStructuredMessage::unsafe_arena_release_hydratedhsm() { + // @@protoc_insertion_point(field_release:proto.HighlyStructuredMessage.hydratedHsm) + _has_bits_[0] &= ~0x00000040u; + ::proto::TemplateMessage* temp = hydratedhsm_; + hydratedhsm_ = nullptr; + return temp; +} +inline ::proto::TemplateMessage* HighlyStructuredMessage::_internal_mutable_hydratedhsm() { + _has_bits_[0] |= 0x00000040u; + if (hydratedhsm_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::TemplateMessage>(GetArena()); + hydratedhsm_ = p; + } + return hydratedhsm_; +} +inline ::proto::TemplateMessage* HighlyStructuredMessage::mutable_hydratedhsm() { + // @@protoc_insertion_point(field_mutable:proto.HighlyStructuredMessage.hydratedHsm) + return _internal_mutable_hydratedhsm(); +} +inline void HighlyStructuredMessage::set_allocated_hydratedhsm(::proto::TemplateMessage* hydratedhsm) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete hydratedhsm_; + } + if (hydratedhsm) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(hydratedhsm); + if (message_arena != submessage_arena) { + hydratedhsm = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, hydratedhsm, submessage_arena); + } + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + hydratedhsm_ = hydratedhsm; + // @@protoc_insertion_point(field_set_allocated:proto.HighlyStructuredMessage.hydratedHsm) +} + +// ------------------------------------------------------------------- + +// SendPaymentMessage + +// optional .proto.Message noteMessage = 2; +inline bool SendPaymentMessage::_internal_has_notemessage() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || notemessage_ != nullptr); + return value; +} +inline bool SendPaymentMessage::has_notemessage() const { + return _internal_has_notemessage(); +} +inline void SendPaymentMessage::clear_notemessage() { + if (notemessage_ != nullptr) notemessage_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::proto::Message& SendPaymentMessage::_internal_notemessage() const { + const ::proto::Message* p = notemessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::Message&>( + ::proto::_Message_default_instance_); +} +inline const ::proto::Message& SendPaymentMessage::notemessage() const { + // @@protoc_insertion_point(field_get:proto.SendPaymentMessage.noteMessage) + return _internal_notemessage(); +} +inline void SendPaymentMessage::unsafe_arena_set_allocated_notemessage( + ::proto::Message* notemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(notemessage_); + } + notemessage_ = notemessage; + if (notemessage) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.SendPaymentMessage.noteMessage) +} +inline ::proto::Message* SendPaymentMessage::release_notemessage() { + _has_bits_[0] &= ~0x00000001u; + ::proto::Message* temp = notemessage_; + notemessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::Message* SendPaymentMessage::unsafe_arena_release_notemessage() { + // @@protoc_insertion_point(field_release:proto.SendPaymentMessage.noteMessage) + _has_bits_[0] &= ~0x00000001u; + ::proto::Message* temp = notemessage_; + notemessage_ = nullptr; + return temp; +} +inline ::proto::Message* SendPaymentMessage::_internal_mutable_notemessage() { + _has_bits_[0] |= 0x00000001u; + if (notemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::Message>(GetArena()); + notemessage_ = p; + } + return notemessage_; +} +inline ::proto::Message* SendPaymentMessage::mutable_notemessage() { + // @@protoc_insertion_point(field_mutable:proto.SendPaymentMessage.noteMessage) + return _internal_mutable_notemessage(); +} +inline void SendPaymentMessage::set_allocated_notemessage(::proto::Message* notemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete notemessage_; + } + if (notemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(notemessage); + if (message_arena != submessage_arena) { + notemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, notemessage, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + notemessage_ = notemessage; + // @@protoc_insertion_point(field_set_allocated:proto.SendPaymentMessage.noteMessage) +} + +// optional .proto.MessageKey requestMessageKey = 3; +inline bool SendPaymentMessage::_internal_has_requestmessagekey() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || requestmessagekey_ != nullptr); + return value; +} +inline bool SendPaymentMessage::has_requestmessagekey() const { + return _internal_has_requestmessagekey(); +} +inline void SendPaymentMessage::clear_requestmessagekey() { + if (requestmessagekey_ != nullptr) requestmessagekey_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::proto::MessageKey& SendPaymentMessage::_internal_requestmessagekey() const { + const ::proto::MessageKey* p = requestmessagekey_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::MessageKey&>( + ::proto::_MessageKey_default_instance_); +} +inline const ::proto::MessageKey& SendPaymentMessage::requestmessagekey() const { + // @@protoc_insertion_point(field_get:proto.SendPaymentMessage.requestMessageKey) + return _internal_requestmessagekey(); +} +inline void SendPaymentMessage::unsafe_arena_set_allocated_requestmessagekey( + ::proto::MessageKey* requestmessagekey) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(requestmessagekey_); + } + requestmessagekey_ = requestmessagekey; + if (requestmessagekey) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.SendPaymentMessage.requestMessageKey) +} +inline ::proto::MessageKey* SendPaymentMessage::release_requestmessagekey() { + _has_bits_[0] &= ~0x00000002u; + ::proto::MessageKey* temp = requestmessagekey_; + requestmessagekey_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::MessageKey* SendPaymentMessage::unsafe_arena_release_requestmessagekey() { + // @@protoc_insertion_point(field_release:proto.SendPaymentMessage.requestMessageKey) + _has_bits_[0] &= ~0x00000002u; + ::proto::MessageKey* temp = requestmessagekey_; + requestmessagekey_ = nullptr; + return temp; +} +inline ::proto::MessageKey* SendPaymentMessage::_internal_mutable_requestmessagekey() { + _has_bits_[0] |= 0x00000002u; + if (requestmessagekey_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArena()); + requestmessagekey_ = p; + } + return requestmessagekey_; +} +inline ::proto::MessageKey* SendPaymentMessage::mutable_requestmessagekey() { + // @@protoc_insertion_point(field_mutable:proto.SendPaymentMessage.requestMessageKey) + return _internal_mutable_requestmessagekey(); +} +inline void SendPaymentMessage::set_allocated_requestmessagekey(::proto::MessageKey* requestmessagekey) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete requestmessagekey_; + } + if (requestmessagekey) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(requestmessagekey); + if (message_arena != submessage_arena) { + requestmessagekey = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, requestmessagekey, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + requestmessagekey_ = requestmessagekey; + // @@protoc_insertion_point(field_set_allocated:proto.SendPaymentMessage.requestMessageKey) +} + +// ------------------------------------------------------------------- + +// RequestPaymentMessage + +// optional .proto.Message noteMessage = 4; +inline bool RequestPaymentMessage::_internal_has_notemessage() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || notemessage_ != nullptr); + return value; +} +inline bool RequestPaymentMessage::has_notemessage() const { + return _internal_has_notemessage(); +} +inline void RequestPaymentMessage::clear_notemessage() { + if (notemessage_ != nullptr) notemessage_->Clear(); + _has_bits_[0] &= ~0x00000004u; +} +inline const ::proto::Message& RequestPaymentMessage::_internal_notemessage() const { + const ::proto::Message* p = notemessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::Message&>( + ::proto::_Message_default_instance_); +} +inline const ::proto::Message& RequestPaymentMessage::notemessage() const { + // @@protoc_insertion_point(field_get:proto.RequestPaymentMessage.noteMessage) + return _internal_notemessage(); +} +inline void RequestPaymentMessage::unsafe_arena_set_allocated_notemessage( + ::proto::Message* notemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(notemessage_); + } + notemessage_ = notemessage; + if (notemessage) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.RequestPaymentMessage.noteMessage) +} +inline ::proto::Message* RequestPaymentMessage::release_notemessage() { + _has_bits_[0] &= ~0x00000004u; + ::proto::Message* temp = notemessage_; + notemessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::Message* RequestPaymentMessage::unsafe_arena_release_notemessage() { + // @@protoc_insertion_point(field_release:proto.RequestPaymentMessage.noteMessage) + _has_bits_[0] &= ~0x00000004u; + ::proto::Message* temp = notemessage_; + notemessage_ = nullptr; + return temp; +} +inline ::proto::Message* RequestPaymentMessage::_internal_mutable_notemessage() { + _has_bits_[0] |= 0x00000004u; + if (notemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::Message>(GetArena()); + notemessage_ = p; + } + return notemessage_; +} +inline ::proto::Message* RequestPaymentMessage::mutable_notemessage() { + // @@protoc_insertion_point(field_mutable:proto.RequestPaymentMessage.noteMessage) + return _internal_mutable_notemessage(); +} +inline void RequestPaymentMessage::set_allocated_notemessage(::proto::Message* notemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete notemessage_; + } + if (notemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(notemessage); + if (message_arena != submessage_arena) { + notemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, notemessage, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + notemessage_ = notemessage; + // @@protoc_insertion_point(field_set_allocated:proto.RequestPaymentMessage.noteMessage) +} + +// optional string currencyCodeIso4217 = 1; +inline bool RequestPaymentMessage::_internal_has_currencycodeiso4217() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool RequestPaymentMessage::has_currencycodeiso4217() const { + return _internal_has_currencycodeiso4217(); +} +inline void RequestPaymentMessage::clear_currencycodeiso4217() { + currencycodeiso4217_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& RequestPaymentMessage::currencycodeiso4217() const { + // @@protoc_insertion_point(field_get:proto.RequestPaymentMessage.currencyCodeIso4217) + return _internal_currencycodeiso4217(); +} +inline void RequestPaymentMessage::set_currencycodeiso4217(const std::string& value) { + _internal_set_currencycodeiso4217(value); + // @@protoc_insertion_point(field_set:proto.RequestPaymentMessage.currencyCodeIso4217) +} +inline std::string* RequestPaymentMessage::mutable_currencycodeiso4217() { + // @@protoc_insertion_point(field_mutable:proto.RequestPaymentMessage.currencyCodeIso4217) + return _internal_mutable_currencycodeiso4217(); +} +inline const std::string& RequestPaymentMessage::_internal_currencycodeiso4217() const { + return currencycodeiso4217_.Get(); +} +inline void RequestPaymentMessage::_internal_set_currencycodeiso4217(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + currencycodeiso4217_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void RequestPaymentMessage::set_currencycodeiso4217(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + currencycodeiso4217_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.RequestPaymentMessage.currencyCodeIso4217) +} +inline void RequestPaymentMessage::set_currencycodeiso4217(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + currencycodeiso4217_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.RequestPaymentMessage.currencyCodeIso4217) +} +inline void RequestPaymentMessage::set_currencycodeiso4217(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + currencycodeiso4217_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.RequestPaymentMessage.currencyCodeIso4217) +} +inline std::string* RequestPaymentMessage::_internal_mutable_currencycodeiso4217() { + _has_bits_[0] |= 0x00000001u; + return currencycodeiso4217_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* RequestPaymentMessage::release_currencycodeiso4217() { + // @@protoc_insertion_point(field_release:proto.RequestPaymentMessage.currencyCodeIso4217) + if (!_internal_has_currencycodeiso4217()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return currencycodeiso4217_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void RequestPaymentMessage::set_allocated_currencycodeiso4217(std::string* currencycodeiso4217) { + if (currencycodeiso4217 != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + currencycodeiso4217_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), currencycodeiso4217, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.RequestPaymentMessage.currencyCodeIso4217) +} + +// optional uint64 amount1000 = 2; +inline bool RequestPaymentMessage::_internal_has_amount1000() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool RequestPaymentMessage::has_amount1000() const { + return _internal_has_amount1000(); +} +inline void RequestPaymentMessage::clear_amount1000() { + amount1000_ = PROTOBUF_ULONGLONG(0); + _has_bits_[0] &= ~0x00000010u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 RequestPaymentMessage::_internal_amount1000() const { + return amount1000_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 RequestPaymentMessage::amount1000() const { + // @@protoc_insertion_point(field_get:proto.RequestPaymentMessage.amount1000) + return _internal_amount1000(); +} +inline void RequestPaymentMessage::_internal_set_amount1000(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _has_bits_[0] |= 0x00000010u; + amount1000_ = value; +} +inline void RequestPaymentMessage::set_amount1000(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_amount1000(value); + // @@protoc_insertion_point(field_set:proto.RequestPaymentMessage.amount1000) +} + +// optional string requestFrom = 3; +inline bool RequestPaymentMessage::_internal_has_requestfrom() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool RequestPaymentMessage::has_requestfrom() const { + return _internal_has_requestfrom(); +} +inline void RequestPaymentMessage::clear_requestfrom() { + requestfrom_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& RequestPaymentMessage::requestfrom() const { + // @@protoc_insertion_point(field_get:proto.RequestPaymentMessage.requestFrom) + return _internal_requestfrom(); +} +inline void RequestPaymentMessage::set_requestfrom(const std::string& value) { + _internal_set_requestfrom(value); + // @@protoc_insertion_point(field_set:proto.RequestPaymentMessage.requestFrom) +} +inline std::string* RequestPaymentMessage::mutable_requestfrom() { + // @@protoc_insertion_point(field_mutable:proto.RequestPaymentMessage.requestFrom) + return _internal_mutable_requestfrom(); +} +inline const std::string& RequestPaymentMessage::_internal_requestfrom() const { + return requestfrom_.Get(); +} +inline void RequestPaymentMessage::_internal_set_requestfrom(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + requestfrom_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void RequestPaymentMessage::set_requestfrom(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + requestfrom_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.RequestPaymentMessage.requestFrom) +} +inline void RequestPaymentMessage::set_requestfrom(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + requestfrom_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.RequestPaymentMessage.requestFrom) +} +inline void RequestPaymentMessage::set_requestfrom(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + requestfrom_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.RequestPaymentMessage.requestFrom) +} +inline std::string* RequestPaymentMessage::_internal_mutable_requestfrom() { + _has_bits_[0] |= 0x00000002u; + return requestfrom_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* RequestPaymentMessage::release_requestfrom() { + // @@protoc_insertion_point(field_release:proto.RequestPaymentMessage.requestFrom) + if (!_internal_has_requestfrom()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return requestfrom_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void RequestPaymentMessage::set_allocated_requestfrom(std::string* requestfrom) { + if (requestfrom != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + requestfrom_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), requestfrom, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.RequestPaymentMessage.requestFrom) +} + +// optional int64 expiryTimestamp = 5; +inline bool RequestPaymentMessage::_internal_has_expirytimestamp() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool RequestPaymentMessage::has_expirytimestamp() const { + return _internal_has_expirytimestamp(); +} +inline void RequestPaymentMessage::clear_expirytimestamp() { + expirytimestamp_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00000020u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 RequestPaymentMessage::_internal_expirytimestamp() const { + return expirytimestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 RequestPaymentMessage::expirytimestamp() const { + // @@protoc_insertion_point(field_get:proto.RequestPaymentMessage.expiryTimestamp) + return _internal_expirytimestamp(); +} +inline void RequestPaymentMessage::_internal_set_expirytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00000020u; + expirytimestamp_ = value; +} +inline void RequestPaymentMessage::set_expirytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_expirytimestamp(value); + // @@protoc_insertion_point(field_set:proto.RequestPaymentMessage.expiryTimestamp) +} + +// optional .proto.PaymentMoney amount = 6; +inline bool RequestPaymentMessage::_internal_has_amount() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + PROTOBUF_ASSUME(!value || amount_ != nullptr); + return value; +} +inline bool RequestPaymentMessage::has_amount() const { + return _internal_has_amount(); +} +inline void RequestPaymentMessage::clear_amount() { + if (amount_ != nullptr) amount_->Clear(); + _has_bits_[0] &= ~0x00000008u; +} +inline const ::proto::PaymentMoney& RequestPaymentMessage::_internal_amount() const { + const ::proto::PaymentMoney* p = amount_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::PaymentMoney&>( + ::proto::_PaymentMoney_default_instance_); +} +inline const ::proto::PaymentMoney& RequestPaymentMessage::amount() const { + // @@protoc_insertion_point(field_get:proto.RequestPaymentMessage.amount) + return _internal_amount(); +} +inline void RequestPaymentMessage::unsafe_arena_set_allocated_amount( + ::proto::PaymentMoney* amount) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(amount_); + } + amount_ = amount; + if (amount) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.RequestPaymentMessage.amount) +} +inline ::proto::PaymentMoney* RequestPaymentMessage::release_amount() { + _has_bits_[0] &= ~0x00000008u; + ::proto::PaymentMoney* temp = amount_; + amount_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::PaymentMoney* RequestPaymentMessage::unsafe_arena_release_amount() { + // @@protoc_insertion_point(field_release:proto.RequestPaymentMessage.amount) + _has_bits_[0] &= ~0x00000008u; + ::proto::PaymentMoney* temp = amount_; + amount_ = nullptr; + return temp; +} +inline ::proto::PaymentMoney* RequestPaymentMessage::_internal_mutable_amount() { + _has_bits_[0] |= 0x00000008u; + if (amount_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::PaymentMoney>(GetArena()); + amount_ = p; + } + return amount_; +} +inline ::proto::PaymentMoney* RequestPaymentMessage::mutable_amount() { + // @@protoc_insertion_point(field_mutable:proto.RequestPaymentMessage.amount) + return _internal_mutable_amount(); +} +inline void RequestPaymentMessage::set_allocated_amount(::proto::PaymentMoney* amount) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete amount_; + } + if (amount) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(amount); + if (message_arena != submessage_arena) { + amount = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, amount, submessage_arena); + } + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + amount_ = amount; + // @@protoc_insertion_point(field_set_allocated:proto.RequestPaymentMessage.amount) +} + +// ------------------------------------------------------------------- + +// DeclinePaymentRequestMessage + +// optional .proto.MessageKey key = 1; +inline bool DeclinePaymentRequestMessage::_internal_has_key() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || key_ != nullptr); + return value; +} +inline bool DeclinePaymentRequestMessage::has_key() const { + return _internal_has_key(); +} +inline void DeclinePaymentRequestMessage::clear_key() { + if (key_ != nullptr) key_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::proto::MessageKey& DeclinePaymentRequestMessage::_internal_key() const { + const ::proto::MessageKey* p = key_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::MessageKey&>( + ::proto::_MessageKey_default_instance_); +} +inline const ::proto::MessageKey& DeclinePaymentRequestMessage::key() const { + // @@protoc_insertion_point(field_get:proto.DeclinePaymentRequestMessage.key) + return _internal_key(); +} +inline void DeclinePaymentRequestMessage::unsafe_arena_set_allocated_key( + ::proto::MessageKey* key) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(key_); + } + key_ = key; + if (key) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.DeclinePaymentRequestMessage.key) +} +inline ::proto::MessageKey* DeclinePaymentRequestMessage::release_key() { + _has_bits_[0] &= ~0x00000001u; + ::proto::MessageKey* temp = key_; + key_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::MessageKey* DeclinePaymentRequestMessage::unsafe_arena_release_key() { + // @@protoc_insertion_point(field_release:proto.DeclinePaymentRequestMessage.key) + _has_bits_[0] &= ~0x00000001u; + ::proto::MessageKey* temp = key_; + key_ = nullptr; + return temp; +} +inline ::proto::MessageKey* DeclinePaymentRequestMessage::_internal_mutable_key() { + _has_bits_[0] |= 0x00000001u; + if (key_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArena()); + key_ = p; + } + return key_; +} +inline ::proto::MessageKey* DeclinePaymentRequestMessage::mutable_key() { + // @@protoc_insertion_point(field_mutable:proto.DeclinePaymentRequestMessage.key) + return _internal_mutable_key(); +} +inline void DeclinePaymentRequestMessage::set_allocated_key(::proto::MessageKey* key) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete key_; + } + if (key) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(key); + if (message_arena != submessage_arena) { + key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, key, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + key_ = key; + // @@protoc_insertion_point(field_set_allocated:proto.DeclinePaymentRequestMessage.key) +} + +// ------------------------------------------------------------------- + +// CancelPaymentRequestMessage + +// optional .proto.MessageKey key = 1; +inline bool CancelPaymentRequestMessage::_internal_has_key() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || key_ != nullptr); + return value; +} +inline bool CancelPaymentRequestMessage::has_key() const { + return _internal_has_key(); +} +inline void CancelPaymentRequestMessage::clear_key() { + if (key_ != nullptr) key_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::proto::MessageKey& CancelPaymentRequestMessage::_internal_key() const { + const ::proto::MessageKey* p = key_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::MessageKey&>( + ::proto::_MessageKey_default_instance_); +} +inline const ::proto::MessageKey& CancelPaymentRequestMessage::key() const { + // @@protoc_insertion_point(field_get:proto.CancelPaymentRequestMessage.key) + return _internal_key(); +} +inline void CancelPaymentRequestMessage::unsafe_arena_set_allocated_key( + ::proto::MessageKey* key) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(key_); + } + key_ = key; + if (key) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.CancelPaymentRequestMessage.key) +} +inline ::proto::MessageKey* CancelPaymentRequestMessage::release_key() { + _has_bits_[0] &= ~0x00000001u; + ::proto::MessageKey* temp = key_; + key_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::MessageKey* CancelPaymentRequestMessage::unsafe_arena_release_key() { + // @@protoc_insertion_point(field_release:proto.CancelPaymentRequestMessage.key) + _has_bits_[0] &= ~0x00000001u; + ::proto::MessageKey* temp = key_; + key_ = nullptr; + return temp; +} +inline ::proto::MessageKey* CancelPaymentRequestMessage::_internal_mutable_key() { + _has_bits_[0] |= 0x00000001u; + if (key_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArena()); + key_ = p; + } + return key_; +} +inline ::proto::MessageKey* CancelPaymentRequestMessage::mutable_key() { + // @@protoc_insertion_point(field_mutable:proto.CancelPaymentRequestMessage.key) + return _internal_mutable_key(); +} +inline void CancelPaymentRequestMessage::set_allocated_key(::proto::MessageKey* key) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete key_; + } + if (key) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(key); + if (message_arena != submessage_arena) { + key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, key, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + key_ = key; + // @@protoc_insertion_point(field_set_allocated:proto.CancelPaymentRequestMessage.key) +} + +// ------------------------------------------------------------------- + +// LiveLocationMessage + +// optional double degreesLatitude = 1; +inline bool LiveLocationMessage::_internal_has_degreeslatitude() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool LiveLocationMessage::has_degreeslatitude() const { + return _internal_has_degreeslatitude(); +} +inline void LiveLocationMessage::clear_degreeslatitude() { + degreeslatitude_ = 0; + _has_bits_[0] &= ~0x00000008u; +} +inline double LiveLocationMessage::_internal_degreeslatitude() const { + return degreeslatitude_; +} +inline double LiveLocationMessage::degreeslatitude() const { + // @@protoc_insertion_point(field_get:proto.LiveLocationMessage.degreesLatitude) + return _internal_degreeslatitude(); +} +inline void LiveLocationMessage::_internal_set_degreeslatitude(double value) { + _has_bits_[0] |= 0x00000008u; + degreeslatitude_ = value; +} +inline void LiveLocationMessage::set_degreeslatitude(double value) { + _internal_set_degreeslatitude(value); + // @@protoc_insertion_point(field_set:proto.LiveLocationMessage.degreesLatitude) +} + +// optional double degreesLongitude = 2; +inline bool LiveLocationMessage::_internal_has_degreeslongitude() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool LiveLocationMessage::has_degreeslongitude() const { + return _internal_has_degreeslongitude(); +} +inline void LiveLocationMessage::clear_degreeslongitude() { + degreeslongitude_ = 0; + _has_bits_[0] &= ~0x00000010u; +} +inline double LiveLocationMessage::_internal_degreeslongitude() const { + return degreeslongitude_; +} +inline double LiveLocationMessage::degreeslongitude() const { + // @@protoc_insertion_point(field_get:proto.LiveLocationMessage.degreesLongitude) + return _internal_degreeslongitude(); +} +inline void LiveLocationMessage::_internal_set_degreeslongitude(double value) { + _has_bits_[0] |= 0x00000010u; + degreeslongitude_ = value; +} +inline void LiveLocationMessage::set_degreeslongitude(double value) { + _internal_set_degreeslongitude(value); + // @@protoc_insertion_point(field_set:proto.LiveLocationMessage.degreesLongitude) +} + +// optional uint32 accuracyInMeters = 3; +inline bool LiveLocationMessage::_internal_has_accuracyinmeters() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool LiveLocationMessage::has_accuracyinmeters() const { + return _internal_has_accuracyinmeters(); +} +inline void LiveLocationMessage::clear_accuracyinmeters() { + accuracyinmeters_ = 0u; + _has_bits_[0] &= ~0x00000020u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 LiveLocationMessage::_internal_accuracyinmeters() const { + return accuracyinmeters_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 LiveLocationMessage::accuracyinmeters() const { + // @@protoc_insertion_point(field_get:proto.LiveLocationMessage.accuracyInMeters) + return _internal_accuracyinmeters(); +} +inline void LiveLocationMessage::_internal_set_accuracyinmeters(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000020u; + accuracyinmeters_ = value; +} +inline void LiveLocationMessage::set_accuracyinmeters(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_accuracyinmeters(value); + // @@protoc_insertion_point(field_set:proto.LiveLocationMessage.accuracyInMeters) +} + +// optional float speedInMps = 4; +inline bool LiveLocationMessage::_internal_has_speedinmps() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool LiveLocationMessage::has_speedinmps() const { + return _internal_has_speedinmps(); +} +inline void LiveLocationMessage::clear_speedinmps() { + speedinmps_ = 0; + _has_bits_[0] &= ~0x00000040u; +} +inline float LiveLocationMessage::_internal_speedinmps() const { + return speedinmps_; +} +inline float LiveLocationMessage::speedinmps() const { + // @@protoc_insertion_point(field_get:proto.LiveLocationMessage.speedInMps) + return _internal_speedinmps(); +} +inline void LiveLocationMessage::_internal_set_speedinmps(float value) { + _has_bits_[0] |= 0x00000040u; + speedinmps_ = value; +} +inline void LiveLocationMessage::set_speedinmps(float value) { + _internal_set_speedinmps(value); + // @@protoc_insertion_point(field_set:proto.LiveLocationMessage.speedInMps) +} + +// optional uint32 degreesClockwiseFromMagneticNorth = 5; +inline bool LiveLocationMessage::_internal_has_degreesclockwisefrommagneticnorth() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + return value; +} +inline bool LiveLocationMessage::has_degreesclockwisefrommagneticnorth() const { + return _internal_has_degreesclockwisefrommagneticnorth(); +} +inline void LiveLocationMessage::clear_degreesclockwisefrommagneticnorth() { + degreesclockwisefrommagneticnorth_ = 0u; + _has_bits_[0] &= ~0x00000080u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 LiveLocationMessage::_internal_degreesclockwisefrommagneticnorth() const { + return degreesclockwisefrommagneticnorth_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 LiveLocationMessage::degreesclockwisefrommagneticnorth() const { + // @@protoc_insertion_point(field_get:proto.LiveLocationMessage.degreesClockwiseFromMagneticNorth) + return _internal_degreesclockwisefrommagneticnorth(); +} +inline void LiveLocationMessage::_internal_set_degreesclockwisefrommagneticnorth(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000080u; + degreesclockwisefrommagneticnorth_ = value; +} +inline void LiveLocationMessage::set_degreesclockwisefrommagneticnorth(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_degreesclockwisefrommagneticnorth(value); + // @@protoc_insertion_point(field_set:proto.LiveLocationMessage.degreesClockwiseFromMagneticNorth) +} + +// optional string caption = 6; +inline bool LiveLocationMessage::_internal_has_caption() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool LiveLocationMessage::has_caption() const { + return _internal_has_caption(); +} +inline void LiveLocationMessage::clear_caption() { + caption_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& LiveLocationMessage::caption() const { + // @@protoc_insertion_point(field_get:proto.LiveLocationMessage.caption) + return _internal_caption(); +} +inline void LiveLocationMessage::set_caption(const std::string& value) { + _internal_set_caption(value); + // @@protoc_insertion_point(field_set:proto.LiveLocationMessage.caption) +} +inline std::string* LiveLocationMessage::mutable_caption() { + // @@protoc_insertion_point(field_mutable:proto.LiveLocationMessage.caption) + return _internal_mutable_caption(); +} +inline const std::string& LiveLocationMessage::_internal_caption() const { + return caption_.Get(); +} +inline void LiveLocationMessage::_internal_set_caption(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void LiveLocationMessage::set_caption(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + caption_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.LiveLocationMessage.caption) +} +inline void LiveLocationMessage::set_caption(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.LiveLocationMessage.caption) +} +inline void LiveLocationMessage::set_caption(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.LiveLocationMessage.caption) +} +inline std::string* LiveLocationMessage::_internal_mutable_caption() { + _has_bits_[0] |= 0x00000001u; + return caption_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* LiveLocationMessage::release_caption() { + // @@protoc_insertion_point(field_release:proto.LiveLocationMessage.caption) + if (!_internal_has_caption()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return caption_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void LiveLocationMessage::set_allocated_caption(std::string* caption) { + if (caption != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + caption_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), caption, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.LiveLocationMessage.caption) +} + +// optional int64 sequenceNumber = 7; +inline bool LiveLocationMessage::_internal_has_sequencenumber() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + return value; +} +inline bool LiveLocationMessage::has_sequencenumber() const { + return _internal_has_sequencenumber(); +} +inline void LiveLocationMessage::clear_sequencenumber() { + sequencenumber_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00000200u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 LiveLocationMessage::_internal_sequencenumber() const { + return sequencenumber_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 LiveLocationMessage::sequencenumber() const { + // @@protoc_insertion_point(field_get:proto.LiveLocationMessage.sequenceNumber) + return _internal_sequencenumber(); +} +inline void LiveLocationMessage::_internal_set_sequencenumber(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00000200u; + sequencenumber_ = value; +} +inline void LiveLocationMessage::set_sequencenumber(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_sequencenumber(value); + // @@protoc_insertion_point(field_set:proto.LiveLocationMessage.sequenceNumber) +} + +// optional uint32 timeOffset = 8; +inline bool LiveLocationMessage::_internal_has_timeoffset() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + return value; +} +inline bool LiveLocationMessage::has_timeoffset() const { + return _internal_has_timeoffset(); +} +inline void LiveLocationMessage::clear_timeoffset() { + timeoffset_ = 0u; + _has_bits_[0] &= ~0x00000100u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 LiveLocationMessage::_internal_timeoffset() const { + return timeoffset_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 LiveLocationMessage::timeoffset() const { + // @@protoc_insertion_point(field_get:proto.LiveLocationMessage.timeOffset) + return _internal_timeoffset(); +} +inline void LiveLocationMessage::_internal_set_timeoffset(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000100u; + timeoffset_ = value; +} +inline void LiveLocationMessage::set_timeoffset(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_timeoffset(value); + // @@protoc_insertion_point(field_set:proto.LiveLocationMessage.timeOffset) +} + +// optional bytes jpegThumbnail = 16; +inline bool LiveLocationMessage::_internal_has_jpegthumbnail() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool LiveLocationMessage::has_jpegthumbnail() const { + return _internal_has_jpegthumbnail(); +} +inline void LiveLocationMessage::clear_jpegthumbnail() { + jpegthumbnail_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& LiveLocationMessage::jpegthumbnail() const { + // @@protoc_insertion_point(field_get:proto.LiveLocationMessage.jpegThumbnail) + return _internal_jpegthumbnail(); +} +inline void LiveLocationMessage::set_jpegthumbnail(const std::string& value) { + _internal_set_jpegthumbnail(value); + // @@protoc_insertion_point(field_set:proto.LiveLocationMessage.jpegThumbnail) +} +inline std::string* LiveLocationMessage::mutable_jpegthumbnail() { + // @@protoc_insertion_point(field_mutable:proto.LiveLocationMessage.jpegThumbnail) + return _internal_mutable_jpegthumbnail(); +} +inline const std::string& LiveLocationMessage::_internal_jpegthumbnail() const { + return jpegthumbnail_.Get(); +} +inline void LiveLocationMessage::_internal_set_jpegthumbnail(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void LiveLocationMessage::set_jpegthumbnail(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + jpegthumbnail_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.LiveLocationMessage.jpegThumbnail) +} +inline void LiveLocationMessage::set_jpegthumbnail(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.LiveLocationMessage.jpegThumbnail) +} +inline void LiveLocationMessage::set_jpegthumbnail(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.LiveLocationMessage.jpegThumbnail) +} +inline std::string* LiveLocationMessage::_internal_mutable_jpegthumbnail() { + _has_bits_[0] |= 0x00000002u; + return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* LiveLocationMessage::release_jpegthumbnail() { + // @@protoc_insertion_point(field_release:proto.LiveLocationMessage.jpegThumbnail) + if (!_internal_has_jpegthumbnail()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void LiveLocationMessage::set_allocated_jpegthumbnail(std::string* jpegthumbnail) { + if (jpegthumbnail != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + jpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), jpegthumbnail, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.LiveLocationMessage.jpegThumbnail) +} + +// optional .proto.ContextInfo contextInfo = 17; +inline bool LiveLocationMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool LiveLocationMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void LiveLocationMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00000004u; +} +inline const ::proto::ContextInfo& LiveLocationMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& LiveLocationMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.LiveLocationMessage.contextInfo) + return _internal_contextinfo(); +} +inline void LiveLocationMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.LiveLocationMessage.contextInfo) +} +inline ::proto::ContextInfo* LiveLocationMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00000004u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* LiveLocationMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.LiveLocationMessage.contextInfo) + _has_bits_[0] &= ~0x00000004u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* LiveLocationMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00000004u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* LiveLocationMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.LiveLocationMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void LiveLocationMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.LiveLocationMessage.contextInfo) +} + +// ------------------------------------------------------------------- + +// StickerMessage + +// optional string url = 1; +inline bool StickerMessage::_internal_has_url() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool StickerMessage::has_url() const { + return _internal_has_url(); +} +inline void StickerMessage::clear_url() { + url_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& StickerMessage::url() const { + // @@protoc_insertion_point(field_get:proto.StickerMessage.url) + return _internal_url(); +} +inline void StickerMessage::set_url(const std::string& value) { + _internal_set_url(value); + // @@protoc_insertion_point(field_set:proto.StickerMessage.url) +} +inline std::string* StickerMessage::mutable_url() { + // @@protoc_insertion_point(field_mutable:proto.StickerMessage.url) + return _internal_mutable_url(); +} +inline const std::string& StickerMessage::_internal_url() const { + return url_.Get(); +} +inline void StickerMessage::_internal_set_url(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void StickerMessage::set_url(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + url_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.StickerMessage.url) +} +inline void StickerMessage::set_url(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.StickerMessage.url) +} +inline void StickerMessage::set_url(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.StickerMessage.url) +} +inline std::string* StickerMessage::_internal_mutable_url() { + _has_bits_[0] |= 0x00000001u; + return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* StickerMessage::release_url() { + // @@protoc_insertion_point(field_release:proto.StickerMessage.url) + if (!_internal_has_url()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void StickerMessage::set_allocated_url(std::string* url) { + if (url != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), url, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.StickerMessage.url) +} + +// optional bytes fileSha256 = 2; +inline bool StickerMessage::_internal_has_filesha256() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool StickerMessage::has_filesha256() const { + return _internal_has_filesha256(); +} +inline void StickerMessage::clear_filesha256() { + filesha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& StickerMessage::filesha256() const { + // @@protoc_insertion_point(field_get:proto.StickerMessage.fileSha256) + return _internal_filesha256(); +} +inline void StickerMessage::set_filesha256(const std::string& value) { + _internal_set_filesha256(value); + // @@protoc_insertion_point(field_set:proto.StickerMessage.fileSha256) +} +inline std::string* StickerMessage::mutable_filesha256() { + // @@protoc_insertion_point(field_mutable:proto.StickerMessage.fileSha256) + return _internal_mutable_filesha256(); +} +inline const std::string& StickerMessage::_internal_filesha256() const { + return filesha256_.Get(); +} +inline void StickerMessage::_internal_set_filesha256(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void StickerMessage::set_filesha256(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + filesha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.StickerMessage.fileSha256) +} +inline void StickerMessage::set_filesha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.StickerMessage.fileSha256) +} +inline void StickerMessage::set_filesha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.StickerMessage.fileSha256) +} +inline std::string* StickerMessage::_internal_mutable_filesha256() { + _has_bits_[0] |= 0x00000002u; + return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* StickerMessage::release_filesha256() { + // @@protoc_insertion_point(field_release:proto.StickerMessage.fileSha256) + if (!_internal_has_filesha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void StickerMessage::set_allocated_filesha256(std::string* filesha256) { + if (filesha256 != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + filesha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filesha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.StickerMessage.fileSha256) +} + +// optional bytes fileEncSha256 = 3; +inline bool StickerMessage::_internal_has_fileencsha256() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool StickerMessage::has_fileencsha256() const { + return _internal_has_fileencsha256(); +} +inline void StickerMessage::clear_fileencsha256() { + fileencsha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& StickerMessage::fileencsha256() const { + // @@protoc_insertion_point(field_get:proto.StickerMessage.fileEncSha256) + return _internal_fileencsha256(); +} +inline void StickerMessage::set_fileencsha256(const std::string& value) { + _internal_set_fileencsha256(value); + // @@protoc_insertion_point(field_set:proto.StickerMessage.fileEncSha256) +} +inline std::string* StickerMessage::mutable_fileencsha256() { + // @@protoc_insertion_point(field_mutable:proto.StickerMessage.fileEncSha256) + return _internal_mutable_fileencsha256(); +} +inline const std::string& StickerMessage::_internal_fileencsha256() const { + return fileencsha256_.Get(); +} +inline void StickerMessage::_internal_set_fileencsha256(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void StickerMessage::set_fileencsha256(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + fileencsha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.StickerMessage.fileEncSha256) +} +inline void StickerMessage::set_fileencsha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.StickerMessage.fileEncSha256) +} +inline void StickerMessage::set_fileencsha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.StickerMessage.fileEncSha256) +} +inline std::string* StickerMessage::_internal_mutable_fileencsha256() { + _has_bits_[0] |= 0x00000004u; + return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* StickerMessage::release_fileencsha256() { + // @@protoc_insertion_point(field_release:proto.StickerMessage.fileEncSha256) + if (!_internal_has_fileencsha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void StickerMessage::set_allocated_fileencsha256(std::string* fileencsha256) { + if (fileencsha256 != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + fileencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fileencsha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.StickerMessage.fileEncSha256) +} + +// optional bytes mediaKey = 4; +inline bool StickerMessage::_internal_has_mediakey() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool StickerMessage::has_mediakey() const { + return _internal_has_mediakey(); +} +inline void StickerMessage::clear_mediakey() { + mediakey_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& StickerMessage::mediakey() const { + // @@protoc_insertion_point(field_get:proto.StickerMessage.mediaKey) + return _internal_mediakey(); +} +inline void StickerMessage::set_mediakey(const std::string& value) { + _internal_set_mediakey(value); + // @@protoc_insertion_point(field_set:proto.StickerMessage.mediaKey) +} +inline std::string* StickerMessage::mutable_mediakey() { + // @@protoc_insertion_point(field_mutable:proto.StickerMessage.mediaKey) + return _internal_mutable_mediakey(); +} +inline const std::string& StickerMessage::_internal_mediakey() const { + return mediakey_.Get(); +} +inline void StickerMessage::_internal_set_mediakey(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void StickerMessage::set_mediakey(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + mediakey_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.StickerMessage.mediaKey) +} +inline void StickerMessage::set_mediakey(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.StickerMessage.mediaKey) +} +inline void StickerMessage::set_mediakey(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.StickerMessage.mediaKey) +} +inline std::string* StickerMessage::_internal_mutable_mediakey() { + _has_bits_[0] |= 0x00000008u; + return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* StickerMessage::release_mediakey() { + // @@protoc_insertion_point(field_release:proto.StickerMessage.mediaKey) + if (!_internal_has_mediakey()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void StickerMessage::set_allocated_mediakey(std::string* mediakey) { + if (mediakey != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + mediakey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mediakey, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.StickerMessage.mediaKey) +} + +// optional string mimetype = 5; +inline bool StickerMessage::_internal_has_mimetype() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool StickerMessage::has_mimetype() const { + return _internal_has_mimetype(); +} +inline void StickerMessage::clear_mimetype() { + mimetype_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000010u; +} +inline const std::string& StickerMessage::mimetype() const { + // @@protoc_insertion_point(field_get:proto.StickerMessage.mimetype) + return _internal_mimetype(); +} +inline void StickerMessage::set_mimetype(const std::string& value) { + _internal_set_mimetype(value); + // @@protoc_insertion_point(field_set:proto.StickerMessage.mimetype) +} +inline std::string* StickerMessage::mutable_mimetype() { + // @@protoc_insertion_point(field_mutable:proto.StickerMessage.mimetype) + return _internal_mutable_mimetype(); +} +inline const std::string& StickerMessage::_internal_mimetype() const { + return mimetype_.Get(); +} +inline void StickerMessage::_internal_set_mimetype(const std::string& value) { + _has_bits_[0] |= 0x00000010u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void StickerMessage::set_mimetype(std::string&& value) { + _has_bits_[0] |= 0x00000010u; + mimetype_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.StickerMessage.mimetype) +} +inline void StickerMessage::set_mimetype(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000010u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.StickerMessage.mimetype) +} +inline void StickerMessage::set_mimetype(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000010u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.StickerMessage.mimetype) +} +inline std::string* StickerMessage::_internal_mutable_mimetype() { + _has_bits_[0] |= 0x00000010u; + return mimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* StickerMessage::release_mimetype() { + // @@protoc_insertion_point(field_release:proto.StickerMessage.mimetype) + if (!_internal_has_mimetype()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000010u; + return mimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void StickerMessage::set_allocated_mimetype(std::string* mimetype) { + if (mimetype != nullptr) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + mimetype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mimetype, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.StickerMessage.mimetype) +} + +// optional uint32 height = 6; +inline bool StickerMessage::_internal_has_height() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + return value; +} +inline bool StickerMessage::has_height() const { + return _internal_has_height(); +} +inline void StickerMessage::clear_height() { + height_ = 0u; + _has_bits_[0] &= ~0x00000200u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 StickerMessage::_internal_height() const { + return height_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 StickerMessage::height() const { + // @@protoc_insertion_point(field_get:proto.StickerMessage.height) + return _internal_height(); +} +inline void StickerMessage::_internal_set_height(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000200u; + height_ = value; +} +inline void StickerMessage::set_height(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_height(value); + // @@protoc_insertion_point(field_set:proto.StickerMessage.height) +} + +// optional uint32 width = 7; +inline bool StickerMessage::_internal_has_width() const { + bool value = (_has_bits_[0] & 0x00000400u) != 0; + return value; +} +inline bool StickerMessage::has_width() const { + return _internal_has_width(); +} +inline void StickerMessage::clear_width() { + width_ = 0u; + _has_bits_[0] &= ~0x00000400u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 StickerMessage::_internal_width() const { + return width_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 StickerMessage::width() const { + // @@protoc_insertion_point(field_get:proto.StickerMessage.width) + return _internal_width(); +} +inline void StickerMessage::_internal_set_width(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000400u; + width_ = value; +} +inline void StickerMessage::set_width(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_width(value); + // @@protoc_insertion_point(field_set:proto.StickerMessage.width) +} + +// optional string directPath = 8; +inline bool StickerMessage::_internal_has_directpath() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool StickerMessage::has_directpath() const { + return _internal_has_directpath(); +} +inline void StickerMessage::clear_directpath() { + directpath_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000020u; +} +inline const std::string& StickerMessage::directpath() const { + // @@protoc_insertion_point(field_get:proto.StickerMessage.directPath) + return _internal_directpath(); +} +inline void StickerMessage::set_directpath(const std::string& value) { + _internal_set_directpath(value); + // @@protoc_insertion_point(field_set:proto.StickerMessage.directPath) +} +inline std::string* StickerMessage::mutable_directpath() { + // @@protoc_insertion_point(field_mutable:proto.StickerMessage.directPath) + return _internal_mutable_directpath(); +} +inline const std::string& StickerMessage::_internal_directpath() const { + return directpath_.Get(); +} +inline void StickerMessage::_internal_set_directpath(const std::string& value) { + _has_bits_[0] |= 0x00000020u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void StickerMessage::set_directpath(std::string&& value) { + _has_bits_[0] |= 0x00000020u; + directpath_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.StickerMessage.directPath) +} +inline void StickerMessage::set_directpath(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000020u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.StickerMessage.directPath) +} +inline void StickerMessage::set_directpath(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000020u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.StickerMessage.directPath) +} +inline std::string* StickerMessage::_internal_mutable_directpath() { + _has_bits_[0] |= 0x00000020u; + return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* StickerMessage::release_directpath() { + // @@protoc_insertion_point(field_release:proto.StickerMessage.directPath) + if (!_internal_has_directpath()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000020u; + return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void StickerMessage::set_allocated_directpath(std::string* directpath) { + if (directpath != nullptr) { + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + directpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), directpath, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.StickerMessage.directPath) +} + +// optional uint64 fileLength = 9; +inline bool StickerMessage::_internal_has_filelength() const { + bool value = (_has_bits_[0] & 0x00000800u) != 0; + return value; +} +inline bool StickerMessage::has_filelength() const { + return _internal_has_filelength(); +} +inline void StickerMessage::clear_filelength() { + filelength_ = PROTOBUF_ULONGLONG(0); + _has_bits_[0] &= ~0x00000800u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 StickerMessage::_internal_filelength() const { + return filelength_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 StickerMessage::filelength() const { + // @@protoc_insertion_point(field_get:proto.StickerMessage.fileLength) + return _internal_filelength(); +} +inline void StickerMessage::_internal_set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _has_bits_[0] |= 0x00000800u; + filelength_ = value; +} +inline void StickerMessage::set_filelength(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_filelength(value); + // @@protoc_insertion_point(field_set:proto.StickerMessage.fileLength) +} + +// optional int64 mediaKeyTimestamp = 10; +inline bool StickerMessage::_internal_has_mediakeytimestamp() const { + bool value = (_has_bits_[0] & 0x00001000u) != 0; + return value; +} +inline bool StickerMessage::has_mediakeytimestamp() const { + return _internal_has_mediakeytimestamp(); +} +inline void StickerMessage::clear_mediakeytimestamp() { + mediakeytimestamp_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00001000u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 StickerMessage::_internal_mediakeytimestamp() const { + return mediakeytimestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 StickerMessage::mediakeytimestamp() const { + // @@protoc_insertion_point(field_get:proto.StickerMessage.mediaKeyTimestamp) + return _internal_mediakeytimestamp(); +} +inline void StickerMessage::_internal_set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00001000u; + mediakeytimestamp_ = value; +} +inline void StickerMessage::set_mediakeytimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_mediakeytimestamp(value); + // @@protoc_insertion_point(field_set:proto.StickerMessage.mediaKeyTimestamp) +} + +// optional uint32 firstFrameLength = 11; +inline bool StickerMessage::_internal_has_firstframelength() const { + bool value = (_has_bits_[0] & 0x00002000u) != 0; + return value; +} +inline bool StickerMessage::has_firstframelength() const { + return _internal_has_firstframelength(); +} +inline void StickerMessage::clear_firstframelength() { + firstframelength_ = 0u; + _has_bits_[0] &= ~0x00002000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 StickerMessage::_internal_firstframelength() const { + return firstframelength_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 StickerMessage::firstframelength() const { + // @@protoc_insertion_point(field_get:proto.StickerMessage.firstFrameLength) + return _internal_firstframelength(); +} +inline void StickerMessage::_internal_set_firstframelength(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00002000u; + firstframelength_ = value; +} +inline void StickerMessage::set_firstframelength(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_firstframelength(value); + // @@protoc_insertion_point(field_set:proto.StickerMessage.firstFrameLength) +} + +// optional bytes firstFrameSidecar = 12; +inline bool StickerMessage::_internal_has_firstframesidecar() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool StickerMessage::has_firstframesidecar() const { + return _internal_has_firstframesidecar(); +} +inline void StickerMessage::clear_firstframesidecar() { + firstframesidecar_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000040u; +} +inline const std::string& StickerMessage::firstframesidecar() const { + // @@protoc_insertion_point(field_get:proto.StickerMessage.firstFrameSidecar) + return _internal_firstframesidecar(); +} +inline void StickerMessage::set_firstframesidecar(const std::string& value) { + _internal_set_firstframesidecar(value); + // @@protoc_insertion_point(field_set:proto.StickerMessage.firstFrameSidecar) +} +inline std::string* StickerMessage::mutable_firstframesidecar() { + // @@protoc_insertion_point(field_mutable:proto.StickerMessage.firstFrameSidecar) + return _internal_mutable_firstframesidecar(); +} +inline const std::string& StickerMessage::_internal_firstframesidecar() const { + return firstframesidecar_.Get(); +} +inline void StickerMessage::_internal_set_firstframesidecar(const std::string& value) { + _has_bits_[0] |= 0x00000040u; + firstframesidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void StickerMessage::set_firstframesidecar(std::string&& value) { + _has_bits_[0] |= 0x00000040u; + firstframesidecar_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.StickerMessage.firstFrameSidecar) +} +inline void StickerMessage::set_firstframesidecar(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000040u; + firstframesidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.StickerMessage.firstFrameSidecar) +} +inline void StickerMessage::set_firstframesidecar(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000040u; + firstframesidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.StickerMessage.firstFrameSidecar) +} +inline std::string* StickerMessage::_internal_mutable_firstframesidecar() { + _has_bits_[0] |= 0x00000040u; + return firstframesidecar_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* StickerMessage::release_firstframesidecar() { + // @@protoc_insertion_point(field_release:proto.StickerMessage.firstFrameSidecar) + if (!_internal_has_firstframesidecar()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000040u; + return firstframesidecar_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void StickerMessage::set_allocated_firstframesidecar(std::string* firstframesidecar) { + if (firstframesidecar != nullptr) { + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + firstframesidecar_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), firstframesidecar, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.StickerMessage.firstFrameSidecar) +} + +// optional bool isAnimated = 13; +inline bool StickerMessage::_internal_has_isanimated() const { + bool value = (_has_bits_[0] & 0x00004000u) != 0; + return value; +} +inline bool StickerMessage::has_isanimated() const { + return _internal_has_isanimated(); +} +inline void StickerMessage::clear_isanimated() { + isanimated_ = false; + _has_bits_[0] &= ~0x00004000u; +} +inline bool StickerMessage::_internal_isanimated() const { + return isanimated_; +} +inline bool StickerMessage::isanimated() const { + // @@protoc_insertion_point(field_get:proto.StickerMessage.isAnimated) + return _internal_isanimated(); +} +inline void StickerMessage::_internal_set_isanimated(bool value) { + _has_bits_[0] |= 0x00004000u; + isanimated_ = value; +} +inline void StickerMessage::set_isanimated(bool value) { + _internal_set_isanimated(value); + // @@protoc_insertion_point(field_set:proto.StickerMessage.isAnimated) +} + +// optional bytes pngThumbnail = 16; +inline bool StickerMessage::_internal_has_pngthumbnail() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + return value; +} +inline bool StickerMessage::has_pngthumbnail() const { + return _internal_has_pngthumbnail(); +} +inline void StickerMessage::clear_pngthumbnail() { + pngthumbnail_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000080u; +} +inline const std::string& StickerMessage::pngthumbnail() const { + // @@protoc_insertion_point(field_get:proto.StickerMessage.pngThumbnail) + return _internal_pngthumbnail(); +} +inline void StickerMessage::set_pngthumbnail(const std::string& value) { + _internal_set_pngthumbnail(value); + // @@protoc_insertion_point(field_set:proto.StickerMessage.pngThumbnail) +} +inline std::string* StickerMessage::mutable_pngthumbnail() { + // @@protoc_insertion_point(field_mutable:proto.StickerMessage.pngThumbnail) + return _internal_mutable_pngthumbnail(); +} +inline const std::string& StickerMessage::_internal_pngthumbnail() const { + return pngthumbnail_.Get(); +} +inline void StickerMessage::_internal_set_pngthumbnail(const std::string& value) { + _has_bits_[0] |= 0x00000080u; + pngthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void StickerMessage::set_pngthumbnail(std::string&& value) { + _has_bits_[0] |= 0x00000080u; + pngthumbnail_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.StickerMessage.pngThumbnail) +} +inline void StickerMessage::set_pngthumbnail(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000080u; + pngthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.StickerMessage.pngThumbnail) +} +inline void StickerMessage::set_pngthumbnail(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000080u; + pngthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.StickerMessage.pngThumbnail) +} +inline std::string* StickerMessage::_internal_mutable_pngthumbnail() { + _has_bits_[0] |= 0x00000080u; + return pngthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* StickerMessage::release_pngthumbnail() { + // @@protoc_insertion_point(field_release:proto.StickerMessage.pngThumbnail) + if (!_internal_has_pngthumbnail()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000080u; + return pngthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void StickerMessage::set_allocated_pngthumbnail(std::string* pngthumbnail) { + if (pngthumbnail != nullptr) { + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + pngthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), pngthumbnail, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.StickerMessage.pngThumbnail) +} + +// optional .proto.ContextInfo contextInfo = 17; +inline bool StickerMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool StickerMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void StickerMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00000100u; +} +inline const ::proto::ContextInfo& StickerMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& StickerMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.StickerMessage.contextInfo) + return _internal_contextinfo(); +} +inline void StickerMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00000100u; + } else { + _has_bits_[0] &= ~0x00000100u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.StickerMessage.contextInfo) +} +inline ::proto::ContextInfo* StickerMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00000100u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* StickerMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.StickerMessage.contextInfo) + _has_bits_[0] &= ~0x00000100u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* StickerMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00000100u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* StickerMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.StickerMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void StickerMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000100u; + } else { + _has_bits_[0] &= ~0x00000100u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.StickerMessage.contextInfo) +} + +// ------------------------------------------------------------------- + +// FourRowTemplate + +// optional .proto.HighlyStructuredMessage content = 6; +inline bool FourRowTemplate::_internal_has_content() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || content_ != nullptr); + return value; +} +inline bool FourRowTemplate::has_content() const { + return _internal_has_content(); +} +inline void FourRowTemplate::clear_content() { + if (content_ != nullptr) content_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::proto::HighlyStructuredMessage& FourRowTemplate::_internal_content() const { + const ::proto::HighlyStructuredMessage* p = content_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::HighlyStructuredMessage&>( + ::proto::_HighlyStructuredMessage_default_instance_); +} +inline const ::proto::HighlyStructuredMessage& FourRowTemplate::content() const { + // @@protoc_insertion_point(field_get:proto.FourRowTemplate.content) + return _internal_content(); +} +inline void FourRowTemplate::unsafe_arena_set_allocated_content( + ::proto::HighlyStructuredMessage* content) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(content_); + } + content_ = content; + if (content) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.FourRowTemplate.content) +} +inline ::proto::HighlyStructuredMessage* FourRowTemplate::release_content() { + _has_bits_[0] &= ~0x00000001u; + ::proto::HighlyStructuredMessage* temp = content_; + content_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::HighlyStructuredMessage* FourRowTemplate::unsafe_arena_release_content() { + // @@protoc_insertion_point(field_release:proto.FourRowTemplate.content) + _has_bits_[0] &= ~0x00000001u; + ::proto::HighlyStructuredMessage* temp = content_; + content_ = nullptr; + return temp; +} +inline ::proto::HighlyStructuredMessage* FourRowTemplate::_internal_mutable_content() { + _has_bits_[0] |= 0x00000001u; + if (content_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArena()); + content_ = p; + } + return content_; +} +inline ::proto::HighlyStructuredMessage* FourRowTemplate::mutable_content() { + // @@protoc_insertion_point(field_mutable:proto.FourRowTemplate.content) + return _internal_mutable_content(); +} +inline void FourRowTemplate::set_allocated_content(::proto::HighlyStructuredMessage* content) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete content_; + } + if (content) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(content); + if (message_arena != submessage_arena) { + content = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, content, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + content_ = content; + // @@protoc_insertion_point(field_set_allocated:proto.FourRowTemplate.content) +} + +// optional .proto.HighlyStructuredMessage footer = 7; +inline bool FourRowTemplate::_internal_has_footer() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || footer_ != nullptr); + return value; +} +inline bool FourRowTemplate::has_footer() const { + return _internal_has_footer(); +} +inline void FourRowTemplate::clear_footer() { + if (footer_ != nullptr) footer_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::proto::HighlyStructuredMessage& FourRowTemplate::_internal_footer() const { + const ::proto::HighlyStructuredMessage* p = footer_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::HighlyStructuredMessage&>( + ::proto::_HighlyStructuredMessage_default_instance_); +} +inline const ::proto::HighlyStructuredMessage& FourRowTemplate::footer() const { + // @@protoc_insertion_point(field_get:proto.FourRowTemplate.footer) + return _internal_footer(); +} +inline void FourRowTemplate::unsafe_arena_set_allocated_footer( + ::proto::HighlyStructuredMessage* footer) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(footer_); + } + footer_ = footer; + if (footer) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.FourRowTemplate.footer) +} +inline ::proto::HighlyStructuredMessage* FourRowTemplate::release_footer() { + _has_bits_[0] &= ~0x00000002u; + ::proto::HighlyStructuredMessage* temp = footer_; + footer_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::HighlyStructuredMessage* FourRowTemplate::unsafe_arena_release_footer() { + // @@protoc_insertion_point(field_release:proto.FourRowTemplate.footer) + _has_bits_[0] &= ~0x00000002u; + ::proto::HighlyStructuredMessage* temp = footer_; + footer_ = nullptr; + return temp; +} +inline ::proto::HighlyStructuredMessage* FourRowTemplate::_internal_mutable_footer() { + _has_bits_[0] |= 0x00000002u; + if (footer_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArena()); + footer_ = p; + } + return footer_; +} +inline ::proto::HighlyStructuredMessage* FourRowTemplate::mutable_footer() { + // @@protoc_insertion_point(field_mutable:proto.FourRowTemplate.footer) + return _internal_mutable_footer(); +} +inline void FourRowTemplate::set_allocated_footer(::proto::HighlyStructuredMessage* footer) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete footer_; + } + if (footer) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(footer); + if (message_arena != submessage_arena) { + footer = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, footer, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + footer_ = footer; + // @@protoc_insertion_point(field_set_allocated:proto.FourRowTemplate.footer) +} + +// repeated .proto.TemplateButton buttons = 8; +inline int FourRowTemplate::_internal_buttons_size() const { + return buttons_.size(); +} +inline int FourRowTemplate::buttons_size() const { + return _internal_buttons_size(); +} +inline void FourRowTemplate::clear_buttons() { + buttons_.Clear(); +} +inline ::proto::TemplateButton* FourRowTemplate::mutable_buttons(int index) { + // @@protoc_insertion_point(field_mutable:proto.FourRowTemplate.buttons) + return buttons_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::TemplateButton >* +FourRowTemplate::mutable_buttons() { + // @@protoc_insertion_point(field_mutable_list:proto.FourRowTemplate.buttons) + return &buttons_; +} +inline const ::proto::TemplateButton& FourRowTemplate::_internal_buttons(int index) const { + return buttons_.Get(index); +} +inline const ::proto::TemplateButton& FourRowTemplate::buttons(int index) const { + // @@protoc_insertion_point(field_get:proto.FourRowTemplate.buttons) + return _internal_buttons(index); +} +inline ::proto::TemplateButton* FourRowTemplate::_internal_add_buttons() { + return buttons_.Add(); +} +inline ::proto::TemplateButton* FourRowTemplate::add_buttons() { + // @@protoc_insertion_point(field_add:proto.FourRowTemplate.buttons) + return _internal_add_buttons(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::TemplateButton >& +FourRowTemplate::buttons() const { + // @@protoc_insertion_point(field_list:proto.FourRowTemplate.buttons) + return buttons_; +} + +// .proto.DocumentMessage documentMessage = 1; +inline bool FourRowTemplate::_internal_has_documentmessage() const { + return title_case() == kDocumentMessage; +} +inline bool FourRowTemplate::has_documentmessage() const { + return _internal_has_documentmessage(); +} +inline void FourRowTemplate::set_has_documentmessage() { + _oneof_case_[0] = kDocumentMessage; +} +inline void FourRowTemplate::clear_documentmessage() { + if (_internal_has_documentmessage()) { + if (GetArena() == nullptr) { + delete title_.documentmessage_; + } + clear_has_title(); + } +} +inline ::proto::DocumentMessage* FourRowTemplate::release_documentmessage() { + // @@protoc_insertion_point(field_release:proto.FourRowTemplate.documentMessage) + if (_internal_has_documentmessage()) { + clear_has_title(); + ::proto::DocumentMessage* temp = title_.documentmessage_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + title_.documentmessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::DocumentMessage& FourRowTemplate::_internal_documentmessage() const { + return _internal_has_documentmessage() + ? *title_.documentmessage_ + : reinterpret_cast< ::proto::DocumentMessage&>(::proto::_DocumentMessage_default_instance_); +} +inline const ::proto::DocumentMessage& FourRowTemplate::documentmessage() const { + // @@protoc_insertion_point(field_get:proto.FourRowTemplate.documentMessage) + return _internal_documentmessage(); +} +inline ::proto::DocumentMessage* FourRowTemplate::unsafe_arena_release_documentmessage() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.FourRowTemplate.documentMessage) + if (_internal_has_documentmessage()) { + clear_has_title(); + ::proto::DocumentMessage* temp = title_.documentmessage_; + title_.documentmessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void FourRowTemplate::unsafe_arena_set_allocated_documentmessage(::proto::DocumentMessage* documentmessage) { + clear_title(); + if (documentmessage) { + set_has_documentmessage(); + title_.documentmessage_ = documentmessage; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.FourRowTemplate.documentMessage) +} +inline ::proto::DocumentMessage* FourRowTemplate::_internal_mutable_documentmessage() { + if (!_internal_has_documentmessage()) { + clear_title(); + set_has_documentmessage(); + title_.documentmessage_ = CreateMaybeMessage< ::proto::DocumentMessage >(GetArena()); + } + return title_.documentmessage_; +} +inline ::proto::DocumentMessage* FourRowTemplate::mutable_documentmessage() { + // @@protoc_insertion_point(field_mutable:proto.FourRowTemplate.documentMessage) + return _internal_mutable_documentmessage(); +} + +// .proto.HighlyStructuredMessage highlyStructuredMessage = 2; +inline bool FourRowTemplate::_internal_has_highlystructuredmessage() const { + return title_case() == kHighlyStructuredMessage; +} +inline bool FourRowTemplate::has_highlystructuredmessage() const { + return _internal_has_highlystructuredmessage(); +} +inline void FourRowTemplate::set_has_highlystructuredmessage() { + _oneof_case_[0] = kHighlyStructuredMessage; +} +inline void FourRowTemplate::clear_highlystructuredmessage() { + if (_internal_has_highlystructuredmessage()) { + if (GetArena() == nullptr) { + delete title_.highlystructuredmessage_; + } + clear_has_title(); + } +} +inline ::proto::HighlyStructuredMessage* FourRowTemplate::release_highlystructuredmessage() { + // @@protoc_insertion_point(field_release:proto.FourRowTemplate.highlyStructuredMessage) + if (_internal_has_highlystructuredmessage()) { + clear_has_title(); + ::proto::HighlyStructuredMessage* temp = title_.highlystructuredmessage_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + title_.highlystructuredmessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::HighlyStructuredMessage& FourRowTemplate::_internal_highlystructuredmessage() const { + return _internal_has_highlystructuredmessage() + ? *title_.highlystructuredmessage_ + : reinterpret_cast< ::proto::HighlyStructuredMessage&>(::proto::_HighlyStructuredMessage_default_instance_); +} +inline const ::proto::HighlyStructuredMessage& FourRowTemplate::highlystructuredmessage() const { + // @@protoc_insertion_point(field_get:proto.FourRowTemplate.highlyStructuredMessage) + return _internal_highlystructuredmessage(); +} +inline ::proto::HighlyStructuredMessage* FourRowTemplate::unsafe_arena_release_highlystructuredmessage() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.FourRowTemplate.highlyStructuredMessage) + if (_internal_has_highlystructuredmessage()) { + clear_has_title(); + ::proto::HighlyStructuredMessage* temp = title_.highlystructuredmessage_; + title_.highlystructuredmessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void FourRowTemplate::unsafe_arena_set_allocated_highlystructuredmessage(::proto::HighlyStructuredMessage* highlystructuredmessage) { + clear_title(); + if (highlystructuredmessage) { + set_has_highlystructuredmessage(); + title_.highlystructuredmessage_ = highlystructuredmessage; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.FourRowTemplate.highlyStructuredMessage) +} +inline ::proto::HighlyStructuredMessage* FourRowTemplate::_internal_mutable_highlystructuredmessage() { + if (!_internal_has_highlystructuredmessage()) { + clear_title(); + set_has_highlystructuredmessage(); + title_.highlystructuredmessage_ = CreateMaybeMessage< ::proto::HighlyStructuredMessage >(GetArena()); + } + return title_.highlystructuredmessage_; +} +inline ::proto::HighlyStructuredMessage* FourRowTemplate::mutable_highlystructuredmessage() { + // @@protoc_insertion_point(field_mutable:proto.FourRowTemplate.highlyStructuredMessage) + return _internal_mutable_highlystructuredmessage(); +} + +// .proto.ImageMessage imageMessage = 3; +inline bool FourRowTemplate::_internal_has_imagemessage() const { + return title_case() == kImageMessage; +} +inline bool FourRowTemplate::has_imagemessage() const { + return _internal_has_imagemessage(); +} +inline void FourRowTemplate::set_has_imagemessage() { + _oneof_case_[0] = kImageMessage; +} +inline void FourRowTemplate::clear_imagemessage() { + if (_internal_has_imagemessage()) { + if (GetArena() == nullptr) { + delete title_.imagemessage_; + } + clear_has_title(); + } +} +inline ::proto::ImageMessage* FourRowTemplate::release_imagemessage() { + // @@protoc_insertion_point(field_release:proto.FourRowTemplate.imageMessage) + if (_internal_has_imagemessage()) { + clear_has_title(); + ::proto::ImageMessage* temp = title_.imagemessage_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + title_.imagemessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::ImageMessage& FourRowTemplate::_internal_imagemessage() const { + return _internal_has_imagemessage() + ? *title_.imagemessage_ + : reinterpret_cast< ::proto::ImageMessage&>(::proto::_ImageMessage_default_instance_); +} +inline const ::proto::ImageMessage& FourRowTemplate::imagemessage() const { + // @@protoc_insertion_point(field_get:proto.FourRowTemplate.imageMessage) + return _internal_imagemessage(); +} +inline ::proto::ImageMessage* FourRowTemplate::unsafe_arena_release_imagemessage() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.FourRowTemplate.imageMessage) + if (_internal_has_imagemessage()) { + clear_has_title(); + ::proto::ImageMessage* temp = title_.imagemessage_; + title_.imagemessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void FourRowTemplate::unsafe_arena_set_allocated_imagemessage(::proto::ImageMessage* imagemessage) { + clear_title(); + if (imagemessage) { + set_has_imagemessage(); + title_.imagemessage_ = imagemessage; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.FourRowTemplate.imageMessage) +} +inline ::proto::ImageMessage* FourRowTemplate::_internal_mutable_imagemessage() { + if (!_internal_has_imagemessage()) { + clear_title(); + set_has_imagemessage(); + title_.imagemessage_ = CreateMaybeMessage< ::proto::ImageMessage >(GetArena()); + } + return title_.imagemessage_; +} +inline ::proto::ImageMessage* FourRowTemplate::mutable_imagemessage() { + // @@protoc_insertion_point(field_mutable:proto.FourRowTemplate.imageMessage) + return _internal_mutable_imagemessage(); +} + +// .proto.VideoMessage videoMessage = 4; +inline bool FourRowTemplate::_internal_has_videomessage() const { + return title_case() == kVideoMessage; +} +inline bool FourRowTemplate::has_videomessage() const { + return _internal_has_videomessage(); +} +inline void FourRowTemplate::set_has_videomessage() { + _oneof_case_[0] = kVideoMessage; +} +inline void FourRowTemplate::clear_videomessage() { + if (_internal_has_videomessage()) { + if (GetArena() == nullptr) { + delete title_.videomessage_; + } + clear_has_title(); + } +} +inline ::proto::VideoMessage* FourRowTemplate::release_videomessage() { + // @@protoc_insertion_point(field_release:proto.FourRowTemplate.videoMessage) + if (_internal_has_videomessage()) { + clear_has_title(); + ::proto::VideoMessage* temp = title_.videomessage_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + title_.videomessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::VideoMessage& FourRowTemplate::_internal_videomessage() const { + return _internal_has_videomessage() + ? *title_.videomessage_ + : reinterpret_cast< ::proto::VideoMessage&>(::proto::_VideoMessage_default_instance_); +} +inline const ::proto::VideoMessage& FourRowTemplate::videomessage() const { + // @@protoc_insertion_point(field_get:proto.FourRowTemplate.videoMessage) + return _internal_videomessage(); +} +inline ::proto::VideoMessage* FourRowTemplate::unsafe_arena_release_videomessage() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.FourRowTemplate.videoMessage) + if (_internal_has_videomessage()) { + clear_has_title(); + ::proto::VideoMessage* temp = title_.videomessage_; + title_.videomessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void FourRowTemplate::unsafe_arena_set_allocated_videomessage(::proto::VideoMessage* videomessage) { + clear_title(); + if (videomessage) { + set_has_videomessage(); + title_.videomessage_ = videomessage; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.FourRowTemplate.videoMessage) +} +inline ::proto::VideoMessage* FourRowTemplate::_internal_mutable_videomessage() { + if (!_internal_has_videomessage()) { + clear_title(); + set_has_videomessage(); + title_.videomessage_ = CreateMaybeMessage< ::proto::VideoMessage >(GetArena()); + } + return title_.videomessage_; +} +inline ::proto::VideoMessage* FourRowTemplate::mutable_videomessage() { + // @@protoc_insertion_point(field_mutable:proto.FourRowTemplate.videoMessage) + return _internal_mutable_videomessage(); +} + +// .proto.LocationMessage locationMessage = 5; +inline bool FourRowTemplate::_internal_has_locationmessage() const { + return title_case() == kLocationMessage; +} +inline bool FourRowTemplate::has_locationmessage() const { + return _internal_has_locationmessage(); +} +inline void FourRowTemplate::set_has_locationmessage() { + _oneof_case_[0] = kLocationMessage; +} +inline void FourRowTemplate::clear_locationmessage() { + if (_internal_has_locationmessage()) { + if (GetArena() == nullptr) { + delete title_.locationmessage_; + } + clear_has_title(); + } +} +inline ::proto::LocationMessage* FourRowTemplate::release_locationmessage() { + // @@protoc_insertion_point(field_release:proto.FourRowTemplate.locationMessage) + if (_internal_has_locationmessage()) { + clear_has_title(); + ::proto::LocationMessage* temp = title_.locationmessage_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + title_.locationmessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::LocationMessage& FourRowTemplate::_internal_locationmessage() const { + return _internal_has_locationmessage() + ? *title_.locationmessage_ + : reinterpret_cast< ::proto::LocationMessage&>(::proto::_LocationMessage_default_instance_); +} +inline const ::proto::LocationMessage& FourRowTemplate::locationmessage() const { + // @@protoc_insertion_point(field_get:proto.FourRowTemplate.locationMessage) + return _internal_locationmessage(); +} +inline ::proto::LocationMessage* FourRowTemplate::unsafe_arena_release_locationmessage() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.FourRowTemplate.locationMessage) + if (_internal_has_locationmessage()) { + clear_has_title(); + ::proto::LocationMessage* temp = title_.locationmessage_; + title_.locationmessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void FourRowTemplate::unsafe_arena_set_allocated_locationmessage(::proto::LocationMessage* locationmessage) { + clear_title(); + if (locationmessage) { + set_has_locationmessage(); + title_.locationmessage_ = locationmessage; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.FourRowTemplate.locationMessage) +} +inline ::proto::LocationMessage* FourRowTemplate::_internal_mutable_locationmessage() { + if (!_internal_has_locationmessage()) { + clear_title(); + set_has_locationmessage(); + title_.locationmessage_ = CreateMaybeMessage< ::proto::LocationMessage >(GetArena()); + } + return title_.locationmessage_; +} +inline ::proto::LocationMessage* FourRowTemplate::mutable_locationmessage() { + // @@protoc_insertion_point(field_mutable:proto.FourRowTemplate.locationMessage) + return _internal_mutable_locationmessage(); +} + +inline bool FourRowTemplate::has_title() const { + return title_case() != TITLE_NOT_SET; +} +inline void FourRowTemplate::clear_has_title() { + _oneof_case_[0] = TITLE_NOT_SET; +} +inline FourRowTemplate::TitleCase FourRowTemplate::title_case() const { + return FourRowTemplate::TitleCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// HydratedFourRowTemplate + +// optional string hydratedContentText = 6; +inline bool HydratedFourRowTemplate::_internal_has_hydratedcontenttext() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool HydratedFourRowTemplate::has_hydratedcontenttext() const { + return _internal_has_hydratedcontenttext(); +} +inline void HydratedFourRowTemplate::clear_hydratedcontenttext() { + hydratedcontenttext_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& HydratedFourRowTemplate::hydratedcontenttext() const { + // @@protoc_insertion_point(field_get:proto.HydratedFourRowTemplate.hydratedContentText) + return _internal_hydratedcontenttext(); +} +inline void HydratedFourRowTemplate::set_hydratedcontenttext(const std::string& value) { + _internal_set_hydratedcontenttext(value); + // @@protoc_insertion_point(field_set:proto.HydratedFourRowTemplate.hydratedContentText) +} +inline std::string* HydratedFourRowTemplate::mutable_hydratedcontenttext() { + // @@protoc_insertion_point(field_mutable:proto.HydratedFourRowTemplate.hydratedContentText) + return _internal_mutable_hydratedcontenttext(); +} +inline const std::string& HydratedFourRowTemplate::_internal_hydratedcontenttext() const { + return hydratedcontenttext_.Get(); +} +inline void HydratedFourRowTemplate::_internal_set_hydratedcontenttext(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + hydratedcontenttext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HydratedFourRowTemplate::set_hydratedcontenttext(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + hydratedcontenttext_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HydratedFourRowTemplate.hydratedContentText) +} +inline void HydratedFourRowTemplate::set_hydratedcontenttext(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + hydratedcontenttext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HydratedFourRowTemplate.hydratedContentText) +} +inline void HydratedFourRowTemplate::set_hydratedcontenttext(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + hydratedcontenttext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HydratedFourRowTemplate.hydratedContentText) +} +inline std::string* HydratedFourRowTemplate::_internal_mutable_hydratedcontenttext() { + _has_bits_[0] |= 0x00000001u; + return hydratedcontenttext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HydratedFourRowTemplate::release_hydratedcontenttext() { + // @@protoc_insertion_point(field_release:proto.HydratedFourRowTemplate.hydratedContentText) + if (!_internal_has_hydratedcontenttext()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return hydratedcontenttext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HydratedFourRowTemplate::set_allocated_hydratedcontenttext(std::string* hydratedcontenttext) { + if (hydratedcontenttext != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + hydratedcontenttext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), hydratedcontenttext, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HydratedFourRowTemplate.hydratedContentText) +} + +// optional string hydratedFooterText = 7; +inline bool HydratedFourRowTemplate::_internal_has_hydratedfootertext() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool HydratedFourRowTemplate::has_hydratedfootertext() const { + return _internal_has_hydratedfootertext(); +} +inline void HydratedFourRowTemplate::clear_hydratedfootertext() { + hydratedfootertext_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& HydratedFourRowTemplate::hydratedfootertext() const { + // @@protoc_insertion_point(field_get:proto.HydratedFourRowTemplate.hydratedFooterText) + return _internal_hydratedfootertext(); +} +inline void HydratedFourRowTemplate::set_hydratedfootertext(const std::string& value) { + _internal_set_hydratedfootertext(value); + // @@protoc_insertion_point(field_set:proto.HydratedFourRowTemplate.hydratedFooterText) +} +inline std::string* HydratedFourRowTemplate::mutable_hydratedfootertext() { + // @@protoc_insertion_point(field_mutable:proto.HydratedFourRowTemplate.hydratedFooterText) + return _internal_mutable_hydratedfootertext(); +} +inline const std::string& HydratedFourRowTemplate::_internal_hydratedfootertext() const { + return hydratedfootertext_.Get(); +} +inline void HydratedFourRowTemplate::_internal_set_hydratedfootertext(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + hydratedfootertext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HydratedFourRowTemplate::set_hydratedfootertext(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + hydratedfootertext_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HydratedFourRowTemplate.hydratedFooterText) +} +inline void HydratedFourRowTemplate::set_hydratedfootertext(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + hydratedfootertext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HydratedFourRowTemplate.hydratedFooterText) +} +inline void HydratedFourRowTemplate::set_hydratedfootertext(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + hydratedfootertext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HydratedFourRowTemplate.hydratedFooterText) +} +inline std::string* HydratedFourRowTemplate::_internal_mutable_hydratedfootertext() { + _has_bits_[0] |= 0x00000002u; + return hydratedfootertext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HydratedFourRowTemplate::release_hydratedfootertext() { + // @@protoc_insertion_point(field_release:proto.HydratedFourRowTemplate.hydratedFooterText) + if (!_internal_has_hydratedfootertext()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return hydratedfootertext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HydratedFourRowTemplate::set_allocated_hydratedfootertext(std::string* hydratedfootertext) { + if (hydratedfootertext != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + hydratedfootertext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), hydratedfootertext, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HydratedFourRowTemplate.hydratedFooterText) +} + +// repeated .proto.HydratedTemplateButton hydratedButtons = 8; +inline int HydratedFourRowTemplate::_internal_hydratedbuttons_size() const { + return hydratedbuttons_.size(); +} +inline int HydratedFourRowTemplate::hydratedbuttons_size() const { + return _internal_hydratedbuttons_size(); +} +inline void HydratedFourRowTemplate::clear_hydratedbuttons() { + hydratedbuttons_.Clear(); +} +inline ::proto::HydratedTemplateButton* HydratedFourRowTemplate::mutable_hydratedbuttons(int index) { + // @@protoc_insertion_point(field_mutable:proto.HydratedFourRowTemplate.hydratedButtons) + return hydratedbuttons_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::HydratedTemplateButton >* +HydratedFourRowTemplate::mutable_hydratedbuttons() { + // @@protoc_insertion_point(field_mutable_list:proto.HydratedFourRowTemplate.hydratedButtons) + return &hydratedbuttons_; +} +inline const ::proto::HydratedTemplateButton& HydratedFourRowTemplate::_internal_hydratedbuttons(int index) const { + return hydratedbuttons_.Get(index); +} +inline const ::proto::HydratedTemplateButton& HydratedFourRowTemplate::hydratedbuttons(int index) const { + // @@protoc_insertion_point(field_get:proto.HydratedFourRowTemplate.hydratedButtons) + return _internal_hydratedbuttons(index); +} +inline ::proto::HydratedTemplateButton* HydratedFourRowTemplate::_internal_add_hydratedbuttons() { + return hydratedbuttons_.Add(); +} +inline ::proto::HydratedTemplateButton* HydratedFourRowTemplate::add_hydratedbuttons() { + // @@protoc_insertion_point(field_add:proto.HydratedFourRowTemplate.hydratedButtons) + return _internal_add_hydratedbuttons(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::HydratedTemplateButton >& +HydratedFourRowTemplate::hydratedbuttons() const { + // @@protoc_insertion_point(field_list:proto.HydratedFourRowTemplate.hydratedButtons) + return hydratedbuttons_; +} + +// optional string templateId = 9; +inline bool HydratedFourRowTemplate::_internal_has_templateid() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool HydratedFourRowTemplate::has_templateid() const { + return _internal_has_templateid(); +} +inline void HydratedFourRowTemplate::clear_templateid() { + templateid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& HydratedFourRowTemplate::templateid() const { + // @@protoc_insertion_point(field_get:proto.HydratedFourRowTemplate.templateId) + return _internal_templateid(); +} +inline void HydratedFourRowTemplate::set_templateid(const std::string& value) { + _internal_set_templateid(value); + // @@protoc_insertion_point(field_set:proto.HydratedFourRowTemplate.templateId) +} +inline std::string* HydratedFourRowTemplate::mutable_templateid() { + // @@protoc_insertion_point(field_mutable:proto.HydratedFourRowTemplate.templateId) + return _internal_mutable_templateid(); +} +inline const std::string& HydratedFourRowTemplate::_internal_templateid() const { + return templateid_.Get(); +} +inline void HydratedFourRowTemplate::_internal_set_templateid(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + templateid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HydratedFourRowTemplate::set_templateid(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + templateid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HydratedFourRowTemplate.templateId) +} +inline void HydratedFourRowTemplate::set_templateid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + templateid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HydratedFourRowTemplate.templateId) +} +inline void HydratedFourRowTemplate::set_templateid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + templateid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HydratedFourRowTemplate.templateId) +} +inline std::string* HydratedFourRowTemplate::_internal_mutable_templateid() { + _has_bits_[0] |= 0x00000004u; + return templateid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HydratedFourRowTemplate::release_templateid() { + // @@protoc_insertion_point(field_release:proto.HydratedFourRowTemplate.templateId) + if (!_internal_has_templateid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return templateid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void HydratedFourRowTemplate::set_allocated_templateid(std::string* templateid) { + if (templateid != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + templateid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), templateid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.HydratedFourRowTemplate.templateId) +} + +// .proto.DocumentMessage documentMessage = 1; +inline bool HydratedFourRowTemplate::_internal_has_documentmessage() const { + return title_case() == kDocumentMessage; +} +inline bool HydratedFourRowTemplate::has_documentmessage() const { + return _internal_has_documentmessage(); +} +inline void HydratedFourRowTemplate::set_has_documentmessage() { + _oneof_case_[0] = kDocumentMessage; +} +inline void HydratedFourRowTemplate::clear_documentmessage() { + if (_internal_has_documentmessage()) { + if (GetArena() == nullptr) { + delete title_.documentmessage_; + } + clear_has_title(); + } +} +inline ::proto::DocumentMessage* HydratedFourRowTemplate::release_documentmessage() { + // @@protoc_insertion_point(field_release:proto.HydratedFourRowTemplate.documentMessage) + if (_internal_has_documentmessage()) { + clear_has_title(); + ::proto::DocumentMessage* temp = title_.documentmessage_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + title_.documentmessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::DocumentMessage& HydratedFourRowTemplate::_internal_documentmessage() const { + return _internal_has_documentmessage() + ? *title_.documentmessage_ + : reinterpret_cast< ::proto::DocumentMessage&>(::proto::_DocumentMessage_default_instance_); +} +inline const ::proto::DocumentMessage& HydratedFourRowTemplate::documentmessage() const { + // @@protoc_insertion_point(field_get:proto.HydratedFourRowTemplate.documentMessage) + return _internal_documentmessage(); +} +inline ::proto::DocumentMessage* HydratedFourRowTemplate::unsafe_arena_release_documentmessage() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.HydratedFourRowTemplate.documentMessage) + if (_internal_has_documentmessage()) { + clear_has_title(); + ::proto::DocumentMessage* temp = title_.documentmessage_; + title_.documentmessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void HydratedFourRowTemplate::unsafe_arena_set_allocated_documentmessage(::proto::DocumentMessage* documentmessage) { + clear_title(); + if (documentmessage) { + set_has_documentmessage(); + title_.documentmessage_ = documentmessage; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.HydratedFourRowTemplate.documentMessage) +} +inline ::proto::DocumentMessage* HydratedFourRowTemplate::_internal_mutable_documentmessage() { + if (!_internal_has_documentmessage()) { + clear_title(); + set_has_documentmessage(); + title_.documentmessage_ = CreateMaybeMessage< ::proto::DocumentMessage >(GetArena()); + } + return title_.documentmessage_; +} +inline ::proto::DocumentMessage* HydratedFourRowTemplate::mutable_documentmessage() { + // @@protoc_insertion_point(field_mutable:proto.HydratedFourRowTemplate.documentMessage) + return _internal_mutable_documentmessage(); +} + +// string hydratedTitleText = 2; +inline bool HydratedFourRowTemplate::_internal_has_hydratedtitletext() const { + return title_case() == kHydratedTitleText; +} +inline bool HydratedFourRowTemplate::has_hydratedtitletext() const { + return _internal_has_hydratedtitletext(); +} +inline void HydratedFourRowTemplate::set_has_hydratedtitletext() { + _oneof_case_[0] = kHydratedTitleText; +} +inline void HydratedFourRowTemplate::clear_hydratedtitletext() { + if (_internal_has_hydratedtitletext()) { + title_.hydratedtitletext_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + clear_has_title(); + } +} +inline const std::string& HydratedFourRowTemplate::hydratedtitletext() const { + // @@protoc_insertion_point(field_get:proto.HydratedFourRowTemplate.hydratedTitleText) + return _internal_hydratedtitletext(); +} +inline void HydratedFourRowTemplate::set_hydratedtitletext(const std::string& value) { + _internal_set_hydratedtitletext(value); + // @@protoc_insertion_point(field_set:proto.HydratedFourRowTemplate.hydratedTitleText) +} +inline std::string* HydratedFourRowTemplate::mutable_hydratedtitletext() { + // @@protoc_insertion_point(field_mutable:proto.HydratedFourRowTemplate.hydratedTitleText) + return _internal_mutable_hydratedtitletext(); +} +inline const std::string& HydratedFourRowTemplate::_internal_hydratedtitletext() const { + if (_internal_has_hydratedtitletext()) { + return title_.hydratedtitletext_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void HydratedFourRowTemplate::_internal_set_hydratedtitletext(const std::string& value) { + if (!_internal_has_hydratedtitletext()) { + clear_title(); + set_has_hydratedtitletext(); + title_.hydratedtitletext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + title_.hydratedtitletext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void HydratedFourRowTemplate::set_hydratedtitletext(std::string&& value) { + // @@protoc_insertion_point(field_set:proto.HydratedFourRowTemplate.hydratedTitleText) + if (!_internal_has_hydratedtitletext()) { + clear_title(); + set_has_hydratedtitletext(); + title_.hydratedtitletext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + title_.hydratedtitletext_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.HydratedFourRowTemplate.hydratedTitleText) +} +inline void HydratedFourRowTemplate::set_hydratedtitletext(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!_internal_has_hydratedtitletext()) { + clear_title(); + set_has_hydratedtitletext(); + title_.hydratedtitletext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + title_.hydratedtitletext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, + ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.HydratedFourRowTemplate.hydratedTitleText) +} +inline void HydratedFourRowTemplate::set_hydratedtitletext(const char* value, + size_t size) { + if (!_internal_has_hydratedtitletext()) { + clear_title(); + set_has_hydratedtitletext(); + title_.hydratedtitletext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + title_.hydratedtitletext_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), + GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.HydratedFourRowTemplate.hydratedTitleText) +} +inline std::string* HydratedFourRowTemplate::_internal_mutable_hydratedtitletext() { + if (!_internal_has_hydratedtitletext()) { + clear_title(); + set_has_hydratedtitletext(); + title_.hydratedtitletext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + return title_.hydratedtitletext_.Mutable( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* HydratedFourRowTemplate::release_hydratedtitletext() { + // @@protoc_insertion_point(field_release:proto.HydratedFourRowTemplate.hydratedTitleText) + if (_internal_has_hydratedtitletext()) { + clear_has_title(); + return title_.hydratedtitletext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + } else { + return nullptr; + } +} +inline void HydratedFourRowTemplate::set_allocated_hydratedtitletext(std::string* hydratedtitletext) { + if (has_title()) { + clear_title(); + } + if (hydratedtitletext != nullptr) { + set_has_hydratedtitletext(); + title_.hydratedtitletext_.UnsafeSetDefault(hydratedtitletext); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); + if (arena != nullptr) { + arena->Own(hydratedtitletext); + } + } + // @@protoc_insertion_point(field_set_allocated:proto.HydratedFourRowTemplate.hydratedTitleText) +} + +// .proto.ImageMessage imageMessage = 3; +inline bool HydratedFourRowTemplate::_internal_has_imagemessage() const { + return title_case() == kImageMessage; +} +inline bool HydratedFourRowTemplate::has_imagemessage() const { + return _internal_has_imagemessage(); +} +inline void HydratedFourRowTemplate::set_has_imagemessage() { + _oneof_case_[0] = kImageMessage; +} +inline void HydratedFourRowTemplate::clear_imagemessage() { + if (_internal_has_imagemessage()) { + if (GetArena() == nullptr) { + delete title_.imagemessage_; + } + clear_has_title(); + } +} +inline ::proto::ImageMessage* HydratedFourRowTemplate::release_imagemessage() { + // @@protoc_insertion_point(field_release:proto.HydratedFourRowTemplate.imageMessage) + if (_internal_has_imagemessage()) { + clear_has_title(); + ::proto::ImageMessage* temp = title_.imagemessage_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + title_.imagemessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::ImageMessage& HydratedFourRowTemplate::_internal_imagemessage() const { + return _internal_has_imagemessage() + ? *title_.imagemessage_ + : reinterpret_cast< ::proto::ImageMessage&>(::proto::_ImageMessage_default_instance_); +} +inline const ::proto::ImageMessage& HydratedFourRowTemplate::imagemessage() const { + // @@protoc_insertion_point(field_get:proto.HydratedFourRowTemplate.imageMessage) + return _internal_imagemessage(); +} +inline ::proto::ImageMessage* HydratedFourRowTemplate::unsafe_arena_release_imagemessage() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.HydratedFourRowTemplate.imageMessage) + if (_internal_has_imagemessage()) { + clear_has_title(); + ::proto::ImageMessage* temp = title_.imagemessage_; + title_.imagemessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void HydratedFourRowTemplate::unsafe_arena_set_allocated_imagemessage(::proto::ImageMessage* imagemessage) { + clear_title(); + if (imagemessage) { + set_has_imagemessage(); + title_.imagemessage_ = imagemessage; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.HydratedFourRowTemplate.imageMessage) +} +inline ::proto::ImageMessage* HydratedFourRowTemplate::_internal_mutable_imagemessage() { + if (!_internal_has_imagemessage()) { + clear_title(); + set_has_imagemessage(); + title_.imagemessage_ = CreateMaybeMessage< ::proto::ImageMessage >(GetArena()); + } + return title_.imagemessage_; +} +inline ::proto::ImageMessage* HydratedFourRowTemplate::mutable_imagemessage() { + // @@protoc_insertion_point(field_mutable:proto.HydratedFourRowTemplate.imageMessage) + return _internal_mutable_imagemessage(); +} + +// .proto.VideoMessage videoMessage = 4; +inline bool HydratedFourRowTemplate::_internal_has_videomessage() const { + return title_case() == kVideoMessage; +} +inline bool HydratedFourRowTemplate::has_videomessage() const { + return _internal_has_videomessage(); +} +inline void HydratedFourRowTemplate::set_has_videomessage() { + _oneof_case_[0] = kVideoMessage; +} +inline void HydratedFourRowTemplate::clear_videomessage() { + if (_internal_has_videomessage()) { + if (GetArena() == nullptr) { + delete title_.videomessage_; + } + clear_has_title(); + } +} +inline ::proto::VideoMessage* HydratedFourRowTemplate::release_videomessage() { + // @@protoc_insertion_point(field_release:proto.HydratedFourRowTemplate.videoMessage) + if (_internal_has_videomessage()) { + clear_has_title(); + ::proto::VideoMessage* temp = title_.videomessage_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + title_.videomessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::VideoMessage& HydratedFourRowTemplate::_internal_videomessage() const { + return _internal_has_videomessage() + ? *title_.videomessage_ + : reinterpret_cast< ::proto::VideoMessage&>(::proto::_VideoMessage_default_instance_); +} +inline const ::proto::VideoMessage& HydratedFourRowTemplate::videomessage() const { + // @@protoc_insertion_point(field_get:proto.HydratedFourRowTemplate.videoMessage) + return _internal_videomessage(); +} +inline ::proto::VideoMessage* HydratedFourRowTemplate::unsafe_arena_release_videomessage() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.HydratedFourRowTemplate.videoMessage) + if (_internal_has_videomessage()) { + clear_has_title(); + ::proto::VideoMessage* temp = title_.videomessage_; + title_.videomessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void HydratedFourRowTemplate::unsafe_arena_set_allocated_videomessage(::proto::VideoMessage* videomessage) { + clear_title(); + if (videomessage) { + set_has_videomessage(); + title_.videomessage_ = videomessage; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.HydratedFourRowTemplate.videoMessage) +} +inline ::proto::VideoMessage* HydratedFourRowTemplate::_internal_mutable_videomessage() { + if (!_internal_has_videomessage()) { + clear_title(); + set_has_videomessage(); + title_.videomessage_ = CreateMaybeMessage< ::proto::VideoMessage >(GetArena()); + } + return title_.videomessage_; +} +inline ::proto::VideoMessage* HydratedFourRowTemplate::mutable_videomessage() { + // @@protoc_insertion_point(field_mutable:proto.HydratedFourRowTemplate.videoMessage) + return _internal_mutable_videomessage(); +} + +// .proto.LocationMessage locationMessage = 5; +inline bool HydratedFourRowTemplate::_internal_has_locationmessage() const { + return title_case() == kLocationMessage; +} +inline bool HydratedFourRowTemplate::has_locationmessage() const { + return _internal_has_locationmessage(); +} +inline void HydratedFourRowTemplate::set_has_locationmessage() { + _oneof_case_[0] = kLocationMessage; +} +inline void HydratedFourRowTemplate::clear_locationmessage() { + if (_internal_has_locationmessage()) { + if (GetArena() == nullptr) { + delete title_.locationmessage_; + } + clear_has_title(); + } +} +inline ::proto::LocationMessage* HydratedFourRowTemplate::release_locationmessage() { + // @@protoc_insertion_point(field_release:proto.HydratedFourRowTemplate.locationMessage) + if (_internal_has_locationmessage()) { + clear_has_title(); + ::proto::LocationMessage* temp = title_.locationmessage_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + title_.locationmessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::LocationMessage& HydratedFourRowTemplate::_internal_locationmessage() const { + return _internal_has_locationmessage() + ? *title_.locationmessage_ + : reinterpret_cast< ::proto::LocationMessage&>(::proto::_LocationMessage_default_instance_); +} +inline const ::proto::LocationMessage& HydratedFourRowTemplate::locationmessage() const { + // @@protoc_insertion_point(field_get:proto.HydratedFourRowTemplate.locationMessage) + return _internal_locationmessage(); +} +inline ::proto::LocationMessage* HydratedFourRowTemplate::unsafe_arena_release_locationmessage() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.HydratedFourRowTemplate.locationMessage) + if (_internal_has_locationmessage()) { + clear_has_title(); + ::proto::LocationMessage* temp = title_.locationmessage_; + title_.locationmessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void HydratedFourRowTemplate::unsafe_arena_set_allocated_locationmessage(::proto::LocationMessage* locationmessage) { + clear_title(); + if (locationmessage) { + set_has_locationmessage(); + title_.locationmessage_ = locationmessage; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.HydratedFourRowTemplate.locationMessage) +} +inline ::proto::LocationMessage* HydratedFourRowTemplate::_internal_mutable_locationmessage() { + if (!_internal_has_locationmessage()) { + clear_title(); + set_has_locationmessage(); + title_.locationmessage_ = CreateMaybeMessage< ::proto::LocationMessage >(GetArena()); + } + return title_.locationmessage_; +} +inline ::proto::LocationMessage* HydratedFourRowTemplate::mutable_locationmessage() { + // @@protoc_insertion_point(field_mutable:proto.HydratedFourRowTemplate.locationMessage) + return _internal_mutable_locationmessage(); +} + +inline bool HydratedFourRowTemplate::has_title() const { + return title_case() != TITLE_NOT_SET; +} +inline void HydratedFourRowTemplate::clear_has_title() { + _oneof_case_[0] = TITLE_NOT_SET; +} +inline HydratedFourRowTemplate::TitleCase HydratedFourRowTemplate::title_case() const { + return HydratedFourRowTemplate::TitleCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// TemplateMessage + +// optional .proto.ContextInfo contextInfo = 3; +inline bool TemplateMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool TemplateMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void TemplateMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::proto::ContextInfo& TemplateMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& TemplateMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.TemplateMessage.contextInfo) + return _internal_contextinfo(); +} +inline void TemplateMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.TemplateMessage.contextInfo) +} +inline ::proto::ContextInfo* TemplateMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00000001u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* TemplateMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.TemplateMessage.contextInfo) + _has_bits_[0] &= ~0x00000001u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* TemplateMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00000001u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* TemplateMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.TemplateMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void TemplateMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.TemplateMessage.contextInfo) +} + +// optional .proto.HydratedFourRowTemplate hydratedTemplate = 4; +inline bool TemplateMessage::_internal_has_hydratedtemplate() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || hydratedtemplate_ != nullptr); + return value; +} +inline bool TemplateMessage::has_hydratedtemplate() const { + return _internal_has_hydratedtemplate(); +} +inline void TemplateMessage::clear_hydratedtemplate() { + if (hydratedtemplate_ != nullptr) hydratedtemplate_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::proto::HydratedFourRowTemplate& TemplateMessage::_internal_hydratedtemplate() const { + const ::proto::HydratedFourRowTemplate* p = hydratedtemplate_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::HydratedFourRowTemplate&>( + ::proto::_HydratedFourRowTemplate_default_instance_); +} +inline const ::proto::HydratedFourRowTemplate& TemplateMessage::hydratedtemplate() const { + // @@protoc_insertion_point(field_get:proto.TemplateMessage.hydratedTemplate) + return _internal_hydratedtemplate(); +} +inline void TemplateMessage::unsafe_arena_set_allocated_hydratedtemplate( + ::proto::HydratedFourRowTemplate* hydratedtemplate) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(hydratedtemplate_); + } + hydratedtemplate_ = hydratedtemplate; + if (hydratedtemplate) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.TemplateMessage.hydratedTemplate) +} +inline ::proto::HydratedFourRowTemplate* TemplateMessage::release_hydratedtemplate() { + _has_bits_[0] &= ~0x00000002u; + ::proto::HydratedFourRowTemplate* temp = hydratedtemplate_; + hydratedtemplate_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::HydratedFourRowTemplate* TemplateMessage::unsafe_arena_release_hydratedtemplate() { + // @@protoc_insertion_point(field_release:proto.TemplateMessage.hydratedTemplate) + _has_bits_[0] &= ~0x00000002u; + ::proto::HydratedFourRowTemplate* temp = hydratedtemplate_; + hydratedtemplate_ = nullptr; + return temp; +} +inline ::proto::HydratedFourRowTemplate* TemplateMessage::_internal_mutable_hydratedtemplate() { + _has_bits_[0] |= 0x00000002u; + if (hydratedtemplate_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::HydratedFourRowTemplate>(GetArena()); + hydratedtemplate_ = p; + } + return hydratedtemplate_; +} +inline ::proto::HydratedFourRowTemplate* TemplateMessage::mutable_hydratedtemplate() { + // @@protoc_insertion_point(field_mutable:proto.TemplateMessage.hydratedTemplate) + return _internal_mutable_hydratedtemplate(); +} +inline void TemplateMessage::set_allocated_hydratedtemplate(::proto::HydratedFourRowTemplate* hydratedtemplate) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete hydratedtemplate_; + } + if (hydratedtemplate) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(hydratedtemplate); + if (message_arena != submessage_arena) { + hydratedtemplate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, hydratedtemplate, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + hydratedtemplate_ = hydratedtemplate; + // @@protoc_insertion_point(field_set_allocated:proto.TemplateMessage.hydratedTemplate) +} + +// .proto.FourRowTemplate fourRowTemplate = 1; +inline bool TemplateMessage::_internal_has_fourrowtemplate() const { + return format_case() == kFourRowTemplate; +} +inline bool TemplateMessage::has_fourrowtemplate() const { + return _internal_has_fourrowtemplate(); +} +inline void TemplateMessage::set_has_fourrowtemplate() { + _oneof_case_[0] = kFourRowTemplate; +} +inline void TemplateMessage::clear_fourrowtemplate() { + if (_internal_has_fourrowtemplate()) { + if (GetArena() == nullptr) { + delete format_.fourrowtemplate_; + } + clear_has_format(); + } +} +inline ::proto::FourRowTemplate* TemplateMessage::release_fourrowtemplate() { + // @@protoc_insertion_point(field_release:proto.TemplateMessage.fourRowTemplate) + if (_internal_has_fourrowtemplate()) { + clear_has_format(); + ::proto::FourRowTemplate* temp = format_.fourrowtemplate_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + format_.fourrowtemplate_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::FourRowTemplate& TemplateMessage::_internal_fourrowtemplate() const { + return _internal_has_fourrowtemplate() + ? *format_.fourrowtemplate_ + : reinterpret_cast< ::proto::FourRowTemplate&>(::proto::_FourRowTemplate_default_instance_); +} +inline const ::proto::FourRowTemplate& TemplateMessage::fourrowtemplate() const { + // @@protoc_insertion_point(field_get:proto.TemplateMessage.fourRowTemplate) + return _internal_fourrowtemplate(); +} +inline ::proto::FourRowTemplate* TemplateMessage::unsafe_arena_release_fourrowtemplate() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.TemplateMessage.fourRowTemplate) + if (_internal_has_fourrowtemplate()) { + clear_has_format(); + ::proto::FourRowTemplate* temp = format_.fourrowtemplate_; + format_.fourrowtemplate_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void TemplateMessage::unsafe_arena_set_allocated_fourrowtemplate(::proto::FourRowTemplate* fourrowtemplate) { + clear_format(); + if (fourrowtemplate) { + set_has_fourrowtemplate(); + format_.fourrowtemplate_ = fourrowtemplate; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.TemplateMessage.fourRowTemplate) +} +inline ::proto::FourRowTemplate* TemplateMessage::_internal_mutable_fourrowtemplate() { + if (!_internal_has_fourrowtemplate()) { + clear_format(); + set_has_fourrowtemplate(); + format_.fourrowtemplate_ = CreateMaybeMessage< ::proto::FourRowTemplate >(GetArena()); + } + return format_.fourrowtemplate_; +} +inline ::proto::FourRowTemplate* TemplateMessage::mutable_fourrowtemplate() { + // @@protoc_insertion_point(field_mutable:proto.TemplateMessage.fourRowTemplate) + return _internal_mutable_fourrowtemplate(); +} + +// .proto.HydratedFourRowTemplate hydratedFourRowTemplate = 2; +inline bool TemplateMessage::_internal_has_hydratedfourrowtemplate() const { + return format_case() == kHydratedFourRowTemplate; +} +inline bool TemplateMessage::has_hydratedfourrowtemplate() const { + return _internal_has_hydratedfourrowtemplate(); +} +inline void TemplateMessage::set_has_hydratedfourrowtemplate() { + _oneof_case_[0] = kHydratedFourRowTemplate; +} +inline void TemplateMessage::clear_hydratedfourrowtemplate() { + if (_internal_has_hydratedfourrowtemplate()) { + if (GetArena() == nullptr) { + delete format_.hydratedfourrowtemplate_; + } + clear_has_format(); + } +} +inline ::proto::HydratedFourRowTemplate* TemplateMessage::release_hydratedfourrowtemplate() { + // @@protoc_insertion_point(field_release:proto.TemplateMessage.hydratedFourRowTemplate) + if (_internal_has_hydratedfourrowtemplate()) { + clear_has_format(); + ::proto::HydratedFourRowTemplate* temp = format_.hydratedfourrowtemplate_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + format_.hydratedfourrowtemplate_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::HydratedFourRowTemplate& TemplateMessage::_internal_hydratedfourrowtemplate() const { + return _internal_has_hydratedfourrowtemplate() + ? *format_.hydratedfourrowtemplate_ + : reinterpret_cast< ::proto::HydratedFourRowTemplate&>(::proto::_HydratedFourRowTemplate_default_instance_); +} +inline const ::proto::HydratedFourRowTemplate& TemplateMessage::hydratedfourrowtemplate() const { + // @@protoc_insertion_point(field_get:proto.TemplateMessage.hydratedFourRowTemplate) + return _internal_hydratedfourrowtemplate(); +} +inline ::proto::HydratedFourRowTemplate* TemplateMessage::unsafe_arena_release_hydratedfourrowtemplate() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.TemplateMessage.hydratedFourRowTemplate) + if (_internal_has_hydratedfourrowtemplate()) { + clear_has_format(); + ::proto::HydratedFourRowTemplate* temp = format_.hydratedfourrowtemplate_; + format_.hydratedfourrowtemplate_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void TemplateMessage::unsafe_arena_set_allocated_hydratedfourrowtemplate(::proto::HydratedFourRowTemplate* hydratedfourrowtemplate) { + clear_format(); + if (hydratedfourrowtemplate) { + set_has_hydratedfourrowtemplate(); + format_.hydratedfourrowtemplate_ = hydratedfourrowtemplate; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.TemplateMessage.hydratedFourRowTemplate) +} +inline ::proto::HydratedFourRowTemplate* TemplateMessage::_internal_mutable_hydratedfourrowtemplate() { + if (!_internal_has_hydratedfourrowtemplate()) { + clear_format(); + set_has_hydratedfourrowtemplate(); + format_.hydratedfourrowtemplate_ = CreateMaybeMessage< ::proto::HydratedFourRowTemplate >(GetArena()); + } + return format_.hydratedfourrowtemplate_; +} +inline ::proto::HydratedFourRowTemplate* TemplateMessage::mutable_hydratedfourrowtemplate() { + // @@protoc_insertion_point(field_mutable:proto.TemplateMessage.hydratedFourRowTemplate) + return _internal_mutable_hydratedfourrowtemplate(); +} + +inline bool TemplateMessage::has_format() const { + return format_case() != FORMAT_NOT_SET; +} +inline void TemplateMessage::clear_has_format() { + _oneof_case_[0] = FORMAT_NOT_SET; +} +inline TemplateMessage::FormatCase TemplateMessage::format_case() const { + return TemplateMessage::FormatCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// TemplateButtonReplyMessage + +// optional string selectedId = 1; +inline bool TemplateButtonReplyMessage::_internal_has_selectedid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool TemplateButtonReplyMessage::has_selectedid() const { + return _internal_has_selectedid(); +} +inline void TemplateButtonReplyMessage::clear_selectedid() { + selectedid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& TemplateButtonReplyMessage::selectedid() const { + // @@protoc_insertion_point(field_get:proto.TemplateButtonReplyMessage.selectedId) + return _internal_selectedid(); +} +inline void TemplateButtonReplyMessage::set_selectedid(const std::string& value) { + _internal_set_selectedid(value); + // @@protoc_insertion_point(field_set:proto.TemplateButtonReplyMessage.selectedId) +} +inline std::string* TemplateButtonReplyMessage::mutable_selectedid() { + // @@protoc_insertion_point(field_mutable:proto.TemplateButtonReplyMessage.selectedId) + return _internal_mutable_selectedid(); +} +inline const std::string& TemplateButtonReplyMessage::_internal_selectedid() const { + return selectedid_.Get(); +} +inline void TemplateButtonReplyMessage::_internal_set_selectedid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + selectedid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void TemplateButtonReplyMessage::set_selectedid(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + selectedid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.TemplateButtonReplyMessage.selectedId) +} +inline void TemplateButtonReplyMessage::set_selectedid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + selectedid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.TemplateButtonReplyMessage.selectedId) +} +inline void TemplateButtonReplyMessage::set_selectedid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + selectedid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.TemplateButtonReplyMessage.selectedId) +} +inline std::string* TemplateButtonReplyMessage::_internal_mutable_selectedid() { + _has_bits_[0] |= 0x00000001u; + return selectedid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* TemplateButtonReplyMessage::release_selectedid() { + // @@protoc_insertion_point(field_release:proto.TemplateButtonReplyMessage.selectedId) + if (!_internal_has_selectedid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return selectedid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void TemplateButtonReplyMessage::set_allocated_selectedid(std::string* selectedid) { + if (selectedid != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + selectedid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), selectedid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.TemplateButtonReplyMessage.selectedId) +} + +// optional string selectedDisplayText = 2; +inline bool TemplateButtonReplyMessage::_internal_has_selecteddisplaytext() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool TemplateButtonReplyMessage::has_selecteddisplaytext() const { + return _internal_has_selecteddisplaytext(); +} +inline void TemplateButtonReplyMessage::clear_selecteddisplaytext() { + selecteddisplaytext_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& TemplateButtonReplyMessage::selecteddisplaytext() const { + // @@protoc_insertion_point(field_get:proto.TemplateButtonReplyMessage.selectedDisplayText) + return _internal_selecteddisplaytext(); +} +inline void TemplateButtonReplyMessage::set_selecteddisplaytext(const std::string& value) { + _internal_set_selecteddisplaytext(value); + // @@protoc_insertion_point(field_set:proto.TemplateButtonReplyMessage.selectedDisplayText) +} +inline std::string* TemplateButtonReplyMessage::mutable_selecteddisplaytext() { + // @@protoc_insertion_point(field_mutable:proto.TemplateButtonReplyMessage.selectedDisplayText) + return _internal_mutable_selecteddisplaytext(); +} +inline const std::string& TemplateButtonReplyMessage::_internal_selecteddisplaytext() const { + return selecteddisplaytext_.Get(); +} +inline void TemplateButtonReplyMessage::_internal_set_selecteddisplaytext(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + selecteddisplaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void TemplateButtonReplyMessage::set_selecteddisplaytext(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + selecteddisplaytext_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.TemplateButtonReplyMessage.selectedDisplayText) +} +inline void TemplateButtonReplyMessage::set_selecteddisplaytext(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + selecteddisplaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.TemplateButtonReplyMessage.selectedDisplayText) +} +inline void TemplateButtonReplyMessage::set_selecteddisplaytext(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + selecteddisplaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.TemplateButtonReplyMessage.selectedDisplayText) +} +inline std::string* TemplateButtonReplyMessage::_internal_mutable_selecteddisplaytext() { + _has_bits_[0] |= 0x00000002u; + return selecteddisplaytext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* TemplateButtonReplyMessage::release_selecteddisplaytext() { + // @@protoc_insertion_point(field_release:proto.TemplateButtonReplyMessage.selectedDisplayText) + if (!_internal_has_selecteddisplaytext()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return selecteddisplaytext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void TemplateButtonReplyMessage::set_allocated_selecteddisplaytext(std::string* selecteddisplaytext) { + if (selecteddisplaytext != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + selecteddisplaytext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), selecteddisplaytext, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.TemplateButtonReplyMessage.selectedDisplayText) +} + +// optional .proto.ContextInfo contextInfo = 3; +inline bool TemplateButtonReplyMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool TemplateButtonReplyMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void TemplateButtonReplyMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00000004u; +} +inline const ::proto::ContextInfo& TemplateButtonReplyMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& TemplateButtonReplyMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.TemplateButtonReplyMessage.contextInfo) + return _internal_contextinfo(); +} +inline void TemplateButtonReplyMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.TemplateButtonReplyMessage.contextInfo) +} +inline ::proto::ContextInfo* TemplateButtonReplyMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00000004u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* TemplateButtonReplyMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.TemplateButtonReplyMessage.contextInfo) + _has_bits_[0] &= ~0x00000004u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* TemplateButtonReplyMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00000004u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* TemplateButtonReplyMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.TemplateButtonReplyMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void TemplateButtonReplyMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.TemplateButtonReplyMessage.contextInfo) +} + +// optional uint32 selectedIndex = 4; +inline bool TemplateButtonReplyMessage::_internal_has_selectedindex() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool TemplateButtonReplyMessage::has_selectedindex() const { + return _internal_has_selectedindex(); +} +inline void TemplateButtonReplyMessage::clear_selectedindex() { + selectedindex_ = 0u; + _has_bits_[0] &= ~0x00000008u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 TemplateButtonReplyMessage::_internal_selectedindex() const { + return selectedindex_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 TemplateButtonReplyMessage::selectedindex() const { + // @@protoc_insertion_point(field_get:proto.TemplateButtonReplyMessage.selectedIndex) + return _internal_selectedindex(); +} +inline void TemplateButtonReplyMessage::_internal_set_selectedindex(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000008u; + selectedindex_ = value; +} +inline void TemplateButtonReplyMessage::set_selectedindex(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_selectedindex(value); + // @@protoc_insertion_point(field_set:proto.TemplateButtonReplyMessage.selectedIndex) +} + +// ------------------------------------------------------------------- + +// CatalogSnapshot + +// optional .proto.ImageMessage catalogImage = 1; +inline bool CatalogSnapshot::_internal_has_catalogimage() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || catalogimage_ != nullptr); + return value; +} +inline bool CatalogSnapshot::has_catalogimage() const { + return _internal_has_catalogimage(); +} +inline void CatalogSnapshot::clear_catalogimage() { + if (catalogimage_ != nullptr) catalogimage_->Clear(); + _has_bits_[0] &= ~0x00000004u; +} +inline const ::proto::ImageMessage& CatalogSnapshot::_internal_catalogimage() const { + const ::proto::ImageMessage* p = catalogimage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ImageMessage&>( + ::proto::_ImageMessage_default_instance_); +} +inline const ::proto::ImageMessage& CatalogSnapshot::catalogimage() const { + // @@protoc_insertion_point(field_get:proto.CatalogSnapshot.catalogImage) + return _internal_catalogimage(); +} +inline void CatalogSnapshot::unsafe_arena_set_allocated_catalogimage( + ::proto::ImageMessage* catalogimage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(catalogimage_); + } + catalogimage_ = catalogimage; + if (catalogimage) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.CatalogSnapshot.catalogImage) +} +inline ::proto::ImageMessage* CatalogSnapshot::release_catalogimage() { + _has_bits_[0] &= ~0x00000004u; + ::proto::ImageMessage* temp = catalogimage_; + catalogimage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ImageMessage* CatalogSnapshot::unsafe_arena_release_catalogimage() { + // @@protoc_insertion_point(field_release:proto.CatalogSnapshot.catalogImage) + _has_bits_[0] &= ~0x00000004u; + ::proto::ImageMessage* temp = catalogimage_; + catalogimage_ = nullptr; + return temp; +} +inline ::proto::ImageMessage* CatalogSnapshot::_internal_mutable_catalogimage() { + _has_bits_[0] |= 0x00000004u; + if (catalogimage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ImageMessage>(GetArena()); + catalogimage_ = p; + } + return catalogimage_; +} +inline ::proto::ImageMessage* CatalogSnapshot::mutable_catalogimage() { + // @@protoc_insertion_point(field_mutable:proto.CatalogSnapshot.catalogImage) + return _internal_mutable_catalogimage(); +} +inline void CatalogSnapshot::set_allocated_catalogimage(::proto::ImageMessage* catalogimage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete catalogimage_; + } + if (catalogimage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(catalogimage); + if (message_arena != submessage_arena) { + catalogimage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, catalogimage, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + catalogimage_ = catalogimage; + // @@protoc_insertion_point(field_set_allocated:proto.CatalogSnapshot.catalogImage) +} + +// optional string title = 2; +inline bool CatalogSnapshot::_internal_has_title() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool CatalogSnapshot::has_title() const { + return _internal_has_title(); +} +inline void CatalogSnapshot::clear_title() { + title_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& CatalogSnapshot::title() const { + // @@protoc_insertion_point(field_get:proto.CatalogSnapshot.title) + return _internal_title(); +} +inline void CatalogSnapshot::set_title(const std::string& value) { + _internal_set_title(value); + // @@protoc_insertion_point(field_set:proto.CatalogSnapshot.title) +} +inline std::string* CatalogSnapshot::mutable_title() { + // @@protoc_insertion_point(field_mutable:proto.CatalogSnapshot.title) + return _internal_mutable_title(); +} +inline const std::string& CatalogSnapshot::_internal_title() const { + return title_.Get(); +} +inline void CatalogSnapshot::_internal_set_title(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void CatalogSnapshot::set_title(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + title_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.CatalogSnapshot.title) +} +inline void CatalogSnapshot::set_title(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.CatalogSnapshot.title) +} +inline void CatalogSnapshot::set_title(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.CatalogSnapshot.title) +} +inline std::string* CatalogSnapshot::_internal_mutable_title() { + _has_bits_[0] |= 0x00000001u; + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* CatalogSnapshot::release_title() { + // @@protoc_insertion_point(field_release:proto.CatalogSnapshot.title) + if (!_internal_has_title()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void CatalogSnapshot::set_allocated_title(std::string* title) { + if (title != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.CatalogSnapshot.title) +} + +// optional string description = 3; +inline bool CatalogSnapshot::_internal_has_description() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool CatalogSnapshot::has_description() const { + return _internal_has_description(); +} +inline void CatalogSnapshot::clear_description() { + description_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& CatalogSnapshot::description() const { + // @@protoc_insertion_point(field_get:proto.CatalogSnapshot.description) + return _internal_description(); +} +inline void CatalogSnapshot::set_description(const std::string& value) { + _internal_set_description(value); + // @@protoc_insertion_point(field_set:proto.CatalogSnapshot.description) +} +inline std::string* CatalogSnapshot::mutable_description() { + // @@protoc_insertion_point(field_mutable:proto.CatalogSnapshot.description) + return _internal_mutable_description(); +} +inline const std::string& CatalogSnapshot::_internal_description() const { + return description_.Get(); +} +inline void CatalogSnapshot::_internal_set_description(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void CatalogSnapshot::set_description(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + description_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.CatalogSnapshot.description) +} +inline void CatalogSnapshot::set_description(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.CatalogSnapshot.description) +} +inline void CatalogSnapshot::set_description(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.CatalogSnapshot.description) +} +inline std::string* CatalogSnapshot::_internal_mutable_description() { + _has_bits_[0] |= 0x00000002u; + return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* CatalogSnapshot::release_description() { + // @@protoc_insertion_point(field_release:proto.CatalogSnapshot.description) + if (!_internal_has_description()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void CatalogSnapshot::set_allocated_description(std::string* description) { + if (description != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.CatalogSnapshot.description) +} + +// ------------------------------------------------------------------- + +// ProductSnapshot + +// optional .proto.ImageMessage productImage = 1; +inline bool ProductSnapshot::_internal_has_productimage() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + PROTOBUF_ASSUME(!value || productimage_ != nullptr); + return value; +} +inline bool ProductSnapshot::has_productimage() const { + return _internal_has_productimage(); +} +inline void ProductSnapshot::clear_productimage() { + if (productimage_ != nullptr) productimage_->Clear(); + _has_bits_[0] &= ~0x00000080u; +} +inline const ::proto::ImageMessage& ProductSnapshot::_internal_productimage() const { + const ::proto::ImageMessage* p = productimage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ImageMessage&>( + ::proto::_ImageMessage_default_instance_); +} +inline const ::proto::ImageMessage& ProductSnapshot::productimage() const { + // @@protoc_insertion_point(field_get:proto.ProductSnapshot.productImage) + return _internal_productimage(); +} +inline void ProductSnapshot::unsafe_arena_set_allocated_productimage( + ::proto::ImageMessage* productimage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(productimage_); + } + productimage_ = productimage; + if (productimage) { + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ProductSnapshot.productImage) +} +inline ::proto::ImageMessage* ProductSnapshot::release_productimage() { + _has_bits_[0] &= ~0x00000080u; + ::proto::ImageMessage* temp = productimage_; + productimage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ImageMessage* ProductSnapshot::unsafe_arena_release_productimage() { + // @@protoc_insertion_point(field_release:proto.ProductSnapshot.productImage) + _has_bits_[0] &= ~0x00000080u; + ::proto::ImageMessage* temp = productimage_; + productimage_ = nullptr; + return temp; +} +inline ::proto::ImageMessage* ProductSnapshot::_internal_mutable_productimage() { + _has_bits_[0] |= 0x00000080u; + if (productimage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ImageMessage>(GetArena()); + productimage_ = p; + } + return productimage_; +} +inline ::proto::ImageMessage* ProductSnapshot::mutable_productimage() { + // @@protoc_insertion_point(field_mutable:proto.ProductSnapshot.productImage) + return _internal_mutable_productimage(); +} +inline void ProductSnapshot::set_allocated_productimage(::proto::ImageMessage* productimage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete productimage_; + } + if (productimage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(productimage); + if (message_arena != submessage_arena) { + productimage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, productimage, submessage_arena); + } + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + productimage_ = productimage; + // @@protoc_insertion_point(field_set_allocated:proto.ProductSnapshot.productImage) +} + +// optional string productId = 2; +inline bool ProductSnapshot::_internal_has_productid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool ProductSnapshot::has_productid() const { + return _internal_has_productid(); +} +inline void ProductSnapshot::clear_productid() { + productid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& ProductSnapshot::productid() const { + // @@protoc_insertion_point(field_get:proto.ProductSnapshot.productId) + return _internal_productid(); +} +inline void ProductSnapshot::set_productid(const std::string& value) { + _internal_set_productid(value); + // @@protoc_insertion_point(field_set:proto.ProductSnapshot.productId) +} +inline std::string* ProductSnapshot::mutable_productid() { + // @@protoc_insertion_point(field_mutable:proto.ProductSnapshot.productId) + return _internal_mutable_productid(); +} +inline const std::string& ProductSnapshot::_internal_productid() const { + return productid_.Get(); +} +inline void ProductSnapshot::_internal_set_productid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + productid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ProductSnapshot::set_productid(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + productid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ProductSnapshot.productId) +} +inline void ProductSnapshot::set_productid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + productid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ProductSnapshot.productId) +} +inline void ProductSnapshot::set_productid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + productid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ProductSnapshot.productId) +} +inline std::string* ProductSnapshot::_internal_mutable_productid() { + _has_bits_[0] |= 0x00000001u; + return productid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ProductSnapshot::release_productid() { + // @@protoc_insertion_point(field_release:proto.ProductSnapshot.productId) + if (!_internal_has_productid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return productid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ProductSnapshot::set_allocated_productid(std::string* productid) { + if (productid != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + productid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), productid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ProductSnapshot.productId) +} + +// optional string title = 3; +inline bool ProductSnapshot::_internal_has_title() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool ProductSnapshot::has_title() const { + return _internal_has_title(); +} +inline void ProductSnapshot::clear_title() { + title_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& ProductSnapshot::title() const { + // @@protoc_insertion_point(field_get:proto.ProductSnapshot.title) + return _internal_title(); +} +inline void ProductSnapshot::set_title(const std::string& value) { + _internal_set_title(value); + // @@protoc_insertion_point(field_set:proto.ProductSnapshot.title) +} +inline std::string* ProductSnapshot::mutable_title() { + // @@protoc_insertion_point(field_mutable:proto.ProductSnapshot.title) + return _internal_mutable_title(); +} +inline const std::string& ProductSnapshot::_internal_title() const { + return title_.Get(); +} +inline void ProductSnapshot::_internal_set_title(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ProductSnapshot::set_title(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + title_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ProductSnapshot.title) +} +inline void ProductSnapshot::set_title(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ProductSnapshot.title) +} +inline void ProductSnapshot::set_title(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ProductSnapshot.title) +} +inline std::string* ProductSnapshot::_internal_mutable_title() { + _has_bits_[0] |= 0x00000002u; + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ProductSnapshot::release_title() { + // @@protoc_insertion_point(field_release:proto.ProductSnapshot.title) + if (!_internal_has_title()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ProductSnapshot::set_allocated_title(std::string* title) { + if (title != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ProductSnapshot.title) +} + +// optional string description = 4; +inline bool ProductSnapshot::_internal_has_description() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool ProductSnapshot::has_description() const { + return _internal_has_description(); +} +inline void ProductSnapshot::clear_description() { + description_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& ProductSnapshot::description() const { + // @@protoc_insertion_point(field_get:proto.ProductSnapshot.description) + return _internal_description(); +} +inline void ProductSnapshot::set_description(const std::string& value) { + _internal_set_description(value); + // @@protoc_insertion_point(field_set:proto.ProductSnapshot.description) +} +inline std::string* ProductSnapshot::mutable_description() { + // @@protoc_insertion_point(field_mutable:proto.ProductSnapshot.description) + return _internal_mutable_description(); +} +inline const std::string& ProductSnapshot::_internal_description() const { + return description_.Get(); +} +inline void ProductSnapshot::_internal_set_description(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ProductSnapshot::set_description(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + description_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ProductSnapshot.description) +} +inline void ProductSnapshot::set_description(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ProductSnapshot.description) +} +inline void ProductSnapshot::set_description(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ProductSnapshot.description) +} +inline std::string* ProductSnapshot::_internal_mutable_description() { + _has_bits_[0] |= 0x00000004u; + return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ProductSnapshot::release_description() { + // @@protoc_insertion_point(field_release:proto.ProductSnapshot.description) + if (!_internal_has_description()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ProductSnapshot::set_allocated_description(std::string* description) { + if (description != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ProductSnapshot.description) +} + +// optional string currencyCode = 5; +inline bool ProductSnapshot::_internal_has_currencycode() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool ProductSnapshot::has_currencycode() const { + return _internal_has_currencycode(); +} +inline void ProductSnapshot::clear_currencycode() { + currencycode_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& ProductSnapshot::currencycode() const { + // @@protoc_insertion_point(field_get:proto.ProductSnapshot.currencyCode) + return _internal_currencycode(); +} +inline void ProductSnapshot::set_currencycode(const std::string& value) { + _internal_set_currencycode(value); + // @@protoc_insertion_point(field_set:proto.ProductSnapshot.currencyCode) +} +inline std::string* ProductSnapshot::mutable_currencycode() { + // @@protoc_insertion_point(field_mutable:proto.ProductSnapshot.currencyCode) + return _internal_mutable_currencycode(); +} +inline const std::string& ProductSnapshot::_internal_currencycode() const { + return currencycode_.Get(); +} +inline void ProductSnapshot::_internal_set_currencycode(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ProductSnapshot::set_currencycode(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + currencycode_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ProductSnapshot.currencyCode) +} +inline void ProductSnapshot::set_currencycode(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ProductSnapshot.currencyCode) +} +inline void ProductSnapshot::set_currencycode(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ProductSnapshot.currencyCode) +} +inline std::string* ProductSnapshot::_internal_mutable_currencycode() { + _has_bits_[0] |= 0x00000008u; + return currencycode_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ProductSnapshot::release_currencycode() { + // @@protoc_insertion_point(field_release:proto.ProductSnapshot.currencyCode) + if (!_internal_has_currencycode()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + return currencycode_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ProductSnapshot::set_allocated_currencycode(std::string* currencycode) { + if (currencycode != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + currencycode_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), currencycode, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ProductSnapshot.currencyCode) +} + +// optional int64 priceAmount1000 = 6; +inline bool ProductSnapshot::_internal_has_priceamount1000() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + return value; +} +inline bool ProductSnapshot::has_priceamount1000() const { + return _internal_has_priceamount1000(); +} +inline void ProductSnapshot::clear_priceamount1000() { + priceamount1000_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00000100u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ProductSnapshot::_internal_priceamount1000() const { + return priceamount1000_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 ProductSnapshot::priceamount1000() const { + // @@protoc_insertion_point(field_get:proto.ProductSnapshot.priceAmount1000) + return _internal_priceamount1000(); +} +inline void ProductSnapshot::_internal_set_priceamount1000(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00000100u; + priceamount1000_ = value; +} +inline void ProductSnapshot::set_priceamount1000(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_priceamount1000(value); + // @@protoc_insertion_point(field_set:proto.ProductSnapshot.priceAmount1000) +} + +// optional string retailerId = 7; +inline bool ProductSnapshot::_internal_has_retailerid() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool ProductSnapshot::has_retailerid() const { + return _internal_has_retailerid(); +} +inline void ProductSnapshot::clear_retailerid() { + retailerid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000010u; +} +inline const std::string& ProductSnapshot::retailerid() const { + // @@protoc_insertion_point(field_get:proto.ProductSnapshot.retailerId) + return _internal_retailerid(); +} +inline void ProductSnapshot::set_retailerid(const std::string& value) { + _internal_set_retailerid(value); + // @@protoc_insertion_point(field_set:proto.ProductSnapshot.retailerId) +} +inline std::string* ProductSnapshot::mutable_retailerid() { + // @@protoc_insertion_point(field_mutable:proto.ProductSnapshot.retailerId) + return _internal_mutable_retailerid(); +} +inline const std::string& ProductSnapshot::_internal_retailerid() const { + return retailerid_.Get(); +} +inline void ProductSnapshot::_internal_set_retailerid(const std::string& value) { + _has_bits_[0] |= 0x00000010u; + retailerid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ProductSnapshot::set_retailerid(std::string&& value) { + _has_bits_[0] |= 0x00000010u; + retailerid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ProductSnapshot.retailerId) +} +inline void ProductSnapshot::set_retailerid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000010u; + retailerid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ProductSnapshot.retailerId) +} +inline void ProductSnapshot::set_retailerid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000010u; + retailerid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ProductSnapshot.retailerId) +} +inline std::string* ProductSnapshot::_internal_mutable_retailerid() { + _has_bits_[0] |= 0x00000010u; + return retailerid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ProductSnapshot::release_retailerid() { + // @@protoc_insertion_point(field_release:proto.ProductSnapshot.retailerId) + if (!_internal_has_retailerid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000010u; + return retailerid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ProductSnapshot::set_allocated_retailerid(std::string* retailerid) { + if (retailerid != nullptr) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + retailerid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), retailerid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ProductSnapshot.retailerId) +} + +// optional string url = 8; +inline bool ProductSnapshot::_internal_has_url() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool ProductSnapshot::has_url() const { + return _internal_has_url(); +} +inline void ProductSnapshot::clear_url() { + url_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000020u; +} +inline const std::string& ProductSnapshot::url() const { + // @@protoc_insertion_point(field_get:proto.ProductSnapshot.url) + return _internal_url(); +} +inline void ProductSnapshot::set_url(const std::string& value) { + _internal_set_url(value); + // @@protoc_insertion_point(field_set:proto.ProductSnapshot.url) +} +inline std::string* ProductSnapshot::mutable_url() { + // @@protoc_insertion_point(field_mutable:proto.ProductSnapshot.url) + return _internal_mutable_url(); +} +inline const std::string& ProductSnapshot::_internal_url() const { + return url_.Get(); +} +inline void ProductSnapshot::_internal_set_url(const std::string& value) { + _has_bits_[0] |= 0x00000020u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ProductSnapshot::set_url(std::string&& value) { + _has_bits_[0] |= 0x00000020u; + url_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ProductSnapshot.url) +} +inline void ProductSnapshot::set_url(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000020u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ProductSnapshot.url) +} +inline void ProductSnapshot::set_url(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000020u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ProductSnapshot.url) +} +inline std::string* ProductSnapshot::_internal_mutable_url() { + _has_bits_[0] |= 0x00000020u; + return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ProductSnapshot::release_url() { + // @@protoc_insertion_point(field_release:proto.ProductSnapshot.url) + if (!_internal_has_url()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000020u; + return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ProductSnapshot::set_allocated_url(std::string* url) { + if (url != nullptr) { + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), url, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ProductSnapshot.url) +} + +// optional uint32 productImageCount = 9; +inline bool ProductSnapshot::_internal_has_productimagecount() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + return value; +} +inline bool ProductSnapshot::has_productimagecount() const { + return _internal_has_productimagecount(); +} +inline void ProductSnapshot::clear_productimagecount() { + productimagecount_ = 0u; + _has_bits_[0] &= ~0x00000200u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ProductSnapshot::_internal_productimagecount() const { + return productimagecount_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 ProductSnapshot::productimagecount() const { + // @@protoc_insertion_point(field_get:proto.ProductSnapshot.productImageCount) + return _internal_productimagecount(); +} +inline void ProductSnapshot::_internal_set_productimagecount(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000200u; + productimagecount_ = value; +} +inline void ProductSnapshot::set_productimagecount(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_productimagecount(value); + // @@protoc_insertion_point(field_set:proto.ProductSnapshot.productImageCount) +} + +// optional string firstImageId = 11; +inline bool ProductSnapshot::_internal_has_firstimageid() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool ProductSnapshot::has_firstimageid() const { + return _internal_has_firstimageid(); +} +inline void ProductSnapshot::clear_firstimageid() { + firstimageid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000040u; +} +inline const std::string& ProductSnapshot::firstimageid() const { + // @@protoc_insertion_point(field_get:proto.ProductSnapshot.firstImageId) + return _internal_firstimageid(); +} +inline void ProductSnapshot::set_firstimageid(const std::string& value) { + _internal_set_firstimageid(value); + // @@protoc_insertion_point(field_set:proto.ProductSnapshot.firstImageId) +} +inline std::string* ProductSnapshot::mutable_firstimageid() { + // @@protoc_insertion_point(field_mutable:proto.ProductSnapshot.firstImageId) + return _internal_mutable_firstimageid(); +} +inline const std::string& ProductSnapshot::_internal_firstimageid() const { + return firstimageid_.Get(); +} +inline void ProductSnapshot::_internal_set_firstimageid(const std::string& value) { + _has_bits_[0] |= 0x00000040u; + firstimageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ProductSnapshot::set_firstimageid(std::string&& value) { + _has_bits_[0] |= 0x00000040u; + firstimageid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ProductSnapshot.firstImageId) +} +inline void ProductSnapshot::set_firstimageid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000040u; + firstimageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ProductSnapshot.firstImageId) +} +inline void ProductSnapshot::set_firstimageid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000040u; + firstimageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ProductSnapshot.firstImageId) +} +inline std::string* ProductSnapshot::_internal_mutable_firstimageid() { + _has_bits_[0] |= 0x00000040u; + return firstimageid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ProductSnapshot::release_firstimageid() { + // @@protoc_insertion_point(field_release:proto.ProductSnapshot.firstImageId) + if (!_internal_has_firstimageid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000040u; + return firstimageid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ProductSnapshot::set_allocated_firstimageid(std::string* firstimageid) { + if (firstimageid != nullptr) { + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + firstimageid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), firstimageid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ProductSnapshot.firstImageId) +} + +// ------------------------------------------------------------------- + +// ProductMessage + +// optional .proto.ProductSnapshot product = 1; +inline bool ProductMessage::_internal_has_product() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || product_ != nullptr); + return value; +} +inline bool ProductMessage::has_product() const { + return _internal_has_product(); +} +inline void ProductMessage::clear_product() { + if (product_ != nullptr) product_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::proto::ProductSnapshot& ProductMessage::_internal_product() const { + const ::proto::ProductSnapshot* p = product_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ProductSnapshot&>( + ::proto::_ProductSnapshot_default_instance_); +} +inline const ::proto::ProductSnapshot& ProductMessage::product() const { + // @@protoc_insertion_point(field_get:proto.ProductMessage.product) + return _internal_product(); +} +inline void ProductMessage::unsafe_arena_set_allocated_product( + ::proto::ProductSnapshot* product) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(product_); + } + product_ = product; + if (product) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ProductMessage.product) +} +inline ::proto::ProductSnapshot* ProductMessage::release_product() { + _has_bits_[0] &= ~0x00000002u; + ::proto::ProductSnapshot* temp = product_; + product_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ProductSnapshot* ProductMessage::unsafe_arena_release_product() { + // @@protoc_insertion_point(field_release:proto.ProductMessage.product) + _has_bits_[0] &= ~0x00000002u; + ::proto::ProductSnapshot* temp = product_; + product_ = nullptr; + return temp; +} +inline ::proto::ProductSnapshot* ProductMessage::_internal_mutable_product() { + _has_bits_[0] |= 0x00000002u; + if (product_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ProductSnapshot>(GetArena()); + product_ = p; + } + return product_; +} +inline ::proto::ProductSnapshot* ProductMessage::mutable_product() { + // @@protoc_insertion_point(field_mutable:proto.ProductMessage.product) + return _internal_mutable_product(); +} +inline void ProductMessage::set_allocated_product(::proto::ProductSnapshot* product) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete product_; + } + if (product) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(product); + if (message_arena != submessage_arena) { + product = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, product, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + product_ = product; + // @@protoc_insertion_point(field_set_allocated:proto.ProductMessage.product) +} + +// optional string businessOwnerJid = 2; +inline bool ProductMessage::_internal_has_businessownerjid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool ProductMessage::has_businessownerjid() const { + return _internal_has_businessownerjid(); +} +inline void ProductMessage::clear_businessownerjid() { + businessownerjid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& ProductMessage::businessownerjid() const { + // @@protoc_insertion_point(field_get:proto.ProductMessage.businessOwnerJid) + return _internal_businessownerjid(); +} +inline void ProductMessage::set_businessownerjid(const std::string& value) { + _internal_set_businessownerjid(value); + // @@protoc_insertion_point(field_set:proto.ProductMessage.businessOwnerJid) +} +inline std::string* ProductMessage::mutable_businessownerjid() { + // @@protoc_insertion_point(field_mutable:proto.ProductMessage.businessOwnerJid) + return _internal_mutable_businessownerjid(); +} +inline const std::string& ProductMessage::_internal_businessownerjid() const { + return businessownerjid_.Get(); +} +inline void ProductMessage::_internal_set_businessownerjid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + businessownerjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ProductMessage::set_businessownerjid(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + businessownerjid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ProductMessage.businessOwnerJid) +} +inline void ProductMessage::set_businessownerjid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + businessownerjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ProductMessage.businessOwnerJid) +} +inline void ProductMessage::set_businessownerjid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + businessownerjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ProductMessage.businessOwnerJid) +} +inline std::string* ProductMessage::_internal_mutable_businessownerjid() { + _has_bits_[0] |= 0x00000001u; + return businessownerjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ProductMessage::release_businessownerjid() { + // @@protoc_insertion_point(field_release:proto.ProductMessage.businessOwnerJid) + if (!_internal_has_businessownerjid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return businessownerjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ProductMessage::set_allocated_businessownerjid(std::string* businessownerjid) { + if (businessownerjid != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + businessownerjid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), businessownerjid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ProductMessage.businessOwnerJid) +} + +// optional .proto.CatalogSnapshot catalog = 4; +inline bool ProductMessage::_internal_has_catalog() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || catalog_ != nullptr); + return value; +} +inline bool ProductMessage::has_catalog() const { + return _internal_has_catalog(); +} +inline void ProductMessage::clear_catalog() { + if (catalog_ != nullptr) catalog_->Clear(); + _has_bits_[0] &= ~0x00000004u; +} +inline const ::proto::CatalogSnapshot& ProductMessage::_internal_catalog() const { + const ::proto::CatalogSnapshot* p = catalog_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::CatalogSnapshot&>( + ::proto::_CatalogSnapshot_default_instance_); +} +inline const ::proto::CatalogSnapshot& ProductMessage::catalog() const { + // @@protoc_insertion_point(field_get:proto.ProductMessage.catalog) + return _internal_catalog(); +} +inline void ProductMessage::unsafe_arena_set_allocated_catalog( + ::proto::CatalogSnapshot* catalog) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(catalog_); + } + catalog_ = catalog; + if (catalog) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ProductMessage.catalog) +} +inline ::proto::CatalogSnapshot* ProductMessage::release_catalog() { + _has_bits_[0] &= ~0x00000004u; + ::proto::CatalogSnapshot* temp = catalog_; + catalog_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::CatalogSnapshot* ProductMessage::unsafe_arena_release_catalog() { + // @@protoc_insertion_point(field_release:proto.ProductMessage.catalog) + _has_bits_[0] &= ~0x00000004u; + ::proto::CatalogSnapshot* temp = catalog_; + catalog_ = nullptr; + return temp; +} +inline ::proto::CatalogSnapshot* ProductMessage::_internal_mutable_catalog() { + _has_bits_[0] |= 0x00000004u; + if (catalog_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::CatalogSnapshot>(GetArena()); + catalog_ = p; + } + return catalog_; +} +inline ::proto::CatalogSnapshot* ProductMessage::mutable_catalog() { + // @@protoc_insertion_point(field_mutable:proto.ProductMessage.catalog) + return _internal_mutable_catalog(); +} +inline void ProductMessage::set_allocated_catalog(::proto::CatalogSnapshot* catalog) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete catalog_; + } + if (catalog) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(catalog); + if (message_arena != submessage_arena) { + catalog = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, catalog, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + catalog_ = catalog; + // @@protoc_insertion_point(field_set_allocated:proto.ProductMessage.catalog) +} + +// optional .proto.ContextInfo contextInfo = 17; +inline bool ProductMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool ProductMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void ProductMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00000008u; +} +inline const ::proto::ContextInfo& ProductMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& ProductMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.ProductMessage.contextInfo) + return _internal_contextinfo(); +} +inline void ProductMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ProductMessage.contextInfo) +} +inline ::proto::ContextInfo* ProductMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00000008u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* ProductMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.ProductMessage.contextInfo) + _has_bits_[0] &= ~0x00000008u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* ProductMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00000008u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* ProductMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.ProductMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void ProductMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.ProductMessage.contextInfo) +} + +// ------------------------------------------------------------------- + +// OrderMessage + +// optional string orderId = 1; +inline bool OrderMessage::_internal_has_orderid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool OrderMessage::has_orderid() const { + return _internal_has_orderid(); +} +inline void OrderMessage::clear_orderid() { + orderid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& OrderMessage::orderid() const { + // @@protoc_insertion_point(field_get:proto.OrderMessage.orderId) + return _internal_orderid(); +} +inline void OrderMessage::set_orderid(const std::string& value) { + _internal_set_orderid(value); + // @@protoc_insertion_point(field_set:proto.OrderMessage.orderId) +} +inline std::string* OrderMessage::mutable_orderid() { + // @@protoc_insertion_point(field_mutable:proto.OrderMessage.orderId) + return _internal_mutable_orderid(); +} +inline const std::string& OrderMessage::_internal_orderid() const { + return orderid_.Get(); +} +inline void OrderMessage::_internal_set_orderid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + orderid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void OrderMessage::set_orderid(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + orderid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.OrderMessage.orderId) +} +inline void OrderMessage::set_orderid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + orderid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.OrderMessage.orderId) +} +inline void OrderMessage::set_orderid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + orderid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.OrderMessage.orderId) +} +inline std::string* OrderMessage::_internal_mutable_orderid() { + _has_bits_[0] |= 0x00000001u; + return orderid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* OrderMessage::release_orderid() { + // @@protoc_insertion_point(field_release:proto.OrderMessage.orderId) + if (!_internal_has_orderid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return orderid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void OrderMessage::set_allocated_orderid(std::string* orderid) { + if (orderid != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + orderid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), orderid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.OrderMessage.orderId) +} + +// optional bytes thumbnail = 2; +inline bool OrderMessage::_internal_has_thumbnail() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool OrderMessage::has_thumbnail() const { + return _internal_has_thumbnail(); +} +inline void OrderMessage::clear_thumbnail() { + thumbnail_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& OrderMessage::thumbnail() const { + // @@protoc_insertion_point(field_get:proto.OrderMessage.thumbnail) + return _internal_thumbnail(); +} +inline void OrderMessage::set_thumbnail(const std::string& value) { + _internal_set_thumbnail(value); + // @@protoc_insertion_point(field_set:proto.OrderMessage.thumbnail) +} +inline std::string* OrderMessage::mutable_thumbnail() { + // @@protoc_insertion_point(field_mutable:proto.OrderMessage.thumbnail) + return _internal_mutable_thumbnail(); +} +inline const std::string& OrderMessage::_internal_thumbnail() const { + return thumbnail_.Get(); +} +inline void OrderMessage::_internal_set_thumbnail(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + thumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void OrderMessage::set_thumbnail(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + thumbnail_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.OrderMessage.thumbnail) +} +inline void OrderMessage::set_thumbnail(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + thumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.OrderMessage.thumbnail) +} +inline void OrderMessage::set_thumbnail(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + thumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.OrderMessage.thumbnail) +} +inline std::string* OrderMessage::_internal_mutable_thumbnail() { + _has_bits_[0] |= 0x00000002u; + return thumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* OrderMessage::release_thumbnail() { + // @@protoc_insertion_point(field_release:proto.OrderMessage.thumbnail) + if (!_internal_has_thumbnail()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return thumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void OrderMessage::set_allocated_thumbnail(std::string* thumbnail) { + if (thumbnail != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + thumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnail, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.OrderMessage.thumbnail) +} + +// optional int32 itemCount = 3; +inline bool OrderMessage::_internal_has_itemcount() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + return value; +} +inline bool OrderMessage::has_itemcount() const { + return _internal_has_itemcount(); +} +inline void OrderMessage::clear_itemcount() { + itemcount_ = 0; + _has_bits_[0] &= ~0x00000200u; +} +inline ::PROTOBUF_NAMESPACE_ID::int32 OrderMessage::_internal_itemcount() const { + return itemcount_; +} +inline ::PROTOBUF_NAMESPACE_ID::int32 OrderMessage::itemcount() const { + // @@protoc_insertion_point(field_get:proto.OrderMessage.itemCount) + return _internal_itemcount(); +} +inline void OrderMessage::_internal_set_itemcount(::PROTOBUF_NAMESPACE_ID::int32 value) { + _has_bits_[0] |= 0x00000200u; + itemcount_ = value; +} +inline void OrderMessage::set_itemcount(::PROTOBUF_NAMESPACE_ID::int32 value) { + _internal_set_itemcount(value); + // @@protoc_insertion_point(field_set:proto.OrderMessage.itemCount) +} + +// optional .proto.OrderMessage.OrderMessageOrderStatus status = 4; +inline bool OrderMessage::_internal_has_status() const { + bool value = (_has_bits_[0] & 0x00000400u) != 0; + return value; +} +inline bool OrderMessage::has_status() const { + return _internal_has_status(); +} +inline void OrderMessage::clear_status() { + status_ = 1; + _has_bits_[0] &= ~0x00000400u; +} +inline ::proto::OrderMessage_OrderMessageOrderStatus OrderMessage::_internal_status() const { + return static_cast< ::proto::OrderMessage_OrderMessageOrderStatus >(status_); +} +inline ::proto::OrderMessage_OrderMessageOrderStatus OrderMessage::status() const { + // @@protoc_insertion_point(field_get:proto.OrderMessage.status) + return _internal_status(); +} +inline void OrderMessage::_internal_set_status(::proto::OrderMessage_OrderMessageOrderStatus value) { + assert(::proto::OrderMessage_OrderMessageOrderStatus_IsValid(value)); + _has_bits_[0] |= 0x00000400u; + status_ = value; +} +inline void OrderMessage::set_status(::proto::OrderMessage_OrderMessageOrderStatus value) { + _internal_set_status(value); + // @@protoc_insertion_point(field_set:proto.OrderMessage.status) +} + +// optional .proto.OrderMessage.OrderMessageOrderSurface surface = 5; +inline bool OrderMessage::_internal_has_surface() const { + bool value = (_has_bits_[0] & 0x00000800u) != 0; + return value; +} +inline bool OrderMessage::has_surface() const { + return _internal_has_surface(); +} +inline void OrderMessage::clear_surface() { + surface_ = 1; + _has_bits_[0] &= ~0x00000800u; +} +inline ::proto::OrderMessage_OrderMessageOrderSurface OrderMessage::_internal_surface() const { + return static_cast< ::proto::OrderMessage_OrderMessageOrderSurface >(surface_); +} +inline ::proto::OrderMessage_OrderMessageOrderSurface OrderMessage::surface() const { + // @@protoc_insertion_point(field_get:proto.OrderMessage.surface) + return _internal_surface(); +} +inline void OrderMessage::_internal_set_surface(::proto::OrderMessage_OrderMessageOrderSurface value) { + assert(::proto::OrderMessage_OrderMessageOrderSurface_IsValid(value)); + _has_bits_[0] |= 0x00000800u; + surface_ = value; +} +inline void OrderMessage::set_surface(::proto::OrderMessage_OrderMessageOrderSurface value) { + _internal_set_surface(value); + // @@protoc_insertion_point(field_set:proto.OrderMessage.surface) +} + +// optional string message = 6; +inline bool OrderMessage::_internal_has_message() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool OrderMessage::has_message() const { + return _internal_has_message(); +} +inline void OrderMessage::clear_message() { + message_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& OrderMessage::message() const { + // @@protoc_insertion_point(field_get:proto.OrderMessage.message) + return _internal_message(); +} +inline void OrderMessage::set_message(const std::string& value) { + _internal_set_message(value); + // @@protoc_insertion_point(field_set:proto.OrderMessage.message) +} +inline std::string* OrderMessage::mutable_message() { + // @@protoc_insertion_point(field_mutable:proto.OrderMessage.message) + return _internal_mutable_message(); +} +inline const std::string& OrderMessage::_internal_message() const { + return message_.Get(); +} +inline void OrderMessage::_internal_set_message(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void OrderMessage::set_message(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + message_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.OrderMessage.message) +} +inline void OrderMessage::set_message(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.OrderMessage.message) +} +inline void OrderMessage::set_message(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.OrderMessage.message) +} +inline std::string* OrderMessage::_internal_mutable_message() { + _has_bits_[0] |= 0x00000004u; + return message_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* OrderMessage::release_message() { + // @@protoc_insertion_point(field_release:proto.OrderMessage.message) + if (!_internal_has_message()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return message_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void OrderMessage::set_allocated_message(std::string* message) { + if (message != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + message_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.OrderMessage.message) +} + +// optional string orderTitle = 7; +inline bool OrderMessage::_internal_has_ordertitle() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool OrderMessage::has_ordertitle() const { + return _internal_has_ordertitle(); +} +inline void OrderMessage::clear_ordertitle() { + ordertitle_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& OrderMessage::ordertitle() const { + // @@protoc_insertion_point(field_get:proto.OrderMessage.orderTitle) + return _internal_ordertitle(); +} +inline void OrderMessage::set_ordertitle(const std::string& value) { + _internal_set_ordertitle(value); + // @@protoc_insertion_point(field_set:proto.OrderMessage.orderTitle) +} +inline std::string* OrderMessage::mutable_ordertitle() { + // @@protoc_insertion_point(field_mutable:proto.OrderMessage.orderTitle) + return _internal_mutable_ordertitle(); +} +inline const std::string& OrderMessage::_internal_ordertitle() const { + return ordertitle_.Get(); +} +inline void OrderMessage::_internal_set_ordertitle(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + ordertitle_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void OrderMessage::set_ordertitle(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + ordertitle_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.OrderMessage.orderTitle) +} +inline void OrderMessage::set_ordertitle(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + ordertitle_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.OrderMessage.orderTitle) +} +inline void OrderMessage::set_ordertitle(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + ordertitle_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.OrderMessage.orderTitle) +} +inline std::string* OrderMessage::_internal_mutable_ordertitle() { + _has_bits_[0] |= 0x00000008u; + return ordertitle_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* OrderMessage::release_ordertitle() { + // @@protoc_insertion_point(field_release:proto.OrderMessage.orderTitle) + if (!_internal_has_ordertitle()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + return ordertitle_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void OrderMessage::set_allocated_ordertitle(std::string* ordertitle) { + if (ordertitle != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + ordertitle_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ordertitle, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.OrderMessage.orderTitle) +} + +// optional string sellerJid = 8; +inline bool OrderMessage::_internal_has_sellerjid() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool OrderMessage::has_sellerjid() const { + return _internal_has_sellerjid(); +} +inline void OrderMessage::clear_sellerjid() { + sellerjid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000010u; +} +inline const std::string& OrderMessage::sellerjid() const { + // @@protoc_insertion_point(field_get:proto.OrderMessage.sellerJid) + return _internal_sellerjid(); +} +inline void OrderMessage::set_sellerjid(const std::string& value) { + _internal_set_sellerjid(value); + // @@protoc_insertion_point(field_set:proto.OrderMessage.sellerJid) +} +inline std::string* OrderMessage::mutable_sellerjid() { + // @@protoc_insertion_point(field_mutable:proto.OrderMessage.sellerJid) + return _internal_mutable_sellerjid(); +} +inline const std::string& OrderMessage::_internal_sellerjid() const { + return sellerjid_.Get(); +} +inline void OrderMessage::_internal_set_sellerjid(const std::string& value) { + _has_bits_[0] |= 0x00000010u; + sellerjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void OrderMessage::set_sellerjid(std::string&& value) { + _has_bits_[0] |= 0x00000010u; + sellerjid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.OrderMessage.sellerJid) +} +inline void OrderMessage::set_sellerjid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000010u; + sellerjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.OrderMessage.sellerJid) +} +inline void OrderMessage::set_sellerjid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000010u; + sellerjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.OrderMessage.sellerJid) +} +inline std::string* OrderMessage::_internal_mutable_sellerjid() { + _has_bits_[0] |= 0x00000010u; + return sellerjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* OrderMessage::release_sellerjid() { + // @@protoc_insertion_point(field_release:proto.OrderMessage.sellerJid) + if (!_internal_has_sellerjid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000010u; + return sellerjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void OrderMessage::set_allocated_sellerjid(std::string* sellerjid) { + if (sellerjid != nullptr) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + sellerjid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sellerjid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.OrderMessage.sellerJid) +} + +// optional string token = 9; +inline bool OrderMessage::_internal_has_token() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool OrderMessage::has_token() const { + return _internal_has_token(); +} +inline void OrderMessage::clear_token() { + token_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000020u; +} +inline const std::string& OrderMessage::token() const { + // @@protoc_insertion_point(field_get:proto.OrderMessage.token) + return _internal_token(); +} +inline void OrderMessage::set_token(const std::string& value) { + _internal_set_token(value); + // @@protoc_insertion_point(field_set:proto.OrderMessage.token) +} +inline std::string* OrderMessage::mutable_token() { + // @@protoc_insertion_point(field_mutable:proto.OrderMessage.token) + return _internal_mutable_token(); +} +inline const std::string& OrderMessage::_internal_token() const { + return token_.Get(); +} +inline void OrderMessage::_internal_set_token(const std::string& value) { + _has_bits_[0] |= 0x00000020u; + token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void OrderMessage::set_token(std::string&& value) { + _has_bits_[0] |= 0x00000020u; + token_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.OrderMessage.token) +} +inline void OrderMessage::set_token(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000020u; + token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.OrderMessage.token) +} +inline void OrderMessage::set_token(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000020u; + token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.OrderMessage.token) +} +inline std::string* OrderMessage::_internal_mutable_token() { + _has_bits_[0] |= 0x00000020u; + return token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* OrderMessage::release_token() { + // @@protoc_insertion_point(field_release:proto.OrderMessage.token) + if (!_internal_has_token()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000020u; + return token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void OrderMessage::set_allocated_token(std::string* token) { + if (token != nullptr) { + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), token, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.OrderMessage.token) +} + +// optional int64 totalAmount1000 = 10; +inline bool OrderMessage::_internal_has_totalamount1000() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + return value; +} +inline bool OrderMessage::has_totalamount1000() const { + return _internal_has_totalamount1000(); +} +inline void OrderMessage::clear_totalamount1000() { + totalamount1000_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00000100u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 OrderMessage::_internal_totalamount1000() const { + return totalamount1000_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 OrderMessage::totalamount1000() const { + // @@protoc_insertion_point(field_get:proto.OrderMessage.totalAmount1000) + return _internal_totalamount1000(); +} +inline void OrderMessage::_internal_set_totalamount1000(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00000100u; + totalamount1000_ = value; +} +inline void OrderMessage::set_totalamount1000(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_totalamount1000(value); + // @@protoc_insertion_point(field_set:proto.OrderMessage.totalAmount1000) +} + +// optional string totalCurrencyCode = 11; +inline bool OrderMessage::_internal_has_totalcurrencycode() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool OrderMessage::has_totalcurrencycode() const { + return _internal_has_totalcurrencycode(); +} +inline void OrderMessage::clear_totalcurrencycode() { + totalcurrencycode_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000040u; +} +inline const std::string& OrderMessage::totalcurrencycode() const { + // @@protoc_insertion_point(field_get:proto.OrderMessage.totalCurrencyCode) + return _internal_totalcurrencycode(); +} +inline void OrderMessage::set_totalcurrencycode(const std::string& value) { + _internal_set_totalcurrencycode(value); + // @@protoc_insertion_point(field_set:proto.OrderMessage.totalCurrencyCode) +} +inline std::string* OrderMessage::mutable_totalcurrencycode() { + // @@protoc_insertion_point(field_mutable:proto.OrderMessage.totalCurrencyCode) + return _internal_mutable_totalcurrencycode(); +} +inline const std::string& OrderMessage::_internal_totalcurrencycode() const { + return totalcurrencycode_.Get(); +} +inline void OrderMessage::_internal_set_totalcurrencycode(const std::string& value) { + _has_bits_[0] |= 0x00000040u; + totalcurrencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void OrderMessage::set_totalcurrencycode(std::string&& value) { + _has_bits_[0] |= 0x00000040u; + totalcurrencycode_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.OrderMessage.totalCurrencyCode) +} +inline void OrderMessage::set_totalcurrencycode(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000040u; + totalcurrencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.OrderMessage.totalCurrencyCode) +} +inline void OrderMessage::set_totalcurrencycode(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000040u; + totalcurrencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.OrderMessage.totalCurrencyCode) +} +inline std::string* OrderMessage::_internal_mutable_totalcurrencycode() { + _has_bits_[0] |= 0x00000040u; + return totalcurrencycode_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* OrderMessage::release_totalcurrencycode() { + // @@protoc_insertion_point(field_release:proto.OrderMessage.totalCurrencyCode) + if (!_internal_has_totalcurrencycode()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000040u; + return totalcurrencycode_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void OrderMessage::set_allocated_totalcurrencycode(std::string* totalcurrencycode) { + if (totalcurrencycode != nullptr) { + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + totalcurrencycode_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), totalcurrencycode, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.OrderMessage.totalCurrencyCode) +} + +// optional .proto.ContextInfo contextInfo = 17; +inline bool OrderMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool OrderMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void OrderMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00000080u; +} +inline const ::proto::ContextInfo& OrderMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& OrderMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.OrderMessage.contextInfo) + return _internal_contextinfo(); +} +inline void OrderMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.OrderMessage.contextInfo) +} +inline ::proto::ContextInfo* OrderMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00000080u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* OrderMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.OrderMessage.contextInfo) + _has_bits_[0] &= ~0x00000080u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* OrderMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00000080u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* OrderMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.OrderMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void OrderMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.OrderMessage.contextInfo) +} + +// ------------------------------------------------------------------- + +// Row + +// optional string title = 1; +inline bool Row::_internal_has_title() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool Row::has_title() const { + return _internal_has_title(); +} +inline void Row::clear_title() { + title_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& Row::title() const { + // @@protoc_insertion_point(field_get:proto.Row.title) + return _internal_title(); +} +inline void Row::set_title(const std::string& value) { + _internal_set_title(value); + // @@protoc_insertion_point(field_set:proto.Row.title) +} +inline std::string* Row::mutable_title() { + // @@protoc_insertion_point(field_mutable:proto.Row.title) + return _internal_mutable_title(); +} +inline const std::string& Row::_internal_title() const { + return title_.Get(); +} +inline void Row::_internal_set_title(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Row::set_title(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + title_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.Row.title) +} +inline void Row::set_title(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.Row.title) +} +inline void Row::set_title(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.Row.title) +} +inline std::string* Row::_internal_mutable_title() { + _has_bits_[0] |= 0x00000001u; + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Row::release_title() { + // @@protoc_insertion_point(field_release:proto.Row.title) + if (!_internal_has_title()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Row::set_allocated_title(std::string* title) { + if (title != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.Row.title) +} + +// optional string description = 2; +inline bool Row::_internal_has_description() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool Row::has_description() const { + return _internal_has_description(); +} +inline void Row::clear_description() { + description_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& Row::description() const { + // @@protoc_insertion_point(field_get:proto.Row.description) + return _internal_description(); +} +inline void Row::set_description(const std::string& value) { + _internal_set_description(value); + // @@protoc_insertion_point(field_set:proto.Row.description) +} +inline std::string* Row::mutable_description() { + // @@protoc_insertion_point(field_mutable:proto.Row.description) + return _internal_mutable_description(); +} +inline const std::string& Row::_internal_description() const { + return description_.Get(); +} +inline void Row::_internal_set_description(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Row::set_description(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + description_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.Row.description) +} +inline void Row::set_description(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.Row.description) +} +inline void Row::set_description(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.Row.description) +} +inline std::string* Row::_internal_mutable_description() { + _has_bits_[0] |= 0x00000002u; + return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Row::release_description() { + // @@protoc_insertion_point(field_release:proto.Row.description) + if (!_internal_has_description()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Row::set_allocated_description(std::string* description) { + if (description != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.Row.description) +} + +// optional string rowId = 3; +inline bool Row::_internal_has_rowid() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool Row::has_rowid() const { + return _internal_has_rowid(); +} +inline void Row::clear_rowid() { + rowid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& Row::rowid() const { + // @@protoc_insertion_point(field_get:proto.Row.rowId) + return _internal_rowid(); +} +inline void Row::set_rowid(const std::string& value) { + _internal_set_rowid(value); + // @@protoc_insertion_point(field_set:proto.Row.rowId) +} +inline std::string* Row::mutable_rowid() { + // @@protoc_insertion_point(field_mutable:proto.Row.rowId) + return _internal_mutable_rowid(); +} +inline const std::string& Row::_internal_rowid() const { + return rowid_.Get(); +} +inline void Row::_internal_set_rowid(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + rowid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Row::set_rowid(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + rowid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.Row.rowId) +} +inline void Row::set_rowid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + rowid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.Row.rowId) +} +inline void Row::set_rowid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + rowid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.Row.rowId) +} +inline std::string* Row::_internal_mutable_rowid() { + _has_bits_[0] |= 0x00000004u; + return rowid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Row::release_rowid() { + // @@protoc_insertion_point(field_release:proto.Row.rowId) + if (!_internal_has_rowid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return rowid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Row::set_allocated_rowid(std::string* rowid) { + if (rowid != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + rowid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), rowid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.Row.rowId) +} + +// ------------------------------------------------------------------- + +// Section + +// optional string title = 1; +inline bool Section::_internal_has_title() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool Section::has_title() const { + return _internal_has_title(); +} +inline void Section::clear_title() { + title_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& Section::title() const { + // @@protoc_insertion_point(field_get:proto.Section.title) + return _internal_title(); +} +inline void Section::set_title(const std::string& value) { + _internal_set_title(value); + // @@protoc_insertion_point(field_set:proto.Section.title) +} +inline std::string* Section::mutable_title() { + // @@protoc_insertion_point(field_mutable:proto.Section.title) + return _internal_mutable_title(); +} +inline const std::string& Section::_internal_title() const { + return title_.Get(); +} +inline void Section::_internal_set_title(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Section::set_title(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + title_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.Section.title) +} +inline void Section::set_title(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.Section.title) +} +inline void Section::set_title(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.Section.title) +} +inline std::string* Section::_internal_mutable_title() { + _has_bits_[0] |= 0x00000001u; + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Section::release_title() { + // @@protoc_insertion_point(field_release:proto.Section.title) + if (!_internal_has_title()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Section::set_allocated_title(std::string* title) { + if (title != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.Section.title) +} + +// repeated .proto.Row rows = 2; +inline int Section::_internal_rows_size() const { + return rows_.size(); +} +inline int Section::rows_size() const { + return _internal_rows_size(); +} +inline void Section::clear_rows() { + rows_.Clear(); +} +inline ::proto::Row* Section::mutable_rows(int index) { + // @@protoc_insertion_point(field_mutable:proto.Section.rows) + return rows_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Row >* +Section::mutable_rows() { + // @@protoc_insertion_point(field_mutable_list:proto.Section.rows) + return &rows_; +} +inline const ::proto::Row& Section::_internal_rows(int index) const { + return rows_.Get(index); +} +inline const ::proto::Row& Section::rows(int index) const { + // @@protoc_insertion_point(field_get:proto.Section.rows) + return _internal_rows(index); +} +inline ::proto::Row* Section::_internal_add_rows() { + return rows_.Add(); +} +inline ::proto::Row* Section::add_rows() { + // @@protoc_insertion_point(field_add:proto.Section.rows) + return _internal_add_rows(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Row >& +Section::rows() const { + // @@protoc_insertion_point(field_list:proto.Section.rows) + return rows_; +} + +// ------------------------------------------------------------------- + +// ListMessage + +// optional string title = 1; +inline bool ListMessage::_internal_has_title() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool ListMessage::has_title() const { + return _internal_has_title(); +} +inline void ListMessage::clear_title() { + title_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& ListMessage::title() const { + // @@protoc_insertion_point(field_get:proto.ListMessage.title) + return _internal_title(); +} +inline void ListMessage::set_title(const std::string& value) { + _internal_set_title(value); + // @@protoc_insertion_point(field_set:proto.ListMessage.title) +} +inline std::string* ListMessage::mutable_title() { + // @@protoc_insertion_point(field_mutable:proto.ListMessage.title) + return _internal_mutable_title(); +} +inline const std::string& ListMessage::_internal_title() const { + return title_.Get(); +} +inline void ListMessage::_internal_set_title(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ListMessage::set_title(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + title_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ListMessage.title) +} +inline void ListMessage::set_title(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ListMessage.title) +} +inline void ListMessage::set_title(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ListMessage.title) +} +inline std::string* ListMessage::_internal_mutable_title() { + _has_bits_[0] |= 0x00000001u; + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ListMessage::release_title() { + // @@protoc_insertion_point(field_release:proto.ListMessage.title) + if (!_internal_has_title()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ListMessage::set_allocated_title(std::string* title) { + if (title != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ListMessage.title) +} + +// optional string description = 2; +inline bool ListMessage::_internal_has_description() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool ListMessage::has_description() const { + return _internal_has_description(); +} +inline void ListMessage::clear_description() { + description_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& ListMessage::description() const { + // @@protoc_insertion_point(field_get:proto.ListMessage.description) + return _internal_description(); +} +inline void ListMessage::set_description(const std::string& value) { + _internal_set_description(value); + // @@protoc_insertion_point(field_set:proto.ListMessage.description) +} +inline std::string* ListMessage::mutable_description() { + // @@protoc_insertion_point(field_mutable:proto.ListMessage.description) + return _internal_mutable_description(); +} +inline const std::string& ListMessage::_internal_description() const { + return description_.Get(); +} +inline void ListMessage::_internal_set_description(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ListMessage::set_description(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + description_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ListMessage.description) +} +inline void ListMessage::set_description(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ListMessage.description) +} +inline void ListMessage::set_description(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ListMessage.description) +} +inline std::string* ListMessage::_internal_mutable_description() { + _has_bits_[0] |= 0x00000002u; + return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ListMessage::release_description() { + // @@protoc_insertion_point(field_release:proto.ListMessage.description) + if (!_internal_has_description()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ListMessage::set_allocated_description(std::string* description) { + if (description != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ListMessage.description) +} + +// optional string buttonText = 3; +inline bool ListMessage::_internal_has_buttontext() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool ListMessage::has_buttontext() const { + return _internal_has_buttontext(); +} +inline void ListMessage::clear_buttontext() { + buttontext_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& ListMessage::buttontext() const { + // @@protoc_insertion_point(field_get:proto.ListMessage.buttonText) + return _internal_buttontext(); +} +inline void ListMessage::set_buttontext(const std::string& value) { + _internal_set_buttontext(value); + // @@protoc_insertion_point(field_set:proto.ListMessage.buttonText) +} +inline std::string* ListMessage::mutable_buttontext() { + // @@protoc_insertion_point(field_mutable:proto.ListMessage.buttonText) + return _internal_mutable_buttontext(); +} +inline const std::string& ListMessage::_internal_buttontext() const { + return buttontext_.Get(); +} +inline void ListMessage::_internal_set_buttontext(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + buttontext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ListMessage::set_buttontext(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + buttontext_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ListMessage.buttonText) +} +inline void ListMessage::set_buttontext(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + buttontext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ListMessage.buttonText) +} +inline void ListMessage::set_buttontext(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + buttontext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ListMessage.buttonText) +} +inline std::string* ListMessage::_internal_mutable_buttontext() { + _has_bits_[0] |= 0x00000004u; + return buttontext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ListMessage::release_buttontext() { + // @@protoc_insertion_point(field_release:proto.ListMessage.buttonText) + if (!_internal_has_buttontext()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return buttontext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ListMessage::set_allocated_buttontext(std::string* buttontext) { + if (buttontext != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + buttontext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), buttontext, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ListMessage.buttonText) +} + +// optional .proto.ListMessage.ListMessageListType listType = 4; +inline bool ListMessage::_internal_has_listtype() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool ListMessage::has_listtype() const { + return _internal_has_listtype(); +} +inline void ListMessage::clear_listtype() { + listtype_ = 0; + _has_bits_[0] &= ~0x00000008u; +} +inline ::proto::ListMessage_ListMessageListType ListMessage::_internal_listtype() const { + return static_cast< ::proto::ListMessage_ListMessageListType >(listtype_); +} +inline ::proto::ListMessage_ListMessageListType ListMessage::listtype() const { + // @@protoc_insertion_point(field_get:proto.ListMessage.listType) + return _internal_listtype(); +} +inline void ListMessage::_internal_set_listtype(::proto::ListMessage_ListMessageListType value) { + assert(::proto::ListMessage_ListMessageListType_IsValid(value)); + _has_bits_[0] |= 0x00000008u; + listtype_ = value; +} +inline void ListMessage::set_listtype(::proto::ListMessage_ListMessageListType value) { + _internal_set_listtype(value); + // @@protoc_insertion_point(field_set:proto.ListMessage.listType) +} + +// repeated .proto.Section sections = 5; +inline int ListMessage::_internal_sections_size() const { + return sections_.size(); +} +inline int ListMessage::sections_size() const { + return _internal_sections_size(); +} +inline void ListMessage::clear_sections() { + sections_.Clear(); +} +inline ::proto::Section* ListMessage::mutable_sections(int index) { + // @@protoc_insertion_point(field_mutable:proto.ListMessage.sections) + return sections_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Section >* +ListMessage::mutable_sections() { + // @@protoc_insertion_point(field_mutable_list:proto.ListMessage.sections) + return §ions_; +} +inline const ::proto::Section& ListMessage::_internal_sections(int index) const { + return sections_.Get(index); +} +inline const ::proto::Section& ListMessage::sections(int index) const { + // @@protoc_insertion_point(field_get:proto.ListMessage.sections) + return _internal_sections(index); +} +inline ::proto::Section* ListMessage::_internal_add_sections() { + return sections_.Add(); +} +inline ::proto::Section* ListMessage::add_sections() { + // @@protoc_insertion_point(field_add:proto.ListMessage.sections) + return _internal_add_sections(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Section >& +ListMessage::sections() const { + // @@protoc_insertion_point(field_list:proto.ListMessage.sections) + return sections_; +} + +// ------------------------------------------------------------------- + +// SingleSelectReply + +// optional string selectedRowId = 1; +inline bool SingleSelectReply::_internal_has_selectedrowid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool SingleSelectReply::has_selectedrowid() const { + return _internal_has_selectedrowid(); +} +inline void SingleSelectReply::clear_selectedrowid() { + selectedrowid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& SingleSelectReply::selectedrowid() const { + // @@protoc_insertion_point(field_get:proto.SingleSelectReply.selectedRowId) + return _internal_selectedrowid(); +} +inline void SingleSelectReply::set_selectedrowid(const std::string& value) { + _internal_set_selectedrowid(value); + // @@protoc_insertion_point(field_set:proto.SingleSelectReply.selectedRowId) +} +inline std::string* SingleSelectReply::mutable_selectedrowid() { + // @@protoc_insertion_point(field_mutable:proto.SingleSelectReply.selectedRowId) + return _internal_mutable_selectedrowid(); +} +inline const std::string& SingleSelectReply::_internal_selectedrowid() const { + return selectedrowid_.Get(); +} +inline void SingleSelectReply::_internal_set_selectedrowid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + selectedrowid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void SingleSelectReply::set_selectedrowid(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + selectedrowid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.SingleSelectReply.selectedRowId) +} +inline void SingleSelectReply::set_selectedrowid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + selectedrowid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.SingleSelectReply.selectedRowId) +} +inline void SingleSelectReply::set_selectedrowid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + selectedrowid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.SingleSelectReply.selectedRowId) +} +inline std::string* SingleSelectReply::_internal_mutable_selectedrowid() { + _has_bits_[0] |= 0x00000001u; + return selectedrowid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* SingleSelectReply::release_selectedrowid() { + // @@protoc_insertion_point(field_release:proto.SingleSelectReply.selectedRowId) + if (!_internal_has_selectedrowid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return selectedrowid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void SingleSelectReply::set_allocated_selectedrowid(std::string* selectedrowid) { + if (selectedrowid != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + selectedrowid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), selectedrowid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.SingleSelectReply.selectedRowId) +} + +// ------------------------------------------------------------------- + +// ListResponseMessage + +// optional string title = 1; +inline bool ListResponseMessage::_internal_has_title() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool ListResponseMessage::has_title() const { + return _internal_has_title(); +} +inline void ListResponseMessage::clear_title() { + title_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& ListResponseMessage::title() const { + // @@protoc_insertion_point(field_get:proto.ListResponseMessage.title) + return _internal_title(); +} +inline void ListResponseMessage::set_title(const std::string& value) { + _internal_set_title(value); + // @@protoc_insertion_point(field_set:proto.ListResponseMessage.title) +} +inline std::string* ListResponseMessage::mutable_title() { + // @@protoc_insertion_point(field_mutable:proto.ListResponseMessage.title) + return _internal_mutable_title(); +} +inline const std::string& ListResponseMessage::_internal_title() const { + return title_.Get(); +} +inline void ListResponseMessage::_internal_set_title(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ListResponseMessage::set_title(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + title_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ListResponseMessage.title) +} +inline void ListResponseMessage::set_title(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ListResponseMessage.title) +} +inline void ListResponseMessage::set_title(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ListResponseMessage.title) +} +inline std::string* ListResponseMessage::_internal_mutable_title() { + _has_bits_[0] |= 0x00000001u; + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ListResponseMessage::release_title() { + // @@protoc_insertion_point(field_release:proto.ListResponseMessage.title) + if (!_internal_has_title()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ListResponseMessage::set_allocated_title(std::string* title) { + if (title != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ListResponseMessage.title) +} + +// optional .proto.ListResponseMessage.ListResponseMessageListType listType = 2; +inline bool ListResponseMessage::_internal_has_listtype() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool ListResponseMessage::has_listtype() const { + return _internal_has_listtype(); +} +inline void ListResponseMessage::clear_listtype() { + listtype_ = 0; + _has_bits_[0] &= ~0x00000010u; +} +inline ::proto::ListResponseMessage_ListResponseMessageListType ListResponseMessage::_internal_listtype() const { + return static_cast< ::proto::ListResponseMessage_ListResponseMessageListType >(listtype_); +} +inline ::proto::ListResponseMessage_ListResponseMessageListType ListResponseMessage::listtype() const { + // @@protoc_insertion_point(field_get:proto.ListResponseMessage.listType) + return _internal_listtype(); +} +inline void ListResponseMessage::_internal_set_listtype(::proto::ListResponseMessage_ListResponseMessageListType value) { + assert(::proto::ListResponseMessage_ListResponseMessageListType_IsValid(value)); + _has_bits_[0] |= 0x00000010u; + listtype_ = value; +} +inline void ListResponseMessage::set_listtype(::proto::ListResponseMessage_ListResponseMessageListType value) { + _internal_set_listtype(value); + // @@protoc_insertion_point(field_set:proto.ListResponseMessage.listType) +} + +// optional .proto.SingleSelectReply singleSelectReply = 3; +inline bool ListResponseMessage::_internal_has_singleselectreply() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || singleselectreply_ != nullptr); + return value; +} +inline bool ListResponseMessage::has_singleselectreply() const { + return _internal_has_singleselectreply(); +} +inline void ListResponseMessage::clear_singleselectreply() { + if (singleselectreply_ != nullptr) singleselectreply_->Clear(); + _has_bits_[0] &= ~0x00000004u; +} +inline const ::proto::SingleSelectReply& ListResponseMessage::_internal_singleselectreply() const { + const ::proto::SingleSelectReply* p = singleselectreply_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::SingleSelectReply&>( + ::proto::_SingleSelectReply_default_instance_); +} +inline const ::proto::SingleSelectReply& ListResponseMessage::singleselectreply() const { + // @@protoc_insertion_point(field_get:proto.ListResponseMessage.singleSelectReply) + return _internal_singleselectreply(); +} +inline void ListResponseMessage::unsafe_arena_set_allocated_singleselectreply( + ::proto::SingleSelectReply* singleselectreply) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(singleselectreply_); + } + singleselectreply_ = singleselectreply; + if (singleselectreply) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ListResponseMessage.singleSelectReply) +} +inline ::proto::SingleSelectReply* ListResponseMessage::release_singleselectreply() { + _has_bits_[0] &= ~0x00000004u; + ::proto::SingleSelectReply* temp = singleselectreply_; + singleselectreply_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::SingleSelectReply* ListResponseMessage::unsafe_arena_release_singleselectreply() { + // @@protoc_insertion_point(field_release:proto.ListResponseMessage.singleSelectReply) + _has_bits_[0] &= ~0x00000004u; + ::proto::SingleSelectReply* temp = singleselectreply_; + singleselectreply_ = nullptr; + return temp; +} +inline ::proto::SingleSelectReply* ListResponseMessage::_internal_mutable_singleselectreply() { + _has_bits_[0] |= 0x00000004u; + if (singleselectreply_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::SingleSelectReply>(GetArena()); + singleselectreply_ = p; + } + return singleselectreply_; +} +inline ::proto::SingleSelectReply* ListResponseMessage::mutable_singleselectreply() { + // @@protoc_insertion_point(field_mutable:proto.ListResponseMessage.singleSelectReply) + return _internal_mutable_singleselectreply(); +} +inline void ListResponseMessage::set_allocated_singleselectreply(::proto::SingleSelectReply* singleselectreply) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete singleselectreply_; + } + if (singleselectreply) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(singleselectreply); + if (message_arena != submessage_arena) { + singleselectreply = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, singleselectreply, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + singleselectreply_ = singleselectreply; + // @@protoc_insertion_point(field_set_allocated:proto.ListResponseMessage.singleSelectReply) +} + +// optional .proto.ContextInfo contextInfo = 4; +inline bool ListResponseMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool ListResponseMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void ListResponseMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00000008u; +} +inline const ::proto::ContextInfo& ListResponseMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& ListResponseMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.ListResponseMessage.contextInfo) + return _internal_contextinfo(); +} +inline void ListResponseMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ListResponseMessage.contextInfo) +} +inline ::proto::ContextInfo* ListResponseMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00000008u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* ListResponseMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.ListResponseMessage.contextInfo) + _has_bits_[0] &= ~0x00000008u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* ListResponseMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00000008u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* ListResponseMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.ListResponseMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void ListResponseMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.ListResponseMessage.contextInfo) +} + +// optional string description = 5; +inline bool ListResponseMessage::_internal_has_description() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool ListResponseMessage::has_description() const { + return _internal_has_description(); +} +inline void ListResponseMessage::clear_description() { + description_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& ListResponseMessage::description() const { + // @@protoc_insertion_point(field_get:proto.ListResponseMessage.description) + return _internal_description(); +} +inline void ListResponseMessage::set_description(const std::string& value) { + _internal_set_description(value); + // @@protoc_insertion_point(field_set:proto.ListResponseMessage.description) +} +inline std::string* ListResponseMessage::mutable_description() { + // @@protoc_insertion_point(field_mutable:proto.ListResponseMessage.description) + return _internal_mutable_description(); +} +inline const std::string& ListResponseMessage::_internal_description() const { + return description_.Get(); +} +inline void ListResponseMessage::_internal_set_description(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ListResponseMessage::set_description(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + description_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ListResponseMessage.description) +} +inline void ListResponseMessage::set_description(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ListResponseMessage.description) +} +inline void ListResponseMessage::set_description(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ListResponseMessage.description) +} +inline std::string* ListResponseMessage::_internal_mutable_description() { + _has_bits_[0] |= 0x00000002u; + return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ListResponseMessage::release_description() { + // @@protoc_insertion_point(field_release:proto.ListResponseMessage.description) + if (!_internal_has_description()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ListResponseMessage::set_allocated_description(std::string* description) { + if (description != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ListResponseMessage.description) +} + +// ------------------------------------------------------------------- + +// GroupInviteMessage + +// optional string groupJid = 1; +inline bool GroupInviteMessage::_internal_has_groupjid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool GroupInviteMessage::has_groupjid() const { + return _internal_has_groupjid(); +} +inline void GroupInviteMessage::clear_groupjid() { + groupjid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& GroupInviteMessage::groupjid() const { + // @@protoc_insertion_point(field_get:proto.GroupInviteMessage.groupJid) + return _internal_groupjid(); +} +inline void GroupInviteMessage::set_groupjid(const std::string& value) { + _internal_set_groupjid(value); + // @@protoc_insertion_point(field_set:proto.GroupInviteMessage.groupJid) +} +inline std::string* GroupInviteMessage::mutable_groupjid() { + // @@protoc_insertion_point(field_mutable:proto.GroupInviteMessage.groupJid) + return _internal_mutable_groupjid(); +} +inline const std::string& GroupInviteMessage::_internal_groupjid() const { + return groupjid_.Get(); +} +inline void GroupInviteMessage::_internal_set_groupjid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + groupjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void GroupInviteMessage::set_groupjid(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + groupjid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.GroupInviteMessage.groupJid) +} +inline void GroupInviteMessage::set_groupjid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + groupjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.GroupInviteMessage.groupJid) +} +inline void GroupInviteMessage::set_groupjid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + groupjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.GroupInviteMessage.groupJid) +} +inline std::string* GroupInviteMessage::_internal_mutable_groupjid() { + _has_bits_[0] |= 0x00000001u; + return groupjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* GroupInviteMessage::release_groupjid() { + // @@protoc_insertion_point(field_release:proto.GroupInviteMessage.groupJid) + if (!_internal_has_groupjid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return groupjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void GroupInviteMessage::set_allocated_groupjid(std::string* groupjid) { + if (groupjid != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + groupjid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), groupjid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.GroupInviteMessage.groupJid) +} + +// optional string inviteCode = 2; +inline bool GroupInviteMessage::_internal_has_invitecode() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool GroupInviteMessage::has_invitecode() const { + return _internal_has_invitecode(); +} +inline void GroupInviteMessage::clear_invitecode() { + invitecode_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& GroupInviteMessage::invitecode() const { + // @@protoc_insertion_point(field_get:proto.GroupInviteMessage.inviteCode) + return _internal_invitecode(); +} +inline void GroupInviteMessage::set_invitecode(const std::string& value) { + _internal_set_invitecode(value); + // @@protoc_insertion_point(field_set:proto.GroupInviteMessage.inviteCode) +} +inline std::string* GroupInviteMessage::mutable_invitecode() { + // @@protoc_insertion_point(field_mutable:proto.GroupInviteMessage.inviteCode) + return _internal_mutable_invitecode(); +} +inline const std::string& GroupInviteMessage::_internal_invitecode() const { + return invitecode_.Get(); +} +inline void GroupInviteMessage::_internal_set_invitecode(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + invitecode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void GroupInviteMessage::set_invitecode(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + invitecode_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.GroupInviteMessage.inviteCode) +} +inline void GroupInviteMessage::set_invitecode(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + invitecode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.GroupInviteMessage.inviteCode) +} +inline void GroupInviteMessage::set_invitecode(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + invitecode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.GroupInviteMessage.inviteCode) +} +inline std::string* GroupInviteMessage::_internal_mutable_invitecode() { + _has_bits_[0] |= 0x00000002u; + return invitecode_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* GroupInviteMessage::release_invitecode() { + // @@protoc_insertion_point(field_release:proto.GroupInviteMessage.inviteCode) + if (!_internal_has_invitecode()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return invitecode_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void GroupInviteMessage::set_allocated_invitecode(std::string* invitecode) { + if (invitecode != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + invitecode_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), invitecode, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.GroupInviteMessage.inviteCode) +} + +// optional int64 inviteExpiration = 3; +inline bool GroupInviteMessage::_internal_has_inviteexpiration() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool GroupInviteMessage::has_inviteexpiration() const { + return _internal_has_inviteexpiration(); +} +inline void GroupInviteMessage::clear_inviteexpiration() { + inviteexpiration_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00000040u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 GroupInviteMessage::_internal_inviteexpiration() const { + return inviteexpiration_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 GroupInviteMessage::inviteexpiration() const { + // @@protoc_insertion_point(field_get:proto.GroupInviteMessage.inviteExpiration) + return _internal_inviteexpiration(); +} +inline void GroupInviteMessage::_internal_set_inviteexpiration(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00000040u; + inviteexpiration_ = value; +} +inline void GroupInviteMessage::set_inviteexpiration(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_inviteexpiration(value); + // @@protoc_insertion_point(field_set:proto.GroupInviteMessage.inviteExpiration) +} + +// optional string groupName = 4; +inline bool GroupInviteMessage::_internal_has_groupname() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool GroupInviteMessage::has_groupname() const { + return _internal_has_groupname(); +} +inline void GroupInviteMessage::clear_groupname() { + groupname_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& GroupInviteMessage::groupname() const { + // @@protoc_insertion_point(field_get:proto.GroupInviteMessage.groupName) + return _internal_groupname(); +} +inline void GroupInviteMessage::set_groupname(const std::string& value) { + _internal_set_groupname(value); + // @@protoc_insertion_point(field_set:proto.GroupInviteMessage.groupName) +} +inline std::string* GroupInviteMessage::mutable_groupname() { + // @@protoc_insertion_point(field_mutable:proto.GroupInviteMessage.groupName) + return _internal_mutable_groupname(); +} +inline const std::string& GroupInviteMessage::_internal_groupname() const { + return groupname_.Get(); +} +inline void GroupInviteMessage::_internal_set_groupname(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + groupname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void GroupInviteMessage::set_groupname(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + groupname_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.GroupInviteMessage.groupName) +} +inline void GroupInviteMessage::set_groupname(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + groupname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.GroupInviteMessage.groupName) +} +inline void GroupInviteMessage::set_groupname(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + groupname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.GroupInviteMessage.groupName) +} +inline std::string* GroupInviteMessage::_internal_mutable_groupname() { + _has_bits_[0] |= 0x00000004u; + return groupname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* GroupInviteMessage::release_groupname() { + // @@protoc_insertion_point(field_release:proto.GroupInviteMessage.groupName) + if (!_internal_has_groupname()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return groupname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void GroupInviteMessage::set_allocated_groupname(std::string* groupname) { + if (groupname != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + groupname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), groupname, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.GroupInviteMessage.groupName) +} + +// optional bytes jpegThumbnail = 5; +inline bool GroupInviteMessage::_internal_has_jpegthumbnail() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool GroupInviteMessage::has_jpegthumbnail() const { + return _internal_has_jpegthumbnail(); +} +inline void GroupInviteMessage::clear_jpegthumbnail() { + jpegthumbnail_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& GroupInviteMessage::jpegthumbnail() const { + // @@protoc_insertion_point(field_get:proto.GroupInviteMessage.jpegThumbnail) + return _internal_jpegthumbnail(); +} +inline void GroupInviteMessage::set_jpegthumbnail(const std::string& value) { + _internal_set_jpegthumbnail(value); + // @@protoc_insertion_point(field_set:proto.GroupInviteMessage.jpegThumbnail) +} +inline std::string* GroupInviteMessage::mutable_jpegthumbnail() { + // @@protoc_insertion_point(field_mutable:proto.GroupInviteMessage.jpegThumbnail) + return _internal_mutable_jpegthumbnail(); +} +inline const std::string& GroupInviteMessage::_internal_jpegthumbnail() const { + return jpegthumbnail_.Get(); +} +inline void GroupInviteMessage::_internal_set_jpegthumbnail(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void GroupInviteMessage::set_jpegthumbnail(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + jpegthumbnail_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.GroupInviteMessage.jpegThumbnail) +} +inline void GroupInviteMessage::set_jpegthumbnail(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.GroupInviteMessage.jpegThumbnail) +} +inline void GroupInviteMessage::set_jpegthumbnail(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.GroupInviteMessage.jpegThumbnail) +} +inline std::string* GroupInviteMessage::_internal_mutable_jpegthumbnail() { + _has_bits_[0] |= 0x00000008u; + return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* GroupInviteMessage::release_jpegthumbnail() { + // @@protoc_insertion_point(field_release:proto.GroupInviteMessage.jpegThumbnail) + if (!_internal_has_jpegthumbnail()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void GroupInviteMessage::set_allocated_jpegthumbnail(std::string* jpegthumbnail) { + if (jpegthumbnail != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + jpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), jpegthumbnail, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.GroupInviteMessage.jpegThumbnail) +} + +// optional string caption = 6; +inline bool GroupInviteMessage::_internal_has_caption() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool GroupInviteMessage::has_caption() const { + return _internal_has_caption(); +} +inline void GroupInviteMessage::clear_caption() { + caption_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000010u; +} +inline const std::string& GroupInviteMessage::caption() const { + // @@protoc_insertion_point(field_get:proto.GroupInviteMessage.caption) + return _internal_caption(); +} +inline void GroupInviteMessage::set_caption(const std::string& value) { + _internal_set_caption(value); + // @@protoc_insertion_point(field_set:proto.GroupInviteMessage.caption) +} +inline std::string* GroupInviteMessage::mutable_caption() { + // @@protoc_insertion_point(field_mutable:proto.GroupInviteMessage.caption) + return _internal_mutable_caption(); +} +inline const std::string& GroupInviteMessage::_internal_caption() const { + return caption_.Get(); +} +inline void GroupInviteMessage::_internal_set_caption(const std::string& value) { + _has_bits_[0] |= 0x00000010u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void GroupInviteMessage::set_caption(std::string&& value) { + _has_bits_[0] |= 0x00000010u; + caption_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.GroupInviteMessage.caption) +} +inline void GroupInviteMessage::set_caption(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000010u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.GroupInviteMessage.caption) +} +inline void GroupInviteMessage::set_caption(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000010u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.GroupInviteMessage.caption) +} +inline std::string* GroupInviteMessage::_internal_mutable_caption() { + _has_bits_[0] |= 0x00000010u; + return caption_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* GroupInviteMessage::release_caption() { + // @@protoc_insertion_point(field_release:proto.GroupInviteMessage.caption) + if (!_internal_has_caption()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000010u; + return caption_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void GroupInviteMessage::set_allocated_caption(std::string* caption) { + if (caption != nullptr) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + caption_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), caption, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.GroupInviteMessage.caption) +} + +// optional .proto.ContextInfo contextInfo = 7; +inline bool GroupInviteMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool GroupInviteMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void GroupInviteMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00000020u; +} +inline const ::proto::ContextInfo& GroupInviteMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& GroupInviteMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.GroupInviteMessage.contextInfo) + return _internal_contextinfo(); +} +inline void GroupInviteMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.GroupInviteMessage.contextInfo) +} +inline ::proto::ContextInfo* GroupInviteMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00000020u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* GroupInviteMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.GroupInviteMessage.contextInfo) + _has_bits_[0] &= ~0x00000020u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* GroupInviteMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00000020u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* GroupInviteMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.GroupInviteMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void GroupInviteMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.GroupInviteMessage.contextInfo) +} + +// ------------------------------------------------------------------- + +// EphemeralSetting + +// optional string chatJid = 1; +inline bool EphemeralSetting::_internal_has_chatjid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool EphemeralSetting::has_chatjid() const { + return _internal_has_chatjid(); +} +inline void EphemeralSetting::clear_chatjid() { + chatjid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& EphemeralSetting::chatjid() const { + // @@protoc_insertion_point(field_get:proto.EphemeralSetting.chatJid) + return _internal_chatjid(); +} +inline void EphemeralSetting::set_chatjid(const std::string& value) { + _internal_set_chatjid(value); + // @@protoc_insertion_point(field_set:proto.EphemeralSetting.chatJid) +} +inline std::string* EphemeralSetting::mutable_chatjid() { + // @@protoc_insertion_point(field_mutable:proto.EphemeralSetting.chatJid) + return _internal_mutable_chatjid(); +} +inline const std::string& EphemeralSetting::_internal_chatjid() const { + return chatjid_.Get(); +} +inline void EphemeralSetting::_internal_set_chatjid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + chatjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void EphemeralSetting::set_chatjid(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + chatjid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.EphemeralSetting.chatJid) +} +inline void EphemeralSetting::set_chatjid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + chatjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.EphemeralSetting.chatJid) +} +inline void EphemeralSetting::set_chatjid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + chatjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.EphemeralSetting.chatJid) +} +inline std::string* EphemeralSetting::_internal_mutable_chatjid() { + _has_bits_[0] |= 0x00000001u; + return chatjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* EphemeralSetting::release_chatjid() { + // @@protoc_insertion_point(field_release:proto.EphemeralSetting.chatJid) + if (!_internal_has_chatjid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return chatjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void EphemeralSetting::set_allocated_chatjid(std::string* chatjid) { + if (chatjid != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + chatjid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), chatjid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.EphemeralSetting.chatJid) +} + +// optional uint32 ephemeralExpiration = 2; +inline bool EphemeralSetting::_internal_has_ephemeralexpiration() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool EphemeralSetting::has_ephemeralexpiration() const { + return _internal_has_ephemeralexpiration(); +} +inline void EphemeralSetting::clear_ephemeralexpiration() { + ephemeralexpiration_ = 0u; + _has_bits_[0] &= ~0x00000004u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 EphemeralSetting::_internal_ephemeralexpiration() const { + return ephemeralexpiration_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 EphemeralSetting::ephemeralexpiration() const { + // @@protoc_insertion_point(field_get:proto.EphemeralSetting.ephemeralExpiration) + return _internal_ephemeralexpiration(); +} +inline void EphemeralSetting::_internal_set_ephemeralexpiration(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; + ephemeralexpiration_ = value; +} +inline void EphemeralSetting::set_ephemeralexpiration(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_ephemeralexpiration(value); + // @@protoc_insertion_point(field_set:proto.EphemeralSetting.ephemeralExpiration) +} + +// optional int64 ephemeralSettingTimestamp = 3; +inline bool EphemeralSetting::_internal_has_ephemeralsettingtimestamp() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool EphemeralSetting::has_ephemeralsettingtimestamp() const { + return _internal_has_ephemeralsettingtimestamp(); +} +inline void EphemeralSetting::clear_ephemeralsettingtimestamp() { + ephemeralsettingtimestamp_ = PROTOBUF_LONGLONG(0); + _has_bits_[0] &= ~0x00000002u; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 EphemeralSetting::_internal_ephemeralsettingtimestamp() const { + return ephemeralsettingtimestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::int64 EphemeralSetting::ephemeralsettingtimestamp() const { + // @@protoc_insertion_point(field_get:proto.EphemeralSetting.ephemeralSettingTimestamp) + return _internal_ephemeralsettingtimestamp(); +} +inline void EphemeralSetting::_internal_set_ephemeralsettingtimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _has_bits_[0] |= 0x00000002u; + ephemeralsettingtimestamp_ = value; +} +inline void EphemeralSetting::set_ephemeralsettingtimestamp(::PROTOBUF_NAMESPACE_ID::int64 value) { + _internal_set_ephemeralsettingtimestamp(value); + // @@protoc_insertion_point(field_set:proto.EphemeralSetting.ephemeralSettingTimestamp) +} + +// ------------------------------------------------------------------- + +// DeviceSentMessage + +// optional string destinationJid = 1; +inline bool DeviceSentMessage::_internal_has_destinationjid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool DeviceSentMessage::has_destinationjid() const { + return _internal_has_destinationjid(); +} +inline void DeviceSentMessage::clear_destinationjid() { + destinationjid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& DeviceSentMessage::destinationjid() const { + // @@protoc_insertion_point(field_get:proto.DeviceSentMessage.destinationJid) + return _internal_destinationjid(); +} +inline void DeviceSentMessage::set_destinationjid(const std::string& value) { + _internal_set_destinationjid(value); + // @@protoc_insertion_point(field_set:proto.DeviceSentMessage.destinationJid) +} +inline std::string* DeviceSentMessage::mutable_destinationjid() { + // @@protoc_insertion_point(field_mutable:proto.DeviceSentMessage.destinationJid) + return _internal_mutable_destinationjid(); +} +inline const std::string& DeviceSentMessage::_internal_destinationjid() const { + return destinationjid_.Get(); +} +inline void DeviceSentMessage::_internal_set_destinationjid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + destinationjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DeviceSentMessage::set_destinationjid(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + destinationjid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.DeviceSentMessage.destinationJid) +} +inline void DeviceSentMessage::set_destinationjid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + destinationjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.DeviceSentMessage.destinationJid) +} +inline void DeviceSentMessage::set_destinationjid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + destinationjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.DeviceSentMessage.destinationJid) +} +inline std::string* DeviceSentMessage::_internal_mutable_destinationjid() { + _has_bits_[0] |= 0x00000001u; + return destinationjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DeviceSentMessage::release_destinationjid() { + // @@protoc_insertion_point(field_release:proto.DeviceSentMessage.destinationJid) + if (!_internal_has_destinationjid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return destinationjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DeviceSentMessage::set_allocated_destinationjid(std::string* destinationjid) { + if (destinationjid != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + destinationjid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), destinationjid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.DeviceSentMessage.destinationJid) +} + +// optional .proto.Message message = 2; +inline bool DeviceSentMessage::_internal_has_message() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || message_ != nullptr); + return value; +} +inline bool DeviceSentMessage::has_message() const { + return _internal_has_message(); +} +inline void DeviceSentMessage::clear_message() { + if (message_ != nullptr) message_->Clear(); + _has_bits_[0] &= ~0x00000004u; +} +inline const ::proto::Message& DeviceSentMessage::_internal_message() const { + const ::proto::Message* p = message_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::Message&>( + ::proto::_Message_default_instance_); +} +inline const ::proto::Message& DeviceSentMessage::message() const { + // @@protoc_insertion_point(field_get:proto.DeviceSentMessage.message) + return _internal_message(); +} +inline void DeviceSentMessage::unsafe_arena_set_allocated_message( + ::proto::Message* message) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(message_); + } + message_ = message; + if (message) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.DeviceSentMessage.message) +} +inline ::proto::Message* DeviceSentMessage::release_message() { + _has_bits_[0] &= ~0x00000004u; + ::proto::Message* temp = message_; + message_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::Message* DeviceSentMessage::unsafe_arena_release_message() { + // @@protoc_insertion_point(field_release:proto.DeviceSentMessage.message) + _has_bits_[0] &= ~0x00000004u; + ::proto::Message* temp = message_; + message_ = nullptr; + return temp; +} +inline ::proto::Message* DeviceSentMessage::_internal_mutable_message() { + _has_bits_[0] |= 0x00000004u; + if (message_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::Message>(GetArena()); + message_ = p; + } + return message_; +} +inline ::proto::Message* DeviceSentMessage::mutable_message() { + // @@protoc_insertion_point(field_mutable:proto.DeviceSentMessage.message) + return _internal_mutable_message(); +} +inline void DeviceSentMessage::set_allocated_message(::proto::Message* message) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete message_; + } + if (message) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(message); + if (message_arena != submessage_arena) { + message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, message, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + message_ = message; + // @@protoc_insertion_point(field_set_allocated:proto.DeviceSentMessage.message) +} + +// optional string phash = 3; +inline bool DeviceSentMessage::_internal_has_phash() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool DeviceSentMessage::has_phash() const { + return _internal_has_phash(); +} +inline void DeviceSentMessage::clear_phash() { + phash_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& DeviceSentMessage::phash() const { + // @@protoc_insertion_point(field_get:proto.DeviceSentMessage.phash) + return _internal_phash(); +} +inline void DeviceSentMessage::set_phash(const std::string& value) { + _internal_set_phash(value); + // @@protoc_insertion_point(field_set:proto.DeviceSentMessage.phash) +} +inline std::string* DeviceSentMessage::mutable_phash() { + // @@protoc_insertion_point(field_mutable:proto.DeviceSentMessage.phash) + return _internal_mutable_phash(); +} +inline const std::string& DeviceSentMessage::_internal_phash() const { + return phash_.Get(); +} +inline void DeviceSentMessage::_internal_set_phash(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + phash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void DeviceSentMessage::set_phash(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + phash_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.DeviceSentMessage.phash) +} +inline void DeviceSentMessage::set_phash(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + phash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.DeviceSentMessage.phash) +} +inline void DeviceSentMessage::set_phash(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + phash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.DeviceSentMessage.phash) +} +inline std::string* DeviceSentMessage::_internal_mutable_phash() { + _has_bits_[0] |= 0x00000002u; + return phash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* DeviceSentMessage::release_phash() { + // @@protoc_insertion_point(field_release:proto.DeviceSentMessage.phash) + if (!_internal_has_phash()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return phash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void DeviceSentMessage::set_allocated_phash(std::string* phash) { + if (phash != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + phash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), phash, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.DeviceSentMessage.phash) +} + +// repeated .proto.EphemeralSetting broadcastEphemeralSettings = 4; +inline int DeviceSentMessage::_internal_broadcastephemeralsettings_size() const { + return broadcastephemeralsettings_.size(); +} +inline int DeviceSentMessage::broadcastephemeralsettings_size() const { + return _internal_broadcastephemeralsettings_size(); +} +inline void DeviceSentMessage::clear_broadcastephemeralsettings() { + broadcastephemeralsettings_.Clear(); +} +inline ::proto::EphemeralSetting* DeviceSentMessage::mutable_broadcastephemeralsettings(int index) { + // @@protoc_insertion_point(field_mutable:proto.DeviceSentMessage.broadcastEphemeralSettings) + return broadcastephemeralsettings_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::EphemeralSetting >* +DeviceSentMessage::mutable_broadcastephemeralsettings() { + // @@protoc_insertion_point(field_mutable_list:proto.DeviceSentMessage.broadcastEphemeralSettings) + return &broadcastephemeralsettings_; +} +inline const ::proto::EphemeralSetting& DeviceSentMessage::_internal_broadcastephemeralsettings(int index) const { + return broadcastephemeralsettings_.Get(index); +} +inline const ::proto::EphemeralSetting& DeviceSentMessage::broadcastephemeralsettings(int index) const { + // @@protoc_insertion_point(field_get:proto.DeviceSentMessage.broadcastEphemeralSettings) + return _internal_broadcastephemeralsettings(index); +} +inline ::proto::EphemeralSetting* DeviceSentMessage::_internal_add_broadcastephemeralsettings() { + return broadcastephemeralsettings_.Add(); +} +inline ::proto::EphemeralSetting* DeviceSentMessage::add_broadcastephemeralsettings() { + // @@protoc_insertion_point(field_add:proto.DeviceSentMessage.broadcastEphemeralSettings) + return _internal_add_broadcastephemeralsettings(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::EphemeralSetting >& +DeviceSentMessage::broadcastephemeralsettings() const { + // @@protoc_insertion_point(field_list:proto.DeviceSentMessage.broadcastEphemeralSettings) + return broadcastephemeralsettings_; +} + +// ------------------------------------------------------------------- + +// FutureProofMessage + +// optional .proto.Message message = 1; +inline bool FutureProofMessage::_internal_has_message() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || message_ != nullptr); + return value; +} +inline bool FutureProofMessage::has_message() const { + return _internal_has_message(); +} +inline void FutureProofMessage::clear_message() { + if (message_ != nullptr) message_->Clear(); + _has_bits_[0] &= ~0x00000001u; +} +inline const ::proto::Message& FutureProofMessage::_internal_message() const { + const ::proto::Message* p = message_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::Message&>( + ::proto::_Message_default_instance_); +} +inline const ::proto::Message& FutureProofMessage::message() const { + // @@protoc_insertion_point(field_get:proto.FutureProofMessage.message) + return _internal_message(); +} +inline void FutureProofMessage::unsafe_arena_set_allocated_message( + ::proto::Message* message) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(message_); + } + message_ = message; + if (message) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.FutureProofMessage.message) +} +inline ::proto::Message* FutureProofMessage::release_message() { + _has_bits_[0] &= ~0x00000001u; + ::proto::Message* temp = message_; + message_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::Message* FutureProofMessage::unsafe_arena_release_message() { + // @@protoc_insertion_point(field_release:proto.FutureProofMessage.message) + _has_bits_[0] &= ~0x00000001u; + ::proto::Message* temp = message_; + message_ = nullptr; + return temp; +} +inline ::proto::Message* FutureProofMessage::_internal_mutable_message() { + _has_bits_[0] |= 0x00000001u; + if (message_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::Message>(GetArena()); + message_ = p; + } + return message_; +} +inline ::proto::Message* FutureProofMessage::mutable_message() { + // @@protoc_insertion_point(field_mutable:proto.FutureProofMessage.message) + return _internal_mutable_message(); +} +inline void FutureProofMessage::set_allocated_message(::proto::Message* message) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete message_; + } + if (message) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(message); + if (message_arena != submessage_arena) { + message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, message, submessage_arena); + } + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + message_ = message; + // @@protoc_insertion_point(field_set_allocated:proto.FutureProofMessage.message) +} + +// ------------------------------------------------------------------- + +// ButtonText + +// optional string displayText = 1; +inline bool ButtonText::_internal_has_displaytext() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool ButtonText::has_displaytext() const { + return _internal_has_displaytext(); +} +inline void ButtonText::clear_displaytext() { + displaytext_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& ButtonText::displaytext() const { + // @@protoc_insertion_point(field_get:proto.ButtonText.displayText) + return _internal_displaytext(); +} +inline void ButtonText::set_displaytext(const std::string& value) { + _internal_set_displaytext(value); + // @@protoc_insertion_point(field_set:proto.ButtonText.displayText) +} +inline std::string* ButtonText::mutable_displaytext() { + // @@protoc_insertion_point(field_mutable:proto.ButtonText.displayText) + return _internal_mutable_displaytext(); +} +inline const std::string& ButtonText::_internal_displaytext() const { + return displaytext_.Get(); +} +inline void ButtonText::_internal_set_displaytext(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ButtonText::set_displaytext(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + displaytext_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ButtonText.displayText) +} +inline void ButtonText::set_displaytext(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ButtonText.displayText) +} +inline void ButtonText::set_displaytext(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ButtonText.displayText) +} +inline std::string* ButtonText::_internal_mutable_displaytext() { + _has_bits_[0] |= 0x00000001u; + return displaytext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ButtonText::release_displaytext() { + // @@protoc_insertion_point(field_release:proto.ButtonText.displayText) + if (!_internal_has_displaytext()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return displaytext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ButtonText::set_allocated_displaytext(std::string* displaytext) { + if (displaytext != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + displaytext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), displaytext, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ButtonText.displayText) +} + +// ------------------------------------------------------------------- + +// Button + +// optional string buttonId = 1; +inline bool Button::_internal_has_buttonid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool Button::has_buttonid() const { + return _internal_has_buttonid(); +} +inline void Button::clear_buttonid() { + buttonid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& Button::buttonid() const { + // @@protoc_insertion_point(field_get:proto.Button.buttonId) + return _internal_buttonid(); +} +inline void Button::set_buttonid(const std::string& value) { + _internal_set_buttonid(value); + // @@protoc_insertion_point(field_set:proto.Button.buttonId) +} +inline std::string* Button::mutable_buttonid() { + // @@protoc_insertion_point(field_mutable:proto.Button.buttonId) + return _internal_mutable_buttonid(); +} +inline const std::string& Button::_internal_buttonid() const { + return buttonid_.Get(); +} +inline void Button::_internal_set_buttonid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + buttonid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Button::set_buttonid(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + buttonid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.Button.buttonId) +} +inline void Button::set_buttonid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + buttonid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.Button.buttonId) +} +inline void Button::set_buttonid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + buttonid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.Button.buttonId) +} +inline std::string* Button::_internal_mutable_buttonid() { + _has_bits_[0] |= 0x00000001u; + return buttonid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Button::release_buttonid() { + // @@protoc_insertion_point(field_release:proto.Button.buttonId) + if (!_internal_has_buttonid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return buttonid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Button::set_allocated_buttonid(std::string* buttonid) { + if (buttonid != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + buttonid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), buttonid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.Button.buttonId) +} + +// optional .proto.ButtonText buttonText = 2; +inline bool Button::_internal_has_buttontext() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || buttontext_ != nullptr); + return value; +} +inline bool Button::has_buttontext() const { + return _internal_has_buttontext(); +} +inline void Button::clear_buttontext() { + if (buttontext_ != nullptr) buttontext_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::proto::ButtonText& Button::_internal_buttontext() const { + const ::proto::ButtonText* p = buttontext_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ButtonText&>( + ::proto::_ButtonText_default_instance_); +} +inline const ::proto::ButtonText& Button::buttontext() const { + // @@protoc_insertion_point(field_get:proto.Button.buttonText) + return _internal_buttontext(); +} +inline void Button::unsafe_arena_set_allocated_buttontext( + ::proto::ButtonText* buttontext) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(buttontext_); + } + buttontext_ = buttontext; + if (buttontext) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Button.buttonText) +} +inline ::proto::ButtonText* Button::release_buttontext() { + _has_bits_[0] &= ~0x00000002u; + ::proto::ButtonText* temp = buttontext_; + buttontext_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ButtonText* Button::unsafe_arena_release_buttontext() { + // @@protoc_insertion_point(field_release:proto.Button.buttonText) + _has_bits_[0] &= ~0x00000002u; + ::proto::ButtonText* temp = buttontext_; + buttontext_ = nullptr; + return temp; +} +inline ::proto::ButtonText* Button::_internal_mutable_buttontext() { + _has_bits_[0] |= 0x00000002u; + if (buttontext_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ButtonText>(GetArena()); + buttontext_ = p; + } + return buttontext_; +} +inline ::proto::ButtonText* Button::mutable_buttontext() { + // @@protoc_insertion_point(field_mutable:proto.Button.buttonText) + return _internal_mutable_buttontext(); +} +inline void Button::set_allocated_buttontext(::proto::ButtonText* buttontext) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete buttontext_; + } + if (buttontext) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(buttontext); + if (message_arena != submessage_arena) { + buttontext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, buttontext, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + buttontext_ = buttontext; + // @@protoc_insertion_point(field_set_allocated:proto.Button.buttonText) +} + +// optional .proto.Button.ButtonType type = 3; +inline bool Button::_internal_has_type() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool Button::has_type() const { + return _internal_has_type(); +} +inline void Button::clear_type() { + type_ = 0; + _has_bits_[0] &= ~0x00000004u; +} +inline ::proto::Button_ButtonType Button::_internal_type() const { + return static_cast< ::proto::Button_ButtonType >(type_); +} +inline ::proto::Button_ButtonType Button::type() const { + // @@protoc_insertion_point(field_get:proto.Button.type) + return _internal_type(); +} +inline void Button::_internal_set_type(::proto::Button_ButtonType value) { + assert(::proto::Button_ButtonType_IsValid(value)); + _has_bits_[0] |= 0x00000004u; + type_ = value; +} +inline void Button::set_type(::proto::Button_ButtonType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:proto.Button.type) +} + +// ------------------------------------------------------------------- + +// ButtonsMessage + +// optional string contentText = 6; +inline bool ButtonsMessage::_internal_has_contenttext() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool ButtonsMessage::has_contenttext() const { + return _internal_has_contenttext(); +} +inline void ButtonsMessage::clear_contenttext() { + contenttext_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& ButtonsMessage::contenttext() const { + // @@protoc_insertion_point(field_get:proto.ButtonsMessage.contentText) + return _internal_contenttext(); +} +inline void ButtonsMessage::set_contenttext(const std::string& value) { + _internal_set_contenttext(value); + // @@protoc_insertion_point(field_set:proto.ButtonsMessage.contentText) +} +inline std::string* ButtonsMessage::mutable_contenttext() { + // @@protoc_insertion_point(field_mutable:proto.ButtonsMessage.contentText) + return _internal_mutable_contenttext(); +} +inline const std::string& ButtonsMessage::_internal_contenttext() const { + return contenttext_.Get(); +} +inline void ButtonsMessage::_internal_set_contenttext(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + contenttext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ButtonsMessage::set_contenttext(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + contenttext_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ButtonsMessage.contentText) +} +inline void ButtonsMessage::set_contenttext(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + contenttext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ButtonsMessage.contentText) +} +inline void ButtonsMessage::set_contenttext(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + contenttext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ButtonsMessage.contentText) +} +inline std::string* ButtonsMessage::_internal_mutable_contenttext() { + _has_bits_[0] |= 0x00000001u; + return contenttext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ButtonsMessage::release_contenttext() { + // @@protoc_insertion_point(field_release:proto.ButtonsMessage.contentText) + if (!_internal_has_contenttext()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return contenttext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ButtonsMessage::set_allocated_contenttext(std::string* contenttext) { + if (contenttext != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + contenttext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), contenttext, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.contentText) +} + +// optional string footerText = 7; +inline bool ButtonsMessage::_internal_has_footertext() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool ButtonsMessage::has_footertext() const { + return _internal_has_footertext(); +} +inline void ButtonsMessage::clear_footertext() { + footertext_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& ButtonsMessage::footertext() const { + // @@protoc_insertion_point(field_get:proto.ButtonsMessage.footerText) + return _internal_footertext(); +} +inline void ButtonsMessage::set_footertext(const std::string& value) { + _internal_set_footertext(value); + // @@protoc_insertion_point(field_set:proto.ButtonsMessage.footerText) +} +inline std::string* ButtonsMessage::mutable_footertext() { + // @@protoc_insertion_point(field_mutable:proto.ButtonsMessage.footerText) + return _internal_mutable_footertext(); +} +inline const std::string& ButtonsMessage::_internal_footertext() const { + return footertext_.Get(); +} +inline void ButtonsMessage::_internal_set_footertext(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + footertext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ButtonsMessage::set_footertext(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + footertext_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ButtonsMessage.footerText) +} +inline void ButtonsMessage::set_footertext(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + footertext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ButtonsMessage.footerText) +} +inline void ButtonsMessage::set_footertext(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + footertext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ButtonsMessage.footerText) +} +inline std::string* ButtonsMessage::_internal_mutable_footertext() { + _has_bits_[0] |= 0x00000002u; + return footertext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ButtonsMessage::release_footertext() { + // @@protoc_insertion_point(field_release:proto.ButtonsMessage.footerText) + if (!_internal_has_footertext()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return footertext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ButtonsMessage::set_allocated_footertext(std::string* footertext) { + if (footertext != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + footertext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), footertext, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.footerText) +} + +// optional .proto.ContextInfo contextInfo = 8; +inline bool ButtonsMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool ButtonsMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void ButtonsMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00000004u; +} +inline const ::proto::ContextInfo& ButtonsMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& ButtonsMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.ButtonsMessage.contextInfo) + return _internal_contextinfo(); +} +inline void ButtonsMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ButtonsMessage.contextInfo) +} +inline ::proto::ContextInfo* ButtonsMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00000004u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* ButtonsMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.ButtonsMessage.contextInfo) + _has_bits_[0] &= ~0x00000004u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* ButtonsMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00000004u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* ButtonsMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.ButtonsMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void ButtonsMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.contextInfo) +} + +// repeated .proto.Button buttons = 9; +inline int ButtonsMessage::_internal_buttons_size() const { + return buttons_.size(); +} +inline int ButtonsMessage::buttons_size() const { + return _internal_buttons_size(); +} +inline void ButtonsMessage::clear_buttons() { + buttons_.Clear(); +} +inline ::proto::Button* ButtonsMessage::mutable_buttons(int index) { + // @@protoc_insertion_point(field_mutable:proto.ButtonsMessage.buttons) + return buttons_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Button >* +ButtonsMessage::mutable_buttons() { + // @@protoc_insertion_point(field_mutable_list:proto.ButtonsMessage.buttons) + return &buttons_; +} +inline const ::proto::Button& ButtonsMessage::_internal_buttons(int index) const { + return buttons_.Get(index); +} +inline const ::proto::Button& ButtonsMessage::buttons(int index) const { + // @@protoc_insertion_point(field_get:proto.ButtonsMessage.buttons) + return _internal_buttons(index); +} +inline ::proto::Button* ButtonsMessage::_internal_add_buttons() { + return buttons_.Add(); +} +inline ::proto::Button* ButtonsMessage::add_buttons() { + // @@protoc_insertion_point(field_add:proto.ButtonsMessage.buttons) + return _internal_add_buttons(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Button >& +ButtonsMessage::buttons() const { + // @@protoc_insertion_point(field_list:proto.ButtonsMessage.buttons) + return buttons_; +} + +// optional .proto.ButtonsMessage.ButtonsMessageHeaderType headerType = 10; +inline bool ButtonsMessage::_internal_has_headertype() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool ButtonsMessage::has_headertype() const { + return _internal_has_headertype(); +} +inline void ButtonsMessage::clear_headertype() { + headertype_ = 0; + _has_bits_[0] &= ~0x00000008u; +} +inline ::proto::ButtonsMessage_ButtonsMessageHeaderType ButtonsMessage::_internal_headertype() const { + return static_cast< ::proto::ButtonsMessage_ButtonsMessageHeaderType >(headertype_); +} +inline ::proto::ButtonsMessage_ButtonsMessageHeaderType ButtonsMessage::headertype() const { + // @@protoc_insertion_point(field_get:proto.ButtonsMessage.headerType) + return _internal_headertype(); +} +inline void ButtonsMessage::_internal_set_headertype(::proto::ButtonsMessage_ButtonsMessageHeaderType value) { + assert(::proto::ButtonsMessage_ButtonsMessageHeaderType_IsValid(value)); + _has_bits_[0] |= 0x00000008u; + headertype_ = value; +} +inline void ButtonsMessage::set_headertype(::proto::ButtonsMessage_ButtonsMessageHeaderType value) { + _internal_set_headertype(value); + // @@protoc_insertion_point(field_set:proto.ButtonsMessage.headerType) +} + +// string text = 1; +inline bool ButtonsMessage::_internal_has_text() const { + return header_case() == kText; +} +inline bool ButtonsMessage::has_text() const { + return _internal_has_text(); +} +inline void ButtonsMessage::set_has_text() { + _oneof_case_[0] = kText; +} +inline void ButtonsMessage::clear_text() { + if (_internal_has_text()) { + header_.text_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + clear_has_header(); + } +} +inline const std::string& ButtonsMessage::text() const { + // @@protoc_insertion_point(field_get:proto.ButtonsMessage.text) + return _internal_text(); +} +inline void ButtonsMessage::set_text(const std::string& value) { + _internal_set_text(value); + // @@protoc_insertion_point(field_set:proto.ButtonsMessage.text) +} +inline std::string* ButtonsMessage::mutable_text() { + // @@protoc_insertion_point(field_mutable:proto.ButtonsMessage.text) + return _internal_mutable_text(); +} +inline const std::string& ButtonsMessage::_internal_text() const { + if (_internal_has_text()) { + return header_.text_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void ButtonsMessage::_internal_set_text(const std::string& value) { + if (!_internal_has_text()) { + clear_header(); + set_has_text(); + header_.text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + header_.text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ButtonsMessage::set_text(std::string&& value) { + // @@protoc_insertion_point(field_set:proto.ButtonsMessage.text) + if (!_internal_has_text()) { + clear_header(); + set_has_text(); + header_.text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + header_.text_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ButtonsMessage.text) +} +inline void ButtonsMessage::set_text(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!_internal_has_text()) { + clear_header(); + set_has_text(); + header_.text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + header_.text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, + ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ButtonsMessage.text) +} +inline void ButtonsMessage::set_text(const char* value, + size_t size) { + if (!_internal_has_text()) { + clear_header(); + set_has_text(); + header_.text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + header_.text_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), + GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ButtonsMessage.text) +} +inline std::string* ButtonsMessage::_internal_mutable_text() { + if (!_internal_has_text()) { + clear_header(); + set_has_text(); + header_.text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + return header_.text_.Mutable( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ButtonsMessage::release_text() { + // @@protoc_insertion_point(field_release:proto.ButtonsMessage.text) + if (_internal_has_text()) { + clear_has_header(); + return header_.text_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + } else { + return nullptr; + } +} +inline void ButtonsMessage::set_allocated_text(std::string* text) { + if (has_header()) { + clear_header(); + } + if (text != nullptr) { + set_has_text(); + header_.text_.UnsafeSetDefault(text); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); + if (arena != nullptr) { + arena->Own(text); + } + } + // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.text) +} + +// .proto.DocumentMessage documentMessage = 2; +inline bool ButtonsMessage::_internal_has_documentmessage() const { + return header_case() == kDocumentMessage; +} +inline bool ButtonsMessage::has_documentmessage() const { + return _internal_has_documentmessage(); +} +inline void ButtonsMessage::set_has_documentmessage() { + _oneof_case_[0] = kDocumentMessage; +} +inline void ButtonsMessage::clear_documentmessage() { + if (_internal_has_documentmessage()) { + if (GetArena() == nullptr) { + delete header_.documentmessage_; + } + clear_has_header(); + } +} +inline ::proto::DocumentMessage* ButtonsMessage::release_documentmessage() { + // @@protoc_insertion_point(field_release:proto.ButtonsMessage.documentMessage) + if (_internal_has_documentmessage()) { + clear_has_header(); + ::proto::DocumentMessage* temp = header_.documentmessage_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + header_.documentmessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::DocumentMessage& ButtonsMessage::_internal_documentmessage() const { + return _internal_has_documentmessage() + ? *header_.documentmessage_ + : reinterpret_cast< ::proto::DocumentMessage&>(::proto::_DocumentMessage_default_instance_); +} +inline const ::proto::DocumentMessage& ButtonsMessage::documentmessage() const { + // @@protoc_insertion_point(field_get:proto.ButtonsMessage.documentMessage) + return _internal_documentmessage(); +} +inline ::proto::DocumentMessage* ButtonsMessage::unsafe_arena_release_documentmessage() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.ButtonsMessage.documentMessage) + if (_internal_has_documentmessage()) { + clear_has_header(); + ::proto::DocumentMessage* temp = header_.documentmessage_; + header_.documentmessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ButtonsMessage::unsafe_arena_set_allocated_documentmessage(::proto::DocumentMessage* documentmessage) { + clear_header(); + if (documentmessage) { + set_has_documentmessage(); + header_.documentmessage_ = documentmessage; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ButtonsMessage.documentMessage) +} +inline ::proto::DocumentMessage* ButtonsMessage::_internal_mutable_documentmessage() { + if (!_internal_has_documentmessage()) { + clear_header(); + set_has_documentmessage(); + header_.documentmessage_ = CreateMaybeMessage< ::proto::DocumentMessage >(GetArena()); + } + return header_.documentmessage_; +} +inline ::proto::DocumentMessage* ButtonsMessage::mutable_documentmessage() { + // @@protoc_insertion_point(field_mutable:proto.ButtonsMessage.documentMessage) + return _internal_mutable_documentmessage(); +} + +// .proto.ImageMessage imageMessage = 3; +inline bool ButtonsMessage::_internal_has_imagemessage() const { + return header_case() == kImageMessage; +} +inline bool ButtonsMessage::has_imagemessage() const { + return _internal_has_imagemessage(); +} +inline void ButtonsMessage::set_has_imagemessage() { + _oneof_case_[0] = kImageMessage; +} +inline void ButtonsMessage::clear_imagemessage() { + if (_internal_has_imagemessage()) { + if (GetArena() == nullptr) { + delete header_.imagemessage_; + } + clear_has_header(); + } +} +inline ::proto::ImageMessage* ButtonsMessage::release_imagemessage() { + // @@protoc_insertion_point(field_release:proto.ButtonsMessage.imageMessage) + if (_internal_has_imagemessage()) { + clear_has_header(); + ::proto::ImageMessage* temp = header_.imagemessage_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + header_.imagemessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::ImageMessage& ButtonsMessage::_internal_imagemessage() const { + return _internal_has_imagemessage() + ? *header_.imagemessage_ + : reinterpret_cast< ::proto::ImageMessage&>(::proto::_ImageMessage_default_instance_); +} +inline const ::proto::ImageMessage& ButtonsMessage::imagemessage() const { + // @@protoc_insertion_point(field_get:proto.ButtonsMessage.imageMessage) + return _internal_imagemessage(); +} +inline ::proto::ImageMessage* ButtonsMessage::unsafe_arena_release_imagemessage() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.ButtonsMessage.imageMessage) + if (_internal_has_imagemessage()) { + clear_has_header(); + ::proto::ImageMessage* temp = header_.imagemessage_; + header_.imagemessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ButtonsMessage::unsafe_arena_set_allocated_imagemessage(::proto::ImageMessage* imagemessage) { + clear_header(); + if (imagemessage) { + set_has_imagemessage(); + header_.imagemessage_ = imagemessage; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ButtonsMessage.imageMessage) +} +inline ::proto::ImageMessage* ButtonsMessage::_internal_mutable_imagemessage() { + if (!_internal_has_imagemessage()) { + clear_header(); + set_has_imagemessage(); + header_.imagemessage_ = CreateMaybeMessage< ::proto::ImageMessage >(GetArena()); + } + return header_.imagemessage_; +} +inline ::proto::ImageMessage* ButtonsMessage::mutable_imagemessage() { + // @@protoc_insertion_point(field_mutable:proto.ButtonsMessage.imageMessage) + return _internal_mutable_imagemessage(); +} + +// .proto.VideoMessage videoMessage = 4; +inline bool ButtonsMessage::_internal_has_videomessage() const { + return header_case() == kVideoMessage; +} +inline bool ButtonsMessage::has_videomessage() const { + return _internal_has_videomessage(); +} +inline void ButtonsMessage::set_has_videomessage() { + _oneof_case_[0] = kVideoMessage; +} +inline void ButtonsMessage::clear_videomessage() { + if (_internal_has_videomessage()) { + if (GetArena() == nullptr) { + delete header_.videomessage_; + } + clear_has_header(); + } +} +inline ::proto::VideoMessage* ButtonsMessage::release_videomessage() { + // @@protoc_insertion_point(field_release:proto.ButtonsMessage.videoMessage) + if (_internal_has_videomessage()) { + clear_has_header(); + ::proto::VideoMessage* temp = header_.videomessage_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + header_.videomessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::VideoMessage& ButtonsMessage::_internal_videomessage() const { + return _internal_has_videomessage() + ? *header_.videomessage_ + : reinterpret_cast< ::proto::VideoMessage&>(::proto::_VideoMessage_default_instance_); +} +inline const ::proto::VideoMessage& ButtonsMessage::videomessage() const { + // @@protoc_insertion_point(field_get:proto.ButtonsMessage.videoMessage) + return _internal_videomessage(); +} +inline ::proto::VideoMessage* ButtonsMessage::unsafe_arena_release_videomessage() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.ButtonsMessage.videoMessage) + if (_internal_has_videomessage()) { + clear_has_header(); + ::proto::VideoMessage* temp = header_.videomessage_; + header_.videomessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ButtonsMessage::unsafe_arena_set_allocated_videomessage(::proto::VideoMessage* videomessage) { + clear_header(); + if (videomessage) { + set_has_videomessage(); + header_.videomessage_ = videomessage; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ButtonsMessage.videoMessage) +} +inline ::proto::VideoMessage* ButtonsMessage::_internal_mutable_videomessage() { + if (!_internal_has_videomessage()) { + clear_header(); + set_has_videomessage(); + header_.videomessage_ = CreateMaybeMessage< ::proto::VideoMessage >(GetArena()); + } + return header_.videomessage_; +} +inline ::proto::VideoMessage* ButtonsMessage::mutable_videomessage() { + // @@protoc_insertion_point(field_mutable:proto.ButtonsMessage.videoMessage) + return _internal_mutable_videomessage(); +} + +// .proto.LocationMessage locationMessage = 5; +inline bool ButtonsMessage::_internal_has_locationmessage() const { + return header_case() == kLocationMessage; +} +inline bool ButtonsMessage::has_locationmessage() const { + return _internal_has_locationmessage(); +} +inline void ButtonsMessage::set_has_locationmessage() { + _oneof_case_[0] = kLocationMessage; +} +inline void ButtonsMessage::clear_locationmessage() { + if (_internal_has_locationmessage()) { + if (GetArena() == nullptr) { + delete header_.locationmessage_; + } + clear_has_header(); + } +} +inline ::proto::LocationMessage* ButtonsMessage::release_locationmessage() { + // @@protoc_insertion_point(field_release:proto.ButtonsMessage.locationMessage) + if (_internal_has_locationmessage()) { + clear_has_header(); + ::proto::LocationMessage* temp = header_.locationmessage_; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + header_.locationmessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::proto::LocationMessage& ButtonsMessage::_internal_locationmessage() const { + return _internal_has_locationmessage() + ? *header_.locationmessage_ + : reinterpret_cast< ::proto::LocationMessage&>(::proto::_LocationMessage_default_instance_); +} +inline const ::proto::LocationMessage& ButtonsMessage::locationmessage() const { + // @@protoc_insertion_point(field_get:proto.ButtonsMessage.locationMessage) + return _internal_locationmessage(); +} +inline ::proto::LocationMessage* ButtonsMessage::unsafe_arena_release_locationmessage() { + // @@protoc_insertion_point(field_unsafe_arena_release:proto.ButtonsMessage.locationMessage) + if (_internal_has_locationmessage()) { + clear_has_header(); + ::proto::LocationMessage* temp = header_.locationmessage_; + header_.locationmessage_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ButtonsMessage::unsafe_arena_set_allocated_locationmessage(::proto::LocationMessage* locationmessage) { + clear_header(); + if (locationmessage) { + set_has_locationmessage(); + header_.locationmessage_ = locationmessage; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ButtonsMessage.locationMessage) +} +inline ::proto::LocationMessage* ButtonsMessage::_internal_mutable_locationmessage() { + if (!_internal_has_locationmessage()) { + clear_header(); + set_has_locationmessage(); + header_.locationmessage_ = CreateMaybeMessage< ::proto::LocationMessage >(GetArena()); + } + return header_.locationmessage_; +} +inline ::proto::LocationMessage* ButtonsMessage::mutable_locationmessage() { + // @@protoc_insertion_point(field_mutable:proto.ButtonsMessage.locationMessage) + return _internal_mutable_locationmessage(); +} + +inline bool ButtonsMessage::has_header() const { + return header_case() != HEADER_NOT_SET; +} +inline void ButtonsMessage::clear_has_header() { + _oneof_case_[0] = HEADER_NOT_SET; +} +inline ButtonsMessage::HeaderCase ButtonsMessage::header_case() const { + return ButtonsMessage::HeaderCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ButtonsResponseMessage + +// optional string selectedButtonId = 1; +inline bool ButtonsResponseMessage::_internal_has_selectedbuttonid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool ButtonsResponseMessage::has_selectedbuttonid() const { + return _internal_has_selectedbuttonid(); +} +inline void ButtonsResponseMessage::clear_selectedbuttonid() { + selectedbuttonid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& ButtonsResponseMessage::selectedbuttonid() const { + // @@protoc_insertion_point(field_get:proto.ButtonsResponseMessage.selectedButtonId) + return _internal_selectedbuttonid(); +} +inline void ButtonsResponseMessage::set_selectedbuttonid(const std::string& value) { + _internal_set_selectedbuttonid(value); + // @@protoc_insertion_point(field_set:proto.ButtonsResponseMessage.selectedButtonId) +} +inline std::string* ButtonsResponseMessage::mutable_selectedbuttonid() { + // @@protoc_insertion_point(field_mutable:proto.ButtonsResponseMessage.selectedButtonId) + return _internal_mutable_selectedbuttonid(); +} +inline const std::string& ButtonsResponseMessage::_internal_selectedbuttonid() const { + return selectedbuttonid_.Get(); +} +inline void ButtonsResponseMessage::_internal_set_selectedbuttonid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + selectedbuttonid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ButtonsResponseMessage::set_selectedbuttonid(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + selectedbuttonid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ButtonsResponseMessage.selectedButtonId) +} +inline void ButtonsResponseMessage::set_selectedbuttonid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + selectedbuttonid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ButtonsResponseMessage.selectedButtonId) +} +inline void ButtonsResponseMessage::set_selectedbuttonid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + selectedbuttonid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ButtonsResponseMessage.selectedButtonId) +} +inline std::string* ButtonsResponseMessage::_internal_mutable_selectedbuttonid() { + _has_bits_[0] |= 0x00000001u; + return selectedbuttonid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ButtonsResponseMessage::release_selectedbuttonid() { + // @@protoc_insertion_point(field_release:proto.ButtonsResponseMessage.selectedButtonId) + if (!_internal_has_selectedbuttonid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return selectedbuttonid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void ButtonsResponseMessage::set_allocated_selectedbuttonid(std::string* selectedbuttonid) { + if (selectedbuttonid != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + selectedbuttonid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), selectedbuttonid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.ButtonsResponseMessage.selectedButtonId) +} + +// optional .proto.ContextInfo contextInfo = 3; +inline bool ButtonsResponseMessage::_internal_has_contextinfo() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || contextinfo_ != nullptr); + return value; +} +inline bool ButtonsResponseMessage::has_contextinfo() const { + return _internal_has_contextinfo(); +} +inline void ButtonsResponseMessage::clear_contextinfo() { + if (contextinfo_ != nullptr) contextinfo_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::proto::ContextInfo& ButtonsResponseMessage::_internal_contextinfo() const { + const ::proto::ContextInfo* p = contextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContextInfo&>( + ::proto::_ContextInfo_default_instance_); +} +inline const ::proto::ContextInfo& ButtonsResponseMessage::contextinfo() const { + // @@protoc_insertion_point(field_get:proto.ButtonsResponseMessage.contextInfo) + return _internal_contextinfo(); +} +inline void ButtonsResponseMessage::unsafe_arena_set_allocated_contextinfo( + ::proto::ContextInfo* contextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); + } + contextinfo_ = contextinfo; + if (contextinfo) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.ButtonsResponseMessage.contextInfo) +} +inline ::proto::ContextInfo* ButtonsResponseMessage::release_contextinfo() { + _has_bits_[0] &= ~0x00000002u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContextInfo* ButtonsResponseMessage::unsafe_arena_release_contextinfo() { + // @@protoc_insertion_point(field_release:proto.ButtonsResponseMessage.contextInfo) + _has_bits_[0] &= ~0x00000002u; + ::proto::ContextInfo* temp = contextinfo_; + contextinfo_ = nullptr; + return temp; +} +inline ::proto::ContextInfo* ButtonsResponseMessage::_internal_mutable_contextinfo() { + _has_bits_[0] |= 0x00000002u; + if (contextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + contextinfo_ = p; + } + return contextinfo_; +} +inline ::proto::ContextInfo* ButtonsResponseMessage::mutable_contextinfo() { + // @@protoc_insertion_point(field_mutable:proto.ButtonsResponseMessage.contextInfo) + return _internal_mutable_contextinfo(); +} +inline void ButtonsResponseMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contextinfo_; + } + if (contextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + if (message_arena != submessage_arena) { + contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contextinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + contextinfo_ = contextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.ButtonsResponseMessage.contextInfo) +} + +// optional .proto.ButtonsResponseMessage.ButtonsResponseMessageType type = 4; +inline bool ButtonsResponseMessage::_internal_has_type() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool ButtonsResponseMessage::has_type() const { + return _internal_has_type(); +} +inline void ButtonsResponseMessage::clear_type() { + type_ = 0; + _has_bits_[0] &= ~0x00000004u; +} +inline ::proto::ButtonsResponseMessage_ButtonsResponseMessageType ButtonsResponseMessage::_internal_type() const { + return static_cast< ::proto::ButtonsResponseMessage_ButtonsResponseMessageType >(type_); +} +inline ::proto::ButtonsResponseMessage_ButtonsResponseMessageType ButtonsResponseMessage::type() const { + // @@protoc_insertion_point(field_get:proto.ButtonsResponseMessage.type) + return _internal_type(); +} +inline void ButtonsResponseMessage::_internal_set_type(::proto::ButtonsResponseMessage_ButtonsResponseMessageType value) { + assert(::proto::ButtonsResponseMessage_ButtonsResponseMessageType_IsValid(value)); + _has_bits_[0] |= 0x00000004u; + type_ = value; +} +inline void ButtonsResponseMessage::set_type(::proto::ButtonsResponseMessage_ButtonsResponseMessageType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:proto.ButtonsResponseMessage.type) +} + +// string selectedDisplayText = 2; +inline bool ButtonsResponseMessage::_internal_has_selecteddisplaytext() const { + return response_case() == kSelectedDisplayText; +} +inline bool ButtonsResponseMessage::has_selecteddisplaytext() const { + return _internal_has_selecteddisplaytext(); +} +inline void ButtonsResponseMessage::set_has_selecteddisplaytext() { + _oneof_case_[0] = kSelectedDisplayText; +} +inline void ButtonsResponseMessage::clear_selecteddisplaytext() { + if (_internal_has_selecteddisplaytext()) { + response_.selecteddisplaytext_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + clear_has_response(); + } +} +inline const std::string& ButtonsResponseMessage::selecteddisplaytext() const { + // @@protoc_insertion_point(field_get:proto.ButtonsResponseMessage.selectedDisplayText) + return _internal_selecteddisplaytext(); +} +inline void ButtonsResponseMessage::set_selecteddisplaytext(const std::string& value) { + _internal_set_selecteddisplaytext(value); + // @@protoc_insertion_point(field_set:proto.ButtonsResponseMessage.selectedDisplayText) +} +inline std::string* ButtonsResponseMessage::mutable_selecteddisplaytext() { + // @@protoc_insertion_point(field_mutable:proto.ButtonsResponseMessage.selectedDisplayText) + return _internal_mutable_selecteddisplaytext(); +} +inline const std::string& ButtonsResponseMessage::_internal_selecteddisplaytext() const { + if (_internal_has_selecteddisplaytext()) { + return response_.selecteddisplaytext_.Get(); + } + return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(); +} +inline void ButtonsResponseMessage::_internal_set_selecteddisplaytext(const std::string& value) { + if (!_internal_has_selecteddisplaytext()) { + clear_response(); + set_has_selecteddisplaytext(); + response_.selecteddisplaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + response_.selecteddisplaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void ButtonsResponseMessage::set_selecteddisplaytext(std::string&& value) { + // @@protoc_insertion_point(field_set:proto.ButtonsResponseMessage.selectedDisplayText) + if (!_internal_has_selecteddisplaytext()) { + clear_response(); + set_has_selecteddisplaytext(); + response_.selecteddisplaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + response_.selecteddisplaytext_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.ButtonsResponseMessage.selectedDisplayText) +} +inline void ButtonsResponseMessage::set_selecteddisplaytext(const char* value) { + GOOGLE_DCHECK(value != nullptr); + if (!_internal_has_selecteddisplaytext()) { + clear_response(); + set_has_selecteddisplaytext(); + response_.selecteddisplaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + response_.selecteddisplaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, + ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.ButtonsResponseMessage.selectedDisplayText) +} +inline void ButtonsResponseMessage::set_selecteddisplaytext(const char* value, + size_t size) { + if (!_internal_has_selecteddisplaytext()) { + clear_response(); + set_has_selecteddisplaytext(); + response_.selecteddisplaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + response_.selecteddisplaytext_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), + GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.ButtonsResponseMessage.selectedDisplayText) +} +inline std::string* ButtonsResponseMessage::_internal_mutable_selecteddisplaytext() { + if (!_internal_has_selecteddisplaytext()) { + clear_response(); + set_has_selecteddisplaytext(); + response_.selecteddisplaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + } + return response_.selecteddisplaytext_.Mutable( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* ButtonsResponseMessage::release_selecteddisplaytext() { + // @@protoc_insertion_point(field_release:proto.ButtonsResponseMessage.selectedDisplayText) + if (_internal_has_selecteddisplaytext()) { + clear_has_response(); + return response_.selecteddisplaytext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + } else { + return nullptr; + } +} +inline void ButtonsResponseMessage::set_allocated_selecteddisplaytext(std::string* selecteddisplaytext) { + if (has_response()) { + clear_response(); + } + if (selecteddisplaytext != nullptr) { + set_has_selecteddisplaytext(); + response_.selecteddisplaytext_.UnsafeSetDefault(selecteddisplaytext); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); + if (arena != nullptr) { + arena->Own(selecteddisplaytext); + } + } + // @@protoc_insertion_point(field_set_allocated:proto.ButtonsResponseMessage.selectedDisplayText) +} + +inline bool ButtonsResponseMessage::has_response() const { + return response_case() != RESPONSE_NOT_SET; +} +inline void ButtonsResponseMessage::clear_has_response() { + _oneof_case_[0] = RESPONSE_NOT_SET; +} +inline ButtonsResponseMessage::ResponseCase ButtonsResponseMessage::response_case() const { + return ButtonsResponseMessage::ResponseCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// Message + +// optional string conversation = 1; +inline bool Message::_internal_has_conversation() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool Message::has_conversation() const { + return _internal_has_conversation(); +} +inline void Message::clear_conversation() { + conversation_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& Message::conversation() const { + // @@protoc_insertion_point(field_get:proto.Message.conversation) + return _internal_conversation(); +} +inline void Message::set_conversation(const std::string& value) { + _internal_set_conversation(value); + // @@protoc_insertion_point(field_set:proto.Message.conversation) +} +inline std::string* Message::mutable_conversation() { + // @@protoc_insertion_point(field_mutable:proto.Message.conversation) + return _internal_mutable_conversation(); +} +inline const std::string& Message::_internal_conversation() const { + return conversation_.Get(); +} +inline void Message::_internal_set_conversation(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + conversation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void Message::set_conversation(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + conversation_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.Message.conversation) +} +inline void Message::set_conversation(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + conversation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.Message.conversation) +} +inline void Message::set_conversation(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + conversation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.Message.conversation) +} +inline std::string* Message::_internal_mutable_conversation() { + _has_bits_[0] |= 0x00000001u; + return conversation_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* Message::release_conversation() { + // @@protoc_insertion_point(field_release:proto.Message.conversation) + if (!_internal_has_conversation()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return conversation_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void Message::set_allocated_conversation(std::string* conversation) { + if (conversation != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + conversation_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), conversation, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.Message.conversation) +} + +// optional .proto.SenderKeyDistributionMessage senderKeyDistributionMessage = 2; +inline bool Message::_internal_has_senderkeydistributionmessage() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || senderkeydistributionmessage_ != nullptr); + return value; +} +inline bool Message::has_senderkeydistributionmessage() const { + return _internal_has_senderkeydistributionmessage(); +} +inline void Message::clear_senderkeydistributionmessage() { + if (senderkeydistributionmessage_ != nullptr) senderkeydistributionmessage_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::proto::SenderKeyDistributionMessage& Message::_internal_senderkeydistributionmessage() const { + const ::proto::SenderKeyDistributionMessage* p = senderkeydistributionmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::SenderKeyDistributionMessage&>( + ::proto::_SenderKeyDistributionMessage_default_instance_); +} +inline const ::proto::SenderKeyDistributionMessage& Message::senderkeydistributionmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.senderKeyDistributionMessage) + return _internal_senderkeydistributionmessage(); +} +inline void Message::unsafe_arena_set_allocated_senderkeydistributionmessage( + ::proto::SenderKeyDistributionMessage* senderkeydistributionmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(senderkeydistributionmessage_); + } + senderkeydistributionmessage_ = senderkeydistributionmessage; + if (senderkeydistributionmessage) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.senderKeyDistributionMessage) +} +inline ::proto::SenderKeyDistributionMessage* Message::release_senderkeydistributionmessage() { + _has_bits_[0] &= ~0x00000002u; + ::proto::SenderKeyDistributionMessage* temp = senderkeydistributionmessage_; + senderkeydistributionmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::SenderKeyDistributionMessage* Message::unsafe_arena_release_senderkeydistributionmessage() { + // @@protoc_insertion_point(field_release:proto.Message.senderKeyDistributionMessage) + _has_bits_[0] &= ~0x00000002u; + ::proto::SenderKeyDistributionMessage* temp = senderkeydistributionmessage_; + senderkeydistributionmessage_ = nullptr; + return temp; +} +inline ::proto::SenderKeyDistributionMessage* Message::_internal_mutable_senderkeydistributionmessage() { + _has_bits_[0] |= 0x00000002u; + if (senderkeydistributionmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::SenderKeyDistributionMessage>(GetArena()); + senderkeydistributionmessage_ = p; + } + return senderkeydistributionmessage_; +} +inline ::proto::SenderKeyDistributionMessage* Message::mutable_senderkeydistributionmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.senderKeyDistributionMessage) + return _internal_mutable_senderkeydistributionmessage(); +} +inline void Message::set_allocated_senderkeydistributionmessage(::proto::SenderKeyDistributionMessage* senderkeydistributionmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete senderkeydistributionmessage_; + } + if (senderkeydistributionmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(senderkeydistributionmessage); + if (message_arena != submessage_arena) { + senderkeydistributionmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, senderkeydistributionmessage, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + senderkeydistributionmessage_ = senderkeydistributionmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.senderKeyDistributionMessage) +} + +// optional .proto.ImageMessage imageMessage = 3; +inline bool Message::_internal_has_imagemessage() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || imagemessage_ != nullptr); + return value; +} +inline bool Message::has_imagemessage() const { + return _internal_has_imagemessage(); +} +inline void Message::clear_imagemessage() { + if (imagemessage_ != nullptr) imagemessage_->Clear(); + _has_bits_[0] &= ~0x00000004u; +} +inline const ::proto::ImageMessage& Message::_internal_imagemessage() const { + const ::proto::ImageMessage* p = imagemessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ImageMessage&>( + ::proto::_ImageMessage_default_instance_); +} +inline const ::proto::ImageMessage& Message::imagemessage() const { + // @@protoc_insertion_point(field_get:proto.Message.imageMessage) + return _internal_imagemessage(); +} +inline void Message::unsafe_arena_set_allocated_imagemessage( + ::proto::ImageMessage* imagemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(imagemessage_); + } + imagemessage_ = imagemessage; + if (imagemessage) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.imageMessage) +} +inline ::proto::ImageMessage* Message::release_imagemessage() { + _has_bits_[0] &= ~0x00000004u; + ::proto::ImageMessage* temp = imagemessage_; + imagemessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ImageMessage* Message::unsafe_arena_release_imagemessage() { + // @@protoc_insertion_point(field_release:proto.Message.imageMessage) + _has_bits_[0] &= ~0x00000004u; + ::proto::ImageMessage* temp = imagemessage_; + imagemessage_ = nullptr; + return temp; +} +inline ::proto::ImageMessage* Message::_internal_mutable_imagemessage() { + _has_bits_[0] |= 0x00000004u; + if (imagemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ImageMessage>(GetArena()); + imagemessage_ = p; + } + return imagemessage_; +} +inline ::proto::ImageMessage* Message::mutable_imagemessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.imageMessage) + return _internal_mutable_imagemessage(); +} +inline void Message::set_allocated_imagemessage(::proto::ImageMessage* imagemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete imagemessage_; + } + 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); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + imagemessage_ = imagemessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.imageMessage) +} + +// optional .proto.ContactMessage contactMessage = 4; +inline bool Message::_internal_has_contactmessage() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + PROTOBUF_ASSUME(!value || contactmessage_ != nullptr); + return value; +} +inline bool Message::has_contactmessage() const { + return _internal_has_contactmessage(); +} +inline void Message::clear_contactmessage() { + if (contactmessage_ != nullptr) contactmessage_->Clear(); + _has_bits_[0] &= ~0x00000008u; +} +inline const ::proto::ContactMessage& Message::_internal_contactmessage() const { + const ::proto::ContactMessage* p = contactmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContactMessage&>( + ::proto::_ContactMessage_default_instance_); +} +inline const ::proto::ContactMessage& Message::contactmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.contactMessage) + return _internal_contactmessage(); +} +inline void Message::unsafe_arena_set_allocated_contactmessage( + ::proto::ContactMessage* contactmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contactmessage_); + } + contactmessage_ = contactmessage; + if (contactmessage) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.contactMessage) +} +inline ::proto::ContactMessage* Message::release_contactmessage() { + _has_bits_[0] &= ~0x00000008u; + ::proto::ContactMessage* temp = contactmessage_; + contactmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContactMessage* Message::unsafe_arena_release_contactmessage() { + // @@protoc_insertion_point(field_release:proto.Message.contactMessage) + _has_bits_[0] &= ~0x00000008u; + ::proto::ContactMessage* temp = contactmessage_; + contactmessage_ = nullptr; + return temp; +} +inline ::proto::ContactMessage* Message::_internal_mutable_contactmessage() { + _has_bits_[0] |= 0x00000008u; + if (contactmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContactMessage>(GetArena()); + contactmessage_ = p; + } + return contactmessage_; +} +inline ::proto::ContactMessage* Message::mutable_contactmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.contactMessage) + return _internal_mutable_contactmessage(); +} +inline void Message::set_allocated_contactmessage(::proto::ContactMessage* contactmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contactmessage_; + } + if (contactmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contactmessage); + if (message_arena != submessage_arena) { + contactmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contactmessage, submessage_arena); + } + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + contactmessage_ = contactmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.contactMessage) +} + +// optional .proto.LocationMessage locationMessage = 5; +inline bool Message::_internal_has_locationmessage() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + PROTOBUF_ASSUME(!value || locationmessage_ != nullptr); + return value; +} +inline bool Message::has_locationmessage() const { + return _internal_has_locationmessage(); +} +inline void Message::clear_locationmessage() { + if (locationmessage_ != nullptr) locationmessage_->Clear(); + _has_bits_[0] &= ~0x00000010u; +} +inline const ::proto::LocationMessage& Message::_internal_locationmessage() const { + const ::proto::LocationMessage* p = locationmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::LocationMessage&>( + ::proto::_LocationMessage_default_instance_); +} +inline const ::proto::LocationMessage& Message::locationmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.locationMessage) + return _internal_locationmessage(); +} +inline void Message::unsafe_arena_set_allocated_locationmessage( + ::proto::LocationMessage* locationmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(locationmessage_); + } + locationmessage_ = locationmessage; + if (locationmessage) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.locationMessage) +} +inline ::proto::LocationMessage* Message::release_locationmessage() { + _has_bits_[0] &= ~0x00000010u; + ::proto::LocationMessage* temp = locationmessage_; + locationmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::LocationMessage* Message::unsafe_arena_release_locationmessage() { + // @@protoc_insertion_point(field_release:proto.Message.locationMessage) + _has_bits_[0] &= ~0x00000010u; + ::proto::LocationMessage* temp = locationmessage_; + locationmessage_ = nullptr; + return temp; +} +inline ::proto::LocationMessage* Message::_internal_mutable_locationmessage() { + _has_bits_[0] |= 0x00000010u; + if (locationmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::LocationMessage>(GetArena()); + locationmessage_ = p; + } + return locationmessage_; +} +inline ::proto::LocationMessage* Message::mutable_locationmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.locationMessage) + return _internal_mutable_locationmessage(); +} +inline void Message::set_allocated_locationmessage(::proto::LocationMessage* locationmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete locationmessage_; + } + 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); + } + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + locationmessage_ = locationmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.locationMessage) +} + +// optional .proto.ExtendedTextMessage extendedTextMessage = 6; +inline bool Message::_internal_has_extendedtextmessage() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + PROTOBUF_ASSUME(!value || extendedtextmessage_ != nullptr); + return value; +} +inline bool Message::has_extendedtextmessage() const { + return _internal_has_extendedtextmessage(); +} +inline void Message::clear_extendedtextmessage() { + if (extendedtextmessage_ != nullptr) extendedtextmessage_->Clear(); + _has_bits_[0] &= ~0x00000020u; +} +inline const ::proto::ExtendedTextMessage& Message::_internal_extendedtextmessage() const { + const ::proto::ExtendedTextMessage* p = extendedtextmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ExtendedTextMessage&>( + ::proto::_ExtendedTextMessage_default_instance_); +} +inline const ::proto::ExtendedTextMessage& Message::extendedtextmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.extendedTextMessage) + return _internal_extendedtextmessage(); +} +inline void Message::unsafe_arena_set_allocated_extendedtextmessage( + ::proto::ExtendedTextMessage* extendedtextmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extendedtextmessage_); + } + extendedtextmessage_ = extendedtextmessage; + if (extendedtextmessage) { + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.extendedTextMessage) +} +inline ::proto::ExtendedTextMessage* Message::release_extendedtextmessage() { + _has_bits_[0] &= ~0x00000020u; + ::proto::ExtendedTextMessage* temp = extendedtextmessage_; + extendedtextmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ExtendedTextMessage* Message::unsafe_arena_release_extendedtextmessage() { + // @@protoc_insertion_point(field_release:proto.Message.extendedTextMessage) + _has_bits_[0] &= ~0x00000020u; + ::proto::ExtendedTextMessage* temp = extendedtextmessage_; + extendedtextmessage_ = nullptr; + return temp; +} +inline ::proto::ExtendedTextMessage* Message::_internal_mutable_extendedtextmessage() { + _has_bits_[0] |= 0x00000020u; + if (extendedtextmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ExtendedTextMessage>(GetArena()); + extendedtextmessage_ = p; + } + return extendedtextmessage_; +} +inline ::proto::ExtendedTextMessage* Message::mutable_extendedtextmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.extendedTextMessage) + return _internal_mutable_extendedtextmessage(); +} +inline void Message::set_allocated_extendedtextmessage(::proto::ExtendedTextMessage* extendedtextmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete extendedtextmessage_; + } + if (extendedtextmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(extendedtextmessage); + if (message_arena != submessage_arena) { + extendedtextmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, extendedtextmessage, submessage_arena); + } + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + extendedtextmessage_ = extendedtextmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.extendedTextMessage) +} + +// optional .proto.DocumentMessage documentMessage = 7; +inline bool Message::_internal_has_documentmessage() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + PROTOBUF_ASSUME(!value || documentmessage_ != nullptr); + return value; +} +inline bool Message::has_documentmessage() const { + return _internal_has_documentmessage(); +} +inline void Message::clear_documentmessage() { + if (documentmessage_ != nullptr) documentmessage_->Clear(); + _has_bits_[0] &= ~0x00000040u; +} +inline const ::proto::DocumentMessage& Message::_internal_documentmessage() const { + const ::proto::DocumentMessage* p = documentmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::DocumentMessage&>( + ::proto::_DocumentMessage_default_instance_); +} +inline const ::proto::DocumentMessage& Message::documentmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.documentMessage) + return _internal_documentmessage(); +} +inline void Message::unsafe_arena_set_allocated_documentmessage( + ::proto::DocumentMessage* documentmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(documentmessage_); + } + documentmessage_ = documentmessage; + if (documentmessage) { + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.documentMessage) +} +inline ::proto::DocumentMessage* Message::release_documentmessage() { + _has_bits_[0] &= ~0x00000040u; + ::proto::DocumentMessage* temp = documentmessage_; + documentmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::DocumentMessage* Message::unsafe_arena_release_documentmessage() { + // @@protoc_insertion_point(field_release:proto.Message.documentMessage) + _has_bits_[0] &= ~0x00000040u; + ::proto::DocumentMessage* temp = documentmessage_; + documentmessage_ = nullptr; + return temp; +} +inline ::proto::DocumentMessage* Message::_internal_mutable_documentmessage() { + _has_bits_[0] |= 0x00000040u; + if (documentmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::DocumentMessage>(GetArena()); + documentmessage_ = p; + } + return documentmessage_; +} +inline ::proto::DocumentMessage* Message::mutable_documentmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.documentMessage) + return _internal_mutable_documentmessage(); +} +inline void Message::set_allocated_documentmessage(::proto::DocumentMessage* documentmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete documentmessage_; + } + 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); + } + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + documentmessage_ = documentmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.documentMessage) +} + +// optional .proto.AudioMessage audioMessage = 8; +inline bool Message::_internal_has_audiomessage() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + PROTOBUF_ASSUME(!value || audiomessage_ != nullptr); + return value; +} +inline bool Message::has_audiomessage() const { + return _internal_has_audiomessage(); +} +inline void Message::clear_audiomessage() { + if (audiomessage_ != nullptr) audiomessage_->Clear(); + _has_bits_[0] &= ~0x00000080u; +} +inline const ::proto::AudioMessage& Message::_internal_audiomessage() const { + const ::proto::AudioMessage* p = audiomessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::AudioMessage&>( + ::proto::_AudioMessage_default_instance_); +} +inline const ::proto::AudioMessage& Message::audiomessage() const { + // @@protoc_insertion_point(field_get:proto.Message.audioMessage) + return _internal_audiomessage(); +} +inline void Message::unsafe_arena_set_allocated_audiomessage( + ::proto::AudioMessage* audiomessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(audiomessage_); + } + audiomessage_ = audiomessage; + if (audiomessage) { + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.audioMessage) +} +inline ::proto::AudioMessage* Message::release_audiomessage() { + _has_bits_[0] &= ~0x00000080u; + ::proto::AudioMessage* temp = audiomessage_; + audiomessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::AudioMessage* Message::unsafe_arena_release_audiomessage() { + // @@protoc_insertion_point(field_release:proto.Message.audioMessage) + _has_bits_[0] &= ~0x00000080u; + ::proto::AudioMessage* temp = audiomessage_; + audiomessage_ = nullptr; + return temp; +} +inline ::proto::AudioMessage* Message::_internal_mutable_audiomessage() { + _has_bits_[0] |= 0x00000080u; + if (audiomessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::AudioMessage>(GetArena()); + audiomessage_ = p; + } + return audiomessage_; +} +inline ::proto::AudioMessage* Message::mutable_audiomessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.audioMessage) + return _internal_mutable_audiomessage(); +} +inline void Message::set_allocated_audiomessage(::proto::AudioMessage* audiomessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete audiomessage_; + } + if (audiomessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(audiomessage); + if (message_arena != submessage_arena) { + audiomessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, audiomessage, submessage_arena); + } + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + audiomessage_ = audiomessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.audioMessage) +} + +// optional .proto.VideoMessage videoMessage = 9; +inline bool Message::_internal_has_videomessage() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + PROTOBUF_ASSUME(!value || videomessage_ != nullptr); + return value; +} +inline bool Message::has_videomessage() const { + return _internal_has_videomessage(); +} +inline void Message::clear_videomessage() { + if (videomessage_ != nullptr) videomessage_->Clear(); + _has_bits_[0] &= ~0x00000100u; +} +inline const ::proto::VideoMessage& Message::_internal_videomessage() const { + const ::proto::VideoMessage* p = videomessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::VideoMessage&>( + ::proto::_VideoMessage_default_instance_); +} +inline const ::proto::VideoMessage& Message::videomessage() const { + // @@protoc_insertion_point(field_get:proto.Message.videoMessage) + return _internal_videomessage(); +} +inline void Message::unsafe_arena_set_allocated_videomessage( + ::proto::VideoMessage* videomessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(videomessage_); + } + videomessage_ = videomessage; + if (videomessage) { + _has_bits_[0] |= 0x00000100u; + } else { + _has_bits_[0] &= ~0x00000100u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.videoMessage) +} +inline ::proto::VideoMessage* Message::release_videomessage() { + _has_bits_[0] &= ~0x00000100u; + ::proto::VideoMessage* temp = videomessage_; + videomessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::VideoMessage* Message::unsafe_arena_release_videomessage() { + // @@protoc_insertion_point(field_release:proto.Message.videoMessage) + _has_bits_[0] &= ~0x00000100u; + ::proto::VideoMessage* temp = videomessage_; + videomessage_ = nullptr; + return temp; +} +inline ::proto::VideoMessage* Message::_internal_mutable_videomessage() { + _has_bits_[0] |= 0x00000100u; + if (videomessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::VideoMessage>(GetArena()); + videomessage_ = p; + } + return videomessage_; +} +inline ::proto::VideoMessage* Message::mutable_videomessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.videoMessage) + return _internal_mutable_videomessage(); +} +inline void Message::set_allocated_videomessage(::proto::VideoMessage* videomessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete videomessage_; + } + 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); + } + _has_bits_[0] |= 0x00000100u; + } else { + _has_bits_[0] &= ~0x00000100u; + } + videomessage_ = videomessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.videoMessage) +} + +// optional .proto.Call call = 10; +inline bool Message::_internal_has_call() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + PROTOBUF_ASSUME(!value || call_ != nullptr); + return value; +} +inline bool Message::has_call() const { + return _internal_has_call(); +} +inline void Message::clear_call() { + if (call_ != nullptr) call_->Clear(); + _has_bits_[0] &= ~0x00000200u; +} +inline const ::proto::Call& Message::_internal_call() const { + const ::proto::Call* p = call_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::Call&>( + ::proto::_Call_default_instance_); +} +inline const ::proto::Call& Message::call() const { + // @@protoc_insertion_point(field_get:proto.Message.call) + return _internal_call(); +} +inline void Message::unsafe_arena_set_allocated_call( + ::proto::Call* call) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(call_); + } + call_ = call; + if (call) { + _has_bits_[0] |= 0x00000200u; + } else { + _has_bits_[0] &= ~0x00000200u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.call) +} +inline ::proto::Call* Message::release_call() { + _has_bits_[0] &= ~0x00000200u; + ::proto::Call* temp = call_; + call_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::Call* Message::unsafe_arena_release_call() { + // @@protoc_insertion_point(field_release:proto.Message.call) + _has_bits_[0] &= ~0x00000200u; + ::proto::Call* temp = call_; + call_ = nullptr; + return temp; +} +inline ::proto::Call* Message::_internal_mutable_call() { + _has_bits_[0] |= 0x00000200u; + if (call_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::Call>(GetArena()); + call_ = p; + } + return call_; +} +inline ::proto::Call* Message::mutable_call() { + // @@protoc_insertion_point(field_mutable:proto.Message.call) + return _internal_mutable_call(); +} +inline void Message::set_allocated_call(::proto::Call* call) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete call_; + } + if (call) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(call); + if (message_arena != submessage_arena) { + call = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, call, submessage_arena); + } + _has_bits_[0] |= 0x00000200u; + } else { + _has_bits_[0] &= ~0x00000200u; + } + call_ = call; + // @@protoc_insertion_point(field_set_allocated:proto.Message.call) +} + +// optional .proto.Chat chat = 11; +inline bool Message::_internal_has_chat() const { + bool value = (_has_bits_[0] & 0x00000400u) != 0; + PROTOBUF_ASSUME(!value || chat_ != nullptr); + return value; +} +inline bool Message::has_chat() const { + return _internal_has_chat(); +} +inline void Message::clear_chat() { + if (chat_ != nullptr) chat_->Clear(); + _has_bits_[0] &= ~0x00000400u; +} +inline const ::proto::Chat& Message::_internal_chat() const { + const ::proto::Chat* p = chat_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::Chat&>( + ::proto::_Chat_default_instance_); +} +inline const ::proto::Chat& Message::chat() const { + // @@protoc_insertion_point(field_get:proto.Message.chat) + return _internal_chat(); +} +inline void Message::unsafe_arena_set_allocated_chat( + ::proto::Chat* chat) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(chat_); + } + chat_ = chat; + if (chat) { + _has_bits_[0] |= 0x00000400u; + } else { + _has_bits_[0] &= ~0x00000400u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.chat) +} +inline ::proto::Chat* Message::release_chat() { + _has_bits_[0] &= ~0x00000400u; + ::proto::Chat* temp = chat_; + chat_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::Chat* Message::unsafe_arena_release_chat() { + // @@protoc_insertion_point(field_release:proto.Message.chat) + _has_bits_[0] &= ~0x00000400u; + ::proto::Chat* temp = chat_; + chat_ = nullptr; + return temp; +} +inline ::proto::Chat* Message::_internal_mutable_chat() { + _has_bits_[0] |= 0x00000400u; + if (chat_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::Chat>(GetArena()); + chat_ = p; + } + return chat_; +} +inline ::proto::Chat* Message::mutable_chat() { + // @@protoc_insertion_point(field_mutable:proto.Message.chat) + return _internal_mutable_chat(); +} +inline void Message::set_allocated_chat(::proto::Chat* chat) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete chat_; + } + if (chat) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(chat); + if (message_arena != submessage_arena) { + chat = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, chat, submessage_arena); + } + _has_bits_[0] |= 0x00000400u; + } else { + _has_bits_[0] &= ~0x00000400u; + } + chat_ = chat; + // @@protoc_insertion_point(field_set_allocated:proto.Message.chat) +} + +// optional .proto.ProtocolMessage protocolMessage = 12; +inline bool Message::_internal_has_protocolmessage() const { + bool value = (_has_bits_[0] & 0x00000800u) != 0; + PROTOBUF_ASSUME(!value || protocolmessage_ != nullptr); + return value; +} +inline bool Message::has_protocolmessage() const { + return _internal_has_protocolmessage(); +} +inline void Message::clear_protocolmessage() { + if (protocolmessage_ != nullptr) protocolmessage_->Clear(); + _has_bits_[0] &= ~0x00000800u; +} +inline const ::proto::ProtocolMessage& Message::_internal_protocolmessage() const { + const ::proto::ProtocolMessage* p = protocolmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ProtocolMessage&>( + ::proto::_ProtocolMessage_default_instance_); +} +inline const ::proto::ProtocolMessage& Message::protocolmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.protocolMessage) + return _internal_protocolmessage(); +} +inline void Message::unsafe_arena_set_allocated_protocolmessage( + ::proto::ProtocolMessage* protocolmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(protocolmessage_); + } + protocolmessage_ = protocolmessage; + if (protocolmessage) { + _has_bits_[0] |= 0x00000800u; + } else { + _has_bits_[0] &= ~0x00000800u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.protocolMessage) +} +inline ::proto::ProtocolMessage* Message::release_protocolmessage() { + _has_bits_[0] &= ~0x00000800u; + ::proto::ProtocolMessage* temp = protocolmessage_; + protocolmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ProtocolMessage* Message::unsafe_arena_release_protocolmessage() { + // @@protoc_insertion_point(field_release:proto.Message.protocolMessage) + _has_bits_[0] &= ~0x00000800u; + ::proto::ProtocolMessage* temp = protocolmessage_; + protocolmessage_ = nullptr; + return temp; +} +inline ::proto::ProtocolMessage* Message::_internal_mutable_protocolmessage() { + _has_bits_[0] |= 0x00000800u; + if (protocolmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ProtocolMessage>(GetArena()); + protocolmessage_ = p; + } + return protocolmessage_; +} +inline ::proto::ProtocolMessage* Message::mutable_protocolmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.protocolMessage) + return _internal_mutable_protocolmessage(); +} +inline void Message::set_allocated_protocolmessage(::proto::ProtocolMessage* protocolmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete protocolmessage_; + } + if (protocolmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(protocolmessage); + if (message_arena != submessage_arena) { + protocolmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, protocolmessage, submessage_arena); + } + _has_bits_[0] |= 0x00000800u; + } else { + _has_bits_[0] &= ~0x00000800u; + } + protocolmessage_ = protocolmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.protocolMessage) +} + +// optional .proto.ContactsArrayMessage contactsArrayMessage = 13; +inline bool Message::_internal_has_contactsarraymessage() const { + bool value = (_has_bits_[0] & 0x00001000u) != 0; + PROTOBUF_ASSUME(!value || contactsarraymessage_ != nullptr); + return value; +} +inline bool Message::has_contactsarraymessage() const { + return _internal_has_contactsarraymessage(); +} +inline void Message::clear_contactsarraymessage() { + if (contactsarraymessage_ != nullptr) contactsarraymessage_->Clear(); + _has_bits_[0] &= ~0x00001000u; +} +inline const ::proto::ContactsArrayMessage& Message::_internal_contactsarraymessage() const { + const ::proto::ContactsArrayMessage* p = contactsarraymessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ContactsArrayMessage&>( + ::proto::_ContactsArrayMessage_default_instance_); +} +inline const ::proto::ContactsArrayMessage& Message::contactsarraymessage() const { + // @@protoc_insertion_point(field_get:proto.Message.contactsArrayMessage) + return _internal_contactsarraymessage(); +} +inline void Message::unsafe_arena_set_allocated_contactsarraymessage( + ::proto::ContactsArrayMessage* contactsarraymessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contactsarraymessage_); + } + contactsarraymessage_ = contactsarraymessage; + if (contactsarraymessage) { + _has_bits_[0] |= 0x00001000u; + } else { + _has_bits_[0] &= ~0x00001000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.contactsArrayMessage) +} +inline ::proto::ContactsArrayMessage* Message::release_contactsarraymessage() { + _has_bits_[0] &= ~0x00001000u; + ::proto::ContactsArrayMessage* temp = contactsarraymessage_; + contactsarraymessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ContactsArrayMessage* Message::unsafe_arena_release_contactsarraymessage() { + // @@protoc_insertion_point(field_release:proto.Message.contactsArrayMessage) + _has_bits_[0] &= ~0x00001000u; + ::proto::ContactsArrayMessage* temp = contactsarraymessage_; + contactsarraymessage_ = nullptr; + return temp; +} +inline ::proto::ContactsArrayMessage* Message::_internal_mutable_contactsarraymessage() { + _has_bits_[0] |= 0x00001000u; + if (contactsarraymessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ContactsArrayMessage>(GetArena()); + contactsarraymessage_ = p; + } + return contactsarraymessage_; +} +inline ::proto::ContactsArrayMessage* Message::mutable_contactsarraymessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.contactsArrayMessage) + return _internal_mutable_contactsarraymessage(); +} +inline void Message::set_allocated_contactsarraymessage(::proto::ContactsArrayMessage* contactsarraymessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete contactsarraymessage_; + } + if (contactsarraymessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contactsarraymessage); + if (message_arena != submessage_arena) { + contactsarraymessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, contactsarraymessage, submessage_arena); + } + _has_bits_[0] |= 0x00001000u; + } else { + _has_bits_[0] &= ~0x00001000u; + } + contactsarraymessage_ = contactsarraymessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.contactsArrayMessage) +} + +// optional .proto.HighlyStructuredMessage highlyStructuredMessage = 14; +inline bool Message::_internal_has_highlystructuredmessage() const { + bool value = (_has_bits_[0] & 0x00002000u) != 0; + PROTOBUF_ASSUME(!value || highlystructuredmessage_ != nullptr); + return value; +} +inline bool Message::has_highlystructuredmessage() const { + return _internal_has_highlystructuredmessage(); +} +inline void Message::clear_highlystructuredmessage() { + if (highlystructuredmessage_ != nullptr) highlystructuredmessage_->Clear(); + _has_bits_[0] &= ~0x00002000u; +} +inline const ::proto::HighlyStructuredMessage& Message::_internal_highlystructuredmessage() const { + const ::proto::HighlyStructuredMessage* p = highlystructuredmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::HighlyStructuredMessage&>( + ::proto::_HighlyStructuredMessage_default_instance_); +} +inline const ::proto::HighlyStructuredMessage& Message::highlystructuredmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.highlyStructuredMessage) + return _internal_highlystructuredmessage(); +} +inline void Message::unsafe_arena_set_allocated_highlystructuredmessage( + ::proto::HighlyStructuredMessage* highlystructuredmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(highlystructuredmessage_); + } + highlystructuredmessage_ = highlystructuredmessage; + if (highlystructuredmessage) { + _has_bits_[0] |= 0x00002000u; + } else { + _has_bits_[0] &= ~0x00002000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.highlyStructuredMessage) +} +inline ::proto::HighlyStructuredMessage* Message::release_highlystructuredmessage() { + _has_bits_[0] &= ~0x00002000u; + ::proto::HighlyStructuredMessage* temp = highlystructuredmessage_; + highlystructuredmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::HighlyStructuredMessage* Message::unsafe_arena_release_highlystructuredmessage() { + // @@protoc_insertion_point(field_release:proto.Message.highlyStructuredMessage) + _has_bits_[0] &= ~0x00002000u; + ::proto::HighlyStructuredMessage* temp = highlystructuredmessage_; + highlystructuredmessage_ = nullptr; + return temp; +} +inline ::proto::HighlyStructuredMessage* Message::_internal_mutable_highlystructuredmessage() { + _has_bits_[0] |= 0x00002000u; + if (highlystructuredmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArena()); + highlystructuredmessage_ = p; + } + return highlystructuredmessage_; +} +inline ::proto::HighlyStructuredMessage* Message::mutable_highlystructuredmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.highlyStructuredMessage) + return _internal_mutable_highlystructuredmessage(); +} +inline void Message::set_allocated_highlystructuredmessage(::proto::HighlyStructuredMessage* highlystructuredmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete highlystructuredmessage_; + } + 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); + } + _has_bits_[0] |= 0x00002000u; + } else { + _has_bits_[0] &= ~0x00002000u; + } + highlystructuredmessage_ = highlystructuredmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.highlyStructuredMessage) +} + +// optional .proto.SenderKeyDistributionMessage fastRatchetKeySenderKeyDistributionMessage = 15; +inline bool Message::_internal_has_fastratchetkeysenderkeydistributionmessage() const { + bool value = (_has_bits_[0] & 0x00004000u) != 0; + PROTOBUF_ASSUME(!value || fastratchetkeysenderkeydistributionmessage_ != nullptr); + return value; +} +inline bool Message::has_fastratchetkeysenderkeydistributionmessage() const { + return _internal_has_fastratchetkeysenderkeydistributionmessage(); +} +inline void Message::clear_fastratchetkeysenderkeydistributionmessage() { + if (fastratchetkeysenderkeydistributionmessage_ != nullptr) fastratchetkeysenderkeydistributionmessage_->Clear(); + _has_bits_[0] &= ~0x00004000u; +} +inline const ::proto::SenderKeyDistributionMessage& Message::_internal_fastratchetkeysenderkeydistributionmessage() const { + const ::proto::SenderKeyDistributionMessage* p = fastratchetkeysenderkeydistributionmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::SenderKeyDistributionMessage&>( + ::proto::_SenderKeyDistributionMessage_default_instance_); +} +inline const ::proto::SenderKeyDistributionMessage& Message::fastratchetkeysenderkeydistributionmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.fastRatchetKeySenderKeyDistributionMessage) + return _internal_fastratchetkeysenderkeydistributionmessage(); +} +inline void Message::unsafe_arena_set_allocated_fastratchetkeysenderkeydistributionmessage( + ::proto::SenderKeyDistributionMessage* fastratchetkeysenderkeydistributionmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fastratchetkeysenderkeydistributionmessage_); + } + fastratchetkeysenderkeydistributionmessage_ = fastratchetkeysenderkeydistributionmessage; + if (fastratchetkeysenderkeydistributionmessage) { + _has_bits_[0] |= 0x00004000u; + } else { + _has_bits_[0] &= ~0x00004000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.fastRatchetKeySenderKeyDistributionMessage) +} +inline ::proto::SenderKeyDistributionMessage* Message::release_fastratchetkeysenderkeydistributionmessage() { + _has_bits_[0] &= ~0x00004000u; + ::proto::SenderKeyDistributionMessage* temp = fastratchetkeysenderkeydistributionmessage_; + fastratchetkeysenderkeydistributionmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::SenderKeyDistributionMessage* Message::unsafe_arena_release_fastratchetkeysenderkeydistributionmessage() { + // @@protoc_insertion_point(field_release:proto.Message.fastRatchetKeySenderKeyDistributionMessage) + _has_bits_[0] &= ~0x00004000u; + ::proto::SenderKeyDistributionMessage* temp = fastratchetkeysenderkeydistributionmessage_; + fastratchetkeysenderkeydistributionmessage_ = nullptr; + return temp; +} +inline ::proto::SenderKeyDistributionMessage* Message::_internal_mutable_fastratchetkeysenderkeydistributionmessage() { + _has_bits_[0] |= 0x00004000u; + if (fastratchetkeysenderkeydistributionmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::SenderKeyDistributionMessage>(GetArena()); + fastratchetkeysenderkeydistributionmessage_ = p; + } + return fastratchetkeysenderkeydistributionmessage_; +} +inline ::proto::SenderKeyDistributionMessage* Message::mutable_fastratchetkeysenderkeydistributionmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.fastRatchetKeySenderKeyDistributionMessage) + return _internal_mutable_fastratchetkeysenderkeydistributionmessage(); +} +inline void Message::set_allocated_fastratchetkeysenderkeydistributionmessage(::proto::SenderKeyDistributionMessage* fastratchetkeysenderkeydistributionmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete fastratchetkeysenderkeydistributionmessage_; + } + if (fastratchetkeysenderkeydistributionmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(fastratchetkeysenderkeydistributionmessage); + if (message_arena != submessage_arena) { + fastratchetkeysenderkeydistributionmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, fastratchetkeysenderkeydistributionmessage, submessage_arena); + } + _has_bits_[0] |= 0x00004000u; + } else { + _has_bits_[0] &= ~0x00004000u; + } + fastratchetkeysenderkeydistributionmessage_ = fastratchetkeysenderkeydistributionmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.fastRatchetKeySenderKeyDistributionMessage) +} + +// optional .proto.SendPaymentMessage sendPaymentMessage = 16; +inline bool Message::_internal_has_sendpaymentmessage() const { + bool value = (_has_bits_[0] & 0x00008000u) != 0; + PROTOBUF_ASSUME(!value || sendpaymentmessage_ != nullptr); + return value; +} +inline bool Message::has_sendpaymentmessage() const { + return _internal_has_sendpaymentmessage(); +} +inline void Message::clear_sendpaymentmessage() { + if (sendpaymentmessage_ != nullptr) sendpaymentmessage_->Clear(); + _has_bits_[0] &= ~0x00008000u; +} +inline const ::proto::SendPaymentMessage& Message::_internal_sendpaymentmessage() const { + const ::proto::SendPaymentMessage* p = sendpaymentmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::SendPaymentMessage&>( + ::proto::_SendPaymentMessage_default_instance_); +} +inline const ::proto::SendPaymentMessage& Message::sendpaymentmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.sendPaymentMessage) + return _internal_sendpaymentmessage(); +} +inline void Message::unsafe_arena_set_allocated_sendpaymentmessage( + ::proto::SendPaymentMessage* sendpaymentmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sendpaymentmessage_); + } + sendpaymentmessage_ = sendpaymentmessage; + if (sendpaymentmessage) { + _has_bits_[0] |= 0x00008000u; + } else { + _has_bits_[0] &= ~0x00008000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.sendPaymentMessage) +} +inline ::proto::SendPaymentMessage* Message::release_sendpaymentmessage() { + _has_bits_[0] &= ~0x00008000u; + ::proto::SendPaymentMessage* temp = sendpaymentmessage_; + sendpaymentmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::SendPaymentMessage* Message::unsafe_arena_release_sendpaymentmessage() { + // @@protoc_insertion_point(field_release:proto.Message.sendPaymentMessage) + _has_bits_[0] &= ~0x00008000u; + ::proto::SendPaymentMessage* temp = sendpaymentmessage_; + sendpaymentmessage_ = nullptr; + return temp; +} +inline ::proto::SendPaymentMessage* Message::_internal_mutable_sendpaymentmessage() { + _has_bits_[0] |= 0x00008000u; + if (sendpaymentmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::SendPaymentMessage>(GetArena()); + sendpaymentmessage_ = p; + } + return sendpaymentmessage_; +} +inline ::proto::SendPaymentMessage* Message::mutable_sendpaymentmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.sendPaymentMessage) + return _internal_mutable_sendpaymentmessage(); +} +inline void Message::set_allocated_sendpaymentmessage(::proto::SendPaymentMessage* sendpaymentmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete sendpaymentmessage_; + } + if (sendpaymentmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(sendpaymentmessage); + if (message_arena != submessage_arena) { + sendpaymentmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, sendpaymentmessage, submessage_arena); + } + _has_bits_[0] |= 0x00008000u; + } else { + _has_bits_[0] &= ~0x00008000u; + } + sendpaymentmessage_ = sendpaymentmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.sendPaymentMessage) +} + +// optional .proto.LiveLocationMessage liveLocationMessage = 18; +inline bool Message::_internal_has_livelocationmessage() const { + bool value = (_has_bits_[0] & 0x00010000u) != 0; + PROTOBUF_ASSUME(!value || livelocationmessage_ != nullptr); + return value; +} +inline bool Message::has_livelocationmessage() const { + return _internal_has_livelocationmessage(); +} +inline void Message::clear_livelocationmessage() { + if (livelocationmessage_ != nullptr) livelocationmessage_->Clear(); + _has_bits_[0] &= ~0x00010000u; +} +inline const ::proto::LiveLocationMessage& Message::_internal_livelocationmessage() const { + const ::proto::LiveLocationMessage* p = livelocationmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::LiveLocationMessage&>( + ::proto::_LiveLocationMessage_default_instance_); +} +inline const ::proto::LiveLocationMessage& Message::livelocationmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.liveLocationMessage) + return _internal_livelocationmessage(); +} +inline void Message::unsafe_arena_set_allocated_livelocationmessage( + ::proto::LiveLocationMessage* livelocationmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(livelocationmessage_); + } + livelocationmessage_ = livelocationmessage; + if (livelocationmessage) { + _has_bits_[0] |= 0x00010000u; + } else { + _has_bits_[0] &= ~0x00010000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.liveLocationMessage) +} +inline ::proto::LiveLocationMessage* Message::release_livelocationmessage() { + _has_bits_[0] &= ~0x00010000u; + ::proto::LiveLocationMessage* temp = livelocationmessage_; + livelocationmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::LiveLocationMessage* Message::unsafe_arena_release_livelocationmessage() { + // @@protoc_insertion_point(field_release:proto.Message.liveLocationMessage) + _has_bits_[0] &= ~0x00010000u; + ::proto::LiveLocationMessage* temp = livelocationmessage_; + livelocationmessage_ = nullptr; + return temp; +} +inline ::proto::LiveLocationMessage* Message::_internal_mutable_livelocationmessage() { + _has_bits_[0] |= 0x00010000u; + if (livelocationmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::LiveLocationMessage>(GetArena()); + livelocationmessage_ = p; + } + return livelocationmessage_; +} +inline ::proto::LiveLocationMessage* Message::mutable_livelocationmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.liveLocationMessage) + return _internal_mutable_livelocationmessage(); +} +inline void Message::set_allocated_livelocationmessage(::proto::LiveLocationMessage* livelocationmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete livelocationmessage_; + } + if (livelocationmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(livelocationmessage); + if (message_arena != submessage_arena) { + livelocationmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, livelocationmessage, submessage_arena); + } + _has_bits_[0] |= 0x00010000u; + } else { + _has_bits_[0] &= ~0x00010000u; + } + livelocationmessage_ = livelocationmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.liveLocationMessage) +} + +// optional .proto.RequestPaymentMessage requestPaymentMessage = 22; +inline bool Message::_internal_has_requestpaymentmessage() const { + bool value = (_has_bits_[0] & 0x00020000u) != 0; + PROTOBUF_ASSUME(!value || requestpaymentmessage_ != nullptr); + return value; +} +inline bool Message::has_requestpaymentmessage() const { + return _internal_has_requestpaymentmessage(); +} +inline void Message::clear_requestpaymentmessage() { + if (requestpaymentmessage_ != nullptr) requestpaymentmessage_->Clear(); + _has_bits_[0] &= ~0x00020000u; +} +inline const ::proto::RequestPaymentMessage& Message::_internal_requestpaymentmessage() const { + const ::proto::RequestPaymentMessage* p = requestpaymentmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::RequestPaymentMessage&>( + ::proto::_RequestPaymentMessage_default_instance_); +} +inline const ::proto::RequestPaymentMessage& Message::requestpaymentmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.requestPaymentMessage) + return _internal_requestpaymentmessage(); +} +inline void Message::unsafe_arena_set_allocated_requestpaymentmessage( + ::proto::RequestPaymentMessage* requestpaymentmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(requestpaymentmessage_); + } + requestpaymentmessage_ = requestpaymentmessage; + if (requestpaymentmessage) { + _has_bits_[0] |= 0x00020000u; + } else { + _has_bits_[0] &= ~0x00020000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.requestPaymentMessage) +} +inline ::proto::RequestPaymentMessage* Message::release_requestpaymentmessage() { + _has_bits_[0] &= ~0x00020000u; + ::proto::RequestPaymentMessage* temp = requestpaymentmessage_; + requestpaymentmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::RequestPaymentMessage* Message::unsafe_arena_release_requestpaymentmessage() { + // @@protoc_insertion_point(field_release:proto.Message.requestPaymentMessage) + _has_bits_[0] &= ~0x00020000u; + ::proto::RequestPaymentMessage* temp = requestpaymentmessage_; + requestpaymentmessage_ = nullptr; + return temp; +} +inline ::proto::RequestPaymentMessage* Message::_internal_mutable_requestpaymentmessage() { + _has_bits_[0] |= 0x00020000u; + if (requestpaymentmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::RequestPaymentMessage>(GetArena()); + requestpaymentmessage_ = p; + } + return requestpaymentmessage_; +} +inline ::proto::RequestPaymentMessage* Message::mutable_requestpaymentmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.requestPaymentMessage) + return _internal_mutable_requestpaymentmessage(); +} +inline void Message::set_allocated_requestpaymentmessage(::proto::RequestPaymentMessage* requestpaymentmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete requestpaymentmessage_; + } + if (requestpaymentmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(requestpaymentmessage); + if (message_arena != submessage_arena) { + requestpaymentmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, requestpaymentmessage, submessage_arena); + } + _has_bits_[0] |= 0x00020000u; + } else { + _has_bits_[0] &= ~0x00020000u; + } + requestpaymentmessage_ = requestpaymentmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.requestPaymentMessage) +} + +// optional .proto.DeclinePaymentRequestMessage declinePaymentRequestMessage = 23; +inline bool Message::_internal_has_declinepaymentrequestmessage() const { + bool value = (_has_bits_[0] & 0x00040000u) != 0; + PROTOBUF_ASSUME(!value || declinepaymentrequestmessage_ != nullptr); + return value; +} +inline bool Message::has_declinepaymentrequestmessage() const { + return _internal_has_declinepaymentrequestmessage(); +} +inline void Message::clear_declinepaymentrequestmessage() { + if (declinepaymentrequestmessage_ != nullptr) declinepaymentrequestmessage_->Clear(); + _has_bits_[0] &= ~0x00040000u; +} +inline const ::proto::DeclinePaymentRequestMessage& Message::_internal_declinepaymentrequestmessage() const { + const ::proto::DeclinePaymentRequestMessage* p = declinepaymentrequestmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::DeclinePaymentRequestMessage&>( + ::proto::_DeclinePaymentRequestMessage_default_instance_); +} +inline const ::proto::DeclinePaymentRequestMessage& Message::declinepaymentrequestmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.declinePaymentRequestMessage) + return _internal_declinepaymentrequestmessage(); +} +inline void Message::unsafe_arena_set_allocated_declinepaymentrequestmessage( + ::proto::DeclinePaymentRequestMessage* declinepaymentrequestmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(declinepaymentrequestmessage_); + } + declinepaymentrequestmessage_ = declinepaymentrequestmessage; + if (declinepaymentrequestmessage) { + _has_bits_[0] |= 0x00040000u; + } else { + _has_bits_[0] &= ~0x00040000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.declinePaymentRequestMessage) +} +inline ::proto::DeclinePaymentRequestMessage* Message::release_declinepaymentrequestmessage() { + _has_bits_[0] &= ~0x00040000u; + ::proto::DeclinePaymentRequestMessage* temp = declinepaymentrequestmessage_; + declinepaymentrequestmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::DeclinePaymentRequestMessage* Message::unsafe_arena_release_declinepaymentrequestmessage() { + // @@protoc_insertion_point(field_release:proto.Message.declinePaymentRequestMessage) + _has_bits_[0] &= ~0x00040000u; + ::proto::DeclinePaymentRequestMessage* temp = declinepaymentrequestmessage_; + declinepaymentrequestmessage_ = nullptr; + return temp; +} +inline ::proto::DeclinePaymentRequestMessage* Message::_internal_mutable_declinepaymentrequestmessage() { + _has_bits_[0] |= 0x00040000u; + if (declinepaymentrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::DeclinePaymentRequestMessage>(GetArena()); + declinepaymentrequestmessage_ = p; + } + return declinepaymentrequestmessage_; +} +inline ::proto::DeclinePaymentRequestMessage* Message::mutable_declinepaymentrequestmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.declinePaymentRequestMessage) + return _internal_mutable_declinepaymentrequestmessage(); +} +inline void Message::set_allocated_declinepaymentrequestmessage(::proto::DeclinePaymentRequestMessage* declinepaymentrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete declinepaymentrequestmessage_; + } + if (declinepaymentrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(declinepaymentrequestmessage); + if (message_arena != submessage_arena) { + declinepaymentrequestmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, declinepaymentrequestmessage, submessage_arena); + } + _has_bits_[0] |= 0x00040000u; + } else { + _has_bits_[0] &= ~0x00040000u; + } + declinepaymentrequestmessage_ = declinepaymentrequestmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.declinePaymentRequestMessage) +} + +// optional .proto.CancelPaymentRequestMessage cancelPaymentRequestMessage = 24; +inline bool Message::_internal_has_cancelpaymentrequestmessage() const { + bool value = (_has_bits_[0] & 0x00080000u) != 0; + PROTOBUF_ASSUME(!value || cancelpaymentrequestmessage_ != nullptr); + return value; +} +inline bool Message::has_cancelpaymentrequestmessage() const { + return _internal_has_cancelpaymentrequestmessage(); +} +inline void Message::clear_cancelpaymentrequestmessage() { + if (cancelpaymentrequestmessage_ != nullptr) cancelpaymentrequestmessage_->Clear(); + _has_bits_[0] &= ~0x00080000u; +} +inline const ::proto::CancelPaymentRequestMessage& Message::_internal_cancelpaymentrequestmessage() const { + const ::proto::CancelPaymentRequestMessage* p = cancelpaymentrequestmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::CancelPaymentRequestMessage&>( + ::proto::_CancelPaymentRequestMessage_default_instance_); +} +inline const ::proto::CancelPaymentRequestMessage& Message::cancelpaymentrequestmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.cancelPaymentRequestMessage) + return _internal_cancelpaymentrequestmessage(); +} +inline void Message::unsafe_arena_set_allocated_cancelpaymentrequestmessage( + ::proto::CancelPaymentRequestMessage* cancelpaymentrequestmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cancelpaymentrequestmessage_); + } + cancelpaymentrequestmessage_ = cancelpaymentrequestmessage; + if (cancelpaymentrequestmessage) { + _has_bits_[0] |= 0x00080000u; + } else { + _has_bits_[0] &= ~0x00080000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.cancelPaymentRequestMessage) +} +inline ::proto::CancelPaymentRequestMessage* Message::release_cancelpaymentrequestmessage() { + _has_bits_[0] &= ~0x00080000u; + ::proto::CancelPaymentRequestMessage* temp = cancelpaymentrequestmessage_; + cancelpaymentrequestmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::CancelPaymentRequestMessage* Message::unsafe_arena_release_cancelpaymentrequestmessage() { + // @@protoc_insertion_point(field_release:proto.Message.cancelPaymentRequestMessage) + _has_bits_[0] &= ~0x00080000u; + ::proto::CancelPaymentRequestMessage* temp = cancelpaymentrequestmessage_; + cancelpaymentrequestmessage_ = nullptr; + return temp; +} +inline ::proto::CancelPaymentRequestMessage* Message::_internal_mutable_cancelpaymentrequestmessage() { + _has_bits_[0] |= 0x00080000u; + if (cancelpaymentrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::CancelPaymentRequestMessage>(GetArena()); + cancelpaymentrequestmessage_ = p; + } + return cancelpaymentrequestmessage_; +} +inline ::proto::CancelPaymentRequestMessage* Message::mutable_cancelpaymentrequestmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.cancelPaymentRequestMessage) + return _internal_mutable_cancelpaymentrequestmessage(); +} +inline void Message::set_allocated_cancelpaymentrequestmessage(::proto::CancelPaymentRequestMessage* cancelpaymentrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete cancelpaymentrequestmessage_; + } + if (cancelpaymentrequestmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(cancelpaymentrequestmessage); + if (message_arena != submessage_arena) { + cancelpaymentrequestmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, cancelpaymentrequestmessage, submessage_arena); + } + _has_bits_[0] |= 0x00080000u; + } else { + _has_bits_[0] &= ~0x00080000u; + } + cancelpaymentrequestmessage_ = cancelpaymentrequestmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.cancelPaymentRequestMessage) +} + +// optional .proto.TemplateMessage templateMessage = 25; +inline bool Message::_internal_has_templatemessage() const { + bool value = (_has_bits_[0] & 0x00100000u) != 0; + PROTOBUF_ASSUME(!value || templatemessage_ != nullptr); + return value; +} +inline bool Message::has_templatemessage() const { + return _internal_has_templatemessage(); +} +inline void Message::clear_templatemessage() { + if (templatemessage_ != nullptr) templatemessage_->Clear(); + _has_bits_[0] &= ~0x00100000u; +} +inline const ::proto::TemplateMessage& Message::_internal_templatemessage() const { + const ::proto::TemplateMessage* p = templatemessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::TemplateMessage&>( + ::proto::_TemplateMessage_default_instance_); +} +inline const ::proto::TemplateMessage& Message::templatemessage() const { + // @@protoc_insertion_point(field_get:proto.Message.templateMessage) + return _internal_templatemessage(); +} +inline void Message::unsafe_arena_set_allocated_templatemessage( + ::proto::TemplateMessage* templatemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(templatemessage_); + } + templatemessage_ = templatemessage; + if (templatemessage) { + _has_bits_[0] |= 0x00100000u; + } else { + _has_bits_[0] &= ~0x00100000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.templateMessage) +} +inline ::proto::TemplateMessage* Message::release_templatemessage() { + _has_bits_[0] &= ~0x00100000u; + ::proto::TemplateMessage* temp = templatemessage_; + templatemessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::TemplateMessage* Message::unsafe_arena_release_templatemessage() { + // @@protoc_insertion_point(field_release:proto.Message.templateMessage) + _has_bits_[0] &= ~0x00100000u; + ::proto::TemplateMessage* temp = templatemessage_; + templatemessage_ = nullptr; + return temp; +} +inline ::proto::TemplateMessage* Message::_internal_mutable_templatemessage() { + _has_bits_[0] |= 0x00100000u; + if (templatemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::TemplateMessage>(GetArena()); + templatemessage_ = p; + } + return templatemessage_; +} +inline ::proto::TemplateMessage* Message::mutable_templatemessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.templateMessage) + return _internal_mutable_templatemessage(); +} +inline void Message::set_allocated_templatemessage(::proto::TemplateMessage* templatemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete templatemessage_; + } + if (templatemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(templatemessage); + if (message_arena != submessage_arena) { + templatemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, templatemessage, submessage_arena); + } + _has_bits_[0] |= 0x00100000u; + } else { + _has_bits_[0] &= ~0x00100000u; + } + templatemessage_ = templatemessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.templateMessage) +} + +// optional .proto.StickerMessage stickerMessage = 26; +inline bool Message::_internal_has_stickermessage() const { + bool value = (_has_bits_[0] & 0x00200000u) != 0; + PROTOBUF_ASSUME(!value || stickermessage_ != nullptr); + return value; +} +inline bool Message::has_stickermessage() const { + return _internal_has_stickermessage(); +} +inline void Message::clear_stickermessage() { + if (stickermessage_ != nullptr) stickermessage_->Clear(); + _has_bits_[0] &= ~0x00200000u; +} +inline const ::proto::StickerMessage& Message::_internal_stickermessage() const { + const ::proto::StickerMessage* p = stickermessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::StickerMessage&>( + ::proto::_StickerMessage_default_instance_); +} +inline const ::proto::StickerMessage& Message::stickermessage() const { + // @@protoc_insertion_point(field_get:proto.Message.stickerMessage) + return _internal_stickermessage(); +} +inline void Message::unsafe_arena_set_allocated_stickermessage( + ::proto::StickerMessage* stickermessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(stickermessage_); + } + stickermessage_ = stickermessage; + if (stickermessage) { + _has_bits_[0] |= 0x00200000u; + } else { + _has_bits_[0] &= ~0x00200000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.stickerMessage) +} +inline ::proto::StickerMessage* Message::release_stickermessage() { + _has_bits_[0] &= ~0x00200000u; + ::proto::StickerMessage* temp = stickermessage_; + stickermessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::StickerMessage* Message::unsafe_arena_release_stickermessage() { + // @@protoc_insertion_point(field_release:proto.Message.stickerMessage) + _has_bits_[0] &= ~0x00200000u; + ::proto::StickerMessage* temp = stickermessage_; + stickermessage_ = nullptr; + return temp; +} +inline ::proto::StickerMessage* Message::_internal_mutable_stickermessage() { + _has_bits_[0] |= 0x00200000u; + if (stickermessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::StickerMessage>(GetArena()); + stickermessage_ = p; + } + return stickermessage_; +} +inline ::proto::StickerMessage* Message::mutable_stickermessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.stickerMessage) + return _internal_mutable_stickermessage(); +} +inline void Message::set_allocated_stickermessage(::proto::StickerMessage* stickermessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete stickermessage_; + } + if (stickermessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(stickermessage); + if (message_arena != submessage_arena) { + stickermessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, stickermessage, submessage_arena); + } + _has_bits_[0] |= 0x00200000u; + } else { + _has_bits_[0] &= ~0x00200000u; + } + stickermessage_ = stickermessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.stickerMessage) +} + +// optional .proto.GroupInviteMessage groupInviteMessage = 28; +inline bool Message::_internal_has_groupinvitemessage() const { + bool value = (_has_bits_[0] & 0x00400000u) != 0; + PROTOBUF_ASSUME(!value || groupinvitemessage_ != nullptr); + return value; +} +inline bool Message::has_groupinvitemessage() const { + return _internal_has_groupinvitemessage(); +} +inline void Message::clear_groupinvitemessage() { + if (groupinvitemessage_ != nullptr) groupinvitemessage_->Clear(); + _has_bits_[0] &= ~0x00400000u; +} +inline const ::proto::GroupInviteMessage& Message::_internal_groupinvitemessage() const { + const ::proto::GroupInviteMessage* p = groupinvitemessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::GroupInviteMessage&>( + ::proto::_GroupInviteMessage_default_instance_); +} +inline const ::proto::GroupInviteMessage& Message::groupinvitemessage() const { + // @@protoc_insertion_point(field_get:proto.Message.groupInviteMessage) + return _internal_groupinvitemessage(); +} +inline void Message::unsafe_arena_set_allocated_groupinvitemessage( + ::proto::GroupInviteMessage* groupinvitemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(groupinvitemessage_); + } + groupinvitemessage_ = groupinvitemessage; + if (groupinvitemessage) { + _has_bits_[0] |= 0x00400000u; + } else { + _has_bits_[0] &= ~0x00400000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.groupInviteMessage) +} +inline ::proto::GroupInviteMessage* Message::release_groupinvitemessage() { + _has_bits_[0] &= ~0x00400000u; + ::proto::GroupInviteMessage* temp = groupinvitemessage_; + groupinvitemessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::GroupInviteMessage* Message::unsafe_arena_release_groupinvitemessage() { + // @@protoc_insertion_point(field_release:proto.Message.groupInviteMessage) + _has_bits_[0] &= ~0x00400000u; + ::proto::GroupInviteMessage* temp = groupinvitemessage_; + groupinvitemessage_ = nullptr; + return temp; +} +inline ::proto::GroupInviteMessage* Message::_internal_mutable_groupinvitemessage() { + _has_bits_[0] |= 0x00400000u; + if (groupinvitemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::GroupInviteMessage>(GetArena()); + groupinvitemessage_ = p; + } + return groupinvitemessage_; +} +inline ::proto::GroupInviteMessage* Message::mutable_groupinvitemessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.groupInviteMessage) + return _internal_mutable_groupinvitemessage(); +} +inline void Message::set_allocated_groupinvitemessage(::proto::GroupInviteMessage* groupinvitemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete groupinvitemessage_; + } + if (groupinvitemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(groupinvitemessage); + if (message_arena != submessage_arena) { + groupinvitemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, groupinvitemessage, submessage_arena); + } + _has_bits_[0] |= 0x00400000u; + } else { + _has_bits_[0] &= ~0x00400000u; + } + groupinvitemessage_ = groupinvitemessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.groupInviteMessage) +} + +// optional .proto.TemplateButtonReplyMessage templateButtonReplyMessage = 29; +inline bool Message::_internal_has_templatebuttonreplymessage() const { + bool value = (_has_bits_[0] & 0x00800000u) != 0; + PROTOBUF_ASSUME(!value || templatebuttonreplymessage_ != nullptr); + return value; +} +inline bool Message::has_templatebuttonreplymessage() const { + return _internal_has_templatebuttonreplymessage(); +} +inline void Message::clear_templatebuttonreplymessage() { + if (templatebuttonreplymessage_ != nullptr) templatebuttonreplymessage_->Clear(); + _has_bits_[0] &= ~0x00800000u; +} +inline const ::proto::TemplateButtonReplyMessage& Message::_internal_templatebuttonreplymessage() const { + const ::proto::TemplateButtonReplyMessage* p = templatebuttonreplymessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::TemplateButtonReplyMessage&>( + ::proto::_TemplateButtonReplyMessage_default_instance_); +} +inline const ::proto::TemplateButtonReplyMessage& Message::templatebuttonreplymessage() const { + // @@protoc_insertion_point(field_get:proto.Message.templateButtonReplyMessage) + return _internal_templatebuttonreplymessage(); +} +inline void Message::unsafe_arena_set_allocated_templatebuttonreplymessage( + ::proto::TemplateButtonReplyMessage* templatebuttonreplymessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(templatebuttonreplymessage_); + } + templatebuttonreplymessage_ = templatebuttonreplymessage; + if (templatebuttonreplymessage) { + _has_bits_[0] |= 0x00800000u; + } else { + _has_bits_[0] &= ~0x00800000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.templateButtonReplyMessage) +} +inline ::proto::TemplateButtonReplyMessage* Message::release_templatebuttonreplymessage() { + _has_bits_[0] &= ~0x00800000u; + ::proto::TemplateButtonReplyMessage* temp = templatebuttonreplymessage_; + templatebuttonreplymessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::TemplateButtonReplyMessage* Message::unsafe_arena_release_templatebuttonreplymessage() { + // @@protoc_insertion_point(field_release:proto.Message.templateButtonReplyMessage) + _has_bits_[0] &= ~0x00800000u; + ::proto::TemplateButtonReplyMessage* temp = templatebuttonreplymessage_; + templatebuttonreplymessage_ = nullptr; + return temp; +} +inline ::proto::TemplateButtonReplyMessage* Message::_internal_mutable_templatebuttonreplymessage() { + _has_bits_[0] |= 0x00800000u; + if (templatebuttonreplymessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::TemplateButtonReplyMessage>(GetArena()); + templatebuttonreplymessage_ = p; + } + return templatebuttonreplymessage_; +} +inline ::proto::TemplateButtonReplyMessage* Message::mutable_templatebuttonreplymessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.templateButtonReplyMessage) + return _internal_mutable_templatebuttonreplymessage(); +} +inline void Message::set_allocated_templatebuttonreplymessage(::proto::TemplateButtonReplyMessage* templatebuttonreplymessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete templatebuttonreplymessage_; + } + if (templatebuttonreplymessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(templatebuttonreplymessage); + if (message_arena != submessage_arena) { + templatebuttonreplymessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, templatebuttonreplymessage, submessage_arena); + } + _has_bits_[0] |= 0x00800000u; + } else { + _has_bits_[0] &= ~0x00800000u; + } + templatebuttonreplymessage_ = templatebuttonreplymessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.templateButtonReplyMessage) +} + +// optional .proto.ProductMessage productMessage = 30; +inline bool Message::_internal_has_productmessage() const { + bool value = (_has_bits_[0] & 0x01000000u) != 0; + PROTOBUF_ASSUME(!value || productmessage_ != nullptr); + return value; +} +inline bool Message::has_productmessage() const { + return _internal_has_productmessage(); +} +inline void Message::clear_productmessage() { + if (productmessage_ != nullptr) productmessage_->Clear(); + _has_bits_[0] &= ~0x01000000u; +} +inline const ::proto::ProductMessage& Message::_internal_productmessage() const { + const ::proto::ProductMessage* p = productmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ProductMessage&>( + ::proto::_ProductMessage_default_instance_); +} +inline const ::proto::ProductMessage& Message::productmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.productMessage) + return _internal_productmessage(); +} +inline void Message::unsafe_arena_set_allocated_productmessage( + ::proto::ProductMessage* productmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(productmessage_); + } + productmessage_ = productmessage; + if (productmessage) { + _has_bits_[0] |= 0x01000000u; + } else { + _has_bits_[0] &= ~0x01000000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.productMessage) +} +inline ::proto::ProductMessage* Message::release_productmessage() { + _has_bits_[0] &= ~0x01000000u; + ::proto::ProductMessage* temp = productmessage_; + productmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ProductMessage* Message::unsafe_arena_release_productmessage() { + // @@protoc_insertion_point(field_release:proto.Message.productMessage) + _has_bits_[0] &= ~0x01000000u; + ::proto::ProductMessage* temp = productmessage_; + productmessage_ = nullptr; + return temp; +} +inline ::proto::ProductMessage* Message::_internal_mutable_productmessage() { + _has_bits_[0] |= 0x01000000u; + if (productmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ProductMessage>(GetArena()); + productmessage_ = p; + } + return productmessage_; +} +inline ::proto::ProductMessage* Message::mutable_productmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.productMessage) + return _internal_mutable_productmessage(); +} +inline void Message::set_allocated_productmessage(::proto::ProductMessage* productmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete productmessage_; + } + if (productmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(productmessage); + if (message_arena != submessage_arena) { + productmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, productmessage, submessage_arena); + } + _has_bits_[0] |= 0x01000000u; + } else { + _has_bits_[0] &= ~0x01000000u; + } + productmessage_ = productmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.productMessage) +} + +// optional .proto.DeviceSentMessage deviceSentMessage = 31; +inline bool Message::_internal_has_devicesentmessage() const { + bool value = (_has_bits_[0] & 0x02000000u) != 0; + PROTOBUF_ASSUME(!value || devicesentmessage_ != nullptr); + return value; +} +inline bool Message::has_devicesentmessage() const { + return _internal_has_devicesentmessage(); +} +inline void Message::clear_devicesentmessage() { + if (devicesentmessage_ != nullptr) devicesentmessage_->Clear(); + _has_bits_[0] &= ~0x02000000u; +} +inline const ::proto::DeviceSentMessage& Message::_internal_devicesentmessage() const { + const ::proto::DeviceSentMessage* p = devicesentmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::DeviceSentMessage&>( + ::proto::_DeviceSentMessage_default_instance_); +} +inline const ::proto::DeviceSentMessage& Message::devicesentmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.deviceSentMessage) + return _internal_devicesentmessage(); +} +inline void Message::unsafe_arena_set_allocated_devicesentmessage( + ::proto::DeviceSentMessage* devicesentmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(devicesentmessage_); + } + devicesentmessage_ = devicesentmessage; + if (devicesentmessage) { + _has_bits_[0] |= 0x02000000u; + } else { + _has_bits_[0] &= ~0x02000000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.deviceSentMessage) +} +inline ::proto::DeviceSentMessage* Message::release_devicesentmessage() { + _has_bits_[0] &= ~0x02000000u; + ::proto::DeviceSentMessage* temp = devicesentmessage_; + devicesentmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::DeviceSentMessage* Message::unsafe_arena_release_devicesentmessage() { + // @@protoc_insertion_point(field_release:proto.Message.deviceSentMessage) + _has_bits_[0] &= ~0x02000000u; + ::proto::DeviceSentMessage* temp = devicesentmessage_; + devicesentmessage_ = nullptr; + return temp; +} +inline ::proto::DeviceSentMessage* Message::_internal_mutable_devicesentmessage() { + _has_bits_[0] |= 0x02000000u; + if (devicesentmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::DeviceSentMessage>(GetArena()); + devicesentmessage_ = p; + } + return devicesentmessage_; +} +inline ::proto::DeviceSentMessage* Message::mutable_devicesentmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.deviceSentMessage) + return _internal_mutable_devicesentmessage(); +} +inline void Message::set_allocated_devicesentmessage(::proto::DeviceSentMessage* devicesentmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete devicesentmessage_; + } + if (devicesentmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(devicesentmessage); + if (message_arena != submessage_arena) { + devicesentmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, devicesentmessage, submessage_arena); + } + _has_bits_[0] |= 0x02000000u; + } else { + _has_bits_[0] &= ~0x02000000u; + } + devicesentmessage_ = devicesentmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.deviceSentMessage) +} + +// optional .proto.MessageContextInfo messageContextInfo = 35; +inline bool Message::_internal_has_messagecontextinfo() const { + bool value = (_has_bits_[0] & 0x04000000u) != 0; + PROTOBUF_ASSUME(!value || messagecontextinfo_ != nullptr); + return value; +} +inline bool Message::has_messagecontextinfo() const { + return _internal_has_messagecontextinfo(); +} +inline void Message::clear_messagecontextinfo() { + if (messagecontextinfo_ != nullptr) messagecontextinfo_->Clear(); + _has_bits_[0] &= ~0x04000000u; +} +inline const ::proto::MessageContextInfo& Message::_internal_messagecontextinfo() const { + const ::proto::MessageContextInfo* p = messagecontextinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::MessageContextInfo&>( + ::proto::_MessageContextInfo_default_instance_); +} +inline const ::proto::MessageContextInfo& Message::messagecontextinfo() const { + // @@protoc_insertion_point(field_get:proto.Message.messageContextInfo) + return _internal_messagecontextinfo(); +} +inline void Message::unsafe_arena_set_allocated_messagecontextinfo( + ::proto::MessageContextInfo* messagecontextinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(messagecontextinfo_); + } + messagecontextinfo_ = messagecontextinfo; + if (messagecontextinfo) { + _has_bits_[0] |= 0x04000000u; + } else { + _has_bits_[0] &= ~0x04000000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.messageContextInfo) +} +inline ::proto::MessageContextInfo* Message::release_messagecontextinfo() { + _has_bits_[0] &= ~0x04000000u; + ::proto::MessageContextInfo* temp = messagecontextinfo_; + messagecontextinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::MessageContextInfo* Message::unsafe_arena_release_messagecontextinfo() { + // @@protoc_insertion_point(field_release:proto.Message.messageContextInfo) + _has_bits_[0] &= ~0x04000000u; + ::proto::MessageContextInfo* temp = messagecontextinfo_; + messagecontextinfo_ = nullptr; + return temp; +} +inline ::proto::MessageContextInfo* Message::_internal_mutable_messagecontextinfo() { + _has_bits_[0] |= 0x04000000u; + if (messagecontextinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::MessageContextInfo>(GetArena()); + messagecontextinfo_ = p; + } + return messagecontextinfo_; +} +inline ::proto::MessageContextInfo* Message::mutable_messagecontextinfo() { + // @@protoc_insertion_point(field_mutable:proto.Message.messageContextInfo) + return _internal_mutable_messagecontextinfo(); +} +inline void Message::set_allocated_messagecontextinfo(::proto::MessageContextInfo* messagecontextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete messagecontextinfo_; + } + if (messagecontextinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(messagecontextinfo); + if (message_arena != submessage_arena) { + messagecontextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, messagecontextinfo, submessage_arena); + } + _has_bits_[0] |= 0x04000000u; + } else { + _has_bits_[0] &= ~0x04000000u; + } + messagecontextinfo_ = messagecontextinfo; + // @@protoc_insertion_point(field_set_allocated:proto.Message.messageContextInfo) +} + +// optional .proto.ListMessage listMessage = 36; +inline bool Message::_internal_has_listmessage() const { + bool value = (_has_bits_[0] & 0x08000000u) != 0; + PROTOBUF_ASSUME(!value || listmessage_ != nullptr); + return value; +} +inline bool Message::has_listmessage() const { + return _internal_has_listmessage(); +} +inline void Message::clear_listmessage() { + if (listmessage_ != nullptr) listmessage_->Clear(); + _has_bits_[0] &= ~0x08000000u; +} +inline const ::proto::ListMessage& Message::_internal_listmessage() const { + const ::proto::ListMessage* p = listmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ListMessage&>( + ::proto::_ListMessage_default_instance_); +} +inline const ::proto::ListMessage& Message::listmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.listMessage) + return _internal_listmessage(); +} +inline void Message::unsafe_arena_set_allocated_listmessage( + ::proto::ListMessage* listmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(listmessage_); + } + listmessage_ = listmessage; + if (listmessage) { + _has_bits_[0] |= 0x08000000u; + } else { + _has_bits_[0] &= ~0x08000000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.listMessage) +} +inline ::proto::ListMessage* Message::release_listmessage() { + _has_bits_[0] &= ~0x08000000u; + ::proto::ListMessage* temp = listmessage_; + listmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ListMessage* Message::unsafe_arena_release_listmessage() { + // @@protoc_insertion_point(field_release:proto.Message.listMessage) + _has_bits_[0] &= ~0x08000000u; + ::proto::ListMessage* temp = listmessage_; + listmessage_ = nullptr; + return temp; +} +inline ::proto::ListMessage* Message::_internal_mutable_listmessage() { + _has_bits_[0] |= 0x08000000u; + if (listmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ListMessage>(GetArena()); + listmessage_ = p; + } + return listmessage_; +} +inline ::proto::ListMessage* Message::mutable_listmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.listMessage) + return _internal_mutable_listmessage(); +} +inline void Message::set_allocated_listmessage(::proto::ListMessage* listmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete listmessage_; + } + if (listmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(listmessage); + if (message_arena != submessage_arena) { + listmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, listmessage, submessage_arena); + } + _has_bits_[0] |= 0x08000000u; + } else { + _has_bits_[0] &= ~0x08000000u; + } + listmessage_ = listmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.listMessage) +} + +// optional .proto.FutureProofMessage viewOnceMessage = 37; +inline bool Message::_internal_has_viewoncemessage() const { + bool value = (_has_bits_[0] & 0x10000000u) != 0; + PROTOBUF_ASSUME(!value || viewoncemessage_ != nullptr); + return value; +} +inline bool Message::has_viewoncemessage() const { + return _internal_has_viewoncemessage(); +} +inline void Message::clear_viewoncemessage() { + if (viewoncemessage_ != nullptr) viewoncemessage_->Clear(); + _has_bits_[0] &= ~0x10000000u; +} +inline const ::proto::FutureProofMessage& Message::_internal_viewoncemessage() const { + const ::proto::FutureProofMessage* p = viewoncemessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::FutureProofMessage&>( + ::proto::_FutureProofMessage_default_instance_); +} +inline const ::proto::FutureProofMessage& Message::viewoncemessage() const { + // @@protoc_insertion_point(field_get:proto.Message.viewOnceMessage) + return _internal_viewoncemessage(); +} +inline void Message::unsafe_arena_set_allocated_viewoncemessage( + ::proto::FutureProofMessage* viewoncemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(viewoncemessage_); + } + viewoncemessage_ = viewoncemessage; + if (viewoncemessage) { + _has_bits_[0] |= 0x10000000u; + } else { + _has_bits_[0] &= ~0x10000000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.viewOnceMessage) +} +inline ::proto::FutureProofMessage* Message::release_viewoncemessage() { + _has_bits_[0] &= ~0x10000000u; + ::proto::FutureProofMessage* temp = viewoncemessage_; + viewoncemessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::FutureProofMessage* Message::unsafe_arena_release_viewoncemessage() { + // @@protoc_insertion_point(field_release:proto.Message.viewOnceMessage) + _has_bits_[0] &= ~0x10000000u; + ::proto::FutureProofMessage* temp = viewoncemessage_; + viewoncemessage_ = nullptr; + return temp; +} +inline ::proto::FutureProofMessage* Message::_internal_mutable_viewoncemessage() { + _has_bits_[0] |= 0x10000000u; + if (viewoncemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::FutureProofMessage>(GetArena()); + viewoncemessage_ = p; + } + return viewoncemessage_; +} +inline ::proto::FutureProofMessage* Message::mutable_viewoncemessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.viewOnceMessage) + return _internal_mutable_viewoncemessage(); +} +inline void Message::set_allocated_viewoncemessage(::proto::FutureProofMessage* viewoncemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete viewoncemessage_; + } + if (viewoncemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(viewoncemessage); + if (message_arena != submessage_arena) { + viewoncemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, viewoncemessage, submessage_arena); + } + _has_bits_[0] |= 0x10000000u; + } else { + _has_bits_[0] &= ~0x10000000u; + } + viewoncemessage_ = viewoncemessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.viewOnceMessage) +} + +// optional .proto.OrderMessage orderMessage = 38; +inline bool Message::_internal_has_ordermessage() const { + bool value = (_has_bits_[0] & 0x20000000u) != 0; + PROTOBUF_ASSUME(!value || ordermessage_ != nullptr); + return value; +} +inline bool Message::has_ordermessage() const { + return _internal_has_ordermessage(); +} +inline void Message::clear_ordermessage() { + if (ordermessage_ != nullptr) ordermessage_->Clear(); + _has_bits_[0] &= ~0x20000000u; +} +inline const ::proto::OrderMessage& Message::_internal_ordermessage() const { + const ::proto::OrderMessage* p = ordermessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::OrderMessage&>( + ::proto::_OrderMessage_default_instance_); +} +inline const ::proto::OrderMessage& Message::ordermessage() const { + // @@protoc_insertion_point(field_get:proto.Message.orderMessage) + return _internal_ordermessage(); +} +inline void Message::unsafe_arena_set_allocated_ordermessage( + ::proto::OrderMessage* ordermessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(ordermessage_); + } + ordermessage_ = ordermessage; + if (ordermessage) { + _has_bits_[0] |= 0x20000000u; + } else { + _has_bits_[0] &= ~0x20000000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.orderMessage) +} +inline ::proto::OrderMessage* Message::release_ordermessage() { + _has_bits_[0] &= ~0x20000000u; + ::proto::OrderMessage* temp = ordermessage_; + ordermessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::OrderMessage* Message::unsafe_arena_release_ordermessage() { + // @@protoc_insertion_point(field_release:proto.Message.orderMessage) + _has_bits_[0] &= ~0x20000000u; + ::proto::OrderMessage* temp = ordermessage_; + ordermessage_ = nullptr; + return temp; +} +inline ::proto::OrderMessage* Message::_internal_mutable_ordermessage() { + _has_bits_[0] |= 0x20000000u; + if (ordermessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::OrderMessage>(GetArena()); + ordermessage_ = p; + } + return ordermessage_; +} +inline ::proto::OrderMessage* Message::mutable_ordermessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.orderMessage) + return _internal_mutable_ordermessage(); +} +inline void Message::set_allocated_ordermessage(::proto::OrderMessage* ordermessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete ordermessage_; + } + if (ordermessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(ordermessage); + if (message_arena != submessage_arena) { + ordermessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ordermessage, submessage_arena); + } + _has_bits_[0] |= 0x20000000u; + } else { + _has_bits_[0] &= ~0x20000000u; + } + ordermessage_ = ordermessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.orderMessage) +} + +// optional .proto.ListResponseMessage listResponseMessage = 39; +inline bool Message::_internal_has_listresponsemessage() const { + bool value = (_has_bits_[0] & 0x40000000u) != 0; + PROTOBUF_ASSUME(!value || listresponsemessage_ != nullptr); + return value; +} +inline bool Message::has_listresponsemessage() const { + return _internal_has_listresponsemessage(); +} +inline void Message::clear_listresponsemessage() { + if (listresponsemessage_ != nullptr) listresponsemessage_->Clear(); + _has_bits_[0] &= ~0x40000000u; +} +inline const ::proto::ListResponseMessage& Message::_internal_listresponsemessage() const { + const ::proto::ListResponseMessage* p = listresponsemessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ListResponseMessage&>( + ::proto::_ListResponseMessage_default_instance_); +} +inline const ::proto::ListResponseMessage& Message::listresponsemessage() const { + // @@protoc_insertion_point(field_get:proto.Message.listResponseMessage) + return _internal_listresponsemessage(); +} +inline void Message::unsafe_arena_set_allocated_listresponsemessage( + ::proto::ListResponseMessage* listresponsemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(listresponsemessage_); + } + listresponsemessage_ = listresponsemessage; + if (listresponsemessage) { + _has_bits_[0] |= 0x40000000u; + } else { + _has_bits_[0] &= ~0x40000000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.listResponseMessage) +} +inline ::proto::ListResponseMessage* Message::release_listresponsemessage() { + _has_bits_[0] &= ~0x40000000u; + ::proto::ListResponseMessage* temp = listresponsemessage_; + listresponsemessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ListResponseMessage* Message::unsafe_arena_release_listresponsemessage() { + // @@protoc_insertion_point(field_release:proto.Message.listResponseMessage) + _has_bits_[0] &= ~0x40000000u; + ::proto::ListResponseMessage* temp = listresponsemessage_; + listresponsemessage_ = nullptr; + return temp; +} +inline ::proto::ListResponseMessage* Message::_internal_mutable_listresponsemessage() { + _has_bits_[0] |= 0x40000000u; + if (listresponsemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ListResponseMessage>(GetArena()); + listresponsemessage_ = p; + } + return listresponsemessage_; +} +inline ::proto::ListResponseMessage* Message::mutable_listresponsemessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.listResponseMessage) + return _internal_mutable_listresponsemessage(); +} +inline void Message::set_allocated_listresponsemessage(::proto::ListResponseMessage* listresponsemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete listresponsemessage_; + } + if (listresponsemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(listresponsemessage); + if (message_arena != submessage_arena) { + listresponsemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, listresponsemessage, submessage_arena); + } + _has_bits_[0] |= 0x40000000u; + } else { + _has_bits_[0] &= ~0x40000000u; + } + listresponsemessage_ = listresponsemessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.listResponseMessage) +} + +// optional .proto.FutureProofMessage ephemeralMessage = 40; +inline bool Message::_internal_has_ephemeralmessage() const { + bool value = (_has_bits_[0] & 0x80000000u) != 0; + PROTOBUF_ASSUME(!value || ephemeralmessage_ != nullptr); + return value; +} +inline bool Message::has_ephemeralmessage() const { + return _internal_has_ephemeralmessage(); +} +inline void Message::clear_ephemeralmessage() { + if (ephemeralmessage_ != nullptr) ephemeralmessage_->Clear(); + _has_bits_[0] &= ~0x80000000u; +} +inline const ::proto::FutureProofMessage& Message::_internal_ephemeralmessage() const { + const ::proto::FutureProofMessage* p = ephemeralmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::FutureProofMessage&>( + ::proto::_FutureProofMessage_default_instance_); +} +inline const ::proto::FutureProofMessage& Message::ephemeralmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.ephemeralMessage) + return _internal_ephemeralmessage(); +} +inline void Message::unsafe_arena_set_allocated_ephemeralmessage( + ::proto::FutureProofMessage* ephemeralmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(ephemeralmessage_); + } + ephemeralmessage_ = ephemeralmessage; + if (ephemeralmessage) { + _has_bits_[0] |= 0x80000000u; + } else { + _has_bits_[0] &= ~0x80000000u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.ephemeralMessage) +} +inline ::proto::FutureProofMessage* Message::release_ephemeralmessage() { + _has_bits_[0] &= ~0x80000000u; + ::proto::FutureProofMessage* temp = ephemeralmessage_; + ephemeralmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::FutureProofMessage* Message::unsafe_arena_release_ephemeralmessage() { + // @@protoc_insertion_point(field_release:proto.Message.ephemeralMessage) + _has_bits_[0] &= ~0x80000000u; + ::proto::FutureProofMessage* temp = ephemeralmessage_; + ephemeralmessage_ = nullptr; + return temp; +} +inline ::proto::FutureProofMessage* Message::_internal_mutable_ephemeralmessage() { + _has_bits_[0] |= 0x80000000u; + if (ephemeralmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::FutureProofMessage>(GetArena()); + ephemeralmessage_ = p; + } + return ephemeralmessage_; +} +inline ::proto::FutureProofMessage* Message::mutable_ephemeralmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.ephemeralMessage) + return _internal_mutable_ephemeralmessage(); +} +inline void Message::set_allocated_ephemeralmessage(::proto::FutureProofMessage* ephemeralmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete ephemeralmessage_; + } + if (ephemeralmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(ephemeralmessage); + if (message_arena != submessage_arena) { + ephemeralmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, ephemeralmessage, submessage_arena); + } + _has_bits_[0] |= 0x80000000u; + } else { + _has_bits_[0] &= ~0x80000000u; + } + ephemeralmessage_ = ephemeralmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.ephemeralMessage) +} + +// optional .proto.InvoiceMessage invoiceMessage = 41; +inline bool Message::_internal_has_invoicemessage() const { + bool value = (_has_bits_[1] & 0x00000001u) != 0; + PROTOBUF_ASSUME(!value || invoicemessage_ != nullptr); + return value; +} +inline bool Message::has_invoicemessage() const { + return _internal_has_invoicemessage(); +} +inline void Message::clear_invoicemessage() { + if (invoicemessage_ != nullptr) invoicemessage_->Clear(); + _has_bits_[1] &= ~0x00000001u; +} +inline const ::proto::InvoiceMessage& Message::_internal_invoicemessage() const { + const ::proto::InvoiceMessage* p = invoicemessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::InvoiceMessage&>( + ::proto::_InvoiceMessage_default_instance_); +} +inline const ::proto::InvoiceMessage& Message::invoicemessage() const { + // @@protoc_insertion_point(field_get:proto.Message.invoiceMessage) + return _internal_invoicemessage(); +} +inline void Message::unsafe_arena_set_allocated_invoicemessage( + ::proto::InvoiceMessage* invoicemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(invoicemessage_); + } + invoicemessage_ = invoicemessage; + if (invoicemessage) { + _has_bits_[1] |= 0x00000001u; + } else { + _has_bits_[1] &= ~0x00000001u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.invoiceMessage) +} +inline ::proto::InvoiceMessage* Message::release_invoicemessage() { + _has_bits_[1] &= ~0x00000001u; + ::proto::InvoiceMessage* temp = invoicemessage_; + invoicemessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::InvoiceMessage* Message::unsafe_arena_release_invoicemessage() { + // @@protoc_insertion_point(field_release:proto.Message.invoiceMessage) + _has_bits_[1] &= ~0x00000001u; + ::proto::InvoiceMessage* temp = invoicemessage_; + invoicemessage_ = nullptr; + return temp; +} +inline ::proto::InvoiceMessage* Message::_internal_mutable_invoicemessage() { + _has_bits_[1] |= 0x00000001u; + if (invoicemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::InvoiceMessage>(GetArena()); + invoicemessage_ = p; + } + return invoicemessage_; +} +inline ::proto::InvoiceMessage* Message::mutable_invoicemessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.invoiceMessage) + return _internal_mutable_invoicemessage(); +} +inline void Message::set_allocated_invoicemessage(::proto::InvoiceMessage* invoicemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete invoicemessage_; + } + if (invoicemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(invoicemessage); + if (message_arena != submessage_arena) { + invoicemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, invoicemessage, submessage_arena); + } + _has_bits_[1] |= 0x00000001u; + } else { + _has_bits_[1] &= ~0x00000001u; + } + invoicemessage_ = invoicemessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.invoiceMessage) +} + +// optional .proto.ButtonsMessage buttonsMessage = 42; +inline bool Message::_internal_has_buttonsmessage() const { + bool value = (_has_bits_[1] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || buttonsmessage_ != nullptr); + return value; +} +inline bool Message::has_buttonsmessage() const { + return _internal_has_buttonsmessage(); +} +inline void Message::clear_buttonsmessage() { + if (buttonsmessage_ != nullptr) buttonsmessage_->Clear(); + _has_bits_[1] &= ~0x00000002u; +} +inline const ::proto::ButtonsMessage& Message::_internal_buttonsmessage() const { + const ::proto::ButtonsMessage* p = buttonsmessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ButtonsMessage&>( + ::proto::_ButtonsMessage_default_instance_); +} +inline const ::proto::ButtonsMessage& Message::buttonsmessage() const { + // @@protoc_insertion_point(field_get:proto.Message.buttonsMessage) + return _internal_buttonsmessage(); +} +inline void Message::unsafe_arena_set_allocated_buttonsmessage( + ::proto::ButtonsMessage* buttonsmessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(buttonsmessage_); + } + buttonsmessage_ = buttonsmessage; + if (buttonsmessage) { + _has_bits_[1] |= 0x00000002u; + } else { + _has_bits_[1] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.buttonsMessage) +} +inline ::proto::ButtonsMessage* Message::release_buttonsmessage() { + _has_bits_[1] &= ~0x00000002u; + ::proto::ButtonsMessage* temp = buttonsmessage_; + buttonsmessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ButtonsMessage* Message::unsafe_arena_release_buttonsmessage() { + // @@protoc_insertion_point(field_release:proto.Message.buttonsMessage) + _has_bits_[1] &= ~0x00000002u; + ::proto::ButtonsMessage* temp = buttonsmessage_; + buttonsmessage_ = nullptr; + return temp; +} +inline ::proto::ButtonsMessage* Message::_internal_mutable_buttonsmessage() { + _has_bits_[1] |= 0x00000002u; + if (buttonsmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ButtonsMessage>(GetArena()); + buttonsmessage_ = p; + } + return buttonsmessage_; +} +inline ::proto::ButtonsMessage* Message::mutable_buttonsmessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.buttonsMessage) + return _internal_mutable_buttonsmessage(); +} +inline void Message::set_allocated_buttonsmessage(::proto::ButtonsMessage* buttonsmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete buttonsmessage_; + } + if (buttonsmessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(buttonsmessage); + if (message_arena != submessage_arena) { + buttonsmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, buttonsmessage, submessage_arena); + } + _has_bits_[1] |= 0x00000002u; + } else { + _has_bits_[1] &= ~0x00000002u; + } + buttonsmessage_ = buttonsmessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.buttonsMessage) +} + +// optional .proto.ButtonsResponseMessage buttonsResponseMessage = 43; +inline bool Message::_internal_has_buttonsresponsemessage() const { + bool value = (_has_bits_[1] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || buttonsresponsemessage_ != nullptr); + return value; +} +inline bool Message::has_buttonsresponsemessage() const { + return _internal_has_buttonsresponsemessage(); +} +inline void Message::clear_buttonsresponsemessage() { + if (buttonsresponsemessage_ != nullptr) buttonsresponsemessage_->Clear(); + _has_bits_[1] &= ~0x00000004u; +} +inline const ::proto::ButtonsResponseMessage& Message::_internal_buttonsresponsemessage() const { + const ::proto::ButtonsResponseMessage* p = buttonsresponsemessage_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::ButtonsResponseMessage&>( + ::proto::_ButtonsResponseMessage_default_instance_); +} +inline const ::proto::ButtonsResponseMessage& Message::buttonsresponsemessage() const { + // @@protoc_insertion_point(field_get:proto.Message.buttonsResponseMessage) + return _internal_buttonsresponsemessage(); +} +inline void Message::unsafe_arena_set_allocated_buttonsresponsemessage( + ::proto::ButtonsResponseMessage* buttonsresponsemessage) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(buttonsresponsemessage_); + } + buttonsresponsemessage_ = buttonsresponsemessage; + if (buttonsresponsemessage) { + _has_bits_[1] |= 0x00000004u; + } else { + _has_bits_[1] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.Message.buttonsResponseMessage) +} +inline ::proto::ButtonsResponseMessage* Message::release_buttonsresponsemessage() { + _has_bits_[1] &= ~0x00000004u; + ::proto::ButtonsResponseMessage* temp = buttonsresponsemessage_; + buttonsresponsemessage_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::ButtonsResponseMessage* Message::unsafe_arena_release_buttonsresponsemessage() { + // @@protoc_insertion_point(field_release:proto.Message.buttonsResponseMessage) + _has_bits_[1] &= ~0x00000004u; + ::proto::ButtonsResponseMessage* temp = buttonsresponsemessage_; + buttonsresponsemessage_ = nullptr; + return temp; +} +inline ::proto::ButtonsResponseMessage* Message::_internal_mutable_buttonsresponsemessage() { + _has_bits_[1] |= 0x00000004u; + if (buttonsresponsemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::ButtonsResponseMessage>(GetArena()); + buttonsresponsemessage_ = p; + } + return buttonsresponsemessage_; +} +inline ::proto::ButtonsResponseMessage* Message::mutable_buttonsresponsemessage() { + // @@protoc_insertion_point(field_mutable:proto.Message.buttonsResponseMessage) + return _internal_mutable_buttonsresponsemessage(); +} +inline void Message::set_allocated_buttonsresponsemessage(::proto::ButtonsResponseMessage* buttonsresponsemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete buttonsresponsemessage_; + } + if (buttonsresponsemessage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(buttonsresponsemessage); + if (message_arena != submessage_arena) { + buttonsresponsemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, buttonsresponsemessage, submessage_arena); + } + _has_bits_[1] |= 0x00000004u; + } else { + _has_bits_[1] &= ~0x00000004u; + } + buttonsresponsemessage_ = buttonsresponsemessage; + // @@protoc_insertion_point(field_set_allocated:proto.Message.buttonsResponseMessage) +} + +// ------------------------------------------------------------------- + +// MessageKey + +// optional string remoteJid = 1; +inline bool MessageKey::_internal_has_remotejid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool MessageKey::has_remotejid() const { + return _internal_has_remotejid(); +} +inline void MessageKey::clear_remotejid() { + remotejid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& MessageKey::remotejid() const { + // @@protoc_insertion_point(field_get:proto.MessageKey.remoteJid) + return _internal_remotejid(); +} +inline void MessageKey::set_remotejid(const std::string& value) { + _internal_set_remotejid(value); + // @@protoc_insertion_point(field_set:proto.MessageKey.remoteJid) +} +inline std::string* MessageKey::mutable_remotejid() { + // @@protoc_insertion_point(field_mutable:proto.MessageKey.remoteJid) + return _internal_mutable_remotejid(); +} +inline const std::string& MessageKey::_internal_remotejid() const { + return remotejid_.Get(); +} +inline void MessageKey::_internal_set_remotejid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + remotejid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void MessageKey::set_remotejid(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + remotejid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.MessageKey.remoteJid) +} +inline void MessageKey::set_remotejid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + remotejid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.MessageKey.remoteJid) +} +inline void MessageKey::set_remotejid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + remotejid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.MessageKey.remoteJid) +} +inline std::string* MessageKey::_internal_mutable_remotejid() { + _has_bits_[0] |= 0x00000001u; + return remotejid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* MessageKey::release_remotejid() { + // @@protoc_insertion_point(field_release:proto.MessageKey.remoteJid) + if (!_internal_has_remotejid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return remotejid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void MessageKey::set_allocated_remotejid(std::string* remotejid) { + if (remotejid != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + remotejid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), remotejid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.MessageKey.remoteJid) +} + +// optional bool fromMe = 2; +inline bool MessageKey::_internal_has_fromme() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool MessageKey::has_fromme() const { + return _internal_has_fromme(); +} +inline void MessageKey::clear_fromme() { + fromme_ = false; + _has_bits_[0] &= ~0x00000008u; +} +inline bool MessageKey::_internal_fromme() const { + return fromme_; +} +inline bool MessageKey::fromme() const { + // @@protoc_insertion_point(field_get:proto.MessageKey.fromMe) + return _internal_fromme(); +} +inline void MessageKey::_internal_set_fromme(bool value) { + _has_bits_[0] |= 0x00000008u; + fromme_ = value; +} +inline void MessageKey::set_fromme(bool value) { + _internal_set_fromme(value); + // @@protoc_insertion_point(field_set:proto.MessageKey.fromMe) +} + +// optional string id = 3; +inline bool MessageKey::_internal_has_id() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool MessageKey::has_id() const { + return _internal_has_id(); +} +inline void MessageKey::clear_id() { + id_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& MessageKey::id() const { + // @@protoc_insertion_point(field_get:proto.MessageKey.id) + return _internal_id(); +} +inline void MessageKey::set_id(const std::string& value) { + _internal_set_id(value); + // @@protoc_insertion_point(field_set:proto.MessageKey.id) +} +inline std::string* MessageKey::mutable_id() { + // @@protoc_insertion_point(field_mutable:proto.MessageKey.id) + return _internal_mutable_id(); +} +inline const std::string& MessageKey::_internal_id() const { + return id_.Get(); +} +inline void MessageKey::_internal_set_id(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void MessageKey::set_id(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + id_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.MessageKey.id) +} +inline void MessageKey::set_id(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.MessageKey.id) +} +inline void MessageKey::set_id(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.MessageKey.id) +} +inline std::string* MessageKey::_internal_mutable_id() { + _has_bits_[0] |= 0x00000002u; + return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* MessageKey::release_id() { + // @@protoc_insertion_point(field_release:proto.MessageKey.id) + if (!_internal_has_id()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void MessageKey::set_allocated_id(std::string* id) { + if (id != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.MessageKey.id) +} + +// optional string participant = 4; +inline bool MessageKey::_internal_has_participant() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool MessageKey::has_participant() const { + return _internal_has_participant(); +} +inline void MessageKey::clear_participant() { + participant_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& MessageKey::participant() const { + // @@protoc_insertion_point(field_get:proto.MessageKey.participant) + return _internal_participant(); +} +inline void MessageKey::set_participant(const std::string& value) { + _internal_set_participant(value); + // @@protoc_insertion_point(field_set:proto.MessageKey.participant) +} +inline std::string* MessageKey::mutable_participant() { + // @@protoc_insertion_point(field_mutable:proto.MessageKey.participant) + return _internal_mutable_participant(); +} +inline const std::string& MessageKey::_internal_participant() const { + return participant_.Get(); +} +inline void MessageKey::_internal_set_participant(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void MessageKey::set_participant(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + participant_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.MessageKey.participant) +} +inline void MessageKey::set_participant(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.MessageKey.participant) +} +inline void MessageKey::set_participant(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.MessageKey.participant) +} +inline std::string* MessageKey::_internal_mutable_participant() { + _has_bits_[0] |= 0x00000004u; + return participant_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* MessageKey::release_participant() { + // @@protoc_insertion_point(field_release:proto.MessageKey.participant) + if (!_internal_has_participant()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return participant_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void MessageKey::set_allocated_participant(std::string* participant) { + if (participant != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + participant_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), participant, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.MessageKey.participant) +} + +// ------------------------------------------------------------------- + +// WebFeatures + +// optional .proto.WebFeatures.WebFeaturesFlag labelsDisplay = 1; +inline bool WebFeatures::_internal_has_labelsdisplay() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool WebFeatures::has_labelsdisplay() const { + return _internal_has_labelsdisplay(); +} +inline void WebFeatures::clear_labelsdisplay() { + labelsdisplay_ = 0; + _has_bits_[0] &= ~0x00000001u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_labelsdisplay() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(labelsdisplay_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::labelsdisplay() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.labelsDisplay) + return _internal_labelsdisplay(); +} +inline void WebFeatures::_internal_set_labelsdisplay(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00000001u; + labelsdisplay_ = value; +} +inline void WebFeatures::set_labelsdisplay(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_labelsdisplay(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.labelsDisplay) +} + +// optional .proto.WebFeatures.WebFeaturesFlag voipIndividualOutgoing = 2; +inline bool WebFeatures::_internal_has_voipindividualoutgoing() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool WebFeatures::has_voipindividualoutgoing() const { + return _internal_has_voipindividualoutgoing(); +} +inline void WebFeatures::clear_voipindividualoutgoing() { + voipindividualoutgoing_ = 0; + _has_bits_[0] &= ~0x00000002u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_voipindividualoutgoing() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(voipindividualoutgoing_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::voipindividualoutgoing() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.voipIndividualOutgoing) + return _internal_voipindividualoutgoing(); +} +inline void WebFeatures::_internal_set_voipindividualoutgoing(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00000002u; + voipindividualoutgoing_ = value; +} +inline void WebFeatures::set_voipindividualoutgoing(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_voipindividualoutgoing(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.voipIndividualOutgoing) +} + +// optional .proto.WebFeatures.WebFeaturesFlag groupsV3 = 3; +inline bool WebFeatures::_internal_has_groupsv3() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool WebFeatures::has_groupsv3() const { + return _internal_has_groupsv3(); +} +inline void WebFeatures::clear_groupsv3() { + groupsv3_ = 0; + _has_bits_[0] &= ~0x00000004u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_groupsv3() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(groupsv3_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::groupsv3() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.groupsV3) + return _internal_groupsv3(); +} +inline void WebFeatures::_internal_set_groupsv3(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00000004u; + groupsv3_ = value; +} +inline void WebFeatures::set_groupsv3(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_groupsv3(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.groupsV3) +} + +// optional .proto.WebFeatures.WebFeaturesFlag groupsV3Create = 4; +inline bool WebFeatures::_internal_has_groupsv3create() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool WebFeatures::has_groupsv3create() const { + return _internal_has_groupsv3create(); +} +inline void WebFeatures::clear_groupsv3create() { + groupsv3create_ = 0; + _has_bits_[0] &= ~0x00000008u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_groupsv3create() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(groupsv3create_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::groupsv3create() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.groupsV3Create) + return _internal_groupsv3create(); +} +inline void WebFeatures::_internal_set_groupsv3create(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00000008u; + groupsv3create_ = value; +} +inline void WebFeatures::set_groupsv3create(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_groupsv3create(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.groupsV3Create) +} + +// optional .proto.WebFeatures.WebFeaturesFlag changeNumberV2 = 5; +inline bool WebFeatures::_internal_has_changenumberv2() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool WebFeatures::has_changenumberv2() const { + return _internal_has_changenumberv2(); +} +inline void WebFeatures::clear_changenumberv2() { + changenumberv2_ = 0; + _has_bits_[0] &= ~0x00000010u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_changenumberv2() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(changenumberv2_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::changenumberv2() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.changeNumberV2) + return _internal_changenumberv2(); +} +inline void WebFeatures::_internal_set_changenumberv2(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00000010u; + changenumberv2_ = value; +} +inline void WebFeatures::set_changenumberv2(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_changenumberv2(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.changeNumberV2) +} + +// optional .proto.WebFeatures.WebFeaturesFlag queryStatusV3Thumbnail = 6; +inline bool WebFeatures::_internal_has_querystatusv3thumbnail() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool WebFeatures::has_querystatusv3thumbnail() const { + return _internal_has_querystatusv3thumbnail(); +} +inline void WebFeatures::clear_querystatusv3thumbnail() { + querystatusv3thumbnail_ = 0; + _has_bits_[0] &= ~0x00000020u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_querystatusv3thumbnail() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(querystatusv3thumbnail_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::querystatusv3thumbnail() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.queryStatusV3Thumbnail) + return _internal_querystatusv3thumbnail(); +} +inline void WebFeatures::_internal_set_querystatusv3thumbnail(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00000020u; + querystatusv3thumbnail_ = value; +} +inline void WebFeatures::set_querystatusv3thumbnail(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_querystatusv3thumbnail(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.queryStatusV3Thumbnail) +} + +// optional .proto.WebFeatures.WebFeaturesFlag liveLocations = 7; +inline bool WebFeatures::_internal_has_livelocations() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool WebFeatures::has_livelocations() const { + return _internal_has_livelocations(); +} +inline void WebFeatures::clear_livelocations() { + livelocations_ = 0; + _has_bits_[0] &= ~0x00000040u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_livelocations() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(livelocations_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::livelocations() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.liveLocations) + return _internal_livelocations(); +} +inline void WebFeatures::_internal_set_livelocations(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00000040u; + livelocations_ = value; +} +inline void WebFeatures::set_livelocations(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_livelocations(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.liveLocations) +} + +// optional .proto.WebFeatures.WebFeaturesFlag queryVname = 8; +inline bool WebFeatures::_internal_has_queryvname() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + return value; +} +inline bool WebFeatures::has_queryvname() const { + return _internal_has_queryvname(); +} +inline void WebFeatures::clear_queryvname() { + queryvname_ = 0; + _has_bits_[0] &= ~0x00000080u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_queryvname() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(queryvname_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::queryvname() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.queryVname) + return _internal_queryvname(); +} +inline void WebFeatures::_internal_set_queryvname(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00000080u; + queryvname_ = value; +} +inline void WebFeatures::set_queryvname(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_queryvname(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.queryVname) +} + +// optional .proto.WebFeatures.WebFeaturesFlag voipIndividualIncoming = 9; +inline bool WebFeatures::_internal_has_voipindividualincoming() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + return value; +} +inline bool WebFeatures::has_voipindividualincoming() const { + return _internal_has_voipindividualincoming(); +} +inline void WebFeatures::clear_voipindividualincoming() { + voipindividualincoming_ = 0; + _has_bits_[0] &= ~0x00000100u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_voipindividualincoming() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(voipindividualincoming_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::voipindividualincoming() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.voipIndividualIncoming) + return _internal_voipindividualincoming(); +} +inline void WebFeatures::_internal_set_voipindividualincoming(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00000100u; + voipindividualincoming_ = value; +} +inline void WebFeatures::set_voipindividualincoming(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_voipindividualincoming(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.voipIndividualIncoming) +} + +// optional .proto.WebFeatures.WebFeaturesFlag quickRepliesQuery = 10; +inline bool WebFeatures::_internal_has_quickrepliesquery() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + return value; +} +inline bool WebFeatures::has_quickrepliesquery() const { + return _internal_has_quickrepliesquery(); +} +inline void WebFeatures::clear_quickrepliesquery() { + quickrepliesquery_ = 0; + _has_bits_[0] &= ~0x00000200u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_quickrepliesquery() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(quickrepliesquery_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::quickrepliesquery() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.quickRepliesQuery) + return _internal_quickrepliesquery(); +} +inline void WebFeatures::_internal_set_quickrepliesquery(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00000200u; + quickrepliesquery_ = value; +} +inline void WebFeatures::set_quickrepliesquery(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_quickrepliesquery(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.quickRepliesQuery) +} + +// optional .proto.WebFeatures.WebFeaturesFlag payments = 11; +inline bool WebFeatures::_internal_has_payments() const { + bool value = (_has_bits_[0] & 0x00000400u) != 0; + return value; +} +inline bool WebFeatures::has_payments() const { + return _internal_has_payments(); +} +inline void WebFeatures::clear_payments() { + payments_ = 0; + _has_bits_[0] &= ~0x00000400u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_payments() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(payments_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::payments() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.payments) + return _internal_payments(); +} +inline void WebFeatures::_internal_set_payments(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00000400u; + payments_ = value; +} +inline void WebFeatures::set_payments(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_payments(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.payments) +} + +// optional .proto.WebFeatures.WebFeaturesFlag stickerPackQuery = 12; +inline bool WebFeatures::_internal_has_stickerpackquery() const { + bool value = (_has_bits_[0] & 0x00000800u) != 0; + return value; +} +inline bool WebFeatures::has_stickerpackquery() const { + return _internal_has_stickerpackquery(); +} +inline void WebFeatures::clear_stickerpackquery() { + stickerpackquery_ = 0; + _has_bits_[0] &= ~0x00000800u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_stickerpackquery() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(stickerpackquery_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::stickerpackquery() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.stickerPackQuery) + return _internal_stickerpackquery(); +} +inline void WebFeatures::_internal_set_stickerpackquery(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00000800u; + stickerpackquery_ = value; +} +inline void WebFeatures::set_stickerpackquery(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_stickerpackquery(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.stickerPackQuery) +} + +// optional .proto.WebFeatures.WebFeaturesFlag liveLocationsFinal = 13; +inline bool WebFeatures::_internal_has_livelocationsfinal() const { + bool value = (_has_bits_[0] & 0x00001000u) != 0; + return value; +} +inline bool WebFeatures::has_livelocationsfinal() const { + return _internal_has_livelocationsfinal(); +} +inline void WebFeatures::clear_livelocationsfinal() { + livelocationsfinal_ = 0; + _has_bits_[0] &= ~0x00001000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_livelocationsfinal() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(livelocationsfinal_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::livelocationsfinal() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.liveLocationsFinal) + return _internal_livelocationsfinal(); +} +inline void WebFeatures::_internal_set_livelocationsfinal(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00001000u; + livelocationsfinal_ = value; +} +inline void WebFeatures::set_livelocationsfinal(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_livelocationsfinal(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.liveLocationsFinal) +} + +// optional .proto.WebFeatures.WebFeaturesFlag labelsEdit = 14; +inline bool WebFeatures::_internal_has_labelsedit() const { + bool value = (_has_bits_[0] & 0x00002000u) != 0; + return value; +} +inline bool WebFeatures::has_labelsedit() const { + return _internal_has_labelsedit(); +} +inline void WebFeatures::clear_labelsedit() { + labelsedit_ = 0; + _has_bits_[0] &= ~0x00002000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_labelsedit() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(labelsedit_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::labelsedit() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.labelsEdit) + return _internal_labelsedit(); +} +inline void WebFeatures::_internal_set_labelsedit(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00002000u; + labelsedit_ = value; +} +inline void WebFeatures::set_labelsedit(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_labelsedit(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.labelsEdit) +} + +// optional .proto.WebFeatures.WebFeaturesFlag mediaUpload = 15; +inline bool WebFeatures::_internal_has_mediaupload() const { + bool value = (_has_bits_[0] & 0x00004000u) != 0; + return value; +} +inline bool WebFeatures::has_mediaupload() const { + return _internal_has_mediaupload(); +} +inline void WebFeatures::clear_mediaupload() { + mediaupload_ = 0; + _has_bits_[0] &= ~0x00004000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_mediaupload() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(mediaupload_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::mediaupload() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.mediaUpload) + return _internal_mediaupload(); +} +inline void WebFeatures::_internal_set_mediaupload(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00004000u; + mediaupload_ = value; +} +inline void WebFeatures::set_mediaupload(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_mediaupload(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.mediaUpload) +} + +// optional .proto.WebFeatures.WebFeaturesFlag mediaUploadRichQuickReplies = 18; +inline bool WebFeatures::_internal_has_mediauploadrichquickreplies() const { + bool value = (_has_bits_[0] & 0x00008000u) != 0; + return value; +} +inline bool WebFeatures::has_mediauploadrichquickreplies() const { + return _internal_has_mediauploadrichquickreplies(); +} +inline void WebFeatures::clear_mediauploadrichquickreplies() { + mediauploadrichquickreplies_ = 0; + _has_bits_[0] &= ~0x00008000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_mediauploadrichquickreplies() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(mediauploadrichquickreplies_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::mediauploadrichquickreplies() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.mediaUploadRichQuickReplies) + return _internal_mediauploadrichquickreplies(); +} +inline void WebFeatures::_internal_set_mediauploadrichquickreplies(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00008000u; + mediauploadrichquickreplies_ = value; +} +inline void WebFeatures::set_mediauploadrichquickreplies(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_mediauploadrichquickreplies(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.mediaUploadRichQuickReplies) +} + +// optional .proto.WebFeatures.WebFeaturesFlag vnameV2 = 19; +inline bool WebFeatures::_internal_has_vnamev2() const { + bool value = (_has_bits_[0] & 0x00010000u) != 0; + return value; +} +inline bool WebFeatures::has_vnamev2() const { + return _internal_has_vnamev2(); +} +inline void WebFeatures::clear_vnamev2() { + vnamev2_ = 0; + _has_bits_[0] &= ~0x00010000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_vnamev2() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(vnamev2_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::vnamev2() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.vnameV2) + return _internal_vnamev2(); +} +inline void WebFeatures::_internal_set_vnamev2(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00010000u; + vnamev2_ = value; +} +inline void WebFeatures::set_vnamev2(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_vnamev2(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.vnameV2) +} + +// optional .proto.WebFeatures.WebFeaturesFlag videoPlaybackUrl = 20; +inline bool WebFeatures::_internal_has_videoplaybackurl() const { + bool value = (_has_bits_[0] & 0x00020000u) != 0; + return value; +} +inline bool WebFeatures::has_videoplaybackurl() const { + return _internal_has_videoplaybackurl(); +} +inline void WebFeatures::clear_videoplaybackurl() { + videoplaybackurl_ = 0; + _has_bits_[0] &= ~0x00020000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_videoplaybackurl() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(videoplaybackurl_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::videoplaybackurl() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.videoPlaybackUrl) + return _internal_videoplaybackurl(); +} +inline void WebFeatures::_internal_set_videoplaybackurl(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00020000u; + videoplaybackurl_ = value; +} +inline void WebFeatures::set_videoplaybackurl(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_videoplaybackurl(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.videoPlaybackUrl) +} + +// optional .proto.WebFeatures.WebFeaturesFlag statusRanking = 21; +inline bool WebFeatures::_internal_has_statusranking() const { + bool value = (_has_bits_[0] & 0x00040000u) != 0; + return value; +} +inline bool WebFeatures::has_statusranking() const { + return _internal_has_statusranking(); +} +inline void WebFeatures::clear_statusranking() { + statusranking_ = 0; + _has_bits_[0] &= ~0x00040000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_statusranking() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(statusranking_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::statusranking() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.statusRanking) + return _internal_statusranking(); +} +inline void WebFeatures::_internal_set_statusranking(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00040000u; + statusranking_ = value; +} +inline void WebFeatures::set_statusranking(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_statusranking(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.statusRanking) +} + +// optional .proto.WebFeatures.WebFeaturesFlag voipIndividualVideo = 22; +inline bool WebFeatures::_internal_has_voipindividualvideo() const { + bool value = (_has_bits_[0] & 0x00080000u) != 0; + return value; +} +inline bool WebFeatures::has_voipindividualvideo() const { + return _internal_has_voipindividualvideo(); +} +inline void WebFeatures::clear_voipindividualvideo() { + voipindividualvideo_ = 0; + _has_bits_[0] &= ~0x00080000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_voipindividualvideo() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(voipindividualvideo_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::voipindividualvideo() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.voipIndividualVideo) + return _internal_voipindividualvideo(); +} +inline void WebFeatures::_internal_set_voipindividualvideo(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00080000u; + voipindividualvideo_ = value; +} +inline void WebFeatures::set_voipindividualvideo(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_voipindividualvideo(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.voipIndividualVideo) +} + +// optional .proto.WebFeatures.WebFeaturesFlag thirdPartyStickers = 23; +inline bool WebFeatures::_internal_has_thirdpartystickers() const { + bool value = (_has_bits_[0] & 0x00100000u) != 0; + return value; +} +inline bool WebFeatures::has_thirdpartystickers() const { + return _internal_has_thirdpartystickers(); +} +inline void WebFeatures::clear_thirdpartystickers() { + thirdpartystickers_ = 0; + _has_bits_[0] &= ~0x00100000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_thirdpartystickers() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(thirdpartystickers_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::thirdpartystickers() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.thirdPartyStickers) + return _internal_thirdpartystickers(); +} +inline void WebFeatures::_internal_set_thirdpartystickers(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00100000u; + thirdpartystickers_ = value; +} +inline void WebFeatures::set_thirdpartystickers(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_thirdpartystickers(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.thirdPartyStickers) +} + +// optional .proto.WebFeatures.WebFeaturesFlag frequentlyForwardedSetting = 24; +inline bool WebFeatures::_internal_has_frequentlyforwardedsetting() const { + bool value = (_has_bits_[0] & 0x00200000u) != 0; + return value; +} +inline bool WebFeatures::has_frequentlyforwardedsetting() const { + return _internal_has_frequentlyforwardedsetting(); +} +inline void WebFeatures::clear_frequentlyforwardedsetting() { + frequentlyforwardedsetting_ = 0; + _has_bits_[0] &= ~0x00200000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_frequentlyforwardedsetting() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(frequentlyforwardedsetting_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::frequentlyforwardedsetting() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.frequentlyForwardedSetting) + return _internal_frequentlyforwardedsetting(); +} +inline void WebFeatures::_internal_set_frequentlyforwardedsetting(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00200000u; + frequentlyforwardedsetting_ = value; +} +inline void WebFeatures::set_frequentlyforwardedsetting(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_frequentlyforwardedsetting(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.frequentlyForwardedSetting) +} + +// optional .proto.WebFeatures.WebFeaturesFlag groupsV4JoinPermission = 25; +inline bool WebFeatures::_internal_has_groupsv4joinpermission() const { + bool value = (_has_bits_[0] & 0x00400000u) != 0; + return value; +} +inline bool WebFeatures::has_groupsv4joinpermission() const { + return _internal_has_groupsv4joinpermission(); +} +inline void WebFeatures::clear_groupsv4joinpermission() { + groupsv4joinpermission_ = 0; + _has_bits_[0] &= ~0x00400000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_groupsv4joinpermission() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(groupsv4joinpermission_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::groupsv4joinpermission() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.groupsV4JoinPermission) + return _internal_groupsv4joinpermission(); +} +inline void WebFeatures::_internal_set_groupsv4joinpermission(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00400000u; + groupsv4joinpermission_ = value; +} +inline void WebFeatures::set_groupsv4joinpermission(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_groupsv4joinpermission(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.groupsV4JoinPermission) +} + +// optional .proto.WebFeatures.WebFeaturesFlag recentStickers = 26; +inline bool WebFeatures::_internal_has_recentstickers() const { + bool value = (_has_bits_[0] & 0x00800000u) != 0; + return value; +} +inline bool WebFeatures::has_recentstickers() const { + return _internal_has_recentstickers(); +} +inline void WebFeatures::clear_recentstickers() { + recentstickers_ = 0; + _has_bits_[0] &= ~0x00800000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_recentstickers() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(recentstickers_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::recentstickers() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.recentStickers) + return _internal_recentstickers(); +} +inline void WebFeatures::_internal_set_recentstickers(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x00800000u; + recentstickers_ = value; +} +inline void WebFeatures::set_recentstickers(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_recentstickers(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.recentStickers) +} + +// optional .proto.WebFeatures.WebFeaturesFlag catalog = 27; +inline bool WebFeatures::_internal_has_catalog() const { + bool value = (_has_bits_[0] & 0x01000000u) != 0; + return value; +} +inline bool WebFeatures::has_catalog() const { + return _internal_has_catalog(); +} +inline void WebFeatures::clear_catalog() { + catalog_ = 0; + _has_bits_[0] &= ~0x01000000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_catalog() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(catalog_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::catalog() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.catalog) + return _internal_catalog(); +} +inline void WebFeatures::_internal_set_catalog(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x01000000u; + catalog_ = value; +} +inline void WebFeatures::set_catalog(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_catalog(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.catalog) +} + +// optional .proto.WebFeatures.WebFeaturesFlag starredStickers = 28; +inline bool WebFeatures::_internal_has_starredstickers() const { + bool value = (_has_bits_[0] & 0x02000000u) != 0; + return value; +} +inline bool WebFeatures::has_starredstickers() const { + return _internal_has_starredstickers(); +} +inline void WebFeatures::clear_starredstickers() { + starredstickers_ = 0; + _has_bits_[0] &= ~0x02000000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_starredstickers() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(starredstickers_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::starredstickers() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.starredStickers) + return _internal_starredstickers(); +} +inline void WebFeatures::_internal_set_starredstickers(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x02000000u; + starredstickers_ = value; +} +inline void WebFeatures::set_starredstickers(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_starredstickers(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.starredStickers) +} + +// optional .proto.WebFeatures.WebFeaturesFlag voipGroupCall = 29; +inline bool WebFeatures::_internal_has_voipgroupcall() const { + bool value = (_has_bits_[0] & 0x04000000u) != 0; + return value; +} +inline bool WebFeatures::has_voipgroupcall() const { + return _internal_has_voipgroupcall(); +} +inline void WebFeatures::clear_voipgroupcall() { + voipgroupcall_ = 0; + _has_bits_[0] &= ~0x04000000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_voipgroupcall() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(voipgroupcall_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::voipgroupcall() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.voipGroupCall) + return _internal_voipgroupcall(); +} +inline void WebFeatures::_internal_set_voipgroupcall(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x04000000u; + voipgroupcall_ = value; +} +inline void WebFeatures::set_voipgroupcall(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_voipgroupcall(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.voipGroupCall) +} + +// optional .proto.WebFeatures.WebFeaturesFlag templateMessage = 30; +inline bool WebFeatures::_internal_has_templatemessage() const { + bool value = (_has_bits_[0] & 0x08000000u) != 0; + return value; +} +inline bool WebFeatures::has_templatemessage() const { + return _internal_has_templatemessage(); +} +inline void WebFeatures::clear_templatemessage() { + templatemessage_ = 0; + _has_bits_[0] &= ~0x08000000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_templatemessage() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(templatemessage_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::templatemessage() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.templateMessage) + return _internal_templatemessage(); +} +inline void WebFeatures::_internal_set_templatemessage(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x08000000u; + templatemessage_ = value; +} +inline void WebFeatures::set_templatemessage(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_templatemessage(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.templateMessage) +} + +// optional .proto.WebFeatures.WebFeaturesFlag templateMessageInteractivity = 31; +inline bool WebFeatures::_internal_has_templatemessageinteractivity() const { + bool value = (_has_bits_[0] & 0x10000000u) != 0; + return value; +} +inline bool WebFeatures::has_templatemessageinteractivity() const { + return _internal_has_templatemessageinteractivity(); +} +inline void WebFeatures::clear_templatemessageinteractivity() { + templatemessageinteractivity_ = 0; + _has_bits_[0] &= ~0x10000000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_templatemessageinteractivity() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(templatemessageinteractivity_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::templatemessageinteractivity() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.templateMessageInteractivity) + return _internal_templatemessageinteractivity(); +} +inline void WebFeatures::_internal_set_templatemessageinteractivity(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x10000000u; + templatemessageinteractivity_ = value; +} +inline void WebFeatures::set_templatemessageinteractivity(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_templatemessageinteractivity(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.templateMessageInteractivity) +} + +// optional .proto.WebFeatures.WebFeaturesFlag ephemeralMessages = 32; +inline bool WebFeatures::_internal_has_ephemeralmessages() const { + bool value = (_has_bits_[0] & 0x20000000u) != 0; + return value; +} +inline bool WebFeatures::has_ephemeralmessages() const { + return _internal_has_ephemeralmessages(); +} +inline void WebFeatures::clear_ephemeralmessages() { + ephemeralmessages_ = 0; + _has_bits_[0] &= ~0x20000000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_ephemeralmessages() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(ephemeralmessages_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::ephemeralmessages() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.ephemeralMessages) + return _internal_ephemeralmessages(); +} +inline void WebFeatures::_internal_set_ephemeralmessages(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x20000000u; + ephemeralmessages_ = value; +} +inline void WebFeatures::set_ephemeralmessages(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_ephemeralmessages(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.ephemeralMessages) +} + +// optional .proto.WebFeatures.WebFeaturesFlag e2ENotificationSync = 33; +inline bool WebFeatures::_internal_has_e2enotificationsync() const { + bool value = (_has_bits_[0] & 0x40000000u) != 0; + return value; +} +inline bool WebFeatures::has_e2enotificationsync() const { + return _internal_has_e2enotificationsync(); +} +inline void WebFeatures::clear_e2enotificationsync() { + e2enotificationsync_ = 0; + _has_bits_[0] &= ~0x40000000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_e2enotificationsync() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(e2enotificationsync_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::e2enotificationsync() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.e2ENotificationSync) + return _internal_e2enotificationsync(); +} +inline void WebFeatures::_internal_set_e2enotificationsync(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x40000000u; + e2enotificationsync_ = value; +} +inline void WebFeatures::set_e2enotificationsync(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_e2enotificationsync(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.e2ENotificationSync) +} + +// optional .proto.WebFeatures.WebFeaturesFlag recentStickersV2 = 34; +inline bool WebFeatures::_internal_has_recentstickersv2() const { + bool value = (_has_bits_[0] & 0x80000000u) != 0; + return value; +} +inline bool WebFeatures::has_recentstickersv2() const { + return _internal_has_recentstickersv2(); +} +inline void WebFeatures::clear_recentstickersv2() { + recentstickersv2_ = 0; + _has_bits_[0] &= ~0x80000000u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_recentstickersv2() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(recentstickersv2_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::recentstickersv2() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.recentStickersV2) + return _internal_recentstickersv2(); +} +inline void WebFeatures::_internal_set_recentstickersv2(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[0] |= 0x80000000u; + recentstickersv2_ = value; +} +inline void WebFeatures::set_recentstickersv2(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_recentstickersv2(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.recentStickersV2) +} + +// optional .proto.WebFeatures.WebFeaturesFlag syncdRelease1 = 35; +inline bool WebFeatures::_internal_has_syncdrelease1() const { + bool value = (_has_bits_[1] & 0x00000001u) != 0; + return value; +} +inline bool WebFeatures::has_syncdrelease1() const { + return _internal_has_syncdrelease1(); +} +inline void WebFeatures::clear_syncdrelease1() { + syncdrelease1_ = 0; + _has_bits_[1] &= ~0x00000001u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_syncdrelease1() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(syncdrelease1_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::syncdrelease1() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.syncdRelease1) + return _internal_syncdrelease1(); +} +inline void WebFeatures::_internal_set_syncdrelease1(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[1] |= 0x00000001u; + syncdrelease1_ = value; +} +inline void WebFeatures::set_syncdrelease1(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_syncdrelease1(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.syncdRelease1) +} + +// optional .proto.WebFeatures.WebFeaturesFlag recentStickersV3 = 36; +inline bool WebFeatures::_internal_has_recentstickersv3() const { + bool value = (_has_bits_[1] & 0x00000002u) != 0; + return value; +} +inline bool WebFeatures::has_recentstickersv3() const { + return _internal_has_recentstickersv3(); +} +inline void WebFeatures::clear_recentstickersv3() { + recentstickersv3_ = 0; + _has_bits_[1] &= ~0x00000002u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_recentstickersv3() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(recentstickersv3_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::recentstickersv3() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.recentStickersV3) + return _internal_recentstickersv3(); +} +inline void WebFeatures::_internal_set_recentstickersv3(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[1] |= 0x00000002u; + recentstickersv3_ = value; +} +inline void WebFeatures::set_recentstickersv3(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_recentstickersv3(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.recentStickersV3) +} + +// optional .proto.WebFeatures.WebFeaturesFlag userNotice = 37; +inline bool WebFeatures::_internal_has_usernotice() const { + bool value = (_has_bits_[1] & 0x00000004u) != 0; + return value; +} +inline bool WebFeatures::has_usernotice() const { + return _internal_has_usernotice(); +} +inline void WebFeatures::clear_usernotice() { + usernotice_ = 0; + _has_bits_[1] &= ~0x00000004u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_usernotice() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(usernotice_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::usernotice() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.userNotice) + return _internal_usernotice(); +} +inline void WebFeatures::_internal_set_usernotice(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[1] |= 0x00000004u; + usernotice_ = value; +} +inline void WebFeatures::set_usernotice(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_usernotice(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.userNotice) +} + +// optional .proto.WebFeatures.WebFeaturesFlag syncdRelease11 = 38; +inline bool WebFeatures::_internal_has_syncdrelease11() const { + bool value = (_has_bits_[1] & 0x00000008u) != 0; + return value; +} +inline bool WebFeatures::has_syncdrelease11() const { + return _internal_has_syncdrelease11(); +} +inline void WebFeatures::clear_syncdrelease11() { + syncdrelease11_ = 0; + _has_bits_[1] &= ~0x00000008u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_syncdrelease11() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(syncdrelease11_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::syncdrelease11() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.syncdRelease11) + return _internal_syncdrelease11(); +} +inline void WebFeatures::_internal_set_syncdrelease11(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[1] |= 0x00000008u; + syncdrelease11_ = value; +} +inline void WebFeatures::set_syncdrelease11(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_syncdrelease11(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.syncdRelease11) +} + +// optional .proto.WebFeatures.WebFeaturesFlag support = 39; +inline bool WebFeatures::_internal_has_support() const { + bool value = (_has_bits_[1] & 0x00000010u) != 0; + return value; +} +inline bool WebFeatures::has_support() const { + return _internal_has_support(); +} +inline void WebFeatures::clear_support() { + support_ = 0; + _has_bits_[1] &= ~0x00000010u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_support() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(support_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::support() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.support) + return _internal_support(); +} +inline void WebFeatures::_internal_set_support(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[1] |= 0x00000010u; + support_ = value; +} +inline void WebFeatures::set_support(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_support(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.support) +} + +// optional .proto.WebFeatures.WebFeaturesFlag groupUiiCleanup = 40; +inline bool WebFeatures::_internal_has_groupuiicleanup() const { + bool value = (_has_bits_[1] & 0x00000020u) != 0; + return value; +} +inline bool WebFeatures::has_groupuiicleanup() const { + return _internal_has_groupuiicleanup(); +} +inline void WebFeatures::clear_groupuiicleanup() { + groupuiicleanup_ = 0; + _has_bits_[1] &= ~0x00000020u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_groupuiicleanup() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(groupuiicleanup_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::groupuiicleanup() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.groupUiiCleanup) + return _internal_groupuiicleanup(); +} +inline void WebFeatures::_internal_set_groupuiicleanup(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[1] |= 0x00000020u; + groupuiicleanup_ = value; +} +inline void WebFeatures::set_groupuiicleanup(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_groupuiicleanup(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.groupUiiCleanup) +} + +// optional .proto.WebFeatures.WebFeaturesFlag groupDogfoodingInternalOnly = 41; +inline bool WebFeatures::_internal_has_groupdogfoodinginternalonly() const { + bool value = (_has_bits_[1] & 0x00000040u) != 0; + return value; +} +inline bool WebFeatures::has_groupdogfoodinginternalonly() const { + return _internal_has_groupdogfoodinginternalonly(); +} +inline void WebFeatures::clear_groupdogfoodinginternalonly() { + groupdogfoodinginternalonly_ = 0; + _has_bits_[1] &= ~0x00000040u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_groupdogfoodinginternalonly() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(groupdogfoodinginternalonly_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::groupdogfoodinginternalonly() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.groupDogfoodingInternalOnly) + return _internal_groupdogfoodinginternalonly(); +} +inline void WebFeatures::_internal_set_groupdogfoodinginternalonly(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[1] |= 0x00000040u; + groupdogfoodinginternalonly_ = value; +} +inline void WebFeatures::set_groupdogfoodinginternalonly(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_groupdogfoodinginternalonly(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.groupDogfoodingInternalOnly) +} + +// optional .proto.WebFeatures.WebFeaturesFlag settingsSync = 42; +inline bool WebFeatures::_internal_has_settingssync() const { + bool value = (_has_bits_[1] & 0x00000080u) != 0; + return value; +} +inline bool WebFeatures::has_settingssync() const { + return _internal_has_settingssync(); +} +inline void WebFeatures::clear_settingssync() { + settingssync_ = 0; + _has_bits_[1] &= ~0x00000080u; +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::_internal_settingssync() const { + return static_cast< ::proto::WebFeatures_WebFeaturesFlag >(settingssync_); +} +inline ::proto::WebFeatures_WebFeaturesFlag WebFeatures::settingssync() const { + // @@protoc_insertion_point(field_get:proto.WebFeatures.settingsSync) + return _internal_settingssync(); +} +inline void WebFeatures::_internal_set_settingssync(::proto::WebFeatures_WebFeaturesFlag value) { + assert(::proto::WebFeatures_WebFeaturesFlag_IsValid(value)); + _has_bits_[1] |= 0x00000080u; + settingssync_ = value; +} +inline void WebFeatures::set_settingssync(::proto::WebFeatures_WebFeaturesFlag value) { + _internal_set_settingssync(value); + // @@protoc_insertion_point(field_set:proto.WebFeatures.settingsSync) +} + +// ------------------------------------------------------------------- + +// NotificationMessageInfo + +// optional .proto.MessageKey key = 1; +inline bool NotificationMessageInfo::_internal_has_key() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + PROTOBUF_ASSUME(!value || key_ != nullptr); + return value; +} +inline bool NotificationMessageInfo::has_key() const { + return _internal_has_key(); +} +inline void NotificationMessageInfo::clear_key() { + if (key_ != nullptr) key_->Clear(); + _has_bits_[0] &= ~0x00000002u; +} +inline const ::proto::MessageKey& NotificationMessageInfo::_internal_key() const { + const ::proto::MessageKey* p = key_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::MessageKey&>( + ::proto::_MessageKey_default_instance_); +} +inline const ::proto::MessageKey& NotificationMessageInfo::key() const { + // @@protoc_insertion_point(field_get:proto.NotificationMessageInfo.key) + return _internal_key(); +} +inline void NotificationMessageInfo::unsafe_arena_set_allocated_key( + ::proto::MessageKey* key) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(key_); + } + key_ = key; + if (key) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.NotificationMessageInfo.key) +} +inline ::proto::MessageKey* NotificationMessageInfo::release_key() { + _has_bits_[0] &= ~0x00000002u; + ::proto::MessageKey* temp = key_; + key_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::MessageKey* NotificationMessageInfo::unsafe_arena_release_key() { + // @@protoc_insertion_point(field_release:proto.NotificationMessageInfo.key) + _has_bits_[0] &= ~0x00000002u; + ::proto::MessageKey* temp = key_; + key_ = nullptr; + return temp; +} +inline ::proto::MessageKey* NotificationMessageInfo::_internal_mutable_key() { + _has_bits_[0] |= 0x00000002u; + if (key_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArena()); + key_ = p; + } + return key_; +} +inline ::proto::MessageKey* NotificationMessageInfo::mutable_key() { + // @@protoc_insertion_point(field_mutable:proto.NotificationMessageInfo.key) + return _internal_mutable_key(); +} +inline void NotificationMessageInfo::set_allocated_key(::proto::MessageKey* key) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete key_; + } + if (key) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(key); + if (message_arena != submessage_arena) { + key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, key, submessage_arena); + } + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + key_ = key; + // @@protoc_insertion_point(field_set_allocated:proto.NotificationMessageInfo.key) +} + +// optional .proto.Message message = 2; +inline bool NotificationMessageInfo::_internal_has_message() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || message_ != nullptr); + return value; +} +inline bool NotificationMessageInfo::has_message() const { + return _internal_has_message(); +} +inline void NotificationMessageInfo::clear_message() { + if (message_ != nullptr) message_->Clear(); + _has_bits_[0] &= ~0x00000004u; +} +inline const ::proto::Message& NotificationMessageInfo::_internal_message() const { + const ::proto::Message* p = message_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::Message&>( + ::proto::_Message_default_instance_); +} +inline const ::proto::Message& NotificationMessageInfo::message() const { + // @@protoc_insertion_point(field_get:proto.NotificationMessageInfo.message) + return _internal_message(); +} +inline void NotificationMessageInfo::unsafe_arena_set_allocated_message( + ::proto::Message* message) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(message_); + } + message_ = message; + if (message) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.NotificationMessageInfo.message) +} +inline ::proto::Message* NotificationMessageInfo::release_message() { + _has_bits_[0] &= ~0x00000004u; + ::proto::Message* temp = message_; + message_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::Message* NotificationMessageInfo::unsafe_arena_release_message() { + // @@protoc_insertion_point(field_release:proto.NotificationMessageInfo.message) + _has_bits_[0] &= ~0x00000004u; + ::proto::Message* temp = message_; + message_ = nullptr; + return temp; +} +inline ::proto::Message* NotificationMessageInfo::_internal_mutable_message() { + _has_bits_[0] |= 0x00000004u; + if (message_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::Message>(GetArena()); + message_ = p; + } + return message_; +} +inline ::proto::Message* NotificationMessageInfo::mutable_message() { + // @@protoc_insertion_point(field_mutable:proto.NotificationMessageInfo.message) + return _internal_mutable_message(); +} +inline void NotificationMessageInfo::set_allocated_message(::proto::Message* message) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete message_; + } + if (message) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(message); + if (message_arena != submessage_arena) { + message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, message, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + message_ = message; + // @@protoc_insertion_point(field_set_allocated:proto.NotificationMessageInfo.message) +} + +// optional uint64 messageTimestamp = 3; +inline bool NotificationMessageInfo::_internal_has_messagetimestamp() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool NotificationMessageInfo::has_messagetimestamp() const { + return _internal_has_messagetimestamp(); +} +inline void NotificationMessageInfo::clear_messagetimestamp() { + messagetimestamp_ = PROTOBUF_ULONGLONG(0); + _has_bits_[0] &= ~0x00000008u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 NotificationMessageInfo::_internal_messagetimestamp() const { + return messagetimestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 NotificationMessageInfo::messagetimestamp() const { + // @@protoc_insertion_point(field_get:proto.NotificationMessageInfo.messageTimestamp) + return _internal_messagetimestamp(); +} +inline void NotificationMessageInfo::_internal_set_messagetimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _has_bits_[0] |= 0x00000008u; + messagetimestamp_ = value; +} +inline void NotificationMessageInfo::set_messagetimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_messagetimestamp(value); + // @@protoc_insertion_point(field_set:proto.NotificationMessageInfo.messageTimestamp) +} + +// optional string participant = 4; +inline bool NotificationMessageInfo::_internal_has_participant() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool NotificationMessageInfo::has_participant() const { + return _internal_has_participant(); +} +inline void NotificationMessageInfo::clear_participant() { + participant_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& NotificationMessageInfo::participant() const { + // @@protoc_insertion_point(field_get:proto.NotificationMessageInfo.participant) + return _internal_participant(); +} +inline void NotificationMessageInfo::set_participant(const std::string& value) { + _internal_set_participant(value); + // @@protoc_insertion_point(field_set:proto.NotificationMessageInfo.participant) +} +inline std::string* NotificationMessageInfo::mutable_participant() { + // @@protoc_insertion_point(field_mutable:proto.NotificationMessageInfo.participant) + return _internal_mutable_participant(); +} +inline const std::string& NotificationMessageInfo::_internal_participant() const { + return participant_.Get(); +} +inline void NotificationMessageInfo::_internal_set_participant(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void NotificationMessageInfo::set_participant(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + participant_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.NotificationMessageInfo.participant) +} +inline void NotificationMessageInfo::set_participant(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.NotificationMessageInfo.participant) +} +inline void NotificationMessageInfo::set_participant(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.NotificationMessageInfo.participant) +} +inline std::string* NotificationMessageInfo::_internal_mutable_participant() { + _has_bits_[0] |= 0x00000001u; + return participant_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* NotificationMessageInfo::release_participant() { + // @@protoc_insertion_point(field_release:proto.NotificationMessageInfo.participant) + if (!_internal_has_participant()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return participant_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void NotificationMessageInfo::set_allocated_participant(std::string* participant) { + if (participant != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + participant_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), participant, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.NotificationMessageInfo.participant) +} + +// ------------------------------------------------------------------- + +// WebNotificationsInfo + +// optional uint64 timestamp = 2; +inline bool WebNotificationsInfo::_internal_has_timestamp() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool WebNotificationsInfo::has_timestamp() const { + return _internal_has_timestamp(); +} +inline void WebNotificationsInfo::clear_timestamp() { + timestamp_ = PROTOBUF_ULONGLONG(0); + _has_bits_[0] &= ~0x00000001u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 WebNotificationsInfo::_internal_timestamp() const { + return timestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 WebNotificationsInfo::timestamp() const { + // @@protoc_insertion_point(field_get:proto.WebNotificationsInfo.timestamp) + return _internal_timestamp(); +} +inline void WebNotificationsInfo::_internal_set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _has_bits_[0] |= 0x00000001u; + timestamp_ = value; +} +inline void WebNotificationsInfo::set_timestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_timestamp(value); + // @@protoc_insertion_point(field_set:proto.WebNotificationsInfo.timestamp) +} + +// optional uint32 unreadChats = 3; +inline bool WebNotificationsInfo::_internal_has_unreadchats() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool WebNotificationsInfo::has_unreadchats() const { + return _internal_has_unreadchats(); +} +inline void WebNotificationsInfo::clear_unreadchats() { + unreadchats_ = 0u; + _has_bits_[0] &= ~0x00000002u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 WebNotificationsInfo::_internal_unreadchats() const { + return unreadchats_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 WebNotificationsInfo::unreadchats() const { + // @@protoc_insertion_point(field_get:proto.WebNotificationsInfo.unreadChats) + return _internal_unreadchats(); +} +inline void WebNotificationsInfo::_internal_set_unreadchats(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000002u; + unreadchats_ = value; +} +inline void WebNotificationsInfo::set_unreadchats(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_unreadchats(value); + // @@protoc_insertion_point(field_set:proto.WebNotificationsInfo.unreadChats) +} + +// optional uint32 notifyMessageCount = 4; +inline bool WebNotificationsInfo::_internal_has_notifymessagecount() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool WebNotificationsInfo::has_notifymessagecount() const { + return _internal_has_notifymessagecount(); +} +inline void WebNotificationsInfo::clear_notifymessagecount() { + notifymessagecount_ = 0u; + _has_bits_[0] &= ~0x00000004u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 WebNotificationsInfo::_internal_notifymessagecount() const { + return notifymessagecount_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 WebNotificationsInfo::notifymessagecount() const { + // @@protoc_insertion_point(field_get:proto.WebNotificationsInfo.notifyMessageCount) + return _internal_notifymessagecount(); +} +inline void WebNotificationsInfo::_internal_set_notifymessagecount(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00000004u; + notifymessagecount_ = value; +} +inline void WebNotificationsInfo::set_notifymessagecount(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_notifymessagecount(value); + // @@protoc_insertion_point(field_set:proto.WebNotificationsInfo.notifyMessageCount) +} + +// repeated .proto.WebMessageInfo notifyMessages = 5; +inline int WebNotificationsInfo::_internal_notifymessages_size() const { + return notifymessages_.size(); +} +inline int WebNotificationsInfo::notifymessages_size() const { + return _internal_notifymessages_size(); +} +inline void WebNotificationsInfo::clear_notifymessages() { + notifymessages_.Clear(); +} +inline ::proto::WebMessageInfo* WebNotificationsInfo::mutable_notifymessages(int index) { + // @@protoc_insertion_point(field_mutable:proto.WebNotificationsInfo.notifyMessages) + return notifymessages_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::WebMessageInfo >* +WebNotificationsInfo::mutable_notifymessages() { + // @@protoc_insertion_point(field_mutable_list:proto.WebNotificationsInfo.notifyMessages) + return ¬ifymessages_; +} +inline const ::proto::WebMessageInfo& WebNotificationsInfo::_internal_notifymessages(int index) const { + return notifymessages_.Get(index); +} +inline const ::proto::WebMessageInfo& WebNotificationsInfo::notifymessages(int index) const { + // @@protoc_insertion_point(field_get:proto.WebNotificationsInfo.notifyMessages) + return _internal_notifymessages(index); +} +inline ::proto::WebMessageInfo* WebNotificationsInfo::_internal_add_notifymessages() { + return notifymessages_.Add(); +} +inline ::proto::WebMessageInfo* WebNotificationsInfo::add_notifymessages() { + // @@protoc_insertion_point(field_add:proto.WebNotificationsInfo.notifyMessages) + return _internal_add_notifymessages(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::WebMessageInfo >& +WebNotificationsInfo::notifymessages() const { + // @@protoc_insertion_point(field_list:proto.WebNotificationsInfo.notifyMessages) + return notifymessages_; +} + +// ------------------------------------------------------------------- + +// PaymentInfo + +// optional .proto.PaymentInfo.PaymentInfoCurrency currencyDeprecated = 1; +inline bool PaymentInfo::_internal_has_currencydeprecated() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool PaymentInfo::has_currencydeprecated() const { + return _internal_has_currencydeprecated(); +} +inline void PaymentInfo::clear_currencydeprecated() { + currencydeprecated_ = 0; + _has_bits_[0] &= ~0x00000040u; +} +inline ::proto::PaymentInfo_PaymentInfoCurrency PaymentInfo::_internal_currencydeprecated() const { + return static_cast< ::proto::PaymentInfo_PaymentInfoCurrency >(currencydeprecated_); +} +inline ::proto::PaymentInfo_PaymentInfoCurrency PaymentInfo::currencydeprecated() const { + // @@protoc_insertion_point(field_get:proto.PaymentInfo.currencyDeprecated) + return _internal_currencydeprecated(); +} +inline void PaymentInfo::_internal_set_currencydeprecated(::proto::PaymentInfo_PaymentInfoCurrency value) { + assert(::proto::PaymentInfo_PaymentInfoCurrency_IsValid(value)); + _has_bits_[0] |= 0x00000040u; + currencydeprecated_ = value; +} +inline void PaymentInfo::set_currencydeprecated(::proto::PaymentInfo_PaymentInfoCurrency value) { + _internal_set_currencydeprecated(value); + // @@protoc_insertion_point(field_set:proto.PaymentInfo.currencyDeprecated) +} + +// optional uint64 amount1000 = 2; +inline bool PaymentInfo::_internal_has_amount1000() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool PaymentInfo::has_amount1000() const { + return _internal_has_amount1000(); +} +inline void PaymentInfo::clear_amount1000() { + amount1000_ = PROTOBUF_ULONGLONG(0); + _has_bits_[0] &= ~0x00000020u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 PaymentInfo::_internal_amount1000() const { + return amount1000_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 PaymentInfo::amount1000() const { + // @@protoc_insertion_point(field_get:proto.PaymentInfo.amount1000) + return _internal_amount1000(); +} +inline void PaymentInfo::_internal_set_amount1000(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _has_bits_[0] |= 0x00000020u; + amount1000_ = value; +} +inline void PaymentInfo::set_amount1000(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_amount1000(value); + // @@protoc_insertion_point(field_set:proto.PaymentInfo.amount1000) +} + +// optional string receiverJid = 3; +inline bool PaymentInfo::_internal_has_receiverjid() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool PaymentInfo::has_receiverjid() const { + return _internal_has_receiverjid(); +} +inline void PaymentInfo::clear_receiverjid() { + receiverjid_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& PaymentInfo::receiverjid() const { + // @@protoc_insertion_point(field_get:proto.PaymentInfo.receiverJid) + return _internal_receiverjid(); +} +inline void PaymentInfo::set_receiverjid(const std::string& value) { + _internal_set_receiverjid(value); + // @@protoc_insertion_point(field_set:proto.PaymentInfo.receiverJid) +} +inline std::string* PaymentInfo::mutable_receiverjid() { + // @@protoc_insertion_point(field_mutable:proto.PaymentInfo.receiverJid) + return _internal_mutable_receiverjid(); +} +inline const std::string& PaymentInfo::_internal_receiverjid() const { + return receiverjid_.Get(); +} +inline void PaymentInfo::_internal_set_receiverjid(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + receiverjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void PaymentInfo::set_receiverjid(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + receiverjid_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.PaymentInfo.receiverJid) +} +inline void PaymentInfo::set_receiverjid(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + receiverjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.PaymentInfo.receiverJid) +} +inline void PaymentInfo::set_receiverjid(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + receiverjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.PaymentInfo.receiverJid) +} +inline std::string* PaymentInfo::_internal_mutable_receiverjid() { + _has_bits_[0] |= 0x00000001u; + return receiverjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* PaymentInfo::release_receiverjid() { + // @@protoc_insertion_point(field_release:proto.PaymentInfo.receiverJid) + if (!_internal_has_receiverjid()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return receiverjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void PaymentInfo::set_allocated_receiverjid(std::string* receiverjid) { + if (receiverjid != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + receiverjid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), receiverjid, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.PaymentInfo.receiverJid) +} + +// optional .proto.PaymentInfo.PaymentInfoStatus status = 4; +inline bool PaymentInfo::_internal_has_status() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + return value; +} +inline bool PaymentInfo::has_status() const { + return _internal_has_status(); +} +inline void PaymentInfo::clear_status() { + status_ = 0; + _has_bits_[0] &= ~0x00000080u; +} +inline ::proto::PaymentInfo_PaymentInfoStatus PaymentInfo::_internal_status() const { + return static_cast< ::proto::PaymentInfo_PaymentInfoStatus >(status_); +} +inline ::proto::PaymentInfo_PaymentInfoStatus PaymentInfo::status() const { + // @@protoc_insertion_point(field_get:proto.PaymentInfo.status) + return _internal_status(); +} +inline void PaymentInfo::_internal_set_status(::proto::PaymentInfo_PaymentInfoStatus value) { + assert(::proto::PaymentInfo_PaymentInfoStatus_IsValid(value)); + _has_bits_[0] |= 0x00000080u; + status_ = value; +} +inline void PaymentInfo::set_status(::proto::PaymentInfo_PaymentInfoStatus value) { + _internal_set_status(value); + // @@protoc_insertion_point(field_set:proto.PaymentInfo.status) +} + +// optional uint64 transactionTimestamp = 5; +inline bool PaymentInfo::_internal_has_transactiontimestamp() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + return value; +} +inline bool PaymentInfo::has_transactiontimestamp() const { + return _internal_has_transactiontimestamp(); +} +inline void PaymentInfo::clear_transactiontimestamp() { + transactiontimestamp_ = PROTOBUF_ULONGLONG(0); + _has_bits_[0] &= ~0x00000100u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 PaymentInfo::_internal_transactiontimestamp() const { + return transactiontimestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 PaymentInfo::transactiontimestamp() const { + // @@protoc_insertion_point(field_get:proto.PaymentInfo.transactionTimestamp) + return _internal_transactiontimestamp(); +} +inline void PaymentInfo::_internal_set_transactiontimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _has_bits_[0] |= 0x00000100u; + transactiontimestamp_ = value; +} +inline void PaymentInfo::set_transactiontimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_transactiontimestamp(value); + // @@protoc_insertion_point(field_set:proto.PaymentInfo.transactionTimestamp) +} + +// optional .proto.MessageKey requestMessageKey = 6; +inline bool PaymentInfo::_internal_has_requestmessagekey() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + PROTOBUF_ASSUME(!value || requestmessagekey_ != nullptr); + return value; +} +inline bool PaymentInfo::has_requestmessagekey() const { + return _internal_has_requestmessagekey(); +} +inline void PaymentInfo::clear_requestmessagekey() { + if (requestmessagekey_ != nullptr) requestmessagekey_->Clear(); + _has_bits_[0] &= ~0x00000004u; +} +inline const ::proto::MessageKey& PaymentInfo::_internal_requestmessagekey() const { + const ::proto::MessageKey* p = requestmessagekey_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::MessageKey&>( + ::proto::_MessageKey_default_instance_); +} +inline const ::proto::MessageKey& PaymentInfo::requestmessagekey() const { + // @@protoc_insertion_point(field_get:proto.PaymentInfo.requestMessageKey) + return _internal_requestmessagekey(); +} +inline void PaymentInfo::unsafe_arena_set_allocated_requestmessagekey( + ::proto::MessageKey* requestmessagekey) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(requestmessagekey_); + } + requestmessagekey_ = requestmessagekey; + if (requestmessagekey) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.PaymentInfo.requestMessageKey) +} +inline ::proto::MessageKey* PaymentInfo::release_requestmessagekey() { + _has_bits_[0] &= ~0x00000004u; + ::proto::MessageKey* temp = requestmessagekey_; + requestmessagekey_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::MessageKey* PaymentInfo::unsafe_arena_release_requestmessagekey() { + // @@protoc_insertion_point(field_release:proto.PaymentInfo.requestMessageKey) + _has_bits_[0] &= ~0x00000004u; + ::proto::MessageKey* temp = requestmessagekey_; + requestmessagekey_ = nullptr; + return temp; +} +inline ::proto::MessageKey* PaymentInfo::_internal_mutable_requestmessagekey() { + _has_bits_[0] |= 0x00000004u; + if (requestmessagekey_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArena()); + requestmessagekey_ = p; + } + return requestmessagekey_; +} +inline ::proto::MessageKey* PaymentInfo::mutable_requestmessagekey() { + // @@protoc_insertion_point(field_mutable:proto.PaymentInfo.requestMessageKey) + return _internal_mutable_requestmessagekey(); +} +inline void PaymentInfo::set_allocated_requestmessagekey(::proto::MessageKey* requestmessagekey) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete requestmessagekey_; + } + if (requestmessagekey) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(requestmessagekey); + if (message_arena != submessage_arena) { + requestmessagekey = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, requestmessagekey, submessage_arena); + } + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + requestmessagekey_ = requestmessagekey; + // @@protoc_insertion_point(field_set_allocated:proto.PaymentInfo.requestMessageKey) +} + +// optional uint64 expiryTimestamp = 7; +inline bool PaymentInfo::_internal_has_expirytimestamp() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + return value; +} +inline bool PaymentInfo::has_expirytimestamp() const { + return _internal_has_expirytimestamp(); +} +inline void PaymentInfo::clear_expirytimestamp() { + expirytimestamp_ = PROTOBUF_ULONGLONG(0); + _has_bits_[0] &= ~0x00000200u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 PaymentInfo::_internal_expirytimestamp() const { + return expirytimestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 PaymentInfo::expirytimestamp() const { + // @@protoc_insertion_point(field_get:proto.PaymentInfo.expiryTimestamp) + return _internal_expirytimestamp(); +} +inline void PaymentInfo::_internal_set_expirytimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _has_bits_[0] |= 0x00000200u; + expirytimestamp_ = value; +} +inline void PaymentInfo::set_expirytimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_expirytimestamp(value); + // @@protoc_insertion_point(field_set:proto.PaymentInfo.expiryTimestamp) +} + +// optional bool futureproofed = 8; +inline bool PaymentInfo::_internal_has_futureproofed() const { + bool value = (_has_bits_[0] & 0x00000400u) != 0; + return value; +} +inline bool PaymentInfo::has_futureproofed() const { + return _internal_has_futureproofed(); +} +inline void PaymentInfo::clear_futureproofed() { + futureproofed_ = false; + _has_bits_[0] &= ~0x00000400u; +} +inline bool PaymentInfo::_internal_futureproofed() const { + return futureproofed_; +} +inline bool PaymentInfo::futureproofed() const { + // @@protoc_insertion_point(field_get:proto.PaymentInfo.futureproofed) + return _internal_futureproofed(); +} +inline void PaymentInfo::_internal_set_futureproofed(bool value) { + _has_bits_[0] |= 0x00000400u; + futureproofed_ = value; +} +inline void PaymentInfo::set_futureproofed(bool value) { + _internal_set_futureproofed(value); + // @@protoc_insertion_point(field_set:proto.PaymentInfo.futureproofed) +} + +// optional string currency = 9; +inline bool PaymentInfo::_internal_has_currency() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool PaymentInfo::has_currency() const { + return _internal_has_currency(); +} +inline void PaymentInfo::clear_currency() { + currency_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& PaymentInfo::currency() const { + // @@protoc_insertion_point(field_get:proto.PaymentInfo.currency) + return _internal_currency(); +} +inline void PaymentInfo::set_currency(const std::string& value) { + _internal_set_currency(value); + // @@protoc_insertion_point(field_set:proto.PaymentInfo.currency) +} +inline std::string* PaymentInfo::mutable_currency() { + // @@protoc_insertion_point(field_mutable:proto.PaymentInfo.currency) + return _internal_mutable_currency(); +} +inline const std::string& PaymentInfo::_internal_currency() const { + return currency_.Get(); +} +inline void PaymentInfo::_internal_set_currency(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + currency_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void PaymentInfo::set_currency(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + currency_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.PaymentInfo.currency) +} +inline void PaymentInfo::set_currency(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + currency_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.PaymentInfo.currency) +} +inline void PaymentInfo::set_currency(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + currency_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.PaymentInfo.currency) +} +inline std::string* PaymentInfo::_internal_mutable_currency() { + _has_bits_[0] |= 0x00000002u; + return currency_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* PaymentInfo::release_currency() { + // @@protoc_insertion_point(field_release:proto.PaymentInfo.currency) + if (!_internal_has_currency()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return currency_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void PaymentInfo::set_allocated_currency(std::string* currency) { + if (currency != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + currency_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), currency, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.PaymentInfo.currency) +} + +// optional .proto.PaymentInfo.PaymentInfoTxnStatus txnStatus = 10; +inline bool PaymentInfo::_internal_has_txnstatus() const { + bool value = (_has_bits_[0] & 0x00001000u) != 0; + return value; +} +inline bool PaymentInfo::has_txnstatus() const { + return _internal_has_txnstatus(); +} +inline void PaymentInfo::clear_txnstatus() { + txnstatus_ = 0; + _has_bits_[0] &= ~0x00001000u; +} +inline ::proto::PaymentInfo_PaymentInfoTxnStatus PaymentInfo::_internal_txnstatus() const { + return static_cast< ::proto::PaymentInfo_PaymentInfoTxnStatus >(txnstatus_); +} +inline ::proto::PaymentInfo_PaymentInfoTxnStatus PaymentInfo::txnstatus() const { + // @@protoc_insertion_point(field_get:proto.PaymentInfo.txnStatus) + return _internal_txnstatus(); +} +inline void PaymentInfo::_internal_set_txnstatus(::proto::PaymentInfo_PaymentInfoTxnStatus value) { + assert(::proto::PaymentInfo_PaymentInfoTxnStatus_IsValid(value)); + _has_bits_[0] |= 0x00001000u; + txnstatus_ = value; +} +inline void PaymentInfo::set_txnstatus(::proto::PaymentInfo_PaymentInfoTxnStatus value) { + _internal_set_txnstatus(value); + // @@protoc_insertion_point(field_set:proto.PaymentInfo.txnStatus) +} + +// optional bool useNoviFiatFormat = 11; +inline bool PaymentInfo::_internal_has_usenovifiatformat() const { + bool value = (_has_bits_[0] & 0x00000800u) != 0; + return value; +} +inline bool PaymentInfo::has_usenovifiatformat() const { + return _internal_has_usenovifiatformat(); +} +inline void PaymentInfo::clear_usenovifiatformat() { + usenovifiatformat_ = false; + _has_bits_[0] &= ~0x00000800u; +} +inline bool PaymentInfo::_internal_usenovifiatformat() const { + return usenovifiatformat_; +} +inline bool PaymentInfo::usenovifiatformat() const { + // @@protoc_insertion_point(field_get:proto.PaymentInfo.useNoviFiatFormat) + return _internal_usenovifiatformat(); +} +inline void PaymentInfo::_internal_set_usenovifiatformat(bool value) { + _has_bits_[0] |= 0x00000800u; + usenovifiatformat_ = value; +} +inline void PaymentInfo::set_usenovifiatformat(bool value) { + _internal_set_usenovifiatformat(value); + // @@protoc_insertion_point(field_set:proto.PaymentInfo.useNoviFiatFormat) +} + +// optional .proto.PaymentMoney primaryAmount = 12; +inline bool PaymentInfo::_internal_has_primaryamount() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + PROTOBUF_ASSUME(!value || primaryamount_ != nullptr); + return value; +} +inline bool PaymentInfo::has_primaryamount() const { + return _internal_has_primaryamount(); +} +inline void PaymentInfo::clear_primaryamount() { + if (primaryamount_ != nullptr) primaryamount_->Clear(); + _has_bits_[0] &= ~0x00000008u; +} +inline const ::proto::PaymentMoney& PaymentInfo::_internal_primaryamount() const { + const ::proto::PaymentMoney* p = primaryamount_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::PaymentMoney&>( + ::proto::_PaymentMoney_default_instance_); +} +inline const ::proto::PaymentMoney& PaymentInfo::primaryamount() const { + // @@protoc_insertion_point(field_get:proto.PaymentInfo.primaryAmount) + return _internal_primaryamount(); +} +inline void PaymentInfo::unsafe_arena_set_allocated_primaryamount( + ::proto::PaymentMoney* primaryamount) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(primaryamount_); + } + primaryamount_ = primaryamount; + if (primaryamount) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.PaymentInfo.primaryAmount) +} +inline ::proto::PaymentMoney* PaymentInfo::release_primaryamount() { + _has_bits_[0] &= ~0x00000008u; + ::proto::PaymentMoney* temp = primaryamount_; + primaryamount_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::PaymentMoney* PaymentInfo::unsafe_arena_release_primaryamount() { + // @@protoc_insertion_point(field_release:proto.PaymentInfo.primaryAmount) + _has_bits_[0] &= ~0x00000008u; + ::proto::PaymentMoney* temp = primaryamount_; + primaryamount_ = nullptr; + return temp; +} +inline ::proto::PaymentMoney* PaymentInfo::_internal_mutable_primaryamount() { + _has_bits_[0] |= 0x00000008u; + if (primaryamount_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::PaymentMoney>(GetArena()); + primaryamount_ = p; + } + return primaryamount_; +} +inline ::proto::PaymentMoney* PaymentInfo::mutable_primaryamount() { + // @@protoc_insertion_point(field_mutable:proto.PaymentInfo.primaryAmount) + return _internal_mutable_primaryamount(); +} +inline void PaymentInfo::set_allocated_primaryamount(::proto::PaymentMoney* primaryamount) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete primaryamount_; + } + if (primaryamount) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(primaryamount); + if (message_arena != submessage_arena) { + primaryamount = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, primaryamount, submessage_arena); + } + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + primaryamount_ = primaryamount; + // @@protoc_insertion_point(field_set_allocated:proto.PaymentInfo.primaryAmount) +} + +// optional .proto.PaymentMoney exchangeAmount = 13; +inline bool PaymentInfo::_internal_has_exchangeamount() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + PROTOBUF_ASSUME(!value || exchangeamount_ != nullptr); + return value; +} +inline bool PaymentInfo::has_exchangeamount() const { + return _internal_has_exchangeamount(); +} +inline void PaymentInfo::clear_exchangeamount() { + if (exchangeamount_ != nullptr) exchangeamount_->Clear(); + _has_bits_[0] &= ~0x00000010u; +} +inline const ::proto::PaymentMoney& PaymentInfo::_internal_exchangeamount() const { + const ::proto::PaymentMoney* p = exchangeamount_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::PaymentMoney&>( + ::proto::_PaymentMoney_default_instance_); +} +inline const ::proto::PaymentMoney& PaymentInfo::exchangeamount() const { + // @@protoc_insertion_point(field_get:proto.PaymentInfo.exchangeAmount) + return _internal_exchangeamount(); +} +inline void PaymentInfo::unsafe_arena_set_allocated_exchangeamount( + ::proto::PaymentMoney* exchangeamount) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(exchangeamount_); + } + exchangeamount_ = exchangeamount; + if (exchangeamount) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.PaymentInfo.exchangeAmount) +} +inline ::proto::PaymentMoney* PaymentInfo::release_exchangeamount() { + _has_bits_[0] &= ~0x00000010u; + ::proto::PaymentMoney* temp = exchangeamount_; + exchangeamount_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::PaymentMoney* PaymentInfo::unsafe_arena_release_exchangeamount() { + // @@protoc_insertion_point(field_release:proto.PaymentInfo.exchangeAmount) + _has_bits_[0] &= ~0x00000010u; + ::proto::PaymentMoney* temp = exchangeamount_; + exchangeamount_ = nullptr; + return temp; +} +inline ::proto::PaymentMoney* PaymentInfo::_internal_mutable_exchangeamount() { + _has_bits_[0] |= 0x00000010u; + if (exchangeamount_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::PaymentMoney>(GetArena()); + exchangeamount_ = p; + } + return exchangeamount_; +} +inline ::proto::PaymentMoney* PaymentInfo::mutable_exchangeamount() { + // @@protoc_insertion_point(field_mutable:proto.PaymentInfo.exchangeAmount) + return _internal_mutable_exchangeamount(); +} +inline void PaymentInfo::set_allocated_exchangeamount(::proto::PaymentMoney* exchangeamount) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete exchangeamount_; + } + if (exchangeamount) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(exchangeamount); + if (message_arena != submessage_arena) { + exchangeamount = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, exchangeamount, submessage_arena); + } + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + exchangeamount_ = exchangeamount; + // @@protoc_insertion_point(field_set_allocated:proto.PaymentInfo.exchangeAmount) +} + +// ------------------------------------------------------------------- + +// WebMessageInfo + +// required .proto.MessageKey key = 1; +inline bool WebMessageInfo::_internal_has_key() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + PROTOBUF_ASSUME(!value || key_ != nullptr); + return value; +} +inline bool WebMessageInfo::has_key() const { + return _internal_has_key(); +} +inline void WebMessageInfo::clear_key() { + if (key_ != nullptr) key_->Clear(); + _has_bits_[0] &= ~0x00000010u; +} +inline const ::proto::MessageKey& WebMessageInfo::_internal_key() const { + const ::proto::MessageKey* p = key_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::MessageKey&>( + ::proto::_MessageKey_default_instance_); +} +inline const ::proto::MessageKey& WebMessageInfo::key() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.key) + return _internal_key(); +} +inline void WebMessageInfo::unsafe_arena_set_allocated_key( + ::proto::MessageKey* key) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(key_); + } + key_ = key; + if (key) { + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.WebMessageInfo.key) +} +inline ::proto::MessageKey* WebMessageInfo::release_key() { + _has_bits_[0] &= ~0x00000010u; + ::proto::MessageKey* temp = key_; + key_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::MessageKey* WebMessageInfo::unsafe_arena_release_key() { + // @@protoc_insertion_point(field_release:proto.WebMessageInfo.key) + _has_bits_[0] &= ~0x00000010u; + ::proto::MessageKey* temp = key_; + key_ = nullptr; + return temp; +} +inline ::proto::MessageKey* WebMessageInfo::_internal_mutable_key() { + _has_bits_[0] |= 0x00000010u; + if (key_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArena()); + key_ = p; + } + return key_; +} +inline ::proto::MessageKey* WebMessageInfo::mutable_key() { + // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.key) + return _internal_mutable_key(); +} +inline void WebMessageInfo::set_allocated_key(::proto::MessageKey* key) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete key_; + } + if (key) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(key); + if (message_arena != submessage_arena) { + key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, key, submessage_arena); + } + _has_bits_[0] |= 0x00000010u; + } else { + _has_bits_[0] &= ~0x00000010u; + } + key_ = key; + // @@protoc_insertion_point(field_set_allocated:proto.WebMessageInfo.key) +} + +// optional .proto.Message message = 2; +inline bool WebMessageInfo::_internal_has_message() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + PROTOBUF_ASSUME(!value || message_ != nullptr); + return value; +} +inline bool WebMessageInfo::has_message() const { + return _internal_has_message(); +} +inline void WebMessageInfo::clear_message() { + if (message_ != nullptr) message_->Clear(); + _has_bits_[0] &= ~0x00000020u; +} +inline const ::proto::Message& WebMessageInfo::_internal_message() const { + const ::proto::Message* p = message_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::Message&>( + ::proto::_Message_default_instance_); +} +inline const ::proto::Message& WebMessageInfo::message() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.message) + return _internal_message(); +} +inline void WebMessageInfo::unsafe_arena_set_allocated_message( + ::proto::Message* message) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(message_); + } + message_ = message; + if (message) { + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.WebMessageInfo.message) +} +inline ::proto::Message* WebMessageInfo::release_message() { + _has_bits_[0] &= ~0x00000020u; + ::proto::Message* temp = message_; + message_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::Message* WebMessageInfo::unsafe_arena_release_message() { + // @@protoc_insertion_point(field_release:proto.WebMessageInfo.message) + _has_bits_[0] &= ~0x00000020u; + ::proto::Message* temp = message_; + message_ = nullptr; + return temp; +} +inline ::proto::Message* WebMessageInfo::_internal_mutable_message() { + _has_bits_[0] |= 0x00000020u; + if (message_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::Message>(GetArena()); + message_ = p; + } + return message_; +} +inline ::proto::Message* WebMessageInfo::mutable_message() { + // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.message) + return _internal_mutable_message(); +} +inline void WebMessageInfo::set_allocated_message(::proto::Message* message) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete message_; + } + if (message) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(message); + if (message_arena != submessage_arena) { + message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, message, submessage_arena); + } + _has_bits_[0] |= 0x00000020u; + } else { + _has_bits_[0] &= ~0x00000020u; + } + message_ = message; + // @@protoc_insertion_point(field_set_allocated:proto.WebMessageInfo.message) +} + +// optional uint64 messageTimestamp = 3; +inline bool WebMessageInfo::_internal_has_messagetimestamp() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + return value; +} +inline bool WebMessageInfo::has_messagetimestamp() const { + return _internal_has_messagetimestamp(); +} +inline void WebMessageInfo::clear_messagetimestamp() { + messagetimestamp_ = PROTOBUF_ULONGLONG(0); + _has_bits_[0] &= ~0x00000200u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 WebMessageInfo::_internal_messagetimestamp() const { + return messagetimestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 WebMessageInfo::messagetimestamp() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.messageTimestamp) + return _internal_messagetimestamp(); +} +inline void WebMessageInfo::_internal_set_messagetimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _has_bits_[0] |= 0x00000200u; + messagetimestamp_ = value; +} +inline void WebMessageInfo::set_messagetimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_messagetimestamp(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.messageTimestamp) +} + +// optional .proto.WebMessageInfo.WebMessageInfoStatus status = 4; +inline bool WebMessageInfo::_internal_has_status() const { + bool value = (_has_bits_[0] & 0x00000400u) != 0; + return value; +} +inline bool WebMessageInfo::has_status() const { + return _internal_has_status(); +} +inline void WebMessageInfo::clear_status() { + status_ = 0; + _has_bits_[0] &= ~0x00000400u; +} +inline ::proto::WebMessageInfo_WebMessageInfoStatus WebMessageInfo::_internal_status() const { + return static_cast< ::proto::WebMessageInfo_WebMessageInfoStatus >(status_); +} +inline ::proto::WebMessageInfo_WebMessageInfoStatus WebMessageInfo::status() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.status) + return _internal_status(); +} +inline void WebMessageInfo::_internal_set_status(::proto::WebMessageInfo_WebMessageInfoStatus value) { + assert(::proto::WebMessageInfo_WebMessageInfoStatus_IsValid(value)); + _has_bits_[0] |= 0x00000400u; + status_ = value; +} +inline void WebMessageInfo::set_status(::proto::WebMessageInfo_WebMessageInfoStatus value) { + _internal_set_status(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.status) +} + +// optional string participant = 5; +inline bool WebMessageInfo::_internal_has_participant() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool WebMessageInfo::has_participant() const { + return _internal_has_participant(); +} +inline void WebMessageInfo::clear_participant() { + participant_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& WebMessageInfo::participant() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.participant) + return _internal_participant(); +} +inline void WebMessageInfo::set_participant(const std::string& value) { + _internal_set_participant(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.participant) +} +inline std::string* WebMessageInfo::mutable_participant() { + // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.participant) + return _internal_mutable_participant(); +} +inline const std::string& WebMessageInfo::_internal_participant() const { + return participant_.Get(); +} +inline void WebMessageInfo::_internal_set_participant(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void WebMessageInfo::set_participant(std::string&& value) { + _has_bits_[0] |= 0x00000001u; + participant_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.WebMessageInfo.participant) +} +inline void WebMessageInfo::set_participant(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000001u; + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.WebMessageInfo.participant) +} +inline void WebMessageInfo::set_participant(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000001u; + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.WebMessageInfo.participant) +} +inline std::string* WebMessageInfo::_internal_mutable_participant() { + _has_bits_[0] |= 0x00000001u; + return participant_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* WebMessageInfo::release_participant() { + // @@protoc_insertion_point(field_release:proto.WebMessageInfo.participant) + if (!_internal_has_participant()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + return participant_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void WebMessageInfo::set_allocated_participant(std::string* participant) { + if (participant != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + participant_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), participant, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.WebMessageInfo.participant) +} + +// optional bool ignore = 16; +inline bool WebMessageInfo::_internal_has_ignore() const { + bool value = (_has_bits_[0] & 0x00000800u) != 0; + return value; +} +inline bool WebMessageInfo::has_ignore() const { + return _internal_has_ignore(); +} +inline void WebMessageInfo::clear_ignore() { + ignore_ = false; + _has_bits_[0] &= ~0x00000800u; +} +inline bool WebMessageInfo::_internal_ignore() const { + return ignore_; +} +inline bool WebMessageInfo::ignore() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.ignore) + return _internal_ignore(); +} +inline void WebMessageInfo::_internal_set_ignore(bool value) { + _has_bits_[0] |= 0x00000800u; + ignore_ = value; +} +inline void WebMessageInfo::set_ignore(bool value) { + _internal_set_ignore(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.ignore) +} + +// optional bool starred = 17; +inline bool WebMessageInfo::_internal_has_starred() const { + bool value = (_has_bits_[0] & 0x00001000u) != 0; + return value; +} +inline bool WebMessageInfo::has_starred() const { + return _internal_has_starred(); +} +inline void WebMessageInfo::clear_starred() { + starred_ = false; + _has_bits_[0] &= ~0x00001000u; +} +inline bool WebMessageInfo::_internal_starred() const { + return starred_; +} +inline bool WebMessageInfo::starred() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.starred) + return _internal_starred(); +} +inline void WebMessageInfo::_internal_set_starred(bool value) { + _has_bits_[0] |= 0x00001000u; + starred_ = value; +} +inline void WebMessageInfo::set_starred(bool value) { + _internal_set_starred(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.starred) +} + +// optional bool broadcast = 18; +inline bool WebMessageInfo::_internal_has_broadcast() const { + bool value = (_has_bits_[0] & 0x00002000u) != 0; + return value; +} +inline bool WebMessageInfo::has_broadcast() const { + return _internal_has_broadcast(); +} +inline void WebMessageInfo::clear_broadcast() { + broadcast_ = false; + _has_bits_[0] &= ~0x00002000u; +} +inline bool WebMessageInfo::_internal_broadcast() const { + return broadcast_; +} +inline bool WebMessageInfo::broadcast() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.broadcast) + return _internal_broadcast(); +} +inline void WebMessageInfo::_internal_set_broadcast(bool value) { + _has_bits_[0] |= 0x00002000u; + broadcast_ = value; +} +inline void WebMessageInfo::set_broadcast(bool value) { + _internal_set_broadcast(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.broadcast) +} + +// optional string pushName = 19; +inline bool WebMessageInfo::_internal_has_pushname() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool WebMessageInfo::has_pushname() const { + return _internal_has_pushname(); +} +inline void WebMessageInfo::clear_pushname() { + pushname_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& WebMessageInfo::pushname() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.pushName) + return _internal_pushname(); +} +inline void WebMessageInfo::set_pushname(const std::string& value) { + _internal_set_pushname(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.pushName) +} +inline std::string* WebMessageInfo::mutable_pushname() { + // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.pushName) + return _internal_mutable_pushname(); +} +inline const std::string& WebMessageInfo::_internal_pushname() const { + return pushname_.Get(); +} +inline void WebMessageInfo::_internal_set_pushname(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + pushname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void WebMessageInfo::set_pushname(std::string&& value) { + _has_bits_[0] |= 0x00000002u; + pushname_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.WebMessageInfo.pushName) +} +inline void WebMessageInfo::set_pushname(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000002u; + pushname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.WebMessageInfo.pushName) +} +inline void WebMessageInfo::set_pushname(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000002u; + pushname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.WebMessageInfo.pushName) +} +inline std::string* WebMessageInfo::_internal_mutable_pushname() { + _has_bits_[0] |= 0x00000002u; + return pushname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* WebMessageInfo::release_pushname() { + // @@protoc_insertion_point(field_release:proto.WebMessageInfo.pushName) + if (!_internal_has_pushname()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + return pushname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void WebMessageInfo::set_allocated_pushname(std::string* pushname) { + if (pushname != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + pushname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), pushname, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.WebMessageInfo.pushName) +} + +// optional bytes mediaCiphertextSha256 = 20; +inline bool WebMessageInfo::_internal_has_mediaciphertextsha256() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool WebMessageInfo::has_mediaciphertextsha256() const { + return _internal_has_mediaciphertextsha256(); +} +inline void WebMessageInfo::clear_mediaciphertextsha256() { + mediaciphertextsha256_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& WebMessageInfo::mediaciphertextsha256() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.mediaCiphertextSha256) + return _internal_mediaciphertextsha256(); +} +inline void WebMessageInfo::set_mediaciphertextsha256(const std::string& value) { + _internal_set_mediaciphertextsha256(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.mediaCiphertextSha256) +} +inline std::string* WebMessageInfo::mutable_mediaciphertextsha256() { + // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.mediaCiphertextSha256) + return _internal_mutable_mediaciphertextsha256(); +} +inline const std::string& WebMessageInfo::_internal_mediaciphertextsha256() const { + return mediaciphertextsha256_.Get(); +} +inline void WebMessageInfo::_internal_set_mediaciphertextsha256(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + mediaciphertextsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void WebMessageInfo::set_mediaciphertextsha256(std::string&& value) { + _has_bits_[0] |= 0x00000004u; + mediaciphertextsha256_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.WebMessageInfo.mediaCiphertextSha256) +} +inline void WebMessageInfo::set_mediaciphertextsha256(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000004u; + mediaciphertextsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.WebMessageInfo.mediaCiphertextSha256) +} +inline void WebMessageInfo::set_mediaciphertextsha256(const void* value, + size_t size) { + _has_bits_[0] |= 0x00000004u; + mediaciphertextsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.WebMessageInfo.mediaCiphertextSha256) +} +inline std::string* WebMessageInfo::_internal_mutable_mediaciphertextsha256() { + _has_bits_[0] |= 0x00000004u; + return mediaciphertextsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* WebMessageInfo::release_mediaciphertextsha256() { + // @@protoc_insertion_point(field_release:proto.WebMessageInfo.mediaCiphertextSha256) + if (!_internal_has_mediaciphertextsha256()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + return mediaciphertextsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void WebMessageInfo::set_allocated_mediaciphertextsha256(std::string* mediaciphertextsha256) { + if (mediaciphertextsha256 != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + mediaciphertextsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mediaciphertextsha256, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.WebMessageInfo.mediaCiphertextSha256) +} + +// optional bool multicast = 21; +inline bool WebMessageInfo::_internal_has_multicast() const { + bool value = (_has_bits_[0] & 0x00004000u) != 0; + return value; +} +inline bool WebMessageInfo::has_multicast() const { + return _internal_has_multicast(); +} +inline void WebMessageInfo::clear_multicast() { + multicast_ = false; + _has_bits_[0] &= ~0x00004000u; +} +inline bool WebMessageInfo::_internal_multicast() const { + return multicast_; +} +inline bool WebMessageInfo::multicast() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.multicast) + return _internal_multicast(); +} +inline void WebMessageInfo::_internal_set_multicast(bool value) { + _has_bits_[0] |= 0x00004000u; + multicast_ = value; +} +inline void WebMessageInfo::set_multicast(bool value) { + _internal_set_multicast(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.multicast) +} + +// optional bool urlText = 22; +inline bool WebMessageInfo::_internal_has_urltext() const { + bool value = (_has_bits_[0] & 0x00010000u) != 0; + return value; +} +inline bool WebMessageInfo::has_urltext() const { + return _internal_has_urltext(); +} +inline void WebMessageInfo::clear_urltext() { + urltext_ = false; + _has_bits_[0] &= ~0x00010000u; +} +inline bool WebMessageInfo::_internal_urltext() const { + return urltext_; +} +inline bool WebMessageInfo::urltext() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.urlText) + return _internal_urltext(); +} +inline void WebMessageInfo::_internal_set_urltext(bool value) { + _has_bits_[0] |= 0x00010000u; + urltext_ = value; +} +inline void WebMessageInfo::set_urltext(bool value) { + _internal_set_urltext(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.urlText) +} + +// optional bool urlNumber = 23; +inline bool WebMessageInfo::_internal_has_urlnumber() const { + bool value = (_has_bits_[0] & 0x00020000u) != 0; + return value; +} +inline bool WebMessageInfo::has_urlnumber() const { + return _internal_has_urlnumber(); +} +inline void WebMessageInfo::clear_urlnumber() { + urlnumber_ = false; + _has_bits_[0] &= ~0x00020000u; +} +inline bool WebMessageInfo::_internal_urlnumber() const { + return urlnumber_; +} +inline bool WebMessageInfo::urlnumber() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.urlNumber) + return _internal_urlnumber(); +} +inline void WebMessageInfo::_internal_set_urlnumber(bool value) { + _has_bits_[0] |= 0x00020000u; + urlnumber_ = value; +} +inline void WebMessageInfo::set_urlnumber(bool value) { + _internal_set_urlnumber(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.urlNumber) +} + +// optional .proto.WebMessageInfo.WebMessageInfoStubType messageStubType = 24; +inline bool WebMessageInfo::_internal_has_messagestubtype() const { + bool value = (_has_bits_[0] & 0x00008000u) != 0; + return value; +} +inline bool WebMessageInfo::has_messagestubtype() const { + return _internal_has_messagestubtype(); +} +inline void WebMessageInfo::clear_messagestubtype() { + messagestubtype_ = 0; + _has_bits_[0] &= ~0x00008000u; +} +inline ::proto::WebMessageInfo_WebMessageInfoStubType WebMessageInfo::_internal_messagestubtype() const { + return static_cast< ::proto::WebMessageInfo_WebMessageInfoStubType >(messagestubtype_); +} +inline ::proto::WebMessageInfo_WebMessageInfoStubType WebMessageInfo::messagestubtype() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.messageStubType) + return _internal_messagestubtype(); +} +inline void WebMessageInfo::_internal_set_messagestubtype(::proto::WebMessageInfo_WebMessageInfoStubType value) { + assert(::proto::WebMessageInfo_WebMessageInfoStubType_IsValid(value)); + _has_bits_[0] |= 0x00008000u; + messagestubtype_ = value; +} +inline void WebMessageInfo::set_messagestubtype(::proto::WebMessageInfo_WebMessageInfoStubType value) { + _internal_set_messagestubtype(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.messageStubType) +} + +// optional bool clearMedia = 25; +inline bool WebMessageInfo::_internal_has_clearmedia() const { + bool value = (_has_bits_[0] & 0x00040000u) != 0; + return value; +} +inline bool WebMessageInfo::has_clearmedia() const { + return _internal_has_clearmedia(); +} +inline void WebMessageInfo::clear_clearmedia() { + clearmedia_ = false; + _has_bits_[0] &= ~0x00040000u; +} +inline bool WebMessageInfo::_internal_clearmedia() const { + return clearmedia_; +} +inline bool WebMessageInfo::clearmedia() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.clearMedia) + return _internal_clearmedia(); +} +inline void WebMessageInfo::_internal_set_clearmedia(bool value) { + _has_bits_[0] |= 0x00040000u; + clearmedia_ = value; +} +inline void WebMessageInfo::set_clearmedia(bool value) { + _internal_set_clearmedia(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.clearMedia) +} + +// repeated string messageStubParameters = 26; +inline int WebMessageInfo::_internal_messagestubparameters_size() const { + return messagestubparameters_.size(); +} +inline int WebMessageInfo::messagestubparameters_size() const { + return _internal_messagestubparameters_size(); +} +inline void WebMessageInfo::clear_messagestubparameters() { + messagestubparameters_.Clear(); +} +inline std::string* WebMessageInfo::add_messagestubparameters() { + // @@protoc_insertion_point(field_add_mutable:proto.WebMessageInfo.messageStubParameters) + return _internal_add_messagestubparameters(); +} +inline const std::string& WebMessageInfo::_internal_messagestubparameters(int index) const { + return messagestubparameters_.Get(index); +} +inline const std::string& WebMessageInfo::messagestubparameters(int index) const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.messageStubParameters) + return _internal_messagestubparameters(index); +} +inline std::string* WebMessageInfo::mutable_messagestubparameters(int index) { + // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.messageStubParameters) + return messagestubparameters_.Mutable(index); +} +inline void WebMessageInfo::set_messagestubparameters(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.messageStubParameters) + messagestubparameters_.Mutable(index)->assign(value); +} +inline void WebMessageInfo::set_messagestubparameters(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.messageStubParameters) + messagestubparameters_.Mutable(index)->assign(std::move(value)); +} +inline void WebMessageInfo::set_messagestubparameters(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + messagestubparameters_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:proto.WebMessageInfo.messageStubParameters) +} +inline void WebMessageInfo::set_messagestubparameters(int index, const char* value, size_t size) { + messagestubparameters_.Mutable(index)->assign( + reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:proto.WebMessageInfo.messageStubParameters) +} +inline std::string* WebMessageInfo::_internal_add_messagestubparameters() { + return messagestubparameters_.Add(); +} +inline void WebMessageInfo::add_messagestubparameters(const std::string& value) { + messagestubparameters_.Add()->assign(value); + // @@protoc_insertion_point(field_add:proto.WebMessageInfo.messageStubParameters) +} +inline void WebMessageInfo::add_messagestubparameters(std::string&& value) { + messagestubparameters_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:proto.WebMessageInfo.messageStubParameters) +} +inline void WebMessageInfo::add_messagestubparameters(const char* value) { + GOOGLE_DCHECK(value != nullptr); + messagestubparameters_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:proto.WebMessageInfo.messageStubParameters) +} +inline void WebMessageInfo::add_messagestubparameters(const char* value, size_t size) { + messagestubparameters_.Add()->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_add_pointer:proto.WebMessageInfo.messageStubParameters) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& +WebMessageInfo::messagestubparameters() const { + // @@protoc_insertion_point(field_list:proto.WebMessageInfo.messageStubParameters) + return messagestubparameters_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* +WebMessageInfo::mutable_messagestubparameters() { + // @@protoc_insertion_point(field_mutable_list:proto.WebMessageInfo.messageStubParameters) + return &messagestubparameters_; +} + +// optional uint32 duration = 27; +inline bool WebMessageInfo::_internal_has_duration() const { + bool value = (_has_bits_[0] & 0x00100000u) != 0; + return value; +} +inline bool WebMessageInfo::has_duration() const { + return _internal_has_duration(); +} +inline void WebMessageInfo::clear_duration() { + duration_ = 0u; + _has_bits_[0] &= ~0x00100000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 WebMessageInfo::_internal_duration() const { + return duration_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 WebMessageInfo::duration() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.duration) + return _internal_duration(); +} +inline void WebMessageInfo::_internal_set_duration(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00100000u; + duration_ = value; +} +inline void WebMessageInfo::set_duration(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_duration(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.duration) +} + +// repeated string labels = 28; +inline int WebMessageInfo::_internal_labels_size() const { + return labels_.size(); +} +inline int WebMessageInfo::labels_size() const { + return _internal_labels_size(); +} +inline void WebMessageInfo::clear_labels() { + labels_.Clear(); +} +inline std::string* WebMessageInfo::add_labels() { + // @@protoc_insertion_point(field_add_mutable:proto.WebMessageInfo.labels) + return _internal_add_labels(); +} +inline const std::string& WebMessageInfo::_internal_labels(int index) const { + return labels_.Get(index); +} +inline const std::string& WebMessageInfo::labels(int index) const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.labels) + return _internal_labels(index); +} +inline std::string* WebMessageInfo::mutable_labels(int index) { + // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.labels) + return labels_.Mutable(index); +} +inline void WebMessageInfo::set_labels(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.labels) + labels_.Mutable(index)->assign(value); +} +inline void WebMessageInfo::set_labels(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.labels) + labels_.Mutable(index)->assign(std::move(value)); +} +inline void WebMessageInfo::set_labels(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + labels_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:proto.WebMessageInfo.labels) +} +inline void WebMessageInfo::set_labels(int index, const char* value, size_t size) { + labels_.Mutable(index)->assign( + reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:proto.WebMessageInfo.labels) +} +inline std::string* WebMessageInfo::_internal_add_labels() { + return labels_.Add(); +} +inline void WebMessageInfo::add_labels(const std::string& value) { + labels_.Add()->assign(value); + // @@protoc_insertion_point(field_add:proto.WebMessageInfo.labels) +} +inline void WebMessageInfo::add_labels(std::string&& value) { + labels_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:proto.WebMessageInfo.labels) +} +inline void WebMessageInfo::add_labels(const char* value) { + GOOGLE_DCHECK(value != nullptr); + labels_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:proto.WebMessageInfo.labels) +} +inline void WebMessageInfo::add_labels(const char* value, size_t size) { + labels_.Add()->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_add_pointer:proto.WebMessageInfo.labels) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& +WebMessageInfo::labels() const { + // @@protoc_insertion_point(field_list:proto.WebMessageInfo.labels) + return labels_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* +WebMessageInfo::mutable_labels() { + // @@protoc_insertion_point(field_mutable_list:proto.WebMessageInfo.labels) + return &labels_; +} + +// optional .proto.PaymentInfo paymentInfo = 29; +inline bool WebMessageInfo::_internal_has_paymentinfo() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + PROTOBUF_ASSUME(!value || paymentinfo_ != nullptr); + return value; +} +inline bool WebMessageInfo::has_paymentinfo() const { + return _internal_has_paymentinfo(); +} +inline void WebMessageInfo::clear_paymentinfo() { + if (paymentinfo_ != nullptr) paymentinfo_->Clear(); + _has_bits_[0] &= ~0x00000040u; +} +inline const ::proto::PaymentInfo& WebMessageInfo::_internal_paymentinfo() const { + const ::proto::PaymentInfo* p = paymentinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::PaymentInfo&>( + ::proto::_PaymentInfo_default_instance_); +} +inline const ::proto::PaymentInfo& WebMessageInfo::paymentinfo() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.paymentInfo) + return _internal_paymentinfo(); +} +inline void WebMessageInfo::unsafe_arena_set_allocated_paymentinfo( + ::proto::PaymentInfo* paymentinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(paymentinfo_); + } + paymentinfo_ = paymentinfo; + if (paymentinfo) { + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.WebMessageInfo.paymentInfo) +} +inline ::proto::PaymentInfo* WebMessageInfo::release_paymentinfo() { + _has_bits_[0] &= ~0x00000040u; + ::proto::PaymentInfo* temp = paymentinfo_; + paymentinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::PaymentInfo* WebMessageInfo::unsafe_arena_release_paymentinfo() { + // @@protoc_insertion_point(field_release:proto.WebMessageInfo.paymentInfo) + _has_bits_[0] &= ~0x00000040u; + ::proto::PaymentInfo* temp = paymentinfo_; + paymentinfo_ = nullptr; + return temp; +} +inline ::proto::PaymentInfo* WebMessageInfo::_internal_mutable_paymentinfo() { + _has_bits_[0] |= 0x00000040u; + if (paymentinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::PaymentInfo>(GetArena()); + paymentinfo_ = p; + } + return paymentinfo_; +} +inline ::proto::PaymentInfo* WebMessageInfo::mutable_paymentinfo() { + // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.paymentInfo) + return _internal_mutable_paymentinfo(); +} +inline void WebMessageInfo::set_allocated_paymentinfo(::proto::PaymentInfo* paymentinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete paymentinfo_; + } + if (paymentinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(paymentinfo); + if (message_arena != submessage_arena) { + paymentinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, paymentinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000040u; + } else { + _has_bits_[0] &= ~0x00000040u; + } + paymentinfo_ = paymentinfo; + // @@protoc_insertion_point(field_set_allocated:proto.WebMessageInfo.paymentInfo) +} + +// optional .proto.LiveLocationMessage finalLiveLocation = 30; +inline bool WebMessageInfo::_internal_has_finallivelocation() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + PROTOBUF_ASSUME(!value || finallivelocation_ != nullptr); + return value; +} +inline bool WebMessageInfo::has_finallivelocation() const { + return _internal_has_finallivelocation(); +} +inline void WebMessageInfo::clear_finallivelocation() { + if (finallivelocation_ != nullptr) finallivelocation_->Clear(); + _has_bits_[0] &= ~0x00000080u; +} +inline const ::proto::LiveLocationMessage& WebMessageInfo::_internal_finallivelocation() const { + const ::proto::LiveLocationMessage* p = finallivelocation_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::LiveLocationMessage&>( + ::proto::_LiveLocationMessage_default_instance_); +} +inline const ::proto::LiveLocationMessage& WebMessageInfo::finallivelocation() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.finalLiveLocation) + return _internal_finallivelocation(); +} +inline void WebMessageInfo::unsafe_arena_set_allocated_finallivelocation( + ::proto::LiveLocationMessage* finallivelocation) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(finallivelocation_); + } + finallivelocation_ = finallivelocation; + if (finallivelocation) { + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.WebMessageInfo.finalLiveLocation) +} +inline ::proto::LiveLocationMessage* WebMessageInfo::release_finallivelocation() { + _has_bits_[0] &= ~0x00000080u; + ::proto::LiveLocationMessage* temp = finallivelocation_; + finallivelocation_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::LiveLocationMessage* WebMessageInfo::unsafe_arena_release_finallivelocation() { + // @@protoc_insertion_point(field_release:proto.WebMessageInfo.finalLiveLocation) + _has_bits_[0] &= ~0x00000080u; + ::proto::LiveLocationMessage* temp = finallivelocation_; + finallivelocation_ = nullptr; + return temp; +} +inline ::proto::LiveLocationMessage* WebMessageInfo::_internal_mutable_finallivelocation() { + _has_bits_[0] |= 0x00000080u; + if (finallivelocation_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::LiveLocationMessage>(GetArena()); + finallivelocation_ = p; + } + return finallivelocation_; +} +inline ::proto::LiveLocationMessage* WebMessageInfo::mutable_finallivelocation() { + // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.finalLiveLocation) + return _internal_mutable_finallivelocation(); +} +inline void WebMessageInfo::set_allocated_finallivelocation(::proto::LiveLocationMessage* finallivelocation) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete finallivelocation_; + } + if (finallivelocation) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(finallivelocation); + if (message_arena != submessage_arena) { + finallivelocation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, finallivelocation, submessage_arena); + } + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + finallivelocation_ = finallivelocation; + // @@protoc_insertion_point(field_set_allocated:proto.WebMessageInfo.finalLiveLocation) +} + +// optional .proto.PaymentInfo quotedPaymentInfo = 31; +inline bool WebMessageInfo::_internal_has_quotedpaymentinfo() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + PROTOBUF_ASSUME(!value || quotedpaymentinfo_ != nullptr); + return value; +} +inline bool WebMessageInfo::has_quotedpaymentinfo() const { + return _internal_has_quotedpaymentinfo(); +} +inline void WebMessageInfo::clear_quotedpaymentinfo() { + if (quotedpaymentinfo_ != nullptr) quotedpaymentinfo_->Clear(); + _has_bits_[0] &= ~0x00000100u; +} +inline const ::proto::PaymentInfo& WebMessageInfo::_internal_quotedpaymentinfo() const { + const ::proto::PaymentInfo* p = quotedpaymentinfo_; + return p != nullptr ? *p : reinterpret_cast<const ::proto::PaymentInfo&>( + ::proto::_PaymentInfo_default_instance_); +} +inline const ::proto::PaymentInfo& WebMessageInfo::quotedpaymentinfo() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.quotedPaymentInfo) + return _internal_quotedpaymentinfo(); +} +inline void WebMessageInfo::unsafe_arena_set_allocated_quotedpaymentinfo( + ::proto::PaymentInfo* quotedpaymentinfo) { + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(quotedpaymentinfo_); + } + quotedpaymentinfo_ = quotedpaymentinfo; + if (quotedpaymentinfo) { + _has_bits_[0] |= 0x00000100u; + } else { + _has_bits_[0] &= ~0x00000100u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto.WebMessageInfo.quotedPaymentInfo) +} +inline ::proto::PaymentInfo* WebMessageInfo::release_quotedpaymentinfo() { + _has_bits_[0] &= ~0x00000100u; + ::proto::PaymentInfo* temp = quotedpaymentinfo_; + quotedpaymentinfo_ = nullptr; + if (GetArena() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + return temp; +} +inline ::proto::PaymentInfo* WebMessageInfo::unsafe_arena_release_quotedpaymentinfo() { + // @@protoc_insertion_point(field_release:proto.WebMessageInfo.quotedPaymentInfo) + _has_bits_[0] &= ~0x00000100u; + ::proto::PaymentInfo* temp = quotedpaymentinfo_; + quotedpaymentinfo_ = nullptr; + return temp; +} +inline ::proto::PaymentInfo* WebMessageInfo::_internal_mutable_quotedpaymentinfo() { + _has_bits_[0] |= 0x00000100u; + if (quotedpaymentinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::proto::PaymentInfo>(GetArena()); + quotedpaymentinfo_ = p; + } + return quotedpaymentinfo_; +} +inline ::proto::PaymentInfo* WebMessageInfo::mutable_quotedpaymentinfo() { + // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.quotedPaymentInfo) + return _internal_mutable_quotedpaymentinfo(); +} +inline void WebMessageInfo::set_allocated_quotedpaymentinfo(::proto::PaymentInfo* quotedpaymentinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + if (message_arena == nullptr) { + delete quotedpaymentinfo_; + } + if (quotedpaymentinfo) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(quotedpaymentinfo); + if (message_arena != submessage_arena) { + quotedpaymentinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, quotedpaymentinfo, submessage_arena); + } + _has_bits_[0] |= 0x00000100u; + } else { + _has_bits_[0] &= ~0x00000100u; + } + quotedpaymentinfo_ = quotedpaymentinfo; + // @@protoc_insertion_point(field_set_allocated:proto.WebMessageInfo.quotedPaymentInfo) +} + +// optional uint64 ephemeralStartTimestamp = 32; +inline bool WebMessageInfo::_internal_has_ephemeralstarttimestamp() const { + bool value = (_has_bits_[0] & 0x00400000u) != 0; + return value; +} +inline bool WebMessageInfo::has_ephemeralstarttimestamp() const { + return _internal_has_ephemeralstarttimestamp(); +} +inline void WebMessageInfo::clear_ephemeralstarttimestamp() { + ephemeralstarttimestamp_ = PROTOBUF_ULONGLONG(0); + _has_bits_[0] &= ~0x00400000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 WebMessageInfo::_internal_ephemeralstarttimestamp() const { + return ephemeralstarttimestamp_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint64 WebMessageInfo::ephemeralstarttimestamp() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.ephemeralStartTimestamp) + return _internal_ephemeralstarttimestamp(); +} +inline void WebMessageInfo::_internal_set_ephemeralstarttimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _has_bits_[0] |= 0x00400000u; + ephemeralstarttimestamp_ = value; +} +inline void WebMessageInfo::set_ephemeralstarttimestamp(::PROTOBUF_NAMESPACE_ID::uint64 value) { + _internal_set_ephemeralstarttimestamp(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.ephemeralStartTimestamp) +} + +// optional uint32 ephemeralDuration = 33; +inline bool WebMessageInfo::_internal_has_ephemeralduration() const { + bool value = (_has_bits_[0] & 0x00200000u) != 0; + return value; +} +inline bool WebMessageInfo::has_ephemeralduration() const { + return _internal_has_ephemeralduration(); +} +inline void WebMessageInfo::clear_ephemeralduration() { + ephemeralduration_ = 0u; + _has_bits_[0] &= ~0x00200000u; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 WebMessageInfo::_internal_ephemeralduration() const { + return ephemeralduration_; +} +inline ::PROTOBUF_NAMESPACE_ID::uint32 WebMessageInfo::ephemeralduration() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.ephemeralDuration) + return _internal_ephemeralduration(); +} +inline void WebMessageInfo::_internal_set_ephemeralduration(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _has_bits_[0] |= 0x00200000u; + ephemeralduration_ = value; +} +inline void WebMessageInfo::set_ephemeralduration(::PROTOBUF_NAMESPACE_ID::uint32 value) { + _internal_set_ephemeralduration(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.ephemeralDuration) +} + +// optional bool ephemeralOffToOn = 34; +inline bool WebMessageInfo::_internal_has_ephemeralofftoon() const { + bool value = (_has_bits_[0] & 0x00080000u) != 0; + return value; +} +inline bool WebMessageInfo::has_ephemeralofftoon() const { + return _internal_has_ephemeralofftoon(); +} +inline void WebMessageInfo::clear_ephemeralofftoon() { + ephemeralofftoon_ = false; + _has_bits_[0] &= ~0x00080000u; +} +inline bool WebMessageInfo::_internal_ephemeralofftoon() const { + return ephemeralofftoon_; +} +inline bool WebMessageInfo::ephemeralofftoon() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.ephemeralOffToOn) + return _internal_ephemeralofftoon(); +} +inline void WebMessageInfo::_internal_set_ephemeralofftoon(bool value) { + _has_bits_[0] |= 0x00080000u; + ephemeralofftoon_ = value; +} +inline void WebMessageInfo::set_ephemeralofftoon(bool value) { + _internal_set_ephemeralofftoon(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.ephemeralOffToOn) +} + +// optional bool ephemeralOutOfSync = 35; +inline bool WebMessageInfo::_internal_has_ephemeraloutofsync() const { + bool value = (_has_bits_[0] & 0x00800000u) != 0; + return value; +} +inline bool WebMessageInfo::has_ephemeraloutofsync() const { + return _internal_has_ephemeraloutofsync(); +} +inline void WebMessageInfo::clear_ephemeraloutofsync() { + ephemeraloutofsync_ = false; + _has_bits_[0] &= ~0x00800000u; +} +inline bool WebMessageInfo::_internal_ephemeraloutofsync() const { + return ephemeraloutofsync_; +} +inline bool WebMessageInfo::ephemeraloutofsync() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.ephemeralOutOfSync) + return _internal_ephemeraloutofsync(); +} +inline void WebMessageInfo::_internal_set_ephemeraloutofsync(bool value) { + _has_bits_[0] |= 0x00800000u; + ephemeraloutofsync_ = value; +} +inline void WebMessageInfo::set_ephemeraloutofsync(bool value) { + _internal_set_ephemeraloutofsync(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.ephemeralOutOfSync) +} + +// optional .proto.WebMessageInfo.WebMessageInfoBizPrivacyStatus bizPrivacyStatus = 36; +inline bool WebMessageInfo::_internal_has_bizprivacystatus() const { + bool value = (_has_bits_[0] & 0x01000000u) != 0; + return value; +} +inline bool WebMessageInfo::has_bizprivacystatus() const { + return _internal_has_bizprivacystatus(); +} +inline void WebMessageInfo::clear_bizprivacystatus() { + bizprivacystatus_ = 0; + _has_bits_[0] &= ~0x01000000u; +} +inline ::proto::WebMessageInfo_WebMessageInfoBizPrivacyStatus WebMessageInfo::_internal_bizprivacystatus() const { + return static_cast< ::proto::WebMessageInfo_WebMessageInfoBizPrivacyStatus >(bizprivacystatus_); +} +inline ::proto::WebMessageInfo_WebMessageInfoBizPrivacyStatus WebMessageInfo::bizprivacystatus() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.bizPrivacyStatus) + return _internal_bizprivacystatus(); +} +inline void WebMessageInfo::_internal_set_bizprivacystatus(::proto::WebMessageInfo_WebMessageInfoBizPrivacyStatus value) { + assert(::proto::WebMessageInfo_WebMessageInfoBizPrivacyStatus_IsValid(value)); + _has_bits_[0] |= 0x01000000u; + bizprivacystatus_ = value; +} +inline void WebMessageInfo::set_bizprivacystatus(::proto::WebMessageInfo_WebMessageInfoBizPrivacyStatus value) { + _internal_set_bizprivacystatus(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.bizPrivacyStatus) +} + +// optional string verifiedBizName = 37; +inline bool WebMessageInfo::_internal_has_verifiedbizname() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool WebMessageInfo::has_verifiedbizname() const { + return _internal_has_verifiedbizname(); +} +inline void WebMessageInfo::clear_verifiedbizname() { + verifiedbizname_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& WebMessageInfo::verifiedbizname() const { + // @@protoc_insertion_point(field_get:proto.WebMessageInfo.verifiedBizName) + return _internal_verifiedbizname(); +} +inline void WebMessageInfo::set_verifiedbizname(const std::string& value) { + _internal_set_verifiedbizname(value); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.verifiedBizName) +} +inline std::string* WebMessageInfo::mutable_verifiedbizname() { + // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.verifiedBizName) + return _internal_mutable_verifiedbizname(); +} +inline const std::string& WebMessageInfo::_internal_verifiedbizname() const { + return verifiedbizname_.Get(); +} +inline void WebMessageInfo::_internal_set_verifiedbizname(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + verifiedbizname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); +} +inline void WebMessageInfo::set_verifiedbizname(std::string&& value) { + _has_bits_[0] |= 0x00000008u; + verifiedbizname_.Set( + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:proto.WebMessageInfo.verifiedBizName) +} +inline void WebMessageInfo::set_verifiedbizname(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _has_bits_[0] |= 0x00000008u; + verifiedbizname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); + // @@protoc_insertion_point(field_set_char:proto.WebMessageInfo.verifiedBizName) +} +inline void WebMessageInfo::set_verifiedbizname(const char* value, + size_t size) { + _has_bits_[0] |= 0x00000008u; + verifiedbizname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string( + reinterpret_cast<const char*>(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:proto.WebMessageInfo.verifiedBizName) +} +inline std::string* WebMessageInfo::_internal_mutable_verifiedbizname() { + _has_bits_[0] |= 0x00000008u; + return verifiedbizname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); +} +inline std::string* WebMessageInfo::release_verifiedbizname() { + // @@protoc_insertion_point(field_release:proto.WebMessageInfo.verifiedBizName) + if (!_internal_has_verifiedbizname()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + return verifiedbizname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); +} +inline void WebMessageInfo::set_allocated_verifiedbizname(std::string* verifiedbizname) { + if (verifiedbizname != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + verifiedbizname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), verifiedbizname, + GetArena()); + // @@protoc_insertion_point(field_set_allocated:proto.WebMessageInfo.verifiedBizName) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace proto + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::proto::AdReplyInfo_AdReplyInfoMediaType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::AdReplyInfo_AdReplyInfoMediaType>() { + return ::proto::AdReplyInfo_AdReplyInfoMediaType_descriptor(); +} +template <> struct is_proto_enum< ::proto::ExternalAdReplyInfo_ExternalAdReplyInfoMediaType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::ExternalAdReplyInfo_ExternalAdReplyInfoMediaType>() { + return ::proto::ExternalAdReplyInfo_ExternalAdReplyInfoMediaType_descriptor(); +} +template <> struct is_proto_enum< ::proto::InvoiceMessage_InvoiceMessageAttachmentType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::InvoiceMessage_InvoiceMessageAttachmentType>() { + return ::proto::InvoiceMessage_InvoiceMessageAttachmentType_descriptor(); +} +template <> struct is_proto_enum< ::proto::ExtendedTextMessage_ExtendedTextMessageFontType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::ExtendedTextMessage_ExtendedTextMessageFontType>() { + return ::proto::ExtendedTextMessage_ExtendedTextMessageFontType_descriptor(); +} +template <> struct is_proto_enum< ::proto::ExtendedTextMessage_ExtendedTextMessagePreviewType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::ExtendedTextMessage_ExtendedTextMessagePreviewType>() { + return ::proto::ExtendedTextMessage_ExtendedTextMessagePreviewType_descriptor(); +} +template <> struct is_proto_enum< ::proto::VideoMessage_VideoMessageAttribution> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::VideoMessage_VideoMessageAttribution>() { + return ::proto::VideoMessage_VideoMessageAttribution_descriptor(); +} +template <> struct is_proto_enum< ::proto::ProtocolMessage_ProtocolMessageType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::ProtocolMessage_ProtocolMessageType>() { + return ::proto::ProtocolMessage_ProtocolMessageType_descriptor(); +} +template <> struct is_proto_enum< ::proto::HistorySyncNotification_HistorySyncNotificationHistorySyncType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::HistorySyncNotification_HistorySyncNotificationHistorySyncType>() { + return ::proto::HistorySyncNotification_HistorySyncNotificationHistorySyncType_descriptor(); +} +template <> struct is_proto_enum< ::proto::HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType>() { + return ::proto::HSMDateTimeComponent_HSMDateTimeComponentDayOfWeekType_descriptor(); +} +template <> struct is_proto_enum< ::proto::HSMDateTimeComponent_HSMDateTimeComponentCalendarType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::HSMDateTimeComponent_HSMDateTimeComponentCalendarType>() { + return ::proto::HSMDateTimeComponent_HSMDateTimeComponentCalendarType_descriptor(); +} +template <> struct is_proto_enum< ::proto::OrderMessage_OrderMessageOrderStatus> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::OrderMessage_OrderMessageOrderStatus>() { + return ::proto::OrderMessage_OrderMessageOrderStatus_descriptor(); +} +template <> struct is_proto_enum< ::proto::OrderMessage_OrderMessageOrderSurface> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::OrderMessage_OrderMessageOrderSurface>() { + return ::proto::OrderMessage_OrderMessageOrderSurface_descriptor(); +} +template <> struct is_proto_enum< ::proto::ListMessage_ListMessageListType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::ListMessage_ListMessageListType>() { + return ::proto::ListMessage_ListMessageListType_descriptor(); +} +template <> struct is_proto_enum< ::proto::ListResponseMessage_ListResponseMessageListType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::ListResponseMessage_ListResponseMessageListType>() { + return ::proto::ListResponseMessage_ListResponseMessageListType_descriptor(); +} +template <> struct is_proto_enum< ::proto::Button_ButtonType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::Button_ButtonType>() { + return ::proto::Button_ButtonType_descriptor(); +} +template <> struct is_proto_enum< ::proto::ButtonsMessage_ButtonsMessageHeaderType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::ButtonsMessage_ButtonsMessageHeaderType>() { + return ::proto::ButtonsMessage_ButtonsMessageHeaderType_descriptor(); +} +template <> struct is_proto_enum< ::proto::ButtonsResponseMessage_ButtonsResponseMessageType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::ButtonsResponseMessage_ButtonsResponseMessageType>() { + return ::proto::ButtonsResponseMessage_ButtonsResponseMessageType_descriptor(); +} +template <> struct is_proto_enum< ::proto::WebFeatures_WebFeaturesFlag> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::WebFeatures_WebFeaturesFlag>() { + return ::proto::WebFeatures_WebFeaturesFlag_descriptor(); +} +template <> struct is_proto_enum< ::proto::PaymentInfo_PaymentInfoCurrency> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::PaymentInfo_PaymentInfoCurrency>() { + return ::proto::PaymentInfo_PaymentInfoCurrency_descriptor(); +} +template <> struct is_proto_enum< ::proto::PaymentInfo_PaymentInfoStatus> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::PaymentInfo_PaymentInfoStatus>() { + return ::proto::PaymentInfo_PaymentInfoStatus_descriptor(); +} +template <> struct is_proto_enum< ::proto::PaymentInfo_PaymentInfoTxnStatus> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::PaymentInfo_PaymentInfoTxnStatus>() { + return ::proto::PaymentInfo_PaymentInfoTxnStatus_descriptor(); +} +template <> struct is_proto_enum< ::proto::WebMessageInfo_WebMessageInfoStatus> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::WebMessageInfo_WebMessageInfoStatus>() { + return ::proto::WebMessageInfo_WebMessageInfoStatus_descriptor(); +} +template <> struct is_proto_enum< ::proto::WebMessageInfo_WebMessageInfoStubType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::WebMessageInfo_WebMessageInfoStubType>() { + return ::proto::WebMessageInfo_WebMessageInfoStubType_descriptor(); +} +template <> struct is_proto_enum< ::proto::WebMessageInfo_WebMessageInfoBizPrivacyStatus> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::proto::WebMessageInfo_WebMessageInfoBizPrivacyStatus>() { + return ::proto::WebMessageInfo_WebMessageInfoBizPrivacyStatus_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include <google/protobuf/port_undef.inc> +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_pmsg_2eproto diff --git a/protocols/WhatsAppWeb/src/pmsg.proto b/protocols/WhatsAppWeb/src/pmsg.proto new file mode 100644 index 0000000000..58c6f20c36 --- /dev/null +++ b/protocols/WhatsAppWeb/src/pmsg.proto @@ -0,0 +1,1050 @@ +syntax = "proto2"; +package proto; + +message PaymentMoney { + optional int64 value = 1; + optional uint32 offset = 2; + optional string currencyCode = 3; +} + +message HydratedQuickReplyButton { + optional string displayText = 1; + optional string id = 2; +} + +message HydratedURLButton { + optional string displayText = 1; + optional string url = 2; +} + +message HydratedCallButton { + optional string displayText = 1; + optional string phoneNumber = 2; +} + +message HydratedTemplateButton { + optional uint32 index = 4; + oneof hydratedButton { + HydratedQuickReplyButton quickReplyButton = 1; + HydratedURLButton urlButton = 2; + HydratedCallButton callButton = 3; + } +} + +message QuickReplyButton { + optional HighlyStructuredMessage displayText = 1; + optional string id = 2; +} + +message URLButton { + optional HighlyStructuredMessage displayText = 1; + optional HighlyStructuredMessage url = 2; +} + +message CallButton { + optional HighlyStructuredMessage displayText = 1; + optional HighlyStructuredMessage phoneNumber = 2; +} + +message TemplateButton { + optional uint32 index = 4; + oneof button { + QuickReplyButton quickReplyButton = 1; + URLButton urlButton = 2; + CallButton callButton = 3; + } +} + +message Location { + optional double degreesLatitude = 1; + optional double degreesLongitude = 2; + optional string name = 3; +} + +message Point { + optional int32 xDeprecated = 1; + optional int32 yDeprecated = 2; + optional double x = 3; + optional double y = 4; +} + +message InteractiveAnnotation { + repeated Point polygonVertices = 1; + oneof action { + Location location = 2; + } +} + +message DeviceListMetadata { + optional bytes senderKeyHash = 1; + optional uint64 senderTimestamp = 2; + optional bytes recipientKeyHash = 8; + optional uint64 recipientTimestamp = 9; +} + +message MessageContextInfo { + optional DeviceListMetadata deviceListMetadata = 1; +} + +message AdReplyInfo { + optional string advertiserName = 1; + enum AdReplyInfoMediaType { + NONE = 0; + IMAGE = 1; + VIDEO = 2; + } + optional AdReplyInfoMediaType mediaType = 2; + optional bytes jpegThumbnail = 16; + optional string caption = 17; +} + +message ExternalAdReplyInfo { + optional string title = 1; + optional string body = 2; + enum ExternalAdReplyInfoMediaType { + NONE = 0; + IMAGE = 1; + VIDEO = 2; + } + optional ExternalAdReplyInfoMediaType mediaType = 3; + optional string thumbnailUrl = 4; + optional string mediaUrl = 5; + optional bytes thumbnail = 6; + optional string sourceType = 7; + optional string sourceId = 8; + optional string sourceUrl = 9; +} + +message ContextInfo { + optional string stanzaId = 1; + optional string participant = 2; + optional Message quotedMessage = 3; + optional string remoteJid = 4; + repeated string mentionedJid = 15; + optional string conversionSource = 18; + optional bytes conversionData = 19; + optional uint32 conversionDelaySeconds = 20; + optional uint32 forwardingScore = 21; + optional bool isForwarded = 22; + optional AdReplyInfo quotedAd = 23; + optional MessageKey placeholderKey = 24; + optional uint32 expiration = 25; + optional int64 ephemeralSettingTimestamp = 26; + optional bytes ephemeralSharedSecret = 27; + optional ExternalAdReplyInfo externalAdReply = 28; +} + +message SenderKeyDistributionMessage { + optional string groupId = 1; + optional bytes axolotlSenderKeyDistributionMessage = 2; +} + +message ImageMessage { + optional string url = 1; + optional string mimetype = 2; + optional string caption = 3; + optional bytes fileSha256 = 4; + optional uint64 fileLength = 5; + optional uint32 height = 6; + optional uint32 width = 7; + optional bytes mediaKey = 8; + optional bytes fileEncSha256 = 9; + repeated InteractiveAnnotation interactiveAnnotations = 10; + optional string directPath = 11; + optional int64 mediaKeyTimestamp = 12; + optional bytes jpegThumbnail = 16; + optional ContextInfo contextInfo = 17; + optional bytes firstScanSidecar = 18; + optional uint32 firstScanLength = 19; + optional uint32 experimentGroupId = 20; + optional bytes scansSidecar = 21; + repeated uint32 scanLengths = 22; + optional bytes midQualityFileSha256 = 23; + optional bytes midQualityFileEncSha256 = 24; + optional bool viewOnce = 25; + optional string thumbnailDirectPath = 26; + optional bytes thumbnailSha256 = 27; + optional bytes thumbnailEncSha256 = 28; +} + +message InvoiceMessage { + optional string note = 1; + optional string token = 2; + enum InvoiceMessageAttachmentType { + IMAGE = 0; + PDF = 1; + } + optional InvoiceMessageAttachmentType attachmentType = 3; + optional string attachmentMimetype = 4; + optional bytes attachmentMediaKey = 5; + optional int64 attachmentMediaKeyTimestamp = 6; + optional bytes attachmentFileSha256 = 7; + optional bytes attachmentFileEncSha256 = 8; + optional string attachmentDirectPath = 9; + optional bytes attachmentJpegThumbnail = 10; +} + +message ContactMessage { + optional string displayName = 1; + optional string vcard = 16; + optional ContextInfo contextInfo = 17; +} + +message LocationMessage { + optional double degreesLatitude = 1; + optional double degreesLongitude = 2; + optional string name = 3; + optional string address = 4; + optional string url = 5; + optional bool isLive = 6; + optional uint32 accuracyInMeters = 7; + optional float speedInMps = 8; + optional uint32 degreesClockwiseFromMagneticNorth = 9; + optional string comment = 11; + optional bytes jpegThumbnail = 16; + optional ContextInfo contextInfo = 17; +} + +message ExtendedTextMessage { + optional string text = 1; + optional string matchedText = 2; + optional string canonicalUrl = 4; + optional string description = 5; + optional string title = 6; + optional fixed32 textArgb = 7; + optional fixed32 backgroundArgb = 8; + enum ExtendedTextMessageFontType { + SANS_SERIF = 0; + SERIF = 1; + NORICAN_REGULAR = 2; + BRYNDAN_WRITE = 3; + BEBASNEUE_REGULAR = 4; + OSWALD_HEAVY = 5; + } + optional ExtendedTextMessageFontType font = 9; + enum ExtendedTextMessagePreviewType { + NONE = 0; + VIDEO = 1; + } + optional ExtendedTextMessagePreviewType previewType = 10; + optional bytes jpegThumbnail = 16; + optional ContextInfo contextInfo = 17; + optional bool doNotPlayInline = 18; +} + +message DocumentMessage { + optional string url = 1; + optional string mimetype = 2; + optional string title = 3; + optional bytes fileSha256 = 4; + optional uint64 fileLength = 5; + optional uint32 pageCount = 6; + optional bytes mediaKey = 7; + optional string fileName = 8; + optional bytes fileEncSha256 = 9; + optional string directPath = 10; + optional int64 mediaKeyTimestamp = 11; + optional bool contactVcard = 12; + optional string thumbnailDirectPath = 13; + optional bytes thumbnailSha256 = 14; + optional bytes thumbnailEncSha256 = 15; + optional bytes jpegThumbnail = 16; + optional ContextInfo contextInfo = 17; + optional uint32 thumbnailHeight = 18; + optional uint32 thumbnailWidth = 19; +} + +message AudioMessage { + optional string url = 1; + optional string mimetype = 2; + optional bytes fileSha256 = 3; + optional uint64 fileLength = 4; + optional uint32 seconds = 5; + optional bool ptt = 6; + optional bytes mediaKey = 7; + optional bytes fileEncSha256 = 8; + optional string directPath = 9; + optional int64 mediaKeyTimestamp = 10; + optional ContextInfo contextInfo = 17; + optional bytes streamingSidecar = 18; +} + +message VideoMessage { + optional string url = 1; + optional string mimetype = 2; + optional bytes fileSha256 = 3; + optional uint64 fileLength = 4; + optional uint32 seconds = 5; + optional bytes mediaKey = 6; + optional string caption = 7; + optional bool gifPlayback = 8; + optional uint32 height = 9; + optional uint32 width = 10; + optional bytes fileEncSha256 = 11; + repeated InteractiveAnnotation interactiveAnnotations = 12; + optional string directPath = 13; + optional int64 mediaKeyTimestamp = 14; + optional bytes jpegThumbnail = 16; + optional ContextInfo contextInfo = 17; + optional bytes streamingSidecar = 18; + enum VideoMessageAttribution { + NONE = 0; + GIPHY = 1; + TENOR = 2; + } + optional VideoMessageAttribution gifAttribution = 19; + optional bool viewOnce = 20; + optional string thumbnailDirectPath = 21; + optional bytes thumbnailSha256 = 22; + optional bytes thumbnailEncSha256 = 23; +} + +message Call { + optional bytes callKey = 1; +} + +message Chat { + optional string displayName = 1; + optional string id = 2; +} + +message ProtocolMessage { + optional MessageKey key = 1; + enum ProtocolMessageType { + REVOKE = 0; + EPHEMERAL_SETTING = 3; + EPHEMERAL_SYNC_RESPONSE = 4; + HISTORY_SYNC_NOTIFICATION = 5; + APP_STATE_SYNC_KEY_SHARE = 6; + APP_STATE_SYNC_KEY_REQUEST = 7; + MSG_FANOUT_BACKFILL_REQUEST = 8; + INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC = 9; + APP_STATE_FATAL_EXCEPTION_NOTIFICATION = 10; + } + optional ProtocolMessageType type = 2; + optional uint32 ephemeralExpiration = 4; + optional int64 ephemeralSettingTimestamp = 5; + optional HistorySyncNotification historySyncNotification = 6; + optional AppStateSyncKeyShare appStateSyncKeyShare = 7; + optional AppStateSyncKeyRequest appStateSyncKeyRequest = 8; + optional InitialSecurityNotificationSettingSync initialSecurityNotificationSettingSync = 9; + optional AppStateFatalExceptionNotification appStateFatalExceptionNotification = 10; +} + +message HistorySyncNotification { + optional bytes fileSha256 = 1; + optional uint64 fileLength = 2; + optional bytes mediaKey = 3; + optional bytes fileEncSha256 = 4; + optional string directPath = 5; + enum HistorySyncNotificationHistorySyncType { + INITIAL_BOOTSTRAP = 0; + INITIAL_STATUS_V3 = 1; + FULL = 2; + RECENT = 3; + PUSH_NAME = 4; + } + optional HistorySyncNotificationHistorySyncType syncType = 6; + optional uint32 chunkOrder = 7; + optional string originalMessageId = 8; +} + +message AppStateSyncKey { + optional AppStateSyncKeyId keyId = 1; + optional AppStateSyncKeyData keyData = 2; +} + +message AppStateSyncKeyId { + optional bytes keyId = 1; +} + +message AppStateSyncKeyFingerprint { + optional uint32 rawId = 1; + optional uint32 currentIndex = 2; + repeated uint32 deviceIndexes = 3 [packed=true]; +} + +message AppStateSyncKeyData { + optional bytes keyData = 1; + optional AppStateSyncKeyFingerprint fingerprint = 2; + optional int64 timestamp = 3; +} + +message AppStateSyncKeyShare { + repeated AppStateSyncKey keys = 1; +} + +message AppStateSyncKeyRequest { + repeated AppStateSyncKeyId keyIds = 1; +} + +message AppStateFatalExceptionNotification { + repeated string collectionNames = 1; + optional int64 timestamp = 2; +} + +message InitialSecurityNotificationSettingSync { + optional bool securityNotificationEnabled = 1; +} + +message ContactsArrayMessage { + optional string displayName = 1; + repeated ContactMessage contacts = 2; + optional ContextInfo contextInfo = 17; +} + +message HSMCurrency { + optional string currencyCode = 1; + optional int64 amount1000 = 2; +} + +message HSMDateTimeComponent { + enum HSMDateTimeComponentDayOfWeekType { + MONDAY = 1; + TUESDAY = 2; + WEDNESDAY = 3; + THURSDAY = 4; + FRIDAY = 5; + SATURDAY = 6; + SUNDAY = 7; + } + optional HSMDateTimeComponentDayOfWeekType dayOfWeek = 1; + optional uint32 year = 2; + optional uint32 month = 3; + optional uint32 dayOfMonth = 4; + optional uint32 hour = 5; + optional uint32 minute = 6; + enum HSMDateTimeComponentCalendarType { + GREGORIAN = 1; + SOLAR_HIJRI = 2; + } + optional HSMDateTimeComponentCalendarType calendar = 7; +} + +message HSMDateTimeUnixEpoch { + optional int64 timestamp = 1; +} + +message HSMDateTime { + oneof datetimeOneof { + HSMDateTimeComponent component = 1; + HSMDateTimeUnixEpoch unixEpoch = 2; + } +} + +message HSMLocalizableParameter { + optional string default = 1; + oneof paramOneof { + HSMCurrency currency = 2; + HSMDateTime dateTime = 3; + } +} + +message HighlyStructuredMessage { + optional string namespace = 1; + optional string elementName = 2; + repeated string params = 3; + optional string fallbackLg = 4; + optional string fallbackLc = 5; + repeated HSMLocalizableParameter localizableParams = 6; + optional string deterministicLg = 7; + optional string deterministicLc = 8; + optional TemplateMessage hydratedHsm = 9; +} + +message SendPaymentMessage { + optional Message noteMessage = 2; + optional MessageKey requestMessageKey = 3; +} + +message RequestPaymentMessage { + optional Message noteMessage = 4; + optional string currencyCodeIso4217 = 1; + optional uint64 amount1000 = 2; + optional string requestFrom = 3; + optional int64 expiryTimestamp = 5; + optional PaymentMoney amount = 6; +} + +message DeclinePaymentRequestMessage { + optional MessageKey key = 1; +} + +message CancelPaymentRequestMessage { + optional MessageKey key = 1; +} + +message LiveLocationMessage { + optional double degreesLatitude = 1; + optional double degreesLongitude = 2; + optional uint32 accuracyInMeters = 3; + optional float speedInMps = 4; + optional uint32 degreesClockwiseFromMagneticNorth = 5; + optional string caption = 6; + optional int64 sequenceNumber = 7; + optional uint32 timeOffset = 8; + optional bytes jpegThumbnail = 16; + optional ContextInfo contextInfo = 17; +} + +message StickerMessage { + optional string url = 1; + optional bytes fileSha256 = 2; + optional bytes fileEncSha256 = 3; + optional bytes mediaKey = 4; + optional string mimetype = 5; + optional uint32 height = 6; + optional uint32 width = 7; + optional string directPath = 8; + optional uint64 fileLength = 9; + optional int64 mediaKeyTimestamp = 10; + optional uint32 firstFrameLength = 11; + optional bytes firstFrameSidecar = 12; + optional bool isAnimated = 13; + optional bytes pngThumbnail = 16; + optional ContextInfo contextInfo = 17; +} + +message FourRowTemplate { + optional HighlyStructuredMessage content = 6; + optional HighlyStructuredMessage footer = 7; + repeated TemplateButton buttons = 8; + oneof title { + DocumentMessage documentMessage = 1; + HighlyStructuredMessage highlyStructuredMessage = 2; + ImageMessage imageMessage = 3; + VideoMessage videoMessage = 4; + LocationMessage locationMessage = 5; + } +} + +message HydratedFourRowTemplate { + optional string hydratedContentText = 6; + optional string hydratedFooterText = 7; + repeated HydratedTemplateButton hydratedButtons = 8; + optional string templateId = 9; + oneof title { + DocumentMessage documentMessage = 1; + string hydratedTitleText = 2; + ImageMessage imageMessage = 3; + VideoMessage videoMessage = 4; + LocationMessage locationMessage = 5; + } +} + +message TemplateMessage { + optional ContextInfo contextInfo = 3; + optional HydratedFourRowTemplate hydratedTemplate = 4; + oneof format { + FourRowTemplate fourRowTemplate = 1; + HydratedFourRowTemplate hydratedFourRowTemplate = 2; + } +} + +message TemplateButtonReplyMessage { + optional string selectedId = 1; + optional string selectedDisplayText = 2; + optional ContextInfo contextInfo = 3; + optional uint32 selectedIndex = 4; +} + +message CatalogSnapshot { + optional ImageMessage catalogImage = 1; + optional string title = 2; + optional string description = 3; +} + +message ProductSnapshot { + optional ImageMessage productImage = 1; + optional string productId = 2; + optional string title = 3; + optional string description = 4; + optional string currencyCode = 5; + optional int64 priceAmount1000 = 6; + optional string retailerId = 7; + optional string url = 8; + optional uint32 productImageCount = 9; + optional string firstImageId = 11; +} + +message ProductMessage { + optional ProductSnapshot product = 1; + optional string businessOwnerJid = 2; + optional CatalogSnapshot catalog = 4; + optional ContextInfo contextInfo = 17; +} + +message OrderMessage { + optional string orderId = 1; + optional bytes thumbnail = 2; + optional int32 itemCount = 3; + enum OrderMessageOrderStatus { + INQUIRY = 1; + } + optional OrderMessageOrderStatus status = 4; + enum OrderMessageOrderSurface { + CATALOG = 1; + } + optional OrderMessageOrderSurface surface = 5; + optional string message = 6; + optional string orderTitle = 7; + optional string sellerJid = 8; + optional string token = 9; + optional int64 totalAmount1000 = 10; + optional string totalCurrencyCode = 11; + optional ContextInfo contextInfo = 17; +} + +message Row { + optional string title = 1; + optional string description = 2; + optional string rowId = 3; +} + +message Section { + optional string title = 1; + repeated Row rows = 2; +} + +message ListMessage { + optional string title = 1; + optional string description = 2; + optional string buttonText = 3; + enum ListMessageListType { + UNKNOWN = 0; + SINGLE_SELECT = 1; + } + optional ListMessageListType listType = 4; + repeated Section sections = 5; +} + +message SingleSelectReply { + optional string selectedRowId = 1; +} + +message ListResponseMessage { + optional string title = 1; + enum ListResponseMessageListType { + UNKNOWN = 0; + SINGLE_SELECT = 1; + } + optional ListResponseMessageListType listType = 2; + optional SingleSelectReply singleSelectReply = 3; + optional ContextInfo contextInfo = 4; + optional string description = 5; +} + +message GroupInviteMessage { + optional string groupJid = 1; + optional string inviteCode = 2; + optional int64 inviteExpiration = 3; + optional string groupName = 4; + optional bytes jpegThumbnail = 5; + optional string caption = 6; + optional ContextInfo contextInfo = 7; +} + +message EphemeralSetting { + optional string chatJid = 1; + optional uint32 ephemeralExpiration = 2; + optional int64 ephemeralSettingTimestamp = 3; +} + +message DeviceSentMessage { + optional string destinationJid = 1; + optional Message message = 2; + optional string phash = 3; + repeated EphemeralSetting broadcastEphemeralSettings = 4; +} + +message FutureProofMessage { + optional Message message = 1; +} + +message ButtonText { + optional string displayText = 1; +} + +message Button { + optional string buttonId = 1; + optional ButtonText buttonText = 2; + enum ButtonType { + UNKNOWN = 0; + RESPONSE = 1; + } + optional ButtonType type = 3; +} + +message ButtonsMessage { + optional string contentText = 6; + optional string footerText = 7; + optional ContextInfo contextInfo = 8; + repeated Button buttons = 9; + enum ButtonsMessageHeaderType { + UNKNOWN = 0; + EMPTY = 1; + TEXT = 2; + DOCUMENT = 3; + IMAGE = 4; + VIDEO = 5; + LOCATION = 6; + } + optional ButtonsMessageHeaderType headerType = 10; + oneof header { + string text = 1; + DocumentMessage documentMessage = 2; + ImageMessage imageMessage = 3; + VideoMessage videoMessage = 4; + LocationMessage locationMessage = 5; + } +} + +message ButtonsResponseMessage { + optional string selectedButtonId = 1; + optional ContextInfo contextInfo = 3; + enum ButtonsResponseMessageType { + UNKNOWN = 0; + DISPLAY_TEXT = 1; + } + optional ButtonsResponseMessageType type = 4; + oneof response { + string selectedDisplayText = 2; + } +} + +message Message { + optional string conversation = 1; + optional SenderKeyDistributionMessage senderKeyDistributionMessage = 2; + optional ImageMessage imageMessage = 3; + optional ContactMessage contactMessage = 4; + optional LocationMessage locationMessage = 5; + optional ExtendedTextMessage extendedTextMessage = 6; + optional DocumentMessage documentMessage = 7; + optional AudioMessage audioMessage = 8; + optional VideoMessage videoMessage = 9; + optional Call call = 10; + optional Chat chat = 11; + optional ProtocolMessage protocolMessage = 12; + optional ContactsArrayMessage contactsArrayMessage = 13; + optional HighlyStructuredMessage highlyStructuredMessage = 14; + optional SenderKeyDistributionMessage fastRatchetKeySenderKeyDistributionMessage = 15; + optional SendPaymentMessage sendPaymentMessage = 16; + optional LiveLocationMessage liveLocationMessage = 18; + optional RequestPaymentMessage requestPaymentMessage = 22; + optional DeclinePaymentRequestMessage declinePaymentRequestMessage = 23; + optional CancelPaymentRequestMessage cancelPaymentRequestMessage = 24; + optional TemplateMessage templateMessage = 25; + optional StickerMessage stickerMessage = 26; + optional GroupInviteMessage groupInviteMessage = 28; + optional TemplateButtonReplyMessage templateButtonReplyMessage = 29; + optional ProductMessage productMessage = 30; + optional DeviceSentMessage deviceSentMessage = 31; + optional MessageContextInfo messageContextInfo = 35; + optional ListMessage listMessage = 36; + optional FutureProofMessage viewOnceMessage = 37; + optional OrderMessage orderMessage = 38; + optional ListResponseMessage listResponseMessage = 39; + optional FutureProofMessage ephemeralMessage = 40; + optional InvoiceMessage invoiceMessage = 41; + optional ButtonsMessage buttonsMessage = 42; + optional ButtonsResponseMessage buttonsResponseMessage = 43; +} + +message MessageKey { + optional string remoteJid = 1; + optional bool fromMe = 2; + optional string id = 3; + optional string participant = 4; +} + +message WebFeatures { + enum WebFeaturesFlag { + NOT_STARTED = 0; + FORCE_UPGRADE = 1; + DEVELOPMENT = 2; + PRODUCTION = 3; + } + optional WebFeaturesFlag labelsDisplay = 1; + optional WebFeaturesFlag voipIndividualOutgoing = 2; + optional WebFeaturesFlag groupsV3 = 3; + optional WebFeaturesFlag groupsV3Create = 4; + optional WebFeaturesFlag changeNumberV2 = 5; + optional WebFeaturesFlag queryStatusV3Thumbnail = 6; + optional WebFeaturesFlag liveLocations = 7; + optional WebFeaturesFlag queryVname = 8; + optional WebFeaturesFlag voipIndividualIncoming = 9; + optional WebFeaturesFlag quickRepliesQuery = 10; + optional WebFeaturesFlag payments = 11; + optional WebFeaturesFlag stickerPackQuery = 12; + optional WebFeaturesFlag liveLocationsFinal = 13; + optional WebFeaturesFlag labelsEdit = 14; + optional WebFeaturesFlag mediaUpload = 15; + optional WebFeaturesFlag mediaUploadRichQuickReplies = 18; + optional WebFeaturesFlag vnameV2 = 19; + optional WebFeaturesFlag videoPlaybackUrl = 20; + optional WebFeaturesFlag statusRanking = 21; + optional WebFeaturesFlag voipIndividualVideo = 22; + optional WebFeaturesFlag thirdPartyStickers = 23; + optional WebFeaturesFlag frequentlyForwardedSetting = 24; + optional WebFeaturesFlag groupsV4JoinPermission = 25; + optional WebFeaturesFlag recentStickers = 26; + optional WebFeaturesFlag catalog = 27; + optional WebFeaturesFlag starredStickers = 28; + optional WebFeaturesFlag voipGroupCall = 29; + optional WebFeaturesFlag templateMessage = 30; + optional WebFeaturesFlag templateMessageInteractivity = 31; + optional WebFeaturesFlag ephemeralMessages = 32; + optional WebFeaturesFlag e2ENotificationSync = 33; + optional WebFeaturesFlag recentStickersV2 = 34; + optional WebFeaturesFlag syncdRelease1 = 35; + optional WebFeaturesFlag recentStickersV3 = 36; + optional WebFeaturesFlag userNotice = 37; + optional WebFeaturesFlag syncdRelease11 = 38; + optional WebFeaturesFlag support = 39; + optional WebFeaturesFlag groupUiiCleanup = 40; + optional WebFeaturesFlag groupDogfoodingInternalOnly = 41; + optional WebFeaturesFlag settingsSync = 42; +} + +message NotificationMessageInfo { + optional MessageKey key = 1; + optional Message message = 2; + optional uint64 messageTimestamp = 3; + optional string participant = 4; +} + +message WebNotificationsInfo { + optional uint64 timestamp = 2; + optional uint32 unreadChats = 3; + optional uint32 notifyMessageCount = 4; + repeated WebMessageInfo notifyMessages = 5; +} + +message PaymentInfo { + enum PaymentInfoCurrency { + UNKNOWN_CURRENCY = 0; + INR = 1; + } + optional PaymentInfoCurrency currencyDeprecated = 1; + optional uint64 amount1000 = 2; + optional string receiverJid = 3; + enum PaymentInfoStatus { + UNKNOWN_STATUS = 0; + PROCESSING = 1; + SENT = 2; + NEED_TO_ACCEPT = 3; + COMPLETE = 4; + COULD_NOT_COMPLETE = 5; + REFUNDED = 6; + EXPIRED = 7; + REJECTED = 8; + CANCELLED = 9; + WAITING_FOR_PAYER = 10; + WAITING = 11; + } + optional PaymentInfoStatus status = 4; + optional uint64 transactionTimestamp = 5; + optional MessageKey requestMessageKey = 6; + optional uint64 expiryTimestamp = 7; + optional bool futureproofed = 8; + optional string currency = 9; + enum PaymentInfoTxnStatus { + UNKNOWN = 0; + PENDING_SETUP = 1; + PENDING_RECEIVER_SETUP = 2; + INIT = 3; + SUCCESS = 4; + COMPLETED = 5; + FAILED = 6; + FAILED_RISK = 7; + FAILED_PROCESSING = 8; + FAILED_RECEIVER_PROCESSING = 9; + FAILED_DA = 10; + FAILED_DA_FINAL = 11; + REFUNDED_TXN = 12; + REFUND_FAILED = 13; + REFUND_FAILED_PROCESSING = 14; + REFUND_FAILED_DA = 15; + EXPIRED_TXN = 16; + AUTH_CANCELED = 17; + AUTH_CANCEL_FAILED_PROCESSING = 18; + AUTH_CANCEL_FAILED = 19; + COLLECT_INIT = 20; + COLLECT_SUCCESS = 21; + COLLECT_FAILED = 22; + COLLECT_FAILED_RISK = 23; + COLLECT_REJECTED = 24; + COLLECT_EXPIRED = 25; + COLLECT_CANCELED = 26; + COLLECT_CANCELLING = 27; + } + optional PaymentInfoTxnStatus txnStatus = 10; + optional bool useNoviFiatFormat = 11; + optional PaymentMoney primaryAmount = 12; + optional PaymentMoney exchangeAmount = 13; +} + +message WebMessageInfo { + required MessageKey key = 1; + optional Message message = 2; + optional uint64 messageTimestamp = 3; + enum WebMessageInfoStatus { + ERROR = 0; + PENDING = 1; + SERVER_ACK = 2; + DELIVERY_ACK = 3; + READ = 4; + PLAYED = 5; + } + optional WebMessageInfoStatus status = 4; + optional string participant = 5; + optional bool ignore = 16; + optional bool starred = 17; + optional bool broadcast = 18; + optional string pushName = 19; + optional bytes mediaCiphertextSha256 = 20; + optional bool multicast = 21; + optional bool urlText = 22; + optional bool urlNumber = 23; + enum WebMessageInfoStubType { + UNKNOWN = 0; + REVOKE = 1; + CIPHERTEXT = 2; + FUTUREPROOF = 3; + NON_VERIFIED_TRANSITION = 4; + UNVERIFIED_TRANSITION = 5; + VERIFIED_TRANSITION = 6; + VERIFIED_LOW_UNKNOWN = 7; + VERIFIED_HIGH = 8; + VERIFIED_INITIAL_UNKNOWN = 9; + VERIFIED_INITIAL_LOW = 10; + VERIFIED_INITIAL_HIGH = 11; + VERIFIED_TRANSITION_ANY_TO_NONE = 12; + VERIFIED_TRANSITION_ANY_TO_HIGH = 13; + VERIFIED_TRANSITION_HIGH_TO_LOW = 14; + VERIFIED_TRANSITION_HIGH_TO_UNKNOWN = 15; + VERIFIED_TRANSITION_UNKNOWN_TO_LOW = 16; + VERIFIED_TRANSITION_LOW_TO_UNKNOWN = 17; + VERIFIED_TRANSITION_NONE_TO_LOW = 18; + VERIFIED_TRANSITION_NONE_TO_UNKNOWN = 19; + GROUP_CREATE = 20; + GROUP_CHANGE_SUBJECT = 21; + GROUP_CHANGE_ICON = 22; + GROUP_CHANGE_INVITE_LINK = 23; + GROUP_CHANGE_DESCRIPTION = 24; + GROUP_CHANGE_RESTRICT = 25; + GROUP_CHANGE_ANNOUNCE = 26; + GROUP_PARTICIPANT_ADD = 27; + GROUP_PARTICIPANT_REMOVE = 28; + GROUP_PARTICIPANT_PROMOTE = 29; + GROUP_PARTICIPANT_DEMOTE = 30; + GROUP_PARTICIPANT_INVITE = 31; + GROUP_PARTICIPANT_LEAVE = 32; + GROUP_PARTICIPANT_CHANGE_NUMBER = 33; + BROADCAST_CREATE = 34; + BROADCAST_ADD = 35; + BROADCAST_REMOVE = 36; + GENERIC_NOTIFICATION = 37; + E2E_IDENTITY_CHANGED = 38; + E2E_ENCRYPTED = 39; + CALL_MISSED_VOICE = 40; + CALL_MISSED_VIDEO = 41; + INDIVIDUAL_CHANGE_NUMBER = 42; + GROUP_DELETE = 43; + GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE = 44; + CALL_MISSED_GROUP_VOICE = 45; + CALL_MISSED_GROUP_VIDEO = 46; + PAYMENT_CIPHERTEXT = 47; + PAYMENT_FUTUREPROOF = 48; + PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED = 49; + PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED = 50; + PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED = 51; + PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP = 52; + PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP = 53; + PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER = 54; + PAYMENT_ACTION_SEND_PAYMENT_REMINDER = 55; + PAYMENT_ACTION_SEND_PAYMENT_INVITATION = 56; + PAYMENT_ACTION_REQUEST_DECLINED = 57; + PAYMENT_ACTION_REQUEST_EXPIRED = 58; + PAYMENT_ACTION_REQUEST_CANCELLED = 59; + BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM = 60; + BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP = 61; + BIZ_INTRO_TOP = 62; + BIZ_INTRO_BOTTOM = 63; + BIZ_NAME_CHANGE = 64; + BIZ_MOVE_TO_CONSUMER_APP = 65; + BIZ_TWO_TIER_MIGRATION_TOP = 66; + BIZ_TWO_TIER_MIGRATION_BOTTOM = 67; + OVERSIZED = 68; + GROUP_CHANGE_NO_FREQUENTLY_FORWARDED = 69; + GROUP_V4_ADD_INVITE_SENT = 70; + GROUP_PARTICIPANT_ADD_REQUEST_JOIN = 71; + CHANGE_EPHEMERAL_SETTING = 72; + E2E_DEVICE_CHANGED = 73; + VIEWED_ONCE = 74; + E2E_ENCRYPTED_NOW = 75; + BLUE_MSG_BSP_FB_TO_BSP_PREMISE = 76; + BLUE_MSG_BSP_FB_TO_SELF_FB = 77; + BLUE_MSG_BSP_FB_TO_SELF_PREMISE = 78; + BLUE_MSG_BSP_FB_UNVERIFIED = 79; + BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED = 80; + BLUE_MSG_BSP_FB_VERIFIED = 81; + BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED = 82; + BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE = 83; + BLUE_MSG_BSP_PREMISE_UNVERIFIED = 84; + BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED = 85; + BLUE_MSG_BSP_PREMISE_VERIFIED = 86; + BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED = 87; + BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED = 88; + BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED = 89; + BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED = 90; + BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED = 91; + BLUE_MSG_SELF_FB_TO_BSP_PREMISE = 92; + BLUE_MSG_SELF_FB_TO_SELF_PREMISE = 93; + BLUE_MSG_SELF_FB_UNVERIFIED = 94; + BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED = 95; + BLUE_MSG_SELF_FB_VERIFIED = 96; + BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED = 97; + BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE = 98; + BLUE_MSG_SELF_PREMISE_UNVERIFIED = 99; + BLUE_MSG_SELF_PREMISE_VERIFIED = 100; + BLUE_MSG_TO_BSP_FB = 101; + BLUE_MSG_TO_CONSUMER = 102; + BLUE_MSG_TO_SELF_FB = 103; + BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED = 104; + BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED = 105; + BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED = 106; + BLUE_MSG_UNVERIFIED_TO_VERIFIED = 107; + BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED = 108; + BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED = 109; + BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED = 110; + BLUE_MSG_VERIFIED_TO_UNVERIFIED = 111; + BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED = 112; + BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED = 113; + BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED = 114; + BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED = 115; + BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED = 116; + BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED = 117; + E2E_IDENTITY_UNAVAILABLE = 118; + } + optional WebMessageInfoStubType messageStubType = 24; + optional bool clearMedia = 25; + repeated string messageStubParameters = 26; + optional uint32 duration = 27; + repeated string labels = 28; + optional PaymentInfo paymentInfo = 29; + optional LiveLocationMessage finalLiveLocation = 30; + optional PaymentInfo quotedPaymentInfo = 31; + optional uint64 ephemeralStartTimestamp = 32; + optional uint32 ephemeralDuration = 33; + optional bool ephemeralOffToOn = 34; + optional bool ephemeralOutOfSync = 35; + enum WebMessageInfoBizPrivacyStatus { + E2EE = 0; + FB = 2; + BSP = 1; + BSP_AND_FB = 3; + } + optional WebMessageInfoBizPrivacyStatus bizPrivacyStatus = 36; + optional string verifiedBizName = 37; +}
\ No newline at end of file diff --git a/protocols/WhatsAppWeb/src/server.cpp b/protocols/WhatsAppWeb/src/server.cpp index c26a590af9..0530dd81b6 100644 --- a/protocols/WhatsAppWeb/src/server.cpp +++ b/protocols/WhatsAppWeb/src/server.cpp @@ -470,39 +470,46 @@ void WhatsAppProto::ProcessAdd(const JSONNode &list) if (pRes == nullptr) continue; - WAMessage msg; - WAS_Decoder rdr(pRes, resLen); - if (rdr.read(&msg, msgFields, _countof(msgFields))) { - CMStringA jid(msg.szJid); - jid.Replace("@s.whatsapp.net", "@c.us"); - jid.Replace("@g.whatsapp.net", "@g.us"); + proto::WebMessageInfo payLoad; + if (payLoad.ParseFromArray(pRes, (int)resLen)) { + auto &key= payLoad.key(); + + CMStringA jid(key.remotejid().c_str()); + if (!jid.Replace("@s.whatsapp.net", "@c.us")) + jid.Replace("@g.whatsapp.net", "@g.us"); auto *pUser = AddUser(jid, false); - if (db_event_getById(m_szModuleName, msg.szMsgId)) - continue; - - if (pUser->si) { - CMStringA szText(msg.szBody); - szText.Replace("%", "%%"); - - GCEVENT gce = { m_szModuleName, 0, GC_EVENT_MESSAGE }; - gce.pszID.a = msg.szJid; - gce.dwFlags = GCEF_ADDTOLOG | GCEF_UTF8; - gce.pszUID.a = ""; - gce.pszText.a = szText; - gce.time = int(msg.timestamp / 1000000ll); - gce.bIsMe = true; - Chat_Event(&gce); - } - else { - PROTORECVEVENT pre = { 0 }; - pre.timestamp = int(msg.timestamp / 1000000ll); - pre.szMessage = msg.szBody; - pre.flags = PREF_CREATEREAD; - pre.szMsgId = msg.szMsgId; - if (msg.bFromTo) - pre.flags |= PREF_SENT; - ProtoChainRecvMsg(pUser->hContact, &pre); + + if (payLoad.has_message()) { + auto &msg = payLoad.message(); + std::string conv = msg.conversation(); + + if (db_event_getById(m_szModuleName, key.id().c_str())) + continue; + + if (pUser->si) { + CMStringA szText(conv.c_str()); + szText.Replace("%", "%%"); + + GCEVENT gce = { m_szModuleName, 0, GC_EVENT_MESSAGE }; + gce.pszID.a = jid; + gce.dwFlags = GCEF_ADDTOLOG | GCEF_UTF8; + gce.pszUID.a = ""; + gce.pszText.a = szText; + gce.time = int(payLoad.messagetimestamp()); + gce.bIsMe = true; + Chat_Event(&gce); + } + else { + PROTORECVEVENT pre = { 0 }; + pre.timestamp = int(payLoad.messagetimestamp()); + pre.szMessage = (char*)conv.c_str(); + pre.flags = PREF_CREATEREAD; + pre.szMsgId = key.id().c_str(); + if (key.fromme()) + pre.flags |= PREF_SENT; + ProtoChainRecvMsg(pUser->hContact, &pre); + } } } diff --git a/protocols/WhatsAppWeb/src/stdafx.h b/protocols/WhatsAppWeb/src/stdafx.h index 4aa4febb1a..cdfe2a866e 100644 --- a/protocols/WhatsAppWeb/src/stdafx.h +++ b/protocols/WhatsAppWeb/src/stdafx.h @@ -51,6 +51,17 @@ Copyright © 2019-21 George Hazan #include "../../libs/libsignal/src/hkdf.h" #include "../../libs/libsignal/src/signal_protocol.h" +///////////////////////////////////////////////////////////////////////////////////////// +// to obtain protobuf library do the following +// - install vcpkg (https://github.com/microsoft/vcpkg); +// - install static libraries of protobuf: +// >vcpkg.exe install protobuf:x86-windows-static-md +// >vcpkg.exe install protobuf:x64-windows-static-md + +#include "google/protobuf/message.h" + +///////////////////////////////////////////////////////////////////////////////////////// + struct signal_buffer { size_t len; @@ -77,5 +88,6 @@ struct ec_private_key : public signal_type_base #include "utils.h" #include "proto.h" #include "resource.h" +#include "pmsg.pb.h" #pragma comment(lib, "libcrypto.lib") |
